Complete list of commands, parameters, and usage examples to master all Gemini CLI features
Core commands to quickly get started with Gemini CLI
The main interactive command for conversing with Gemini AI
Basic conversation
Specify model
Manage Google account authentication and authorization
Log in to account
Check status
Display command help information and documentation
Show all commands
Show specific command help
Advanced features and complex operations
Start an interactive chat session with multi-turn dialogue support
Start chat
Chat with system prompt
Stream responses, showing generated content in real-time
Stream generation
Special commands that can be used in interactive chat sessions (prefixed with "/")
Save and manage memories between sessions
Save a memory
List memories
View statistics for the current session
Displays token usage information for the current session, including total tokens used and number of requests to different models.
Clear the current session history
Resets the current session, clearing all history but maintaining authentication.
Commands for using Model Context Protocol (MCP) and built-in tools
Connect and manage MCP servers
Connect to a server
View connection status
Manage and use Gemini's built-in tools
List tools
Use web-search tool
Commands for reading, analyzing, and processing files
Read and analyze file contents
Analyze code file
Summarize document
Generate content and write to file
Generate code file
Generate documentation
Manage Gemini CLI configuration and settings
Manage CLI configuration options
Set default model
View configuration
Use specific, clear queries and avoid vague descriptions
Choose appropriate models and parameters to balance speed and quality
Use read and write commands to process files efficiently
Configure default settings to reduce repetitive input
Command reference information sourced from Official Gemini CLI Documentation