<mohammadrony>

Gemini

Guide

CLI

Install and use Node

node -v

Install gemini-cli

npm install -g @google/gemini-cli

Add API key in ~/.zshrc or ~/.bashrc

# Optional
export GEMINI_API_KEY="<YOUR_API_KEY>"

Commands

Start cli

cd ./project/directory
gemini

One-off command

gemini "What is the distance between the Earth and the Moon?"

Include multiple directory

gemini --include-directories ../lib,../docs

Quit CLI

/quit

MCP

List servers

gemini mcp list