Gemini CLIconfigurationbuilt-in
/permissions
Manage folder trust settings. Trust a path so Gemini can operate there without per-action prompts.
Syntax
/permissions trust [path]Example
/permissions trust ./srcWhen to use
- ▸Trusting a directory to reduce permission prompts
- ▸Setting up a safe working boundary for the agent
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.