Skip to content
TraeIDE

Search

Popular pages

No matching pages

Try a tool name or a topic such as pricing or MCP.

English

Gemini CLI Guide

Google’s open-source terminal agent for Gemini, project context and command-line automation.

Last verified: · How we verify
Coding agentGooglemacOSWindowsLinux

Suitable workflows

Developers using Google accounts, Gemini API keys or Vertex AI.

Limitations and billing

Quotas depend on authentication. Workspace accounts may need a Google Cloud project.

Capabilities we verified

Agent workflowCLI surfaceMCPSkillsRules / instructionsHooksBring your own key

This is an evidence-based shortlist, not an exhaustive feature inventory. Omitted capabilities have not been checked for this record.

Pricing & usage

Free access; see limits

Account quota or metered Gemini / Vertex AI usage. The cost of metered usage or an external agent can be separate from the subscription.

Check official pricing ↗

Models & access

Google sign-in, Gemini API key, or Vertex AI credentials.

Verified families: Gemini.

Official model information ↗

Install and start the CLI

Install a supported Node.js version and npm; use the stable release for normal projects.

Installation command · npm

npm install -g @google/gemini-cli

Open your project folder in a terminal, then run:

gemini
Official installation instructions ↗

Account and authentication

Choose Google sign-in, GEMINI_API_KEY, or Vertex AI on first launch.

Project configuration and tools

Use GEMINI.md for project context; configure extensions and MCP separately from authentication.

First task to try

Map the main modules and test commands before asking Gemini to change a file.

Script usage

This example asks for a project summary. Tool permissions still apply; a prompt is not a sandbox.

gemini -p "Summarize the project structure without modifying files."
Official configuration reference ↗

Related CLI tools

All AI CLI tools →

Project evaluation checklist

  1. Open a small, familiar project and confirm that your essential language tooling works.
  2. Give the agent one bounded change with an observable acceptance criterion.
  3. Review the diff, run the project’s checks and compare the result with your current workflow.
  4. Inspect usage after the task. Estimate a month of similar work, including any separate model or agent bill.