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-mSpecifies the Gemini model to use for this session
gemini --model gemini-2.5-pro-latest--prompt-pPass a prompt directly, invoking non-interactive mode
gemini -p "Explain this code"--sandbox-sEnables sandbox mode for this session
gemini -sInternal Commands
/helpDisplays comprehensive help information about the CLI
/help/aboutDisplays version information for the Gemini CLI
/about/mcpLists 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 codeShell Commands
Execute shell commands or toggle shell mode
!ls -la