mizu version command shows information about the installed Mizu CLI, including the version number, Go version, and build details. Use this command to verify your installation works or to include version info in bug reports.
Basic Usage
What Each Field Means
| Field | Description | Example |
|---|---|---|
version | The semantic version of the CLI | 0.1.0 |
go version | The Go version used to compile | go1.23.0 |
commit | Short Git commit hash | abc1234 |
built | When this version was built (UTC) | 2024-01-15T10:30:00Z |
Flags
| Flag | Description |
|---|---|
--json | Output as JSON |
-h, --help | Show help |
JSON Output
For scripts and automation, use--json:
When to Use This Command
Verify Installation
After installing the CLI, confirm it’s working:Check for Updates
Compare your version with the latest release:Include in Bug Reports
When reporting issues, include your version information:CI/CD Version Checks
Ensure a minimum version in build scripts:Development Builds
If you built from source without setting version flags, you’ll see:Setting Build Information
When building the CLI, you can embed version information using Go’s-ldflags:
- Release builds
- CI/CD pipelines
- Custom distribution
Variables
| Variable | Default |
|---|---|
cli.Version | dev |
cli.Commit | unknown |
cli.BuildTime | unknown |
Exit Codes
| Code | Description |
|---|---|
| 0 | Success (always) |