An earlier version of this material was published in the Rekor chapter of the Linux Foundation Sigstore course.
Follow this tutorial for an overview of how to install rekor-cli.
To install the Rekor command line interface (rekor-cli) with Go, you will need Go version 1.16 or greater. For Go installation instructions, see the official Go documentation. If you have Go installed already, you can check your Go version via this command.
If Go is installed, you’ll receive output similar to the following.
go version go1.13.8 linux/amd64
You will also need to set your $GOPATH, the location of your Go workspace.
export GOPATH=$(go env GOPATH)
You can then install rekor-cli:
go install -v github.com/sigstore/rekor/cmd/rekor-cli@latest
Check that the installation of rekor-cli was successful using the following command:
You should receive output similar to that of below:
Now that you have the Rekor CLI tool successfully installed, you can start working with it.