Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Gemini CLI

Gemini CLI is Google’s command-line interface for Gemini.

Features

  • Large Context Window — 1M token context window
  • Tool Execution — Read, write, and execute commands
  • Multiple Models — Various Gemini models available

Models

ModelBest For
gemini-3-pro-previewComplex reasoning, large context
gemini-3-flash-previewBalanced performance

Build vs Plan Mode

Plan mode for Gemini is prompt-guided (best-effort). The agent follows the prompt guidance but isn’t strictly enforced like Claude Code.

Toggle with Tab or Ctrl+4.

Tools Available

Similar capabilities to other agents:

  • File reading and writing
  • Shell command execution
  • Code search and analysis

Installation

npm install -g @google/gemini-cli

Configuration

Ensure Gemini CLI is in your PATH, or configure the path:

[tools]
gemini = "/path/to/gemini"