Home > Software > Development > AI > Gemini CLI
Details
- Package ID
- gemini-cli
- Version
- 0.27.2
- Downloads
- 3256
- Website
- https://github.com/google-gemini/gemini-cli
Summary
Gemini CLI is a command-line AI workflow tool that connects to your tools, understands your code, and accelerates your workflows. Gemini CLI brings the capabilities of Gemini models to your terminal in an interactive Read-Eval-Print Loop (REPL) environment.
Description
Gemini CLI
With the Gemini CLI you can:
- Query and edit large codebases in and beyond Gemini’s 1M token context window.
- Generate new apps from PDFs or sketches, using Gemini’s multimodal capabilities.
- Automate operational tasks, like querying pull requests or handling complex rebases.
- Use tools and MCP servers to connect new capabilities, including media generation with Imagen, Veo or Lyria
- Ground your queries with the Google Search tool, built into Gemini.
Quickstart
Install Gemini CLI using Chocolatey by running:
choco install gemini-cli
Common Configuration steps
Pick a color theme
Authenticate: When prompted, sign in with your personal Google account. This will grant you up to 60 model requests per minute and 1,000 model requests per day using Gemini.
You are now ready to use the Gemini CLI!
Use a Gemini API key:
The Gemini API provides a free tier with 100 requests per day using Gemini 2.5 Pro, control over which model you use, and access to higher rate limits (with a paid plan):
Generate a key from Google AI Studio.
Set it as an environment variable in your terminal. Replace
YOUR_API_KEYwith your generated key.export GEMINI_API_KEY="YOUR_API_KEY"(Optionally) Upgrade your Gemini API project to a paid plan on the API key page (will automatically unlock Tier 1 rate limits)
Use a Vertex AI API key:
The Vertex AI API provides a free tier using express mode for Gemini 2.5 Pro, control over which model you use, and access to higher rate limits with a billing account:
Generate a key from Google Cloud.
Set it as an environment variable in your terminal. Replace
YOUR_API_KEYwith your generated key and set GOOGLE_GENAI_USE_VERTEXAI to trueexport GOOGLE_API_KEY="YOUR_API_KEY" export GOOGLE_GENAI_USE_VERTEXAI=true(Optionally) Add a billing account on your project to get access to higher usage limits
For other authentication methods, including Google Workspace accounts, see the authentication guide.