Skip to content
BENIBIX Learn

--version Flag

Also known as claude --version, claude -v

It prints which version of Claude Code you have.

Think of it like

It is like you look at the date on a milk box. Then you know how new it is.

Example

A guide says --restricted needs version 2.1.248. Emma runs claude -v, sees an older number, and runs claude update first.

Why it matters

Many features and fixes need a certain version. This tells you in a second if you have it.

Definition

--version prints which version of Claude Code you have, then exits. -v is the short form. Check it before you report a bug, or when a guide says a feature needs a certain version. claude update moves you to the newest one.

Example code

bash
claude -v
Print the version number.

Common mistake

Typing -V or --v. The short form is a small -v.

Key takeaways

  1. 1
    Prints and exits. No session.
  2. 2
    -v. Short form.
  3. 3
    Before a bug report. Check it.

Learn it properly