⌨️--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
Example code
bash
claude -vCommon mistake
Key takeaways
- 1Prints and exits. No session.
- 2-v. Short form.
- 3Before a bug report. Check it.