33 lines
853 B
Markdown
Raw Normal View History

# gemini
> Launch an interactive prompt with Gemini AI.
> More information: <https://geminicli.com/docs/cli/cli-reference/>.
- Start a REPL session to chat interactively:
`gemini`
- Send the output of another command to Gemini and exit immediately:
`{{echo "Summarize the history of Rome"}} | gemini {{[-p|--prompt]}} -`
- Use a specific model (default: auto-gemini-3):
`gemini {{[-m|--model]}} {{model_name}}`
- Run inside a sandbox container:
`gemini {{[-s|--sandbox]}}`
- Execute a prompt then stay in interactive mode:
`gemini {{[-i|--prompt-interactive]}} "{{Give me an example of recursion in Python}}"`
- Set the approval mode for tool calls:
`gemini --approval-mode {{default|auto_edit|yolo|plan}}`
- Resume a session (defaults to "latest"; accepts an index number or UUID):
`gemini {{[-r|--resume]}} {{latest|index|session_id}}`