This is a command-line interface for the Banzai Cloud Pipeline platform.
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:
- Debian package
- RPM package
- binary tarballs for Linux and macOS.
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
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.
See command reference in the official documentation.
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