Skip to content

banzaicloud/banzai-cli

This is a command-line interface for the Banzai Cloud Pipeline platform.

Installation

Use the following command to quickly install the CLI:

$ curl https://getpipeline.sh | sh

The script automatically chooses the best distribution package for your platform.

Available packages:

You can also select the installation method (one of auto, deb, rpm, brew, tar or go) explicitly:

$ curl https://getpipeline.sh | sh -s -- deb

On macOS, you can directly Homebrew:

$ brew install banzaicloud/tap/banzai-cli

Alternatively, fetch the source and compile it using go get:

$ go get github.com/banzaicloud/banzai-cli/cmd/banzai

Logging in

To use the command you will have to log in. You can either log in interactively using a web browser, or provide an API endpoint and a token manually.

For interactive login, just run banzai login, and follow the instructions given.

Use

See command reference in the official documentation.

Use Docker image

Logging in

$ docker run --rm -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli login --token <your-pipeline-token> -e https://try.pipeine.banzai.cloud/pipeline

Select organization

$ docker run --rm -ti -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli organization select

List clusters

$ docker run --rm -ti -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli cluster list

Run cluster shell

$ docker run --rm -ti -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli cluster shell