mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
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>
This commit is contained in:
@@ -9,7 +9,7 @@ and parameters.
|
|||||||
| ---------------------------------- | ---------------------------------- | ------------------------------------------------------------ |
|
| ---------------------------------- | ---------------------------------- | ------------------------------------------------------------ |
|
||||||
| `gemini` | Start interactive REPL | `gemini` |
|
| `gemini` | Start interactive REPL | `gemini` |
|
||||||
| `gemini -p "query"` | Query non-interactively | `gemini -p "summarize README.md"` |
|
| `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`<br>`Get-Content logs.txt \| gemini` |
|
| `cat file \| gemini` | Process piped content | `cat logs.txt \| gemini`<br>`Get-Content logs.txt \| gemini` |
|
||||||
| `gemini -i "query"` | Execute and continue interactively | `gemini -i "What is the purpose of this project?"` |
|
| `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"` |
|
| `gemini -r "latest"` | Continue most recent session | `gemini -r "latest"` |
|
||||||
|
|||||||
@@ -2580,7 +2580,6 @@ for that specific session.
|
|||||||
- **Note:** For structured output and scripting, use the
|
- **Note:** For structured output and scripting, use the
|
||||||
`--output-format json` or `--output-format stream-json` flag.
|
`--output-format json` or `--output-format stream-json` flag.
|
||||||
- **`--prompt <your_prompt>`** (**`-p <your_prompt>`**):
|
- **`--prompt <your_prompt>`** (**`-p <your_prompt>`**):
|
||||||
- **Deprecated:** Use positional arguments instead.
|
|
||||||
- Used to pass a prompt directly to the command. This invokes Gemini CLI in a
|
- Used to pass a prompt directly to the command. This invokes Gemini CLI in a
|
||||||
non-interactive mode.
|
non-interactive mode.
|
||||||
- **`--prompt-interactive <your_prompt>`** (**`-i <your_prompt>`**):
|
- **`--prompt-interactive <your_prompt>`** (**`-i <your_prompt>`**):
|
||||||
|
|||||||
Reference in New Issue
Block a user