gemini

Runs Gemini CLI one-shot prompts, summaries, and generation tasks from the command line.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill gemini-amirulandalib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini
Source: https://github.com/AmirulAndalib/Vilvona-AI/tree/main/skills/gemini
Command: npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill gemini-amirulandalib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets you invoke Google's Gemini models directly from the terminal in headless one-shot mode, so you can get answers, summaries, and structured output without opening an interactive chat session. ## Core Features & Use Cases - One-shot prompts: Run gemini -p "prompt" for single non-interactive queries, with optional model selection via -m. - Structured output: Request JSON responses with --output-format json for scripting and pipelines. - Stdin piping: Pipe files into prompts, e.g. cat notes.md | gemini -p "Summarize". - Extension management: List and manage extensions, skills, hooks, and MCP servers via gemini extensions, gemini skills, gemini hooks, and gemini mcp. - Use Case: Summarize a long markdown document by piping it into a one-shot Gemini prompt and capturing the result in a shell script. ## Quick Start Ask the assistant to run a one-shot Gemini CLI prompt such as summarizing a file or answering a question, using the -p flag with an optional model selection.

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 Gemini CLI?

Use the -p or --prompt flag, for example gemini -p "Answer this question...". Passing text positionally starts interactive mode instead, so always use the flag for headless single queries.

How do I get JSON output from Gemini CLI?

Add the --output-format json flag to your prompt, such as gemini -p "Return JSON" --output-format json. This returns structured output suitable for scripting and pipelines.

Can I pipe a file into Gemini CLI for summarization?

Yes, stdin content appends to the -p prompt. Run cat notes.md | gemini -p "Summarize" to send the file contents along with your instruction in one command.

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

Use the -m flag followed by the model name, for example gemini -m <model> -p "Prompt...". This overrides the default model for that one-shot request.

Why does Gemini CLI ask for authentication?

If auth is required, run gemini once interactively and follow the login flow. After completing authentication, subsequent headless -p commands work without interaction.

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

The skill documentation advises avoiding --yolo for safety. The flag bypasses confirmations, so prefer standard one-shot prompts where actions are reviewed.