bhatti version
Print CLI and server versions; check for updates.
Synopsis
Section titled “Synopsis”bhatti version
Description
Section titled “Description”Prints:
- CLI version — embedded at build time via
-ldflags. Showsdevfor unreleased builds. - API endpoint — currently configured from flags, env, or config.
- Server version — read from the
X-Bhatti-Versionresponse header on a probe toGET /sandboxes. Skipped if unreachable or unauthenticated. - Update notice — if the CLI’s GitHub release check (cached for 1 hour at
~/.bhatti/.latest-version) finds a newer release, prints it.
The server-version probe also drives the X-Bhatti-Min-CLI warning that appears on every command — if your CLI is older than the server’s minimum, every command emits a one-line stderr warning.
Examples
Section titled “Examples”bhatti versionbhatti v1.10.0api: https://api.bhatti.shserver: v1.10.0# When an update is availablebhatti versionbhatti v1.9.0api: https://api.bhatti.shserver: v1.10.0
Update available: v1.9.0 → v1.10.0 (bhatti update)# Machine-readablebhatti version --json{ "version": "v1.10.0", "api": "https://api.bhatti.sh", "server_version": "v1.10.0", "latest_version": "v1.10.0"}Options
Section titled “Options”This command takes only global flags. See Global flags for --url, --token, --json, --timing, --data-dir.
See also
Section titled “See also”bhatti update— apply available updatesbhatti admin status— also prints version info on the server side