feat(cli): add ccc version - #245
Merged
Merged
Conversation
Until now the only way to learn the version was `ccc daemon status` or `ccc doctor`, both of which require reaching the daemon — so a user whose daemon won't start had no way to report what client they're on. `ccc version` prints the client version offline: no project discovery, no daemon, no settings. It reuses the same `_version.__version__` the daemon handshake compares against, so the CLI and the protocol check can't disagree. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YGCBE6RbF1uvvPYjfCUoW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ccc version, which prints the CLI version.Today the version is only reachable through
ccc daemon statusorccc doctor, and both report it by connecting to the daemon. That leaves no answer to "what version are you on?" for the case where it matters most — a user whose daemon won't start, filing a bug.ccc versionanswers offline: no project discovery, no settings, no daemon.It reads the same
_version.__version__the daemon handshake compares against, so the CLI and the version check can't drift apart.Try it
Works from any directory — no initialized project, no global settings, no running daemon required. It shows up in the top-level help alongside the rest:
Operational impact
None. Purely additive — a new subcommand, no change to existing commands, settings, protocol, or on-disk state. No migration. The daemon's version reporting stays exactly where it was in
ccc daemon statusandccc doctor; this reports the client's, which can legitimately differ from a running daemon's.Docs updated: README command table and the CLAUDE.md subcommand list.
🤖 Generated with Claude Code