gemini-api-cli

द्वारा google-gemini

Gemini API CLI टूल का उपयोग करने के लिए मार्गदर्शिका। इसका उपयोग तब करें जब आपको कमांड लाइन के माध्यम से Gemini API से संवाद करना हो, एजेंट प्रबंधित करने हों, या मीडिया (चित्र, …) उत्पन्न करना हो।

npx skills add https://github.com/google-gemini/gemini-api-cli --skill gemini-api-cli

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:

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

google-gemini की और Skills

greeter
google-gemini
एक मैत्रीपूर्ण अभिवादन कौशल
official
code-reviewer
google-gemini
स्थानीय परिवर्तनों और दूरस्थ पुल अनुरोधों के लिए स्वचालित कोड समीक्षा, जिसमें शुद्धता, रखरखाव क्षमता और सुरक्षा पर संरचित विश्लेषण शामिल है। स्थानीय फ़ाइल सिस्टम परिवर्तनों (स्टेज्ड और अनस्टेज्ड) और दूरस्थ PRs (संख्या या URL द्वारा) को स्वचालित GitHub CLI चेकआउट के साथ समर्थन करता है। कोड का सात आयामों में विश्लेषण करता है: शुद्धता, रखरखाव क्षमता, पठनीयता, दक्षता, सुरक्षा, एज केस हैंडलिंग और परीक्षण कवरेज। वैकल्पिक
official
review-duplication
google-gemini
कोड समीक्षा के दौरान इस कौशल का उपयोग करके सक्रिय रूप से कोडबेस में डुप्लिकेट कार्यक्षमता, पुनः आविष्कृत पहियों, या मौजूदा का पुन: उपयोग करने में विफलता की जांच करें…
official
reconciliation
google-gemini
लोड किए गए खर्चों को पूर्व-पार्स किए गए इनवॉइस डेटाबेस के साथ मिलान करें, और राशि बेमेल, लापता इनवॉइस, और व्यापारी बेमेल जैसी विसंगतियों को चिह्नित करें…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
इस कौशल को तब सक्रिय करें जब उपयोगकर्ता एक अतुल्यकालिक PR समीक्षा शुरू करना चाहता है, किसी PR पर पृष्ठभूमि जाँच चलाना चाहता है, या पहले से शुरू की गई अतुल्यकालिक PR की स्थिति जाँचना चाहता है…
official
behavioral-evals
google-gemini
व्यवहारिक मूल्यांकन बनाने, चलाने, ठीक करने और बढ़ावा देने के लिए मार्गदर्शन। एजेंट निर्णय तर्क को सत्यापित करने, विफलताओं को डीबग करने, प्रॉम्प्ट को डीबग करने के दौरान उपयोग करें…
official
ci
google-gemini
Gemini CLI के लिए एक विशेष कौशल जो उच्च-प्रदर्शन, फेल-फास्ट प्रदान करता है
official