Gemini API CLI

Google·Google.GeminiAPICLI

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 winget

Latest 0.5.0·November 20, 2026

Release Notes

Changelog

  • 6f2da79f0590acb39f3414ed8502f49859d75e4a chore(cli): bump CLI version to v0.5.0
  • 4be8e6663650367bf0b745716da4595fc6137c57 feat: Add text_normalization to SpeechConfig (Gemini API).
  • 07adfc8840c19ee1d36c205910b51351c5204cae feat(environments): expose CreateEnvironmentRequest.env on the gemini platform
  • fbefcda7b1754888b1a688a91e55aec64e35c458 docs(self-hosted): update agent version to antigravity-preview-09-2026
  • d018a0cb5151682c43c3523f2eb9f23a2183f49b fix: update sdk enum
  • 55b46fd403cbb4929d2c5fe1422325422ac773a5 feat(sdk): Add tool retrieval and function result schemas in public SDK
  • fa3396e9d458b2cc82252c7bec21488627d11889 feat(environments): introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI
  • 489139b877ea034c6fd1c30db0cb7de9ff321b69 feat(cli): onboard generated voices command group and add TTS --style and --voice-prompt
  • 07908f93053fee452d649eb6d308952948b3fd53 Update Cloudflare self-hosted sandbox docs with one-click deploy and secrets configuration
  • 911b5fc8a1e99950f9c45defd730f1636d46fa33 feat(interactions): expose static file processing options
  • 8ba7ea0b19f75ae9a152a0df4bb205eff4cfbb19 feat(cli): make gemini-4-hydrogen the default model
  • d01d70c41e186943833dcb2cdd01fe7e2189b170 feat: Add tool search types to the Interactions SDKs
  • 2030ff16e8b4e0e815c358e7a5156a9e5bb40191 feat(interactions): add gemini-4-hydrogen to Model enum
  • 9785062b83cde661b1b9fe32d4c418838eaf009b feat: Add XHIGH and xhigh to ThinkingLevel across GenAI SDKs and CLI.
  • 1903080319df1bc6a6cdb8d738f894a682751437 docs(self-hosted): update provider, container, and environment ID docs
  • 02f120a5db1a90091524a0e1c913fe83c1d5c587 fix(cli): preview files.get metadata lookup for body/stdin file URIs without mime_type
  • c73aea295461002df885ded76afc0f5071534b89 fix(cli): synchronize shared request-body capture in contract test stub
  • 056ec039be19443485d78b548cc34eae34309f8a fix(cli): report positional/flag collisions and absolute download paths in environments files
  • 99eb64758ca9bd308b3cd276d7a9c247b6bddbab fix(cli): share dynamic CLI User-Agent builder across SDK hooks and raw HTTP transport
  • 3bea429f9eb2d8efb212bc5c14cfafa81c507b0a rollback(cli): unintended breaking changes
  • 66bdcc20bec113e4fff2a0344a7dab3aeda67889 docs(self-hosted): add self-hosted environment guides, container recipes, provider examples, and Agent Substrate integration
  • b7a4517c56e45f1925d31f62fff9cb936dfce68d feat(environments): introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI
  • e8fcfc33bdad5d3500274756ad10363bf40eb0f8 feat(interactions): add gemini-4-carbon and gemini-omni-1.2-flash to Model enum

Installer type: zip

x64—D2BC738FB8C83F663E1FCA5E3382876DCBDE54880C7375CFCB49351298B264EC
arm64—A64DF8F4B0EC394DE4A42B8BE96831942EC850463AACC77D41C6B04F07AF2963

Details

Homepage
https://github.com/google-gemini/gemini-api-cli
License
Apache-2.0
Publisher
Google
Support
https://github.com/google-gemini/gemini-api-cli/issues
Privacy Policy
https://policies.google.com/privacy

Tags

agentaiapiaudio-generationimage-generationllmmanaged-agentsmusic-generationtext-to-speechtranscriptionvideo-generation

Older versions (1)

0.4.6
x64—5413073270920FBB25B3E6C8A55D4612721D3048D0B85B833978934D198666EF
arm64—2FB8D9A2294B53D7E79D45665CC222A6843A177575FD97D124DC191342721667