Reference for Gemini CLI usage patterns. Consult before calling gemini via Bash.
Provides reference for Gemini CLI usage patterns and syntax. Consulted when you need to call Gemini via Bash with proper flags, session management, and sandbox configuration.
/plugin marketplace add GantisStorm/claude-code-pair-planning-framework/plugin install gemini-swarm@claude-code-repoprompt-codex-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Quick reference for Gemini CLI commands.
gemini "[prompt]" -m gemini-3-flash-preview -o text 2>&1
| Flag | Purpose |
|---|---|
-m gemini-3-flash-preview | Model selection |
-o text | Human-readable output |
-o json | Structured output with stats |
-r [index] | Resume session by index |
--allowed-tools | Restrict available tools |
--list-sessions | List available sessions |
# List sessions
gemini --list-sessions
# Resume by index
echo "follow-up prompt" | gemini -r 1 -m gemini-3-flash-preview -o text 2>&1
dangerouslyDisableSandbox: true for Bash calls2>&1 to capture all outputEPERM errors: Gemini needs write access to ~/.gemini/tmp/ - use dangerouslyDisableSandbox: true
File access: Gemini can only read files in the workspace directory (project root)
Rate limits: Free tier is 60/min, 1000/day. CLI auto-retries with backoff.
gemini --help