crewship version
Prints the binary’s version metadata. First command to run on any new install to confirm what you actually installed.Output
| Field | Source |
|---|---|
| version | Goreleaser-injected tag at release-build time (-X main.version). For local go build, defaults to dev. |
| commit | Git SHA of the build commit (-X main.commit). For local go build, defaults to none. |
| built | ISO-8601 timestamp of the build commit (-X main.date). For local go build, defaults to unknown. |
| go | runtime.Version() of the Go toolchain that compiled the binary. |
| os/arch | runtime.GOOS and runtime.GOARCH. |
builds
block in .goreleaser.yml. Local go build without flags omits them,
which is how we tell a release artifact from a workstation build at a
glance.
Comparison with --version flags
Crewship deliberately does not support crewship --version or
-v as version probes. -v is taken by --verbose (which start
uses) and a top-level --version would conflict with sub-command
flag parsing. Use crewship version as the single, unambiguous way.
Programmatic version checks
For scripts that need to act on the running binary’s version, parse the first line. Bash:GET /api/v1/system/version which returns:
latest / newer / url fields drive
the update-available banner in the web UI.)
Update available?
Bothcrewship version and crewship doctor print a banner if a
newer release is available. Suppress via env:
~/.crewship/cache/. Skips silently for version=dev (local builds).
Related
crewship doctor— full pre-flight diagnostic; uses the same update-check infrastructure.crewship start— boot flow that logs the same version string at INFO level.- Install — what each install path gives you.