A command line interface for Buildkite.
Full documentation is available at buildkite.com/docs/platform/cli.
brew tap buildkite/buildkite && brew install buildkite/buildkite/bkOr download a binary from the releases page.
To update a standalone release-binary install later, run:
bk updateIf bk is managed by Homebrew or mise, bk update will tell you how to update
it with that tool instead.
bk auth loginStored credentials are selected per organization. When targeting another organization, authenticate it explicitly:
bk auth login --org other-orgLogging in also selects that organization in your user-wide configuration.
Repository configuration and BUILDKITE_ORGANIZATION_SLUG still take precedence.
To target an organization without changing your selection, use a qualified pipeline
or URL with build list or job list:
bk build list --pipeline other-org/my-pipeline
bk job list --pipeline https://buildkite.com/other-org/my-pipeline --build 123The CLI does not fall back to another organization's stored credentials. For
automation or a token with access to multiple organizations, supply
BUILDKITE_API_TOKEN explicitly. This environment token takes precedence over
stored credentials and is not replaced by stored OAuth credentials if a request
fails authentication.
We'd love to hear any feedback and questions you might have. Please file an issue on GitHub and let us know!
This repository uses mise to pin Go and the main local development tools.
git clone git@github.com:buildkite/cli.git
cd cli/
mise install
mise run build
mise run install
mise run install:global
mise run hooks
mise run format
mise run lint
mise run test
mise run generate
go run main.go --helpmise.toml pins the shared toolchain, including the release helpers used in
CI. The module itself remains compatible with Go 1.26.0 as declared in
go.mod.