# Gemini CLI Gemini CLI brings Gemini models into the terminal for understanding code, editing local projects, generating apps from images or PDFs, and automating development workflows. - Findings24: - Website: - Pricing: Freemium - Categories: AI Developer Tools, AI Code Assistant, AI Code Generator ## What is Gemini CLI? Gemini CLI is a terminal-based developer tool that brings Gemini models into local project workflows. It can help users understand code, work with files and directories, execute shell commands, and automate multi-step tasks while using the project as context. The tool supports development activities ranging from codebase queries and editing to app generation from images or PDFs. Its documented workflow includes session management, persistent instructions and facts, web search and fetching, task planning, and configurable model behavior. Gemini CLI is installed through npm and can be extended with tools, agent skills, MCP servers, hooks, and community extensions. It also includes modes and controls for scripting, sandboxing, checkpoints, model selection, and safer planning of complex changes. ## What can Gemini CLI do? ### Local project context Understand code and work with files and directories in the context of a local project, supporting code queries, edits, and development tasks from the terminal. ### Shell command execution Execute system commands from the CLI, with documented controls for trusted folders, policy enforcement, and sandboxing of tool execution. ### Task planning and automation Plan complex changes with todos, use a read-only plan mode, and automate workflows through headless mode and scripting interfaces. ### Sessions, memory, and checkpoints Manage conversation history, resume or rewind sessions, maintain persistent instructions and facts, and use automatic session snapshots. ### Extensible tool ecosystem Add capabilities through extensions, agent skills, hooks, MCP servers, and custom commands. The extension directory includes community-published packages and warns users to inspect their source and permissions. ### Model and workflow configuration Select models, configure generation parameters such as temperature and thinking budget, route between models, and customize project context with GEMINI.md files. ## Use Cases ### Explore and modify a codebase Ask questions about a local project, locate relevant files, and make code changes without leaving the terminal. ### Generate an app from reference material Use an image or PDF as input for an app-generation workflow, then continue development in the local project context. ### Automate repeatable development tasks Run Gemini CLI in headless or scripted workflows for programmatic task execution and multi-step automation. ### Plan risky or complex changes Use todos and the read-only plan mode to reason about a change before applying modifications, with checkpoints available for session recovery. ### Connect project-specific tools Extend the CLI with MCP servers, agent skills, hooks, or selected community extensions to add tools and specialized behavior. ## Frequently Asked Questions ### How do I install Gemini CLI? The documentation provides the npm installation command: npm install -g @google/gemini-cli. Setup then includes authentication and a first-session quickstart. ### What can Gemini CLI work with? It works with local project files and directories, code, shell commands, web search and fetched content, and reference inputs such as images or PDFs for app-generation workflows. ### Can Gemini CLI be used in automated workflows? Yes. The documentation describes headless mode, scripting interfaces, task automation, hooks, and custom commands for programmatic or repeatable workflows. ### How can I extend Gemini CLI? You can use extensions, agent skills, MCP servers, hooks, and custom commands. Community extensions come from public repositories, so users should inspect their source code, permissions, and actions before installation. ### How are usage limits handled? Limits depend on the authentication method and account or subscription type. The documentation covers Google account, Gemini API key, Vertex AI, and Google Workspace options; the /stats model command shows current session usage and applicable limits. ## Quick Facts - **Product type**: Terminal-based developer tool - **Primary workflow**: Understand code, edit projects, and automate tasks with Gemini models - **Installation**: npm package: @google/gemini-cli - **Supported inputs**: Local project context, code, shell commands, web content, images, and PDFs - **Extension model**: Extensions, agent skills, hooks, MCP servers, and custom commands - **Usage controls**: Quotas vary by authentication method; usage can be checked with /stats model