Command Reference

Complete reference for all Gemini CLI commands with syntax, options, and practical examples

11 commands commands found

Quick Start Guide

Get started with Gemini CLI in just a few commands

1

Install & Authenticate

npm install -g @google/gemini-cli
gemini auth

Install the CLI and authenticate with your Google account

2

Start Chatting

gemini chat
gemini ask "How do I...?"

Start an interactive session or ask quick questions

3

Analyze Code

gemini analyze app.js
gemini analyze . --recursive

Analyze files and projects for insights and improvements

Command Cheat Sheet

Essential Commands

gemini chatInteractive AI session
gemini ask "question"Quick question
gemini analyze fileAnalyze code
gemini authAuthenticate

Chat Commands

/model nameSwitch AI model
/load fileLoad file context
/save fileSave conversation
/clearClear history

πŸ’‘ Tip: Use gemini help or gemini --help for more information