Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 1.7 KB

File metadata and controls

80 lines (59 loc) · 1.7 KB
marp true
theme tessl-cheatsheet
paginate false
size 1400px 1200px

Gemini CLI Cheat Sheet

Installation

npm install -g @google/gemini-cli
gemini

Free tier: 60 req/min, 1000 req/day with Google account.

Slash Commands

Command Description
/tools List available tools
/mcp Show MCP servers
/chat New conversation
/restore Restore session
/clear Clear conversation
/bug Report issue

Keyboard Shortcuts

Key Action
Enter Send message
Shift+Enter New line
Ctrl+C Cancel/interrupt
Tab Autocomplete
Up/Down History navigation

Built-in Tools

Tool Function
read_file / write_file Read and modify files
list_directory / glob Browse and find files
search_file_content Grep/search code
run_shell_command Execute terminal commands
web_fetch / google_web_search Web access
codebase_investigator Deep code analysis agent

Configuration

Settings: ~/.gemini/settings.json Project config: GEMINI.md in project root

MCP Servers

Add servers to ~/.gemini/settings.json under mcpServers. Use with @servername prefix.

Agentic Workflow

ReAct loop: prompt → reason → act → observe → repeat

Models

Model Best For
Gemini 2.5 Pro Complex coding
Gemini 2.5 Flash Fast iteration
Gemini 3 Pro Agentic tasks

Tips

  • Be specific, reference files by path
  • Use GEMINI.md for project context
  • Let it ask clarifying questions
Tessl · Gemini CLI Cheat Sheet · __VERSION__