Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
google-gemini avatar

Gemini Api Cli

  • 12 installs
  • 38 repo stars
  • Updated July 28, 2026
  • google-gemini/gemini-api-cli

gemini-api-cli skill documents Guide for using the Gemini API CLI tool.

About

gemini-api-cli skill documents Guide for using the Gemini API CLI tool. Use when you need to interact with the Gemini API via the command line, manage agents, or generate media (images, audio).. name: gemini-api-cli description: Guide for using the Gemini API CLI tool. Use when you need to interact with the Gemini API via the command line, manage agents, or generate media (images, audio).

  • Guide for using the Gemini API CLI tool.
  • Platform-specific setup patterns for gemini-api-cli.
  • Evidence-backed steps from upstream SKILL.md.
  • When-to-use criteria for gemini-api-cli versus alternatives.

Gemini Api Cli by the numbers

  • 12 all-time installs (skills.sh)
  • Ranked #11,618 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

gemini-api-cli capabilities & compatibility

Capabilities
gemini api cli quick start · gemini api cli when to use guidance · gemini api cli integration patterns
Use cases
api development
From the docs

What gemini-api-cli says it does

This skill provides guidance on using the `gemini-api` command-line interface.
SKILL.md
The `gemini-api` CLI allows you to:
SKILL.md
npx skills add https://github.com/google-gemini/gemini-api-cli --skill gemini-api-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs12
repo stars38
Last updatedJuly 28, 2026
Repositorygoogle-gemini/gemini-api-cli

How do I use gemini-api-cli correctly?

Guide for using the Gemini API CLI tool. Use when you need to interact with the Gemini API via the command line, manage agents, or generate media (images, audio).

Who is it for?

Teams implementing gemini-api-cli workflows from the catalog.

Skip if: Skip when requirements clearly match a different specialized stack.

When should I use this skill?

User asks about gemini-api-cli, guide for using the gemini api cli tool. use when you need to interact with the gemini api.

What you get

Working gemini-api-cli setup with validated configuration and next steps.

Files

SKILL.mdMarkdownGitHub ↗

Gemini API CLI Skill

This skill provides guidance on using the gemini-api command-line interface.

Overview

The gemini-api CLI allows you to:

  • Run prompts against various Gemini models.
  • Manage the full lifecycle of Gemini Agents.
  • Generate and edit media (images, audio, TTS).

References

For detailed usage and examples, see the following references:

  • Normal Model Calls: See references/model_calls.md for text generation, multi-turn conversations, and tool usage.
  • Agents (Lifecycle): See references/agents.md for creating, testing, and managing agents.
  • Agent Calls: See references/agent_calls.md for invoking antigravity-preview-05-2026 and Deep Research agents.
  • Genmedia: See references/genmedia.md for image generation, image editing, and text-to-speech.

Basic Usage

The primary command is gemini-api run.

gemini-api run "Hello, who are you?"

Always ensure your GEMINI_API_KEY environment variable is set.

Global Flags & Features

The CLI supports several flags that are useful for debugging and automation:

Dry Run (--dry-run)

Prints the equivalent curl command and exits without making an API call. Useful for verifying what request would be sent.

gemini-api run "Hello" --dry-run

Help (--help)

Displays usage information and available flags for any command.

gemini-api --help
gemini-api run --help

JSON Output (--json)

Outputs raw SSE events as JSONL (one event per line), useful for machine parsing.

gemini-api run "Hello" --json

Verbose (--verbose / -v)

Outputs complete JSON step objects line-by-line as they finish. Recommended for programmatic parsing by calling agents.

gemini-api run "Hello" --verbose

Related skills

FAQ

What does gemini-api-cli do?

gemini-api-cli skill documents Guide for using the Gemini API CLI tool.

When should I use gemini-api-cli?

User asks about gemini-api-cli, guide for using the gemini api cli tool. use when you need to interact with the gemini api.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.