Command Reference
Complete reference for all Gemini CLI commands with syntax, options, and practical examples
11 commands commands found
Quick Start Guide
Get started with Gemini CLI in just a few commands
1
Install & Authenticate
npm install -g @google/gemini-cligemini authInstall the CLI and authenticate with your Google account
2
Start Chatting
gemini chatgemini ask "How do I...?"Start an interactive session or ask quick questions
3
Analyze Code
gemini analyze app.jsgemini analyze . --recursiveAnalyze files and projects for insights and improvements
Command Cheat Sheet
Essential Commands
gemini chatInteractive AI sessiongemini ask "question"Quick questiongemini analyze fileAnalyze codegemini authAuthenticateChat Commands
/model nameSwitch AI model/load fileLoad file context/save fileSave conversation/clearClear historyπ‘ Tip: Use gemini help or gemini --help for more information