Use Gemini in headless one-shot mode. Positional text starts interactive mode; use -p/--prompt.
Quick start
gemini -p "Answer this question..."gemini -m <model> -p "Prompt..."gemini -p "Return JSON" --output-format json-p: cat notes.md | gemini -p "Summarize"Extensions
gemini --list-extensionsgemini extensions <command>gemini skills <command>gemini hooks <command>gemini mcp <command>Notes
gemini once interactively and follow the login flow.--yolo for safety.Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Gemini CLI for one-shot Q&A, summaries, and generation.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Gemini CLI for one-shot Q&A, summaries, and generation.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.