Installation

From source

Campaigns as code start with zig 0.16.0 or newer; see the flake dev shell for the pinned toolchain.

zig build

To build and install the binary under ~/.local:

zig build --prefix ~/.local

campi-cli is then available as ~/.local/bin/campi-cli.

Nix

Use campi-cli as a flake input:

{
  inputs.campi-cli.url = "github:nooneknowspeter/campi-cli";

  outputs = { campi-cli, ... }: {
    # campi-cli.packages.${system}.default is the campi-cli package
  };
}

In a checkout of this repository, build, run, and profile install the package:

nix build .#campi-cli
nix run . -- version