Documentation/Command Reference

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

--prompt-p

Pass a prompt directly, invoking non-interactive mode

--sandbox-s

Enables sandbox mode for this session

Internal Commands

/help

Displays comprehensive help information about the CLI

/about

Displays version information for the Gemini CLI

/mcp

Lists MCP servers, connection status, and available tools

Special Syntax

@ Commands

Include file or directory content as part of your prompt

Shell Commands

Execute shell commands or toggle shell mode