Install

Packages

1
zig fetch --save=zigcli https://github.com/jiacai2050/zigcli/archive/refs/tags/${TAG}.zip

The latest tag can be found on release page.

Then in your build.zig, import the module like this:

1
2
3
4
5
const zigcli = b.dependency("zigcli", .{});

// Currently zigcli provide two packages.
exe.root_module.addImport("simargs", zigcli.module("simargs"));
exe.root_module.addImport("pretty-table", zigcli.module("pretty-table"));

CLI Programs

The latest pre-built binaries are available on the release page or you can build it from source.

1
git clone https://github.com/jiacai2050/zigcli.git

Then build with zig 0.14.0

1
make build
Last modified March 9, 2025: bump 0.2.0 (737e03c)