Install
Get zcli running.
Pick the install script for the CLI, or add zcli as a package dependency to start building.
Install script
Downloads the latest release binary for your platform and drops it in your install dir.
$ curl -fsSL https://zcli.sh/install.sh | sh
Requires curl. The script reads the latest release from GitHub, verifies the checksum when available, and makes the binary executable.
Add as a Zig package
The usual path: add zcli to build.zig.zon and import the module in build.zig.
.dependencies = .{
.zcli = .{
.url = "https://github.com/ryanhair/zcli/archive/refs/heads/main.tar.gz",
.hash = "...", // zig build prints the correct hash
},
},
Then follow steps 2 & 3 in the docs to wire up zcli.generate.
Build from source
Clone the repo and build with Zig directly.
$ git clone https://github.com/ryanhair/zcli.git $ cd zcli && zig build
Built artifacts land in zig-out/bin/. Requires Zig 0.16.0+.
Verify the install
$ myapp --version myapp 0.1.0 · built with zcli v0.17.0
Requires
Zig 0.16.0 or newer
License
MIT — © 2025 Ryan Hair
Latest
v0.17.0