{
  "slug": "bk-commands-accept-a-global-org-flag-950214133d3c",
  "title": "bk commands accept a global --org flag",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-08T22:57:04.000Z",
  "announced_at": "2026-10-08T22:57:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a `bk` command must use a different organization for one invocation, add `--org <organization-slug>` to the command or place it before the command. This selects that organization’s stored credentials and overrides environment and saved defaults; qualified targets must agree with it.",
    "examples": [
      "bk build list --org <organization-slug>",
      "bk build view <build-number> --pipeline <pipeline-slug> --org <organization-slug>",
      "bk --org <organization-slug> job list"
    ],
    "gotchas": [
      "Version: v3.61.1",
      "--org <organization-slug>: Selects an organization for this invocation, overrides `BUILDKITE_ORGANIZATION_SLUG` and repository/user defaults, and selects that organization's stored credentials. Qualified pipeline or build targets must agree with it.",
      "--pipeline <pipeline-slug>: Specifies the pipeline; provide it when the effective organization differs from the saved organization and a cached pipeline name would otherwise be used.",
      "--target org/name: For `pipeline copy`, specifies a destination organization and pipeline independently of `--org`, which selects the source organization.",
      "Prerequisite: Install the Buildkite CLI and authenticate/configure credentials for the target organization so its stored credentials are available.",
      "Prerequisite: An explicit `BUILDKITE_API_TOKEN` takes precedence over stored credentials.",
      "Explicit API environment tokens retain precedence.",
      "Qualified pipeline or build targets, including URLs, must agree with an explicit `--org`; disagreements error before execution.",
      "When the effective organization differs from the saved selection, cached pipeline names are ignored; provide `--pipeline` or allow repository discovery to find a pipeline in the target organization.",
      "Repository pipeline discoveries made with `--org` or `BUILDKITE_ORGANIZATION_SLUG` are not cached.",
      "For `pipeline copy`, `--org` selects the source organization; `--target org/name` can select a different destination.",
      "Authentication and configuration commands retain their existing credential or selection changes."
    ]
  },
  "why_it_matters": "Run a `bk` command against a different Buildkite organization while preserving saved organization and pipeline defaults.",
  "before": "Build list and view relied on the selected organization; multi-organization use required changing the selected organization or configuration.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.61.1",
    "https://github.com/buildkite/cli/pull/1024",
    "https://github.com/buildkite/cli/blob/v3.61.1/README.md"
  ],
  "rank": 0.98059,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-e9617051776aa00e-0:gate",
    "evidence_hash": "692a31a5f66e0c122781cc8c92caeb3325ccadb7e21ba1946aff43778b9c378c"
  },
  "review": {
    "draft_hash": "ae33177900e3039a0f55edf5cd41af5dd2363a24faa6f63c783a0cbb452af131",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-08T22:57:04.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.81 (>= 0.6 needed)."
  }
}
