# Slash Commands and the CLI

> 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:** [Claude Code Commands](https://learn.benibix.com/learn/ai-claude-code-commands)  
**Time:** 9 min

**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

## 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.

```bash
# in your shell
claude -v

# inside a session, at the prompt
/help
/release-notes
```
Check your version from the shell. Then list the commands and read the changelog from inside a chat.

![Two panels. On the left, in the shell, three CLI commands: claude update, claude auth status and claude doctor, each of which prints and then stops. On the right, inside a session, a line from Claude and two slash commands, /model and /doctor, which act on this chat.](https://learn.benibix.com/diagrams/cli-shell-vs-session.svg)

### 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.

**Words in this lesson:** [Prompt (AI)](https://learn.benibix.com/term/ai/prompt), [Claude Code Slash Command](https://learn.benibix.com/term/ai/claude-code-slash-command), [Claude Code CLI Command](https://learn.benibix.com/term/ai/claude-code-cli-command), [/help Command](https://learn.benibix.com/term/ai/help-command), [/release-notes Command](https://learn.benibix.com/term/ai/release-notes-command), [--version Flag](https://learn.benibix.com/term/ai/version-flag)

**Question:** Where do you type claude update?

**Answer:** In your shell, with no session open. claude update is a CLI command. You type it in your shell, it runs, prints its answer and stops. A slash command is the kind you type inside a chat.

---

Source: https://learn.benibix.com/learn/ai-claude-code-commands/slash-commands-and-the-cli
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
