Files
gemini-cli/docs/cli/index.md
Shreya Keshive 86828bb561 feat: launch Gemini 3 in Gemini CLI 🚀🚀🚀 (in main) (#13287)
Co-authored-by: Adam Weidman <65992621+adamfweidman@users.noreply.github.com>
Co-authored-by: Sehoon Shon <sshon@google.com>
Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: Sandy Tao <sandytao520@icloud.com>
Co-authored-by: Abhi <43648792+abhipatel12@users.noreply.github.com>
Co-authored-by: Aishanee Shah <aishaneeshah@gmail.com>
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
Co-authored-by: Jacob Richman <jacob314@gmail.com>
Co-authored-by: joshualitt <joshualitt@google.com>
Co-authored-by: Jenna Inouye <jinouye@google.com>
2025-11-18 09:01:16 -08:00

2.4 KiB

Gemini CLI

Within Gemini CLI, packages/cli is the frontend for users to send and receive prompts with the Gemini AI model and its associated tools. For a general overview of Gemini CLI, see the main documentation page.

Basic features

  • Commands: A reference for all built-in slash commands
  • Custom Commands: Create your own commands and shortcuts for frequently used prompts.
  • Headless Mode: Use Gemini CLI programmatically for scripting and automation.
  • Model Selection: Configure the Gemini AI model used by the CLI.
  • Settings: Configure various aspects of the CLI's behavior and appearance.
  • Themes: Customizing the CLI's appearance with different themes.
  • Keyboard Shortcuts: A reference for all keyboard shortcuts to improve your workflow.
  • Tutorials: Step-by-step guides for common tasks.

Advanced features

Non-interactive mode

Gemini CLI can be run in a non-interactive mode, which is useful for scripting and automation. In this mode, you pipe input to the CLI, it executes the command, and then it exits.

The following example pipes a command to Gemini CLI from your terminal:

echo "What is fine tuning?" | gemini

You can also use the --prompt or -p flag:

gemini -p "What is fine tuning?"

For comprehensive documentation on headless usage, scripting, automation, and advanced examples, see the Headless Mode guide.