tracks version
Display version, commit, and build information.
Usage
tracks version [flags]
Description
Shows Tracks version, git commit hash, and build timestamp.
Examples
Console output
$ tracks version
Tracks v0.1.0
Commit: abc123def
Built: 2025-10-24T08:00:00Z
JSON output
$ tracks --json version
{
"title": "Tracks v0.1.0",
"sections": [
{
"title": "",
"body": "Commit: abc123def\nBuilt: 2025-10-24T08:00:00Z"
}
]
}
Quiet output
$ tracks -q version
v0.1.0
Verbose output
$ tracks -v version
Tracks CLI v0.1.0
Git Commit: abc123def456
Build Date: 2025-10-24T08:00:00Z
Go Version: go1.25.5
Platform: linux/amd64
Flags
Supports all global flags.
Scripting
Extract version for scripts:
# Get just the version
version=$(tracks -q version)
# Parse JSON output
version_json=$(tracks --json version)
version=$(echo "$version_json" | jq -r '.title | split(" ")[1]')
Shorthand
# --version flag shows same output
tracks --version
See Also
- Commands Reference - All available commands
- Output Modes - JSON and console output
- tracks help - Get help on any command