> Every command, flag & shortcut
A complete, scannable reference for Claude Code — slash commands you run inside a session, the claude commands and flags you launch it with, keyboard shortcuts, and how to build your own commands.
Getting started
Install once, then start a session. Inside a session, type / to see and filter every command available to you.
# Install (requires Node.js) npm install -g @anthropic-ai/claude-code # Start an interactive session in the current project claude # Start with a prompt, or run a one-off query and exit claude "explain this project" claude -p "summarize the failing test" # Verify your setup at any time claude /doctor
Session & context
Control the conversation itself: start fresh, reclaim context, resume earlier work, and move responses around.
Models, effort & behavior
Tune how much reasoning you spend, switch models mid-task, and shape the interface and plan mode.
Review & ship
Inspect changes, get bug and security reviews, and roll back when something goes wrong.
Parallel & background work
Delegate to subagents, fan large changes out across worktrees, and keep work running in the background.
Run & verify your app
Confirm changes against the running app instead of just tests. These bundled skills require Claude Code v2.1.145+.
Connections & integrations
Wire in MCP servers, plugins, skills, hooks, your IDE, and GitHub/Slack apps.
Remote, web & devices
Move a session between your terminal, claude.ai, the cloud, and the desktop or mobile apps.
Account, usage & permissions
Sign in, track spend, and decide which tools run without asking.
Diagnostics, learning & extras
Troubleshoot, report problems, learn the tool, and a few fun ones.
CLI commands
Run these in your shell to start, resume, pipe into, and manage Claude Code and its background sessions.
CLI flags
Launch-time options. Some apply only in print mode (-p). claude --help doesn't list every flag.
Keyboard shortcuts
Shortcuts vary by platform and terminal. On macOS, the Alt/Option bindings require setting Option as Meta. In fullscreen, press ? for the in-app list.
Vim editor mode
Enable vim-style editing via /config → Editor mode. A condensed cheat sheet of the most-used motions and operators.
Build your own commands (skills)
Custom commands have merged into skills. A skill is a folder with a SKILL.md; the directory name becomes the command you type. You invoke it with /name, and Claude can load it automatically when relevant.
# ~/.claude/skills/fix-issue/SKILL.md --- description: Fix a GitHub issue following our coding standards argument-hint: [issue-number] allowed-tools: Read Grep Bash(git *) disable-model-invocation: true # only you can trigger it --- Fix GitHub issue $ARGUMENTS following our standards. ## Current changes # Shell output is injected before Claude sees the file: !`git diff HEAD` # Then invoke it: /fix-issue 123
Comments
Post a Comment