Commands in Gemini CLI

Gemini CLI provides a variety of commands to manage models, memory, settings, and more. Here is a guide to the most common commands.

The /model Command

Select your Gemini CLI model. The /model command lets you configure the model used by Gemini CLI, giving you more control over your results.

The /memory Command

Manage the AI’s instructional context (hierarchical memory loaded from GEMINI.md files).

Essential Utility Commands

Conversation Management

Basics & Shortcuts

Add context: Use @ to specify files for context (e.g., @src/file.ts).
Shell mode: Execute shell commands via ! (e.g., !npm test).

Keyboard Shortcuts