gemini

Run one-shot prompts against Gemini models from the command line.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/srgaba/open-claw --skill gemini-srgaba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini
Source: https://github.com/srgaba/open-claw/tree/main/project/skills/gemini
Command: npx skills add https://github.com/srgaba/open-claw --skill gemini-srgaba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets you query Google's Gemini models directly from the terminal for quick answers, summaries, and text generation without opening a browser or writing API integration code. ## Core Features & Use Cases - One-Shot Prompting: Pass a positional prompt to get an immediate response, avoiding interactive mode. - Model & Output Control: Select a specific model with --model and request structured output with --output-format json. - Extension Management: List and manage CLI extensions via gemini --list-extensions and gemini extensions. - Use Case: Pipe a log file summary request like gemini "Summarize the errors in this log: ..." into a shell script to automate routine analysis. ## Quick Start Ask the assistant to run gemini with a one-shot prompt such as "Answer this question: what is a reverse proxy" and return the response.

Frequently Asked Questions about gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a one-shot prompt with the Gemini CLI?

Pass the prompt as a positional argument, for example gemini "Answer this question...". This runs a single non-interactive request and prints the response to the terminal.

How do I get JSON output from the Gemini CLI?

Add the --output-format json flag before your prompt, such as gemini --output-format json "Return JSON". The response is then emitted as structured JSON suitable for scripting.

How do I choose a specific Gemini model in the CLI?

Use the --model flag followed by the model name, for example gemini --model <name> "Prompt...". This overrides the default model for that single invocation.

Why does the Gemini CLI ask for authentication?

The CLI requires a login flow on first use. Run gemini once interactively and follow the prompts to authenticate, after which one-shot commands work normally.

Is it safe to use the --yolo flag with the Gemini CLI?

The --yolo flag bypasses safety confirmations and is discouraged. Prefer default behavior so potentially destructive actions require explicit approval.