gemini-cli-execution

Execute Google Gemini CLI commands in non-interactive and headless modes.

2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-cli-execution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-cli-execution
Source: https://github.com/DTMC-marketplace/governance/tree/main/skills/gemini-cli-execution
Command: npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-cli-execution

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides the operational knowledge to execute the gemini binary effectively within scripts, sub-agents, and automation workflows, focusing on non-interactive usage.

Core Features & Use Cases

  • Non-Interactive Execution: Run Gemini CLI commands from scripts or automated processes.
  • Piping Context: Send file content or logs directly to Gemini via standard input.
  • JSON Output: Obtain structured JSON output for easy parsing and automation.
  • Use Case: You need to integrate Gemini's capabilities into a CI/CD pipeline to analyze code changes or generate documentation automatically.

Quick Start

Use the gemini-cli-execution skill to run a gemini query with JSON output.

Frequently Asked Questions about gemini-cli-execution

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

FAQPage Schema
How do I execute Gemini CLI commands in a non-interactive script?

To execute Gemini CLI commands in a non-interactive script, use the gemini binary in headless mode to enable automated processing and piping input directly from standard input.

Can I pipe file content and logs directly into the Gemini CLI?

Yes, you can pipe file content and logs directly into the Gemini CLI using standard input, allowing automated workflows to send context data to the gemini binary for immediate processing.

How do I get structured JSON output from the Gemini CLI for automation?

You can get structured JSON output from the Gemini CLI by executing commands with specific output handling flags, returning easily parsable data for automated scripts and CI/CD pipelines.

What is the best way to automate Gemini workflows in a CI/CD pipeline?

The best way to automate Gemini workflows in a CI/CD pipeline is by running the gemini binary in headless mode, piping context via standard input, and parsing structured JSON output.

Does the Gemini CLI support headless execution for sub-agents?

Yes, the Gemini CLI supports headless execution for sub-agents, providing the operational knowledge to run the gemini binary effectively within automated processes without user interaction.