Skip to content
BENIBIX Learn

--name Flag

Also known as claude --name, claude -n, Session display name

It gives a new session a name you choose.

Think of it like

It is like you write a name on a jar. Then you know what is in it.

Example

Jack starts three sessions on three tasks. He names them with -n, so each terminal tab shows which task it is, and the /resume list is easy to read.

Why it matters

A name is easy to remember and type. A long ID is not.

Definition

--name gives a new session a name you choose. The name shows in the /resume list and in the title of your terminal window. Later, claude --resume with that name opens the session again. -n is the short form. To change the name while you work, use /rename.

Example code

bash
claude -n "login-fix"
Start a session named login-fix.
--name sets the name first, so --resume can find it.

Common mistake

Giving two sessions the same name. Pick names that tell the tasks apart, or the list will not help you.

Key takeaways

  1. 1
    Your name. For the session.
  2. 2
    In the list. And the title bar.
  3. 3
    /rename. To change it later.

Compare

Learn it properly