--version
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Also written -v. Every list on this page counts all of these spellings together.
Output the version number
Anthropic's own wording. Read off CLI reference, captured 2026-09-26.
In the changelogs
27Releases whose published page names --version.
-
v2.1.303
Version number moves to 2.1.303
Claude Code now reports version 2.1.303 in --version, update messages and diagnostic output
found in this entry's text
-
v2.1.300
Self-hosted runner logs now carry a timestamp on every line
Output from the self-hosted runner now goes through one writer that stamps each line with the time, including stderr from the
git --versioncheckfound in this entry's text
-
v2.1.288
Updates now check that the installed Claude Code actually runs
After an npm or bun update, Claude Code runs
claude --versionand reports a failed install if only a placeholder was installedfound in this entry's text, named in this entry
-
v2.1.285
Changed list of startup flags Claude Code singles out
Claude Code now keeps a set of startup flags, including
--print,--backgroundand--version, that it treats as a groupfound in this entry's text
-
v2.1.283
claude plugin evalnow needs git 2.31 or newerclaude plugin evalnow checks your git version and refuses to run with git older than 2.31found in this entry's text
-
v2.1.271
Git version probe is now cached and time-bounded
Git version checks are now cached per binary and time out after 10 seconds
found in this entry's text
-
v2.1.270
Release version bump to 2.1.270 propagated through embedded build-metadata literal
Claude Code's version stamp moved to 2.1.270, with a matching new build time and commit SHA
found in this entry's text
-
v2.1.266
Routine version bump to 2.1.266
Claude Code's version number moved to 2.1.266, with a matching new build time and commit SHA
found in this entry's text
-
v2.1.243
Version constant bumped to 2.1.243
The version number now reads 2.1.243 everywhere it shows up.
named in this entry, found in this entry's text
-
v2.1.241
Version stamped to 2.1.241
The version number moved from 2.1.240 to 2.1.241; nothing else changed.
found in this entry's text
-
v2.1.240
Version stamped as 2.1.240
The build now reports itself as version 2.1.240 in version checks and headers.
named in this entry, found in this entry's text
-
v2.1.237
Version stamp moved from 2.1.236 to 2.1.237
Version output and telemetry now say 2.1.237 instead of 2.1.236; nothing else changes.
named in this entry, found in this entry's text
-
v2.1.234
Build stamped as version 2.1.234
The build now reports itself as version 2.1.234.
found in this entry's text
-
v2.1.231
Build stamp bumped to 2.1.231
The version number you see is now 2.1.231; nothing else about it changed.
named in this entry, found in this entry's text
-
v2.1.228
Version 2.1.228
Version is now 2.1.228, which is what version output and update banners report.
named in this entry, found in this entry's text
-
v2.1.227
Version and build stamp bumped to 2.1.227
The version stamp moves to 2.1.227.
named in this entry, found in this entry's text
-
v2.1.226
Version bump to 2.1.226
The version number ticks up to 2.1.226; nothing else changes.
named in this entry, found in this entry's text
-
v2.1.225
Version bumped to 2.1.225
The version reported by /status and --version is now 2.1.225.
named in this entry, found in this entry's text
-
v2.1.222
Version bumped to 2.1.222
The version number moves to 2.1.222, which is what you'll see in /status and --version.
named in this entry, found in this entry's text
-
v2.1.219
Version bumped to 2.1.219
The version you see in --version and bug reports is now 2.1.219.
named in this entry, found in this entry's text
- v2.1.198
-
v2.1.116
--version --verboseSupportfound in this entry's text
- v2.1.72
-
v2.1.51
Expanded Safe Command Auto-Approval
found in this entry's text
-
v2.1.51
Plugin Registry and Version Support
found in this entry's text
- v2.0.73
-
v1.0.40
Improved SSL/TLS Certificate Handling
found in this entry's text
First cited
1The earliest release whose published evidence quoted --version was v2.1.271, 14 Sep 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.