Skip to main content
The 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

Output:

What Each Field Means

Flags

JSON Output

For scripts and automation, use --json:
Output:

When to Use This Command

Verify Installation

After installing the CLI, confirm it’s working:
If you see version information, the CLI is installed correctly.

Check for Updates

Compare your version with the latest release:

Include in Bug Reports

When reporting issues, include your version information:
Share this file with your bug report so maintainers know your exact setup.

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:
This is normal for local development builds.

Setting Build Information

When building the CLI, you can embed version information using Go’s -ldflags:
This is useful for:
  • Release builds
  • CI/CD pipelines
  • Custom distribution

Variables

Exit Codes

The version command always succeeds if the CLI is running.

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