{"name":"--version","slug":"version","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Output the version number","description_source":"docs","described_by":{"doc":"claude-code\/cli-reference","title":"CLI reference"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.271","released_at":"2026-09-14 19:45:19","spans":1}},"aliases":["-v"],"entries":[{"version":"2.1.303","anchor":"build-metadata-bump-only-21302-to-21303","heading":"Version number moves to 2.1.303","line":"Claude Code now reports version 2.1.303 in --version, update messages and diagnostic output","released_at":"2026-10-18 21:15:23","reason":"found in this entry's text"},{"version":"2.1.300","anchor":"self-hosted-runner-logging-reworked","heading":"Self-hosted runner logs now carry a timestamp on every line","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","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text"},{"version":"2.1.288","anchor":"update-check-verifies-the-installed-binary-and-detects-a-pla","heading":"Updates now check that the installed Claude Code actually runs","line":"After an npm or bun update, Claude Code runs `claude --version` and reports a failed install if only a placeholder was installed","released_at":"2026-10-02 18:30:40","reason":"found in this entry's text, named in this entry"},{"version":"2.1.285","anchor":"headless-cli-argument-classification-list","heading":"Changed list of startup flags Claude Code singles out","line":"Claude Code now keeps a set of startup flags, including `--print`, `--background` and `--version`, that it treats as a group","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.283","anchor":"claude-plugin-eval-requires-git-231-or-newer","heading":"claude plugin eval now needs git 2.31 or newer","line":"`claude plugin eval` now checks your git version and refuses to run with git older than 2.31","released_at":"2026-09-25 18:46:11","reason":"found in this entry's text"},{"version":"2.1.271","anchor":"git-version-probe-is-now-cached-and-time-bounded","heading":"Git version probe is now cached and time-bounded","line":"Git version checks are now cached per binary and time out after 10 seconds","released_at":"2026-09-14 19:45:19","reason":"found in this entry's text"},{"version":"2.1.270","anchor":"release-version-bump-to-21270-propagated-through-embedded","heading":"Release version bump to 2.1.270 propagated through embedded build-metadata literal","line":"Claude Code's version stamp moved to 2.1.270, with a matching new build time and commit SHA","released_at":"2026-09-12 18:52:44","reason":"found in this entry's text"},{"version":"2.1.266","anchor":"routine-version-bump-to-21266","heading":"Routine version bump to 2.1.266","line":"Claude Code's version number moved to 2.1.266, with a matching new build time and commit SHA","released_at":"2026-09-08 23:32:32","reason":"found in this entry's text"},{"version":"2.1.243","anchor":"version-constant-bumped-to-2-1-243","heading":"Version constant bumped to 2.1.243","line":"The version number now reads 2.1.243 everywhere it shows up.","released_at":"2026-08-24 23:10:45","reason":"named in this entry, found in this entry's text"},{"version":"2.1.241","anchor":"version-stamped-to-2-1-241","heading":"Version stamped to 2.1.241","line":"The version number moved from 2.1.240 to 2.1.241; nothing else changed.","released_at":"2026-08-22 23:58:33","reason":"found in this entry's text"}],"entries_total":27,"docs":[{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":true},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/deploy-helm","title":"deploy-helm","documented":false},{"source":"api","path":"cli-sdks-libraries\/cli\/quickstart","title":"quickstart","documented":false},{"source":"api","path":"manage-claude\/plugins-api","title":"plugins-api","documented":false},{"source":"api","path":"managed-agents\/quickstart","title":"quickstart","documented":false},{"source":"claude-code","path":"agent-sdk\/troubleshooting","title":"Troubleshoot the Agent SDK","documented":false},{"source":"claude-code","path":"auto-mode-config","title":"Configure auto mode","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"channels","title":"Push events into a running session with channels","documented":false},{"source":"claude-code","path":"chrome","title":"Use Claude Code with Chrome","documented":false}],"docs_total":13,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/version","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}