Catalog
GEMINITools

Gemini CLI

Run Gemini CLI one-shot prompts, summaries and generation, plus skills, hooks and MCP routing.

Membership required

// What this skill does

Headless Gemini CLI usage: one-shot prompts with -p, model selection, JSON output, piping stdin into prompts, and managing extensions, skills, hooks and MCP servers. Includes auth notes and safety guidance (avoid --yolo).

// How to install

  1. 01Download the skill archive from this page.
  2. 02Unzip it and locate the SKILL.md file inside.
  3. 03Place the folder in your assistant's skills directory (or upload it to your project).
  4. 04Reference the skill by name in your prompt to invoke it.

// SKILL.md

Preview
---
name: gemini
description: "Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing."
homepage: https://ai.google.dev/
metadata:
  {
    "openclaw":
      {
        "emoji": "✨",
        "requires": { "bins": ["gemini"] },
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "gemini-cli",
              "bins": ["gemini"],
              "label": "Install Gemini CLI (brew)",
            },
          ],
      },
  }
---

# Gemini CLI

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`
- stdin appends to `-p`: `cat notes.md | gemini -p "Summarize"`

Extensions

- List: `gemini --list-extensions`
- Manage: `gemini extensions <command>`
- Skills: `gemini skills <command>`
- Hooks: `gemini hooks <command>`
- MCP: `gemini mcp <command>`

Notes

- If auth is required, run `gemini` once interactively and follow the login flow.
- Avoid `--yolo` for safety.