Skip to content
BENIBIX Learn

Claude Code CLI Command

Also known as claude subcommand, Claude Code CLI commands, claude command line

A command you type in the shell after claude, outside a chat.

Think of it like

It is like the buttons on the outside of a toy box. You use them before you open it.

Example

Jack wants to know which account his laptop uses. He does not open a chat. He types claude auth status in his shell and reads the answer.

Why it matters

Scripts and CI jobs cannot type into a chat. CLI commands are what they can run.

Definition

A Claude Code CLI command is a word you type after claude in your shell, such as claude update or claude auth status. It runs, prints its answer and stops, with no chat. That is the difference from a slash command, which you type inside a running session. Most CLI commands install, sign in, check or clean up, or look after background sessions. If you mistype one, Claude Code says the closest match and stops.

Example code

bash
claude auth status --text
A CLI command: it prints and stops.
A CLI command on the left, a slash command on the right.

Common mistake

Typing claude doctor inside a session, or /doctor in the shell. One belongs in the shell, the other inside a chat.

Key takeaways

  1. 1
    Typed in the shell. After claude.
  2. 2
    No chat. It prints and stops.
  3. 3
    Scripts can run it. CI too.

Compare

Learn it properly