This documentation provides a comprehensive guide to installing, using, and developing Gemini CLI. This tool lets you interact with Gemini models through a command-line interface.
Gemini CLI brings the capabilities of Gemini models to your terminal in an interactive Read-Eval-Print Loop (REPL) environment. Gemini CLI consists of a client-side application () that communicates with a local server (), which in turn manages requests to the Gemini API and its AI models. Gemini CLI also contains a variety of tools for tasks such as performing file system operations, running shells, and web fetching, which are managed by .packages/clipackages/corepackages/core
This documentation is organized into the following sections:
- Execution and Deployment: Information for running Gemini CLI.
- Architecture Overview: Understand the high-level design of Gemini CLI, including its components and how they interact.
- CLI Usage: Documentation for .
packages/cli- CLI Introduction: Overview of the command-line interface.
- Commands: Description of available CLI commands.
- Configuration: Information on configuring the CLI.
- Checkpointing: Documentation for the checkpointing feature.
- Extensions: How to extend the CLI with new functionality.
- Telemetry: Overview of telemetry in the CLI.
- Core Details: Documentation for .
packages/core- Core Introduction: Overview of the core component.
- Tools API: Information on how the core manages and exposes tools.
- Tools:
- Tools Overview: Overview of the available tools.
- File System Tools: Documentation for the and tools.
read_filewrite_file - Multi-File Read Tool: Documentation for the tool.
read_many_files - Shell Tool: Documentation for the tool.
run_shell_command - Web Fetch Tool: Documentation for the tool.
web_fetch - Web Search Tool: Documentation for the tool.
google_web_search - Memory Tool: Documentation for the tool.
save_memory
- Contributing & Development Guide: Information for contributors and developers, including setup, building, testing, and coding conventions.
- NPM Workspaces and Publishing: Details on how the project's packages are managed and published.
- Troubleshooting Guide: Find solutions to common problems and FAQs.
- Terms of Service and Privacy Notice: Information on the terms of service and privacy notices applicable to your use of Gemini CLI.
We hope this documentation helps you make the most of the Gemini CLI!