Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

--version

cli never mined documented JSON

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.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v1.0.40 first named in a changelog, 1 Jul 2025

In the changelogs

27

Releases whose published page names --version.

  1. 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

  2. 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 --version check

    found in this entry's text

  3. v2.1.288
    Updates now check that the installed Claude Code actually runs

    After an npm or bun update, Claude Code runs claude --version and reports a failed install if only a placeholder was installed

    found in this entry's text, named in this entry

  4. v2.1.285
    Changed list of startup flags Claude Code singles out

    Claude Code now keeps a set of startup flags, including --print, --background and --version, that it treats as a group

    found in this entry's text

  5. v2.1.283
    claude plugin eval now needs git 2.31 or newer

    claude plugin eval now checks your git version and refuses to run with git older than 2.31

    found in this entry's text

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. 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

  19. 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

  20. 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

  21. v2.1.198

    found in this entry's text

  22. v2.1.116
    --version --verbose Support

    found in this entry's text

  23. v2.1.72

    found in this entry's text

  24. v2.1.51
    Expanded Safe Command Auto-Approval

    found in this entry's text

  25. v2.1.51
    Plugin Registry and Version Support

    found in this entry's text

  26. v2.0.73

    found in this entry's text

  27. v1.0.40
    Improved SSL/TLS Certificate Handling

    found in this entry's text

First cited

1

The 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.

ReleaseDateThe span that was quoted
v2.1.27114 Sep 2026Be(r, [...dn, "--version"], { cwd: e, env: vo(), timeout: 1e4 })

Presence across releases

0

The 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.

Feedback