Slash Commands and the CLI
Level 1 · Get started
The two kinds of Claude Code command. What a slash command does inside a chat, what a CLI command does in your shell, and how to find them all.
Course contentsLesson 1 of 17
Level 1 · Get started
Level 2 · Inside a conversation
Level 3 · Parallel work and review
Level 4 · Setup and extensions
Level 5 · Scripts and servers
After this lesson you can
- Tell a slash command from a CLI command
- Find any command with / and /help
- Check which version you are running
9 mincovers 6 glossary entries
What a slash command is, and what a CLI command is
Claude Code takes commands in two places. A slash command starts with / and is typed inside a running chat, such as /model or /clear. A CLI command is a word typed after claude in your shell, such as claude update. The commands page lists more than 100 slash commands, and skills and plugins add more.
A slash command steers Claude Code itself, not your task. /model picks the model. /clear starts a new chat. Claude Code only treats it as a command when it comes first in your message. Any text after the name goes to the command, so /rename login-fix passes login-fix along.
Type / at the start of the prompt and a menu opens. Type a few letters and it narrows down. Press Tab or the arrow keys to pick one. A few commands stay out of the menu on purpose, such as /heapdump, until you type the whole name.
/help lists the commands you can use right now. That list is longer than the built-in set. Every skill you install adds its own slash command, and so does every plugin. Not every command shows for every person. Some depend on your plan, your system or your setup.
If you send a command while Claude is still replying, it waits its turn. Claude Code runs it once the reply ends. A few run at once with no wait, such as /status, /tasks and /usage, because they only show you something.
A CLI command never opens a chat. It runs, prints its answer and stops. Most of them install, sign in, check or clean up. If you mistype one, such as claude udpate, Claude Code prints the closest match and stops. It does not start a session with your typo in it.
Two quick checks help before you ask anyone for help. claude -v prints your version and stops. /release-notes shows what changed in each version, in a picker. Those notes stay out of the chat Claude reads, so they take up none of its room.
# in your shell
claude -v
# inside a session, at the prompt
/help
/release-notesWorked example
Emma finds a command she half remembers
Emma wants the command that shows how full her chat is. She types /cont and the menu narrows to a handful, with /context near the top.
Later she runs claude -v in another window and sees she is 3 versions behind. /release-notes shows a fix she has been waiting for, so she updates.
The words for this lesson6
Check yourself
Where do you type claude update?
Finished this lesson?
Marking it complete also marks its 6 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.