summaryrefslogtreecommitdiff
path: root/docs/cli/commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cli/commands.md')
-rw-r--r--docs/cli/commands.md18
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/cli/commands.md b/docs/cli/commands.md
index c0f60c5f..eda8122a 100644
--- a/docs/cli/commands.md
+++ b/docs/cli/commands.md
@@ -7,11 +7,9 @@ Gemini CLI supports several built-in commands to help you manage your session, c
Slash commands provide meta-level control over the CLI itself.
- **`/bug`**
-
- **Description:** File an issue about Gemini CLI. By default, the issue is filed within the GitHub repository for Gemini CLI. The string you enter after `/bug` will become the headline for the bug being filed. The default `/bug` behavior can be modified using the `bugCommand` setting in your `.gemini/settings.json` files.
- **`/chat`**
-
- **Description:** Save and resume conversation history for branching conversation state interactively, or resuming a previous state from a later session.
- **Sub-commands:**
- **`save`**
@@ -24,24 +22,19 @@ Slash commands provide meta-level control over the CLI itself.
- **Description:** Lists available tags for chat state resumption.
- **`/clear`**
-
- **Description:** Clear the terminal screen, including the visible session history and scrollback within the CLI. The underlying session data (for history recall) might be preserved depending on the exact implementation, but the visual display is cleared.
- **Keyboard shortcut:** Press **Ctrl+L** at any time to perform a clear action.
- **`/compress`**
-
- **Description:** Replace the entire chat context with a summary. This saves on tokens used for future tasks while retaining a high level summary of what has happened.
- **`/editor`**
-
- **Description:** Open a dialog for selecting supported editors.
- **`/help`** (or **`/?`**)
-
- **Description:** Display help information about the Gemini CLI, including available commands and their usage.
- **`/mcp`**
-
- **Description:** List configured Model Context Protocol (MCP) servers, their connection status, server details, and available tools.
- **Sub-commands:**
- **`desc`** or **`descriptions`**:
@@ -53,7 +46,6 @@ Slash commands provide meta-level control over the CLI itself.
- **Keyboard Shortcut:** Press **Ctrl+T** at any time to toggle between showing and hiding tool descriptions.
- **`/memory`**
-
- **Description:** Manage the AI's instructional context (hierarchical memory loaded from `GEMINI.md` files).
- **Sub-commands:**
- **`add`**:
@@ -65,29 +57,23 @@ Slash commands provide meta-level control over the CLI itself.
- **Note:** For more details on how `GEMINI.md` files contribute to hierarchical memory, see the [CLI Configuration documentation](./configuration.md#4-geminimd-files-hierarchical-instructional-context).
- **`/restore`**
-
- **Description:** Restores the project files to the state they were in just before a tool was executed. This is particularly useful for undoing file edits made by a tool. If run without a tool call ID, it will list available checkpoints to restore from.
- **Usage:** `/restore [tool_call_id]`
- **Note:** Only available if the CLI is invoked with the `--checkpointing` option or configured via [settings](./configuration.md). See [Checkpointing documentation](../checkpointing.md) for more details.
- **`/stats`**
-
- **Description:** Display detailed statistics for the current Gemini CLI session, including token usage, cached token savings (when available), and session duration. Note: Cached token information is only displayed when cached tokens are being used, which occurs with API key authentication but not with OAuth authentication at this time.
- [**`/theme`**](./themes.md)
-
- **Description:** Open a dialog that lets you change the visual theme of Gemini CLI.
- **`/auth`**
-
- **Description:** Open a dialog that lets you change the authentication method.
- **`/about`**
-
- **Description:** Show version info. Please share this information when filing issues.
- [**`/tools`**](../tools/index.md)
-
- **Description:** Display a list of tools that are currently available within Gemini CLI.
- **Sub-commands:**
- **`desc`** or **`descriptions`**:
@@ -96,7 +82,6 @@ Slash commands provide meta-level control over the CLI itself.
- **Description:** Hide tool descriptions, showing only the tool names.
- **`/quit`** (or **`/exit`**)
-
- **Description:** Exit Gemini CLI.
## At commands (`@`)
@@ -104,7 +89,6 @@ Slash commands provide meta-level control over the CLI itself.
At commands are used to include the content of files or directories as part of your prompt to Gemini. These commands include git-aware filtering.
- **`@<path_to_file_or_directory>`**
-
- **Description:** Inject the content of the specified file or files into your current prompt. This is useful for asking questions about specific code, text, or collections of files.
- **Examples:**
- `@path/to/your/file.txt Explain this text.`
@@ -132,14 +116,12 @@ At commands are used to include the content of files or directories as part of y
The `!` prefix lets you interact with your system's shell directly from within Gemini CLI.
- **`!<shell_command>`**
-
- **Description:** Execute the given `<shell_command>` in your system's default shell. Any output or errors from the command are displayed in the terminal.
- **Examples:**
- `!ls -la` (executes `ls -la` and returns to Gemini CLI)
- `!git status` (executes `git status` and returns to Gemini CLI)
- **`!` (Toggle shell mode)**
-
- **Description:** Typing `!` on its own toggles shell mode.
- **Entering shell mode:**
- When active, shell mode uses a different coloring and a "Shell Mode Indicator".