From 7dea5b47a1fa3f6a8e74422f0ebd50791f0773df Mon Sep 17 00:00:00 2001
From: Adib234 <30782825+Adib234@users.noreply.github.com>
Date: Fri, 1 May 2026 15:19:01 -0400
Subject: [PATCH] fix(cli): undeprecate --prompt and correct positional query
docs (#26329)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---
docs/cli/cli-reference.md | 2 +-
docs/reference/configuration.md | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/cli/cli-reference.md b/docs/cli/cli-reference.md
index 259edcec1f..a3d17c0a77 100644
--- a/docs/cli/cli-reference.md
+++ b/docs/cli/cli-reference.md
@@ -9,7 +9,7 @@ and parameters.
| ---------------------------------- | ---------------------------------- | ------------------------------------------------------------ |
| `gemini` | Start interactive REPL | `gemini` |
| `gemini -p "query"` | Query non-interactively | `gemini -p "summarize README.md"` |
-| `gemini "query"` | Query and continue interactively | `gemini "explain this project"` |
+| gemini "query" | Query and continue interactively | gemini "explain this project" |
| `cat file \| gemini` | Process piped content | `cat logs.txt \| gemini`
`Get-Content logs.txt \| gemini` |
| `gemini -i "query"` | Execute and continue interactively | `gemini -i "What is the purpose of this project?"` |
| `gemini -r "latest"` | Continue most recent session | `gemini -r "latest"` |
diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md
index 47ea0c7a53..f0eaafc27c 100644
--- a/docs/reference/configuration.md
+++ b/docs/reference/configuration.md
@@ -2580,7 +2580,6 @@ for that specific session.
- **Note:** For structured output and scripting, use the
`--output-format json` or `--output-format stream-json` flag.
- **`--prompt `** (**`-p `**):
- - **Deprecated:** Use positional arguments instead.
- Used to pass a prompt directly to the command. This invokes Gemini CLI in a
non-interactive mode.
- **`--prompt-interactive `** (**`-i `**):