Gemini API CLI
Call Gemini models and managed agents from any shell with a stateless command-line client.
Gemini models and managed agents for the agent you already use. Configure an API key, put gemini-api on PATH, and let your agent choose a model, generate an asset, analyze a file, or launch a managed agent to handle a task. - One binary for models, media, and managed agents: access text and reasoning models, multimodal file analysis, image, audio, music, and video generation, and managed agents from the command line. - Delegate long-running work: start a Gemini managed agent in the background, keep the returned interaction ID, and retrieve the result when needed. - Self-describing interface: commands, flags, request schemas, and machine-readable usage are built into the binary so an agent can inspect what it needs on the fly. - Safe dry-run validation: --dry-run validates inputs and prints the resolved HTTP request with credentials redacted. - Script- and agent-friendly output: stream text, write media directly to disk, emit structured JSON or compact TOON, or filter fields inline with --jq.
winget install --id Google.GeminiAPICLI --exact --source wingetLatest 0.5.0·November 20, 2026
Details
- Homepage
- https://github.com/google-gemini/gemini-api-cli
- License
- Apache-2.0
- Publisher
- Support
- https://github.com/google-gemini/gemini-api-cli/issues
- Privacy Policy
- https://policies.google.com/privacy