Gemini API CLI
Last updated
Call Gemini models and managed agents from any shell with a stateless command-line client.
Install with winget
$ winget install --id Google.GeminiAPICLI --exact --version 0.5.0Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For Intune admins
Stop chasing app updates. Pckgr patches them for you.
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialFrom $49/month. No credit card required.
Not on Intune? Pckgr RMM deploys and patches apps like this one on any Windows fleet. Free for up to 5 devices.
About
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.
Installers · v0.5.0
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
Security
No known CVEs for Gemini API CLI.
Coverage is best-effort and depends on a winget package mapping to an NVD CPE entry. Absence here is not a guarantee of safety.
Related apps
Frequently asked questions
How do I install Gemini API CLI on Windows?
How do I install Gemini API CLI silently for unattended deployment?
How do I uninstall Gemini API CLI via winget?
Is Gemini API CLI free?
Does Gemini API CLI work on Windows 10?
How do I keep Gemini API CLI up to date?
Recent versions
- 0.5.0latest
- 0.4.6