This guide will help you install the Mizu CLI on your computer. Weâll cover everything from checking prerequisites to verifying your installation works. Even if youâve never installed a command-line tool before, youâll be able to follow along.Documentation Index
Fetch the complete documentation index at: https://docs.go-mizu.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing the Mizu CLI, you need Go installed on your computer.What is Go?
Go (also called Golang) is the programming language that Mizu is built with. The Mizu CLI is a Go program, so you need Go to install and run it.Check if Go is Installed
Open your terminal and run:Install Go
- macOS
- Linux
- Windows
Option 1: Homebrew (Recommended)Option 2: Download from golang.org
- Go to https://go.dev/dl/
- Download the macOS installer (.pkg file)
- Run the installer
Go Version Requirements: The Mizu CLI requires Go 1.22 or later. If you have an older version, please upgrade.
Install the Mizu CLI
Now youâre ready to install the Mizu CLI. The easiest way is usinggo install:
- Downloads the Mizu CLI source code
- Compiles it on your computer
- Installs the
mizubinary to your Go bin directory
Where is the Binary Installed?
Themizu binary is installed to $GOPATH/bin. You can find this location by running:
- macOS/Linux:
/Users/yourname/goor/home/yourname/go - Windows:
C:\Users\yourname\go
bin folder inside that directory.
Add Go Bin to Your PATH
For themizu command to work from anywhere, the Go bin directory must be in your PATH.
- macOS/Linux (Bash)
- macOS/Linux (Zsh)
- Windows
Add this line to your Then reload your shell:
~/.bashrc or ~/.bash_profile:Verify Installation
After installation, verify the CLI is working:Install from Source
If you want to build from source (for development or to get the latest unreleased changes):Build with Version Information
For production builds, you can embed version information:Updating the CLI
To update to the latest version:Shell Completion
You can set up tab completion for command names. This lets you press Tab to autocomplete commands.- Bash
- Zsh
Add to your
~/.bashrc:Troubleshooting
âcommand not found: mizuâ
This means your terminal canât find themizu binary. The most common cause is that Goâs bin directory isnât in your PATH.
Fix:
-
Check where Go installs binaries:
-
Check if the binary exists:
- If the binary exists but the command doesnât work, add Go bin to your PATH (see above).
-
After updating PATH, restart your terminal or run:
âgo: command not foundâ
Go is not installed or not in your PATH. Follow the Go installation instructions above.âpermission deniedâ
If you get permission errors: Option 1: Use sudo (not recommended for go install)Build Errors
If you get compilation errors when installing:-
Make sure you have Go 1.22 or later:
-
Clear Goâs module cache and try again:
Verify Go Environment
If youâre having trouble, check your Go environment:GOPATH: Where Go stores packages and binariesGOROOT: Where Go itself is installedGOBIN: Where binaries are installed (defaults to$GOPATH/bin)
Next Steps
Now that you have the CLI installed, youâre ready to create your first project:Create a Project
Use mizu new to scaffold your first application
Choose a Template
Learn about the different project templates