Installation
The Pyahu CLI is a single binary, with no runtime. Releases are published on GitHub for macOS, Linux, and Windows (amd64 and arm64).
Prerequisites
Section titled “Prerequisites”The CLI orchestrates a local k3d cluster. You need:
- Docker or Podman running
- k3d
5.xon yourPATH
The CLI itself does not require kubectl or helm in the normal flow. The pyahu doctor
command checks these dependencies before bringing up the stack.
Installation script (macOS and Linux)
Section titled “Installation script (macOS and Linux)”The recommended approach. The script detects the OS and architecture, downloads the release from
GitHub, and installs it to /usr/local/bin:
curl -fsSL https://cli.pyahu.io/install.sh | shTo install to another directory (without sudo):
curl -fsSL https://cli.pyahu.io/install.sh | sh -s -- --bin-dir "$HOME/.local/bin"To pin a specific version:
curl -fsSL https://cli.pyahu.io/install.sh | sh -s -- --version v1.2.3Updating is just running the script again. Auditing it before running is simple too:
curl -fsSL https://cli.pyahu.io/install.sh shows the contents.
go install
Section titled “go install”If you already have Go 1.26+:
go install github.com/pyahu/cli/cmd/pyahu@latestThe binary goes to $(go env GOPATH)/bin. Make sure that directory is on your PATH.
Manual download (GitHub Releases)
Section titled “Manual download (GitHub Releases)”Download the archive for your platform from github.com/pyahu/cli/releases and extract the binary:
# Linux x86_64tar -xzf pyahu_Linux_x86_64.tar.gzsudo mv pyahu /usr/local/bin/
# macOS arm64tar -xzf pyahu_Darwin_arm64.tar.gzsudo mv pyahu /usr/local/bin/On Windows, extract the .zip and add pyahu.exe to your PATH.
Verify the installation
Section titled “Verify the installation”pyahu --versionpyahu doctorpyahu doctor reports Docker/Podman, k3d, local ports, and the presence of other local
clusters. It warns about conflicts, but does not fail just because another cluster exists.
Shell autocomplete
Section titled “Shell autocomplete”The CLI generates completion scripts for bash, zsh, fish, and powershell:
# zshpyahu completion zsh > "${fpath[1]}/_pyahu"
# bashpyahu completion bash | sudo tee /etc/bash_completion.d/pyahu > /dev/null
# fishpyahu completion fish > ~/.config/fish/completions/pyahu.fishReopen your shell to load the completion.
Next step
Section titled “Next step”pyahu init --preset platformpyahu upSee the full walkthrough in Overview.