Linux Terminal Glossary
›
Gemini CLI
Gemini CLI
98 commands
npm install -g @google/gemini-cli
npx @google/gemini-cli
brew install gemini-cli
npm update -g @google/gemini-cli
npm uninstall -g @google/gemini-cli
gemini --version
gemini
gemini --model gemini-3-flash-preview
gemini -m gemini-3.1-pro-preview
gemini --sandbox
gemini -s
gemini --debug
gemini -d
gemini --yolo
gemini --checkpointing
gemini --telemetry
gemini --no-telemetry
gemini --prompt 'Explain async/await in Python'
gemini -p 'Summarize this file' < README.md
echo 'List 5 git best practices' | gemini -p ''
gemini -p 'Fix this code' --output_format json
gemini -p 'What does this do?' @script.sh
cat error.log | gemini -p 'Diagnose this error log'
gemini -p 'Refactor this' < main.py > refactored.py
@filename.py
@src/
@README.md Summarize this project
@package.json What are all the dev dependencies?
@src/ @tests/ Write tests for any uncovered functions
@https://example.com/docs Summarize this page
!ls -la
!git status
!npm test
!cat .env
/help
/clear
/quit
/about
/bug
/theme
/theme dark
/theme light
/stats
/auth
/editor
/privacy
/docs
/tools
/extensions
/mcp
/memory show
/memory add 'Always use TypeScript with strict mode'
/memory refresh
/chat save my-session
/chat list
/chat resume my-session
/compress
ReadFile tool
ReadFolder tool
ReadManyFiles tool
WriteFile tool
Edit tool
Shell tool
WebFetch tool
SearchText tool
FindFiles tool
GoogleSearch tool
SaveMemory tool
touch GEMINI.md
echo '# Project: My App\nStack: FastAPI + React' >> GEMINI.md
cat ~/.config/gemini/GEMINI.md
echo 'Always respond concisely.' >> ~/.config/gemini/GEMINI.md
cat ~/.config/gemini/settings.json
# Add MCP server to settings.json under 'mcpServers' key
gemini --mcp-server 'npx @modelcontextprotocol/server-filesystem /'
mkdir -p ~/.config/gemini/commands && nano ~/.config/gemini/commands/review.toml
# .toml format: [command]\nname = 'review'\ndescription = 'Review code'\nprompt = 'Review @$1 for bugs'
export GEMINI_API_KEY='AIza...'
export GOOGLE_API_KEY='AIza...'
export GOOGLE_CLOUD_PROJECT='my-project-id'
export GOOGLE_GENAI_USE_VERTEXAI=true
export GEMINI_MODEL='gemini-3.1-pro-preview'
export GEMINI_SANDBOX=true
# settings.json: { "theme": "dark", "defaultModel": "gemini-3.1-pro-preview" }
# settings.json: { "sandbox": { "enabled": true, "command": "docker" } }
# settings.json: { "tokenCache": { "enabled": true } }
docker pull gemini-sandbox-image
# Sandbox uses Docker by default; falls back to Podman if Docker unavailable
# Enable tokenCache in settings.json for repeated large-context sessions
# Checkpoints stored in ~/.config/gemini/checkpoints/ by default
gemini -p 'Add input validation to all API routes in @src/routes/'
gemini -p 'Write unit tests for @src/auth.py and save them to tests/test_auth.py'
gemini -p 'Explain the architecture of this project' @src/ @README.md
gemini -p 'Find all TODO comments and create a task list'
gemini -p 'Review this PR diff and suggest improvements' < diff.patch
git diff HEAD~1 | gemini -p 'Summarize what changed in this commit'
gemini -p 'Scaffold a new FastAPI endpoint for /users/profile' @src/
gemini -p 'Debug this error: $(cat error.log)' @src/main.py
Search all 7,657 commands
instead.