HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bk — Manage Buildkite builds, pipelines, and agents. More information: <https://github.com/buildkite/cli#

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbuildspipelinesbuildkiteandclimanagebk

Problem

How to use the bk command: Manage Buildkite builds, pipelines, and agents. More information: <https://github.com/buildkite/cli#usage>.

Solution

bk — Manage Buildkite builds, pipelines, and agents. More information: <https://github.com/buildkite/cli#usage>.

Configure the API token and organization:
bk configure


Select an organization to use:
bk use {{organization_slug}}


Initialize a pipeline.yaml file:
bk init


List all pipelines in the current organization:
bk pipeline list


Trigger a build for a pipeline:
bk build create {{pipeline_slug}}


View the status of a specific build:
bk build view {{build_number}}


List all agents in the current organization:
bk agent list


Display help:
bk {{[-h|--help]}}

Code Snippets

Configure the API token and organization

bk configure

Select an organization to use

bk use {{organization_slug}}

Initialize a `pipeline.yaml` file

bk init

List all pipelines in the current organization

bk pipeline list

Trigger a build for a pipeline

bk build create {{pipeline_slug}}

Context

tldr-pages: common/bk

Revisions (0)

No revisions yet.