summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorArya Gummadi <[email protected]>2025-08-12 15:10:22 -0700
committerGitHub <[email protected]>2025-08-12 22:10:22 +0000
commit8d6eb8c322890b5cdf20d4a30dd17afb1541f5aa (patch)
tree34c8c86d69aa96405c2c1024c45cef76d1675ece /docs
parent11377915dbf42064ed9a8d9e31b46adc565ae021 (diff)
feat: add --approval-mode parameter (#6024)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/cli/configuration.md9
1 files changed, 8 insertions, 1 deletions
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 <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.