Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Gemini CLI reference - Slash commands

Gemini CLI slash commands

Gemini CLI documents 41 slash commands, including /about, /agents and /auth. You type these inside an interactive Gemini CLI session. Each row gives the docs' description, accepted values and an example where one is documented.

Last verified 2 official pagesFull Gemini CLI reference

Gemini CLI slash commands
CommandDescriptionExample
/about

Show version info. Share this information when filing issues.

Docs: /about
-no example
/agents

Manage local and remote subagents.

sub-commands: list, reload (alias refresh), enable, disable, config

Docs: /agents
/agents config <agent-name>
/auth

Open a dialog that lets you change the authentication method.

Docs: /auth
-no example
/bug

File an issue about Gemini CLI; the text after /bug becomes the headline. Configurable via advanced.bugCommand.

Docs: /bug
-no example
/chat

Alias for /resume, exposing the same session browser and checkpoint subcommands.

sub-commands: debug, delete <tag>, list, resume <tag>, save <tag>, share [filename]

Docs: /chat
/chat share file.md
/clear

Clear the conversation context and start a new session, also clearing the terminal screen and scrollback.

Docs: /clear
-no example
/commands

Manage custom slash commands loaded from .toml files.

sub-commands: list, reload

Docs: /commands
/commands reload
/compress

Replace the entire chat context with a summary to save tokens.

Docs: /compress
-no example
/copy

Copies the last output produced by Gemini CLI to your clipboard.

Docs: /copy
-no example
/directory

Manage workspace directories for multi-directory support.

alias: /dir; sub-commands: add, show

Docs: /directory
/directory add <path1>,<path2>
/docs

Open Gemini CLI documentation in your browser.

Docs: /docs
-no example
/editor

Open a dialog for selecting supported editors.

Docs: /editor
-no example
/extensions

Manage extensions.

sub-commands: config, disable, enable, explore, install, link, list, restart, uninstall, update

Docs: /extensions
-no example
/help

Display help information about Gemini CLI, including available commands.

alias: /?

Docs: /help
-no example
/hooks

Manage hooks that intercept and customize behavior at lifecycle events.

sub-commands: disable-all, disable <hook-name>, enable-all, enable <hook-name>, list (show, panel)

Docs: /hooks
-no example
/ide

Manage IDE integration.

sub-commands: disable, enable, install, status

Docs: /ide
-no example
/init

Analyzes the current directory and generates a tailored GEMINI.md context file.

Docs: /init
-no example
/mcp

Manage configured MCP servers; list is the default action.

sub-commands: auth, desc, disable, enable, list (ls), reload, schema

Docs: /mcp
/mcp auth <server-name>
/memory

Manage hierarchical instructional memory loaded from GEMINI.md files.

sub-commands: list, refresh, reload, show, inbox

Docs: /memory
/memory show
/model

Manage model configuration.

sub-commands: manage, set

Docs: /model
/model set <model-name> [--persist]
/permissions

Manage folder trust settings and other permissions.

sub-commands: trust

Docs: /permissions
/permissions trust [<directory-path>]
/plan

Switch to read-only Plan Mode and view the current plan; an optional goal is submitted immediately.

sub-commands: copy; disable via general.plan.enabled

Docs: /plan
/plan implement authentication
/policies

Manage policies; list shows all active policies grouped by mode.

sub-commands: list

Docs: /policies
-no example
/privacy

Display the Privacy Notice and select data-collection consent.

Docs: /privacy
-no example
/quit

Exit Gemini CLI. --delete also permanently deletes the current session's history and temporary files.

alias: /exit; flags: --delete

Docs: /quit
/quit --delete
/restore

Restore project files to the state before a tool ran; lists checkpoints when run without an ID. Requires checkpointing.

Docs: /restore
/restore [tool_call_id]
/rewind

Navigate backward through conversation history, optionally reverting chat state and file changes.

shortcut: press Esc twice

Docs: /rewind
-no example
/resume

Browse and resume auto-saved sessions and manage manual chat checkpoints.

alias: /chat; sub-commands: list, save <tag>, resume <tag> (load), delete <tag>, share [filename], debug

Docs: /resume
-no example
/settings

Open the settings editor to view and modify settings with validation.

Docs: /settings
/settings
/shells

Toggle the background shells view for long-running processes.

alias: /bashes

Docs: /shells
-no example
/setup-github

Set up GitHub Actions to triage issues and review PRs with Gemini.

Docs: /setup-github
-no example
/skills

Manage Agent Skills.

sub-commands: disable <name>, enable <name>, list [all] [nodesc], link <path> [--scope user|workspace], reload (refresh)

Docs: /skills
/skills enable <name>
/stats

Display detailed statistics for the current session.

sub-commands: session (default), model, tools

Docs: /stats
-no example
/terminal-setup

Configure terminal keybindings for multiline input (VS Code, Cursor, Windsurf).

Docs: /terminal-setup
-no example
/theme

Open a dialog to change the visual theme.

Docs: /theme
-no example
/tools

Display the list of currently available tools.

sub-commands: desc (descriptions), nodesc (nodescriptions)

Docs: /tools
/tools [desc]
/upgrade

Open the Gemini Code Assist upgrade page. Only available when logged in with Google.

Docs: /upgrade
-no example
/vim

Toggle vim mode with NORMAL and INSERT modes; the preference persists in ~/.gemini/settings.json.

Docs: /vim
-no example
/gemma

In-session status panel for local Gemma model routing.

Docs: /gemma
/gemma
@<path_to_file_or_directory>

Inject file content into the prompt (directories are passed for the model to inspect); git-ignored files excluded by default.

escape spaces with a backslash

Docs: @<path_to_file_or_directory>
@path/to/your/file.txt Explain this text.
!<shell_command>

Run a shell command (bash, or powershell.exe on Windows); a lone ! toggles shell mode. Sets GEMINI_CLI=1 in the subprocess.

Docs: !<shell_command>
!git status

The rest of the Gemini CLI reference

FAQ

How many slash commands does Gemini CLI have?

The official Gemini CLI docs list 41 slash commands, including /about, /agents and /auth. All of them are in the table above, in the docs' order.

What does /about do in Gemini CLI?

Show version info. Share this information when filing issues.

Where are Gemini CLI slash commands documented?

On 2 official docs pages at github.com, last read on October 17, 2026. Every row in the table links the exact section it came from.

More on Gemini CLI

Sources

Last verified . Names and examples are copied verbatim from the 2 official pages below, and every row above links the exact section it came from.

Newsletter

Know when your tools change

One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.