Gemini CLI Keyboard Shortcuts

Complete Gemini CLI keyboard shortcuts and commands reference — 25 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.

About Gemini CLI

Gemini CLI is Google's open-source AI agent for the terminal, used by developers worldwide. Note: as of June 18, 2026, unpaid-tier and Google One users are transitioned to Antigravity CLI — these shortcuts apply to Gemini CLI proper (paid and enterprise tiers).

This page covers all 25 Gemini CLI shortcuts across 3 categories: Session & App Controls, Input & History, Slash Commands. Each shortcut includes a description to help you understand when and how to use it effectively.

✓ Verified July 2026 against the official Gemini CLI documentation (geminicli.com).

Session & App Controls (9)

ShortcutActionDescription
Ctrl + CCancel / quitCancel the current request, or quit the CLI when the input is empty.
Ctrl + DExit CLIExit Gemini CLI when the input buffer is empty.
Ctrl + LClear screenClear the terminal screen and redraw the UI.
Ctrl + TToggle TODO listShow or hide the full TODO list the agent is working through.
Ctrl + YToggle YOLO modeToggle auto-approval (YOLO) mode for tool calls.
Shift + TabCycle approval modesCycle through approval modes: default, auto-edit, and plan (read-only).
Ctrl + GOpen external editorOpen the current prompt or plan in an external editor.
F12Debug consoleToggle the debug console for detailed error information.
Esc EscClear / rewindClear the input prompt, or browse and rewind previous interactions when empty.

Input & History (8)

ShortcutActionDescription
EnterSubmit promptSubmit the current prompt to the model.
Ctrl + EnterNew lineInsert a newline without submitting (Alt+Enter and Ctrl+J also work).
TabQueue messageQueue the current prompt to run after the current task finishes.
Ctrl + RReverse history searchStart reverse search through prompt history, like a shell.
Ctrl + P / Ctrl + NHistory previous / nextShow the previous or next entry in prompt history.
!Shell modeOn an empty prompt, enter or exit shell mode to run commands directly.
?Shortcuts panelOn an empty prompt, toggle the built-in keyboard shortcuts panel.
Ctrl + OExpand paste / outputExpand or collapse paste placeholders and long content blocks.

Slash Commands (8)

ShortcutActionDescription
/helpList commandsShow help and list all available slash commands (alias /?).
/chatManage sessionsBrowse, save, and resume past sessions and conversations.
/rewindRewind conversationRewind the conversation history to a previous turn.
/restoreRestore filesRestore files to their state before the last tool call.
/modelSwitch modelView or change the current model.
/settingsOpen settingsOpen the settings editor from inside the REPL.
/vimVim modeEnable vim NORMAL/INSERT editing modes in the input.
/authSwitch authSwitch to a different auth provider or account.
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Mastering Gemini CLI Shortcuts

Gemini CLI's 25 shortcuts on this page are organized into 3 categories: Session & App Controls (9), Input & History (8), Slash Commands (8). Session & App Controls is the largest group with 9 shortcuts — a good place to focus first if you're building muscle memory from scratch.

A few of these aren't Gemini CLI-specific — they're shared across tools: Ctrl + D (Exit CLI, also in Chrome); Ctrl + Enter (New line, also in Chrome); Ctrl + L (Clear screen, also in Chrome). Learning them here pays off well beyond Gemini CLI itself.

New to Gemini CLI? Start with Session & App Controls above — it's usually where the shortcuts you'll reach for constantly live. Once those feel automatic, work through Slash Commands to round out your workflow.

Want this on paper? The printable cheat sheet turns these 25 shortcuts into a one-page PDF you can pin above your desk. Prefer to learn by doing? Shortcut Speedrun turns memorization into a timed typing challenge with a global leaderboard, so you find out which Gemini CLI shortcuts you actually remember under pressure.

Frequently Asked Questions

What are the most useful Gemini CLI keyboard shortcuts?

The most essential Gemini CLI shortcuts are: Ctrl + C (Cancel / quit), Ctrl + D (Exit CLI), Ctrl + L (Clear screen). These cover the most frequent actions and can significantly speed up your workflow.

How many keyboard shortcuts does Gemini CLI have?

Gemini CLI has 25 keyboard shortcuts across 3 categories on shortcut-tools.com.

How do I use Gemini CLI commands?

These are command-line commands and keybindings — most work directly in your terminal. Combine them with shell history search (Ctrl + R) and aliases to work even faster.

What is the Gemini CLI shortcut for cancel / quit?

The Gemini CLI shortcut for cancel / quit is Ctrl + C. Cancel the current request, or quit the CLI when the input is empty.

What Session & App Controls shortcuts does Gemini CLI have?

Gemini CLI includes 9 Session & App Controls shortcuts, including Ctrl + C (Cancel / quit) and Ctrl + D (Exit CLI). See the full list in the Session & App Controls section above.

What Input & History shortcuts does Gemini CLI have?

Gemini CLI includes 8 Input & History shortcuts, including Enter (Submit prompt) and Ctrl + Enter (New line). See the full list in the Input & History section above.

Can I combine Gemini CLI shortcuts with other tools?

Yes — use My Stack to combine Gemini CLI shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

💡 Pro Tips for Gemini CLI Users

Start with the essentials: Learn Ctrl + C (Cancel / quit) and Ctrl + D (Exit CLI) first — these are the most commonly used.

Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.

Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Session & App Controls category first.

Terminal tip: Bookmark this page for quick reference — muscle memory for these bindings compounds fast.

Related Shortcut Pages

Gemini Claude Code OpenAI Codex CLI Aider Warp Terminal Ghostty

Search 4,100+ shortcuts across 264 platforms

Explore All Platforms Practice Shortcuts