Cligen is available for installation on MacOS, Linux, and Windows as a stand alone binary or built from source. The recommended installation method for macOS and linux is via Homebrew.

MacOS / Linux with Homebrew

Install the latest version of Cligen with Homebrew from the tap.

  brew install twinsnes/tap/cligen
  

MacOS / Linux / Windows with Binary Download

Download the latest release from the releases page and add it to your path.

From source

To build the binary from source, clone the repository, run go mod tidy to download the dependencies, and run the make build command.

  git clone git@github.com:TWinsnes/cligen.git
cd cligen
go mod tidy
make build
  

This will output the binary to dist/cligen, which can be copied to your path or called directly from the command line.