gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
When & Why to Use This Skill
The Gemini CLI skill provides a powerful command-line interface to interact with Google's Gemini AI models. It is optimized for one-shot Q&A, text summarization, and content generation, allowing developers to leverage advanced LLM capabilities directly within their terminal or shell scripts. By supporting model selection and structured JSON output, it streamlines the integration of AI into local development environments and automated workflows.
Use Cases
- Automated Content Summarization: Efficiently process large text files or system logs through the terminal to generate concise summaries without manual copying.
- Scripted AI Workflows: Integrate Gemini's generative capabilities into Bash or Python scripts to automate tasks like documentation generation or code boilerplate creation.
- Structured Data Extraction: Use the JSON output format to transform unstructured prompts into machine-readable data for downstream application processing.
- Rapid Prompt Testing: Quickly iterate on prompt engineering and model comparisons directly from the command line to optimize AI-driven results.
| 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.