Documentation

Deep dive into Gemini CLI features and commands.

Installation

To install Gemini CLI, you need to have Node.js and npm installed. Then run the following command:

$ npm install -g gemini-cli

Command Reference

gemini [prompt]

The primary command. You can ask Gemini to do anything for you.

gemini commit

Automatically generates a commit message based on your staged changes.

gemini refactor --file [file_path] --prompt [instructions]

Refactors the specified file based on your instructions.

Back to Home