From 8d6eb8c322890b5cdf20d4a30dd17afb1541f5aa Mon Sep 17 00:00:00 2001 From: Arya Gummadi Date: Tue, 12 Aug 2025 15:10:22 -0700 Subject: feat: add --approval-mode parameter (#6024) Co-authored-by: Jacob Richman --- docs/cli/configuration.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docs/cli') diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md index 6ebcd630..d95793f1 100644 --- a/docs/cli/configuration.md +++ b/docs/cli/configuration.md @@ -422,6 +422,13 @@ Arguments passed directly when running the CLI can override other configurations - Displays the current memory usage. - **`--yolo`**: - Enables YOLO mode, which automatically approves all tool calls. +- **`--approval-mode `**: + - Sets the approval mode for tool calls. Available modes: + - `default`: Prompt for approval on each tool call (default behavior) + - `auto_edit`: Automatically approve edit tools (replace, write_file) while prompting for others + - `yolo`: Automatically approve all tool calls (equivalent to `--yolo`) + - Cannot be used together with `--yolo`. Use `--approval-mode=yolo` instead of `--yolo` for the new unified approach. + - Example: `gemini --approval-mode auto_edit` - **`--telemetry`**: - Enables [telemetry](../telemetry.md). - **`--telemetry-target`**: @@ -517,7 +524,7 @@ Sandboxing is disabled by default, but you can enable it in a few ways: - Using `--sandbox` or `-s` flag. - Setting `GEMINI_SANDBOX` environment variable. -- Sandbox is enabled in `--yolo` mode by default. +- Sandbox is enabled when using `--yolo` or `--approval-mode=yolo` by default. By default, it uses a pre-built `gemini-cli-sandbox` Docker image. -- cgit v1.2.3