gemini-cli-guide

Reference Gemini CLI installation, authentication, commands, and configuration patterns.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/MomoChenisMe/awesome-momochenisme-skills --skill gemini-cli-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-cli-guide
Source: https://github.com/MomoChenisMe/awesome-momochenisme-skills/tree/main/skills/gemini-cli-guide
Command: npx skills add https://github.com/MomoChenisMe/awesome-momochenisme-skills --skill gemini-cli-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Gemini CLI users get a compact, practical reference that reduces learning time and speeds up tool adoption.

Core Features & Use Cases

  • Quick installation and setup references for various environments
  • Comprehensive coverage of authentication, basic commands, and common flags
  • Examples and patterns for interactive use, one-shot queries, and scripting

Quick Start

Start the Gemini CLI by running gemini and try a one-shot query with gemini -p 'Explain this code'.

Frequently Asked Questions about gemini-cli-guide

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

FAQPage Schema
How do I authenticate and configure the Gemini CLI for one-shot queries?

To use the Gemini CLI for one-shot queries, configure authentication and environment setup, then run a command like `gemini -p 'Explain this code'` to execute a single prompt without an interactive session.

Can I use Gemini CLI commands in scripting workflows?

Yes, the Gemini CLI supports scripting workflows by allowing you to execute one-shot queries and apply command flags programmatically, enabling automated text generation and code explanation within shell scripts.

What slash commands are available in Gemini CLI interactive sessions?

Gemini CLI interactive sessions support various slash commands that provide quick access to internal tool functions, file syntax handling, and configuration adjustments directly within the active prompt interface.

How do I install and set up the Gemini CLI across different environments?

Installing the Gemini CLI involves running the setup commands specific to your operating system, followed by configuring authentication credentials to ensure the tool can access the required API services.

What are common Gemini CLI flags for modifying command behavior?

Common Gemini CLI flags allow you to modify command behavior by adjusting output formats, switching between interactive and one-shot modes, and passing specific context files directly to the prompt.