Gemini CLI Integration Guide
Overview
Version Compatibility
Recommended Version: v0.22.2+
gemini --versionnpm update -g @google/gemini-cliAuthentication
Method 1: Google Account (Recommended)
gemini
# Follow prompts to login with Google accountMethod 2: API Key
Model Configuration
Setting Default Model
Configuration Precedence
Available Models
Model
ID
Best For
Features Implementation
File Analysis with @ Syntax
Sandbox Mode
YOLO Mode
Gemini CLI Extensions
Extension
Description
URL
Change Mode
Web Search Grounding
Multimodal Analysis
Error Handling
Model Fallback
Timeout Handling
Troubleshooting
"Command not found: gemini"
"Not authenticated"
"Quota exceeded"
"File not found" with @ syntax
CLI Flags Reference
Flag
Description
MCP Parameter
Links
Last updated
Was this helpful?