All Shortcuts

Google Gemini Keyboard Shortcuts & Commands (16)

Complete collection of 16 Google Gemini keyboard shortcuts and commands. Browse all shortcuts organized by category with our interactive search tool.

Related Shortcut Pages

ChatGPT OpenAI Codex CLI OpenClaw Claude Code Midjourney Perplexity
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools · ⌨️ Full Gemini CLI reference (25 commands)

Search all Google Gemini shortcuts interactively with real-time filtering

Open Interactive Shortcut Finder

All Shortcuts

Web App

ShortcutActionDescription
EnterSend MessageSends the prompt in gemini.google.com.
Shift + EnterNew LineLine break without sending.
Ctrl + Shift + CCopy ResponseCopies the last response.
Ctrl + ZUndoUndo in the prompt box.
Ctrl + /Show ShortcutsOpens the in-app shortcut list.

Gemini CLI — Slash Commands

ShortcutActionDescription
/helpShow HelpLists commands and keybindings (alias /?).
/clearClear ScreenWipes the terminal display (Ctrl + L does the same).
/quitExit CLIEnds the session (alias /exit).
/toolsList ToolsShows the tools available to the model.
/mcpMCP ServersLists configured MCP servers and their tools.
/memoryManage MemoryShow, add to, or refresh the hierarchical GEMINI.md context.
/statsSession StatsToken usage and savings for the session.
/chatSave / Resume ChatCheckpoint conversations: /chat save, /chat resume, /chat list.
/compressCompress ContextReplaces the whole context with a summary to save tokens.
/copyCopy Last OutputCopies the last response to the clipboard.
/themeChange ThemeOpens the visual theme picker.
/vimVim ModeToggles vim-style editing in the input field.

Gemini CLI — Editing Keys

ShortcutActionDescription
Ctrl + AStart of LineMoves the cursor to the beginning of the input.
Ctrl + EEnd of LineMoves the cursor to the end of the input.
Alt + BWord LeftMoves back one word.
Alt + FWord RightMoves forward one word.
Ctrl + WDelete Word LeftDeletes the previous word.
Ctrl + KDelete to EndDeletes from the cursor to the end of the line.
Ctrl + UDelete to StartDeletes from the cursor to the start of the line.
Ctrl + ZUndo EditUndoes the last text edit in the input.

Gemini CLI — Control & History

ShortcutActionDescription
Ctrl + CCancel / QuitCancels the current request; quits when input is empty.
Ctrl + DExit on EmptyExits the CLI when the input buffer is empty.
EscDismiss / CancelCloses dialogs or cancels the current focus.
Ctrl + PPrevious HistoryRecalls the previous prompt (with Up arrow).
Ctrl + NNext HistoryMoves forward through prompt history.
Ctrl + RSearch HistoryReverse-search through past prompts.

Gemini CLI — Invocation & Flags

ShortcutActionDescription
geminiStart Interactive SessionLaunches the REPL in the current directory.
gemini -p "prompt"One-Shot PromptRuns a single prompt non-interactively and prints the answer.
cat file | geminiPipe InputFeeds file contents as context via stdin.
--model <name>Select ModelChooses the Gemini model for the session.
--yoloAuto-Approve ActionsSkips confirmation prompts for tool calls — use with care.
--debugDebug OutputVerbose logging for troubleshooting.
📜 Source: Gemini CLI documentation (Google, GitHub). CLI commands and keys come from Google's official Gemini CLI documentation on GitHub (docs/reference: commands, keyboard-shortcuts). Google does not publish a shortcut table for the gemini.google.com web app; the Web App rows are the de facto set from the product itself. Checked 2026-08-03.

Browse shortcuts for 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.

One name, two surfaces

“Gemini shortcuts” means two unrelated things. The web app at gemini.google.com has a handful of chat keys (and, notably, no official published table — Ctrl + / shows the in-app list). The Gemini CLI is a different animal: an open-source terminal agent from Google with a documented command set, slash commands, and full readline-style editing. The CLI is where the depth is, and everything in its sections below comes from Google's own reference docs.

Slash commands run the session

Inside the CLI, / commands manage everything around the conversation. /chat save and /chat resume checkpoint long sessions; /compress replaces the whole context with a summary when you're burning tokens; /memory shows and refreshes the hierarchical GEMINI.md context files that steer the agent; /tools and /mcp reveal what the model can actually do in your environment. /stats keeps the token bill honest, and /vim flips the input line to vi-style editing if that's home.

The input line is a real editor

Gemini CLI's editing keys mirror bash: Ctrl + A/E for line ends, Alt + B/F by word, Ctrl + W/K/U for deletions, plus genuine undo on Ctrl + Z. History works the same way — Ctrl + R reverse-searches past prompts. The two exit paths differ deliberately: Ctrl + C cancels the current request (and quits only on an empty line), while Ctrl + D on an empty buffer exits outright. For scripting, skip the REPL entirely: gemini -p runs one prompt and prints, and piping (cat file | gemini) feeds context through stdin.

Frequently asked questions

Does the Gemini web app have official keyboard shortcuts?

Google doesn't publish a table for gemini.google.com; Ctrl+/ opens the in-app list. The CLI, by contrast, has fully documented commands and keys.

How do I save and resume a conversation in Gemini CLI?

/chat save <tag> checkpoints the session; /chat resume <tag> restores it later, and /chat list shows saved tags.

What does /compress do in Gemini CLI?

It replaces the entire conversation context with a model-written summary — the escape hatch when a long session approaches the context limit or token costs climb.

What's the difference between Ctrl+C and Ctrl+D in Gemini CLI?

Ctrl+C cancels the in-flight request, and quits if the input is empty; Ctrl+D exits only when the input buffer is empty — the classic terminal EOF.

How do I run Gemini CLI non-interactively?

gemini -p "your prompt" runs once and prints the answer — pipeable and scriptable. stdin works too: cat notes.md | gemini.

What is the --yolo flag in Gemini CLI?

It auto-approves the agent's tool calls (file edits, shell commands) without asking. Powerful for automation, risky by design — use it in sandboxes.

🤖 Ask AI about Gemini 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