What Gemini CLI does
Gemini CLI (the gemini command) is an open-source agent that runs Gemini models in your terminal. It reads and edits files, runs shell commands, fetches and searches the web, and can be extended with MCP servers, custom commands and extensions. Project instructions live in GEMINI.md context files, conversations can be checkpointed and resumed, and a headless mode (gemini -p) returns plain, JSON or stream-JSON output for scripts. A VS Code companion adds IDE integration, and sandboxing and trusted folders limit what the agent can touch.
Install it with npm install -g @google/gemini-cli (Node.js 20 or later), brew install gemini-cli, MacPorts, or run it once with npx @google/gemini-cli. You sign in with a Google account tied to a Code Assist license, a Gemini API key, or Vertex AI. Important change: on May 19, 2026 Google announced that free individual use and Google AI Pro / Ultra accounts would move to the new Antigravity CLI. Since June 18, 2026 the GitHub README describes Gemini CLI as maintained for enterprise Gemini Code Assist workflows on Google Cloud, and says it is not tuned for the Gemini 4 series.
