/gitness-cli

A CLI to work with Gitness

Primary LanguageGoApache License 2.0Apache-2.0

gitness-cli

A CLI to work with Gitness

Install on Mac

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

Build

go build -o gitness-cli ./gitness

Run

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 }}"