gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
When & Why to Use This Skill
The Gemini CLI skill enables seamless interaction with Google's Gemini AI models directly from the command line. Designed for high-efficiency 'one-shot' operations, it allows users to perform rapid Q&A, generate high-quality summaries, and produce structured content without the overhead of an interactive session. This tool is ideal for developers and power users who need to integrate advanced LLM capabilities into their local terminal workflows, scripts, and automated pipelines.
Use Cases
- Automated Text Processing: Quickly summarize local files, logs, or documentation by piping content directly into the Gemini CLI for immediate analysis.
- Scripting and DevOps Integration: Incorporate AI-driven logic into shell scripts or CI/CD pipelines using the --output-format json flag for machine-readable responses.
- Rapid Technical Q&A: Get instant answers to programming or configuration questions without leaving the terminal environment, boosting developer focus.
- Model Benchmarking and Testing: Easily compare outputs across different Gemini model versions using simple CLI flags to optimize prompt engineering and response quality.
| name | gemini |
|---|---|
| description | Gemini CLI for one-shot Q&A, summaries, and generation. |
| homepage | https://ai.google.dev/ |
| metadata | {"clawdbot":{"emoji":"♊️","requires":{"bins":["gemini"]},"install":[{"id":"brew","kind":"brew","formula":"gemini-cli","bins":["gemini"],"label":"Install Gemini CLI (brew)"}]}} |
Gemini CLI
Use Gemini in one-shot mode with a positional prompt (avoid interactive mode).
Quick start
gemini "Answer this question..."gemini --model <name> "Prompt..."gemini --output-format json "Return JSON"
Extensions
- List:
gemini --list-extensions - Manage:
gemini extensions <command>
Notes
- If auth is required, run
geminionce interactively and follow the login flow. - Avoid
--yolofor safety.