A CLI to work with Gitness
Intel CPU
curl -sL https://github.com/dewan-ahmed/gitness-cli/releases/latest/download/gitness-cli-darwin-amd64.tar.gz | tar zx
Apple silicon CPU
curl -sL https://github.com/dewan-ahmed/gitness-cli/releases/latest/download/gitness-cli-darwin-arm64.tar.gz | tar zx
Verify
./gitness-cli --help
go build -o gitness-cli ./gitness
Set token
export GITNESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5...
Example commands
./gitness-cli pipelines list --repo-ref project/repo
./gitness-cli pipeline list --repo-ref project/repo --pipeline-id example
./gitness-cli pipeline executions --repo-ref project/repo --pipeline-id example --format "Number: {{ .Number }} Event: {{ .Event }}"