Skip to content

gemini Gemini CLI

Google Gemini CLI is used as an AI agent that can be used directly in a terminal.

I use the Gemini CLI to help generate bash script files and markdown documents for mkdocs-material.

🛠 Installation

Config path: ~/.gemini/

npx https://github.com/google-gemini/gemini-cli
sudo npm install -g @google/gemini-cli
gemini

⚙ Config

  1. Generate a key from Google AI Studio.
  2. Set it as an environment variable in your terminal. Replace YOUR_API_KEY with your generated key.
export GEMINI_API_KEY="YOUR_API_KEY"
export GEMINI_API_KEY="YOUR_API_KEY"

✍ Syntax Files

Syntax files are used to customize the iutput from Gemini.

docs/GEMINI.md
# Markdown Documentation Guidelines for Gemini

**Context:** This directory contains all project documentation in Markdown format.

**Specific Instructions for Markdown Files:**
- Use clear and descriptive headings (H1 for main topic, H2 for sub-sections).
- Employ bullet points and numbered lists for readability.
- Use backticks (`` ` ``) for inline code and triple backticks (```) for code blocks, specifying the language (e.g., ```bash`, ```python`).
- Keep paragraphs concise.
- Link to relevant files or sections using relative paths where appropriate.
* Ensure a consistent tone and voice (e.g., formal, informal, instructional).
* Favor simple Markdown over complex HTML embeds unless absolutely necessary.

📝 Usage

Example

git clone https://github.com/google-gemini/gemini-cli
cd gemini-cli
gemini
> Give me a summary of all of the changes that went in yesterday

🔗 References