Command Reference
Reference
Complete reference for all Gemini CLI commands, flags, and special syntax. Everything you need to master the command-line interface.
CLI Flags & Options
--model
-m
Specifies the Gemini model to use for this session
gemini --model gemini-2.5-pro-latest
--prompt
-p
Pass a prompt directly, invoking non-interactive mode
gemini -p "Explain this code"
--sandbox
-s
Enables sandbox mode for this session
gemini -s
Internal Commands
/help
Displays comprehensive help information about the CLI
/help
/about
Displays version information for the Gemini CLI
/about
/mcp
Lists MCP servers, connection status, and available tools
/mcp [desc|nodesc|schema]
Special Syntax
@ Commands
Include file or directory content as part of your prompt
@path/to/file.txt Explain this code
Shell Commands
Execute shell commands or toggle shell mode
!ls -la