From b3741f7016a6b32ebdc5a9b5203191fc04910d3a Mon Sep 17 00:00:00 2001 From: cperry-goog <78765543+cperry-goog@users.noreply.github.com> Date: Mon, 23 Jun 2025 17:24:55 -0700 Subject: [PATCH] docs: update configuration.md with new CLI options (#1360) --- docs/cli/configuration.md | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md index 3ec40c5c..1efd7775 100644 --- a/docs/cli/configuration.md +++ b/docs/cli/configuration.md @@ -153,7 +153,7 @@ In addition to a project settings file, a project's `.gemini` directory can cont - **Description:** Configures the checkpointing feature, which allows you to save and restore conversation and file states. See the [Checkpointing Commands](./commands.md#checkpointing-commands) for more details. - **Default:** `{"enabled": false}` - **Properties:** - - **`enabled`** (boolean): When `true`, the `/save`, `/resume`, and `/restore` commands are available. + - **`enabled`** (boolean): When `true`, the `/restore` command is available. - **`preferredEditor`** (string): @@ -281,19 +281,37 @@ The CLI automatically loads environment variables from an `.env` file. The loadi Arguments passed directly when running the CLI can override other configurations for that specific session. -- **`--model `** (or **`-m `**): +- **`--model `** (**`-m `**): - Specifies the Gemini model to use for this session. - Example: `npm start -- --model gemini-1.5-pro-latest` -- **`--sandbox`** (or **`-s`**): - - Enables sandbox mode for this session. The exact behavior might depend on other sandbox configurations (environment variables, settings files). -- **`--debug_mode`** (or **`-d`**): +- **`--prompt `** (**`-p `**): + - Used to pass a prompt directly to the command. This invokes Gemini CLI in a non-interactive mode. +- **`--sandbox`** (**`-s`**): + - Enables sandbox mode for this session. +- **`--sandbox-image`**: + - Sets the sandbox image URI. +- **`--debug_mode`** (**`-d`**): - Enables debug mode for this session, providing more verbose output. -- **`--question `** (or **`-q `**): - - Used to pass a question directly to the command, especially when piping input to the CLI. -- **`--all_files`** (or **`-a`**): +- **`--all_files`** (**`-a`**): - If set, recursively includes all files within the current directory as context for the prompt. - **`--help`** (or **`-h`**): - Displays help information about command-line arguments. +- **`--show_memory_usage`**: + - Displays the current memory usage. +- **`--yolo`**: + - Enables YOLO mode, which automatically approves all tool calls. +- **`--telemetry`**: + - Enables [telemetry](../core/telemetry.md). +- **`--telemetry-target`**: + - Sets the telemetry target. See [telemetry](../core/telemetry.md) for more information. +- **`--telemetry-otlp-endpoint`**: + - Sets the OTLP endpoint for telemetry. See [telemetry](../core/telemetry.md) for more information. +- **`--telemetry-log-prompts`**: + - Enables logging of prompts for telemetry. See [telemetry](../core/telemetry.md) for more information. +- **`--checkpointing`**: + - Enables [checkpointing](./commands.md#checkpointing-commands). +- **`--version`**: + - Displays the version of the CLI. ## Context Files (Hierarchical Instructional Context)