commands.sh

gemini

all

Launch an interactive prompt with Gemini AI.

More info →

Options (5)

-p, --promptboolean

Send the output of another command to Gemini and exit immediately

Example: {{echo "Summarize the history of Rome"}} | gemini {{[-p|--prompt]}} -
-m, --modelboolean

Use a specific model (default: auto-gemini-3)

Example: gemini {{[-m|--model]}} {{model_name}}
-s, --sandboxboolean

Run inside a sandbox container

Example: gemini {{[-s|--sandbox]}}
-i, --prompt-interactiveboolean

Execute a prompt then stay in interactive mode

Example: gemini {{[-i|--prompt-interactive]}} "{{Give me an example of recursion in Python}}"
-r, --resumeboolean

Resume a session (defaults to "latest"; accepts an index number or UUID)

Example: gemini {{[-r|--resume]}} {{latest|index|session_id}}

Examples (7)

Start a REPL session to chat interactively

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
made by @shridhargupta | data from tldr-pages