Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Buildkite CLI

$ bk Official Med Risk
Buildkite · Code & DevOps · MIT · macos / linux / windows

Official command-line client (bk) for inspecting Buildkite pipelines, builds, jobs, agents, and artifacts, plus triggering new builds. Supports -o json structured output, bk api raw REST/GraphQL access, and BUILDKITE_API_TOKEN headless auth.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install buildkite/buildkite/bk
CLI vs MCP Decision CLI Preferred vs MCP

Prefer bk (-o json and bk api) over heavier Buildkite MCP wrappers for inspecting CI builds, failed job logs, and pipeline metadata.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports -o json, bk api escape hatch, and BUILDKITE_API_TOKEN headless auth across core pipeline and build commands.

  • bk build list -o json and bk build view -o json return structured JSON
  • bk api exposes full REST/GraphQL endpoints
Trust & Safety 21 / 25

Supports scoped BUILDKITE_API_TOKEN and clean separation of read commands from bk build new / cancel.

  • Scoped BUILDKITE_API_TOKEN permissions
Setup & Portability 14 / 15

Single static Go binary available via Homebrew tap and GitHub Releases across macOS, Linux, and Windows.

  • Fast standalone Go binary
Utility & Efficiency 13 / 15

Covers builds, pipelines, artifacts, agents, and raw bk api cleanly.

  • End-to-end Buildkite build triage from terminal
Maintenance & Lineage 9 / 10

Official Buildkite CLI (buildkite/cli) actively maintained under MIT license.

  • First-party buildkite/cli repository
Docs & Verifiability 8 / 10

Clear documentation at buildkite.com/docs/apis/cli and subcommand --help.

  • Official reference at buildkite.com/docs/apis/cli

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Accepts BUILDKITE_API_TOKEN and BUILDKITE_ORGANIZATION_SLUG env vars or stores organization profiles in ~/.config/bk.yaml.

Side Effects
Read-Only Remote Write
Cost & Quotas

MIT open-source Go binary; Buildkite build minutes/agents depend on your Buildkite plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Buildkite CLI (bk) Agent Rules
- Pass `-o json` and `-p <pipeline>` explicitly on `bk build` commands.
- Set `BUILDKITE_API_TOKEN` and `BUILDKITE_ORGANIZATION_SLUG` in headless shells.
- Confirm before triggering `bk build new` on production/main branches or cancelling active builds.

Agent-Ready Command Recipes

Safe Read-Only Queries

List recent builds as JSON
bk build list -p my-pipeline -o json

Returns recent Buildkite builds and states in clean JSON format.

Inspect build details and jobs as JSON
bk build view 42 -p my-pipeline -o json

Outputs full build metadata and job statuses as JSON for automated CI triage.

Controlled Writes & Previews

Trigger a build on a feature branch
bk build new -p my-pipeline -b feat/fix-tests -m "Agent CI check" -o json

Creates a Buildkite build non-interactively with explicit pipeline, branch, and message flags.

Strengths for Agents

  • + Consistent -o json output plus bk api covers both common and advanced Buildkite queries.
  • + Clean BUILDKITE_API_TOKEN and BUILDKITE_ORGANIZATION_SLUG env-var configuration.
  • + Fast single Go binary with zero runtime dependencies.

Caveats & Pitfalls

  • ! Some subcommands require passing -p <pipeline> or -o json explicitly to avoid interactive selection.
  • ! Smaller ecosystem footprint than gh or glab.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI