Gemini CLIsetupbuilt-in
/init
Analyze directory and generate a tailored GEMINI.md for persistent project memory.
About
GEMINI.md is Gemini CLI's project memory file, equivalent to CLAUDE.md (Claude Code) and AGENTS.md (Codex). Loaded from global, project/ancestor, and subdirectory locations in a hierarchy.
When to use
- ▸First session in a new project
- ▸Setting up Gemini-specific project conventions
- ▸Creating hierarchical memory files for monorepos
More Gemini CLI commands
parallel-agents
/agents
Manage subagents — list built-in, local, and remote subagents; enable, disable, or configure.
session-management
/clear
Clear the terminal screen and visible history (same as Ctrl+L).
setup
/commands
List and reload custom .toml slash commands. Run /commands reload after adding or modifying commands without restarting.
context-management
/compress
Replace the current chat context with a summary to save tokens and free up context window space.