Skip to main content
Claude Code has two categories of commands:
  • CLI flags — options you pass when starting Claude from your terminal (e.g. claude --model sonnet). They configure the session before it starts.
  • Slash commands — text commands you type inside an active session (e.g. /help). They control Claude’s behavior while the session is running.

Getting help

/help lists every slash command available in the current session, including commands added by plugins and skills.

Two types of commands

CLI flags are consumed once and cannot be changed mid-session (with the exception of /model and /permissions, which change the running configuration in place).

CLI flags

Pass flags directly after claude:
See CLI flags for the full list.

Slash commands

Type a slash command at the input prompt inside any session:
See Slash commands for the full list.

Keyboard shortcuts

These shortcuts work inside any interactive Claude Code session:
Ctrl+C interrupts the current response but keeps the conversation alive. Use Ctrl+D or /exit to end the session entirely.

Subcommands

In addition to the main claude command, a few subcommands are available in your terminal: