gemini-cli
Original:🇺🇸 English
Translated
Gemini CLI - Google's AI-powered command-line interface for building, debugging, and deploying with AI. Use when working with Gemini CLI configuration, commands, tools, extensions, hooks, skills, or MCP servers. Keywords: gemini-cli, google-ai, terminal, code-generation, workflow-automation, cli-commands, gemini-md, authentication, configuration, sandboxing, headless-mode, custom-commands, agent-skills, extensions, hooks, mcp-servers, file-system-tools, shell-commands, web-search, ide-integration.
22installs
Sourcequantmind-br/skills
Added on
NPX Install
npx skill4agent add quantmind-br/skills gemini-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Gemini CLI
Query and edit large codebases, generate apps from images or PDFs, and automate complex workflows - all from your terminal with Gemini AI.
Quick Start
bash
# Install globally
npm install -g @google/gemini-cli
# Run (starts interactive session)
gemini
# Or run without install
npx @google/gemini-cliAuthentication
On first run, select authentication method:
- Login with Google - Most common, uses existing Google account
- API Key - For programmatic access via environment variable
GEMINI_API_KEY - Vertex AI - Enterprise, requires Google Cloud project
Key Commands
| Command | Description |
|---|---|
| Show available commands |
| Open settings editor |
| Select Gemini model (Auto, Pro, Flash) |
| Save conversation state |
| Resume saved conversation |
| Revert file changes to checkpoint |
| Display loaded GEMINI.md content |
| List available agent skills |
| List MCP servers and tools |
| Display available tools |
| Execute shell command |
| Include file/directory in prompt |
Configuration
Configuration files location: (global) or (project)
~/.gemini/.gemini/Key files:
- - CLI settings
settings.json - - Project context/instructions (hierarchical memory)
GEMINI.md - - Agent skills directory
skills/
Documentation
Full documentation in . Consult for detailed navigation.
docs/docs/000-index.mdBy Topic
| Topic | Files | Description |
|---|---|---|
| Installation & Setup | 003-009 | Get Gemini CLI installed and configured |
| Basic Usage | 010-016 | Core commands, settings, and interface |
| Advanced Features | 017-032 | Security, automation, and customization |
| Architecture | 033-037 | Internal design and APIs |
| Tools | 038-045 | Built-in capabilities for files, shell, web, memory |
| Extensions | 046-048 | Creating and managing extensions |
| Hooks | 049-052 | Event-driven automation |
| IDE Integration | 053-054 | Editor integration and plugins |
| Development | 055-058 | Contributing and testing |
| Releases | 059-063 | Version history and updates |
| Reference | 064-067 | FAQ, troubleshooting, pricing, legal |
By Keyword
| Keyword | File |
|---|---|
| installation | |
| authentication | |
| configuration | |
| commands | |
| settings | |
| model-selection | |
| themes | |
| keyboard-shortcuts | |
| session-management | |
| checkpointing | |
| sandboxing | |
| headless-mode | |
| custom-commands | |
| agent-skills | |
| enterprise | |
| trusted-folders | |
| system-prompt | |
| token-caching | |
| telemetry | |
| mcp-server | |
| gemini-md | |
| architecture | |
| policy-engine | |
| tools-api | |
| file-system-tools | |
| shell-command | |
| web-search | |
| web-fetch | |
| memory-tool | |
| todo-tool | |
| mcp-servers | |
| extensions | |
| hooks | |
| ide-integration | |
| faq | |
| troubleshooting | |
| pricing | |
Learning Path
- Foundation: Install (004), authenticate (005), configure (006)
- Core Usage: Commands (011), settings (012), model selection (013)
- Productivity: Checkpointing (017), custom commands (020), skills (021)
- Advanced: Extensions (046-048), hooks (049-052), MCP servers (045)
Common Tasks
Configure GEMINI.md for project context
-> (hierarchical memory setup)
docs/006-docs-get-started-configuration.mdCreate custom slash commands
-> (TOML-based command definitions)
docs/020-docs-cli-custom-commands.mdSet up agent skills
-> (create SKILL.md with frontmatter)
docs/021-docs-cli-skills.mdRun in headless/CI mode
-> (automation and JSON output)
docs/019-docs-cli-headless.mdConfigure MCP servers
-> (Model Context Protocol integration)
docs/045-docs-tools-mcp-server.mdBuild CLI extensions
-> (extension development)
docs/047-docs-extensions-getting-started-extensions.mdWrite automation hooks
-> (event-driven scripts)
docs/050-docs-hooks-writing-hooks.mdSandbox execution for security
-> (Docker/Podman isolation)
docs/018-docs-cli-sandbox.mdTroubleshoot common issues
-> (debugging and error resolution)
docs/065-docs-troubleshooting.mdUnderstand pricing and quotas
-> (free tier, paid options)
docs/066-docs-quota-and-pricing.md