Skip to content

Install

Installation

Release Binaries

The easiest way of installing Apisense as of now is downloading the binary for your system on our GitHub release page

Go install

You can install the binary with go install by running the following command in your shell

Terminal window
go install github.com/buonotti/apisense/v2@latest

This command will install the latest available version to "$GOPATH"/bin. To know where go stores its files run the following command

Terminal window
go env GOPATH

Build from source

You can also build the project from source. To do that first clone the repository then run the go build command to produce the apisense executable. You can then also run go install to install the binary to "$GOPATH/bin"

Terminal window
git clone https://github.com/buonotti/apisense
cd apisense
go build
go install

Optionally you can also achieve the same by running make

To install the binary to $GOPATH/bin run

Terminal window
make

Or to just build the binary run

Terminal window
make build

If you want to regenerate the OpenApi spec run swag init in the root of the project