Gemini CLI Keyboard Shortcuts

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

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

Related Shortcut Pages

Gemini Claude Code OpenAI Codex CLI Aider Warp Terminal Ghostty

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about Gemini CLI shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok