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) |
Troubleshooting
âcommand not found: mizuâ
The CLI isnât installed or isnât in your PATH. See Installation.Version Shows âdevâ
Youâre running a development build. This is fine for testing but you may want to install a release version:Next Steps
Installation
Learn how to install or update the CLI
Create a Project
Start building with Mizu