{
  "slug": "bk-cache-registry-commands-manage-cluster-cache-registries-57bd85fff382",
  "title": "bk cache registry commands manage cluster cache registries",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-29T06:56:44.000Z",
  "announced_at": "2026-09-29T06:56:44.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to manage a cluster cache registry, use `bk cache registry list|view|create|update|delete` with the cluster UUID and, for member commands, the registry UUID. Supply policy with `--policy-file`; use `-` for stdin, and use update clear flags to clear metadata or policy explicitly.",
    "examples": [
      "bk cache registry list <cluster-uuid> --limit 200",
      "bk cache registry create <cluster-uuid> --name \"<name>\" --policy-file <policy.yml>",
      "bk cache registry update <cluster-uuid> <registry-uuid> --clear-description --clear-policy"
    ],
    "gotchas": [
      "Version: v3.59.0",
      "<cluster-uuid> (required): Cluster UUID; the target cluster for list/create, or the registry's cluster for view/update/delete.",
      "<registry-uuid> (required): Registry UUID to view, update, or delete.",
      "--name (required): Registry name on create; new name on update. Renaming regenerates the slug.",
      "--policy-file: YAML or JSON policy file path, or `-` to read stdin. Policy input must be an object; the CLI normalizes it to JSON.",
      "--description: Registry description on create or new description on update.",
      "--emoji: Registry emoji on create or new emoji on update.",
      "--color: Registry color on create or new color on update.",
      "--clear-description: Clear the registry description.",
      "--clear-emoji: Clear the registry emoji.",
      "--clear-color: Clear the registry color.",
      "--clear-policy: Clear policy, denying all cache saves and restores.",
      "--limit: Maximum registries returned by list; default 100.",
      "--per-page: Registries per page in list; default 30.",
      "--output: Output format: `json`, `yaml`, or `text`.",
      "policy.save: Policy section defining cache save scopes.",
      "policy.restore: Policy section defining cache restore scopes.",
      "policy.rules: Policy rules controlling actions such as save and restore.",
      "Prerequisite: Configure `bk` with an API access token for the target organization.",
      "Prerequisite: Registry operations require permission to manage the cluster. The API documentation specifies `read_clusters` for listing/getting and `write_clusters` for create/update/delete; deletion also requires permission to destroy the registry.",
      "Policy input accepts YAML or JSON files, or stdin, and must have an object root.",
      "Deletion is confirmed as a destructive action."
    ]
  },
  "why_it_matters": "Manage cluster cache registries from a coding agent's terminal workflow.",
  "before": "Manage cache registries through the REST API or UI.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.59.0",
    "https://github.com/buildkite/cli/pull/1008",
    "https://buildkite.com/docs/platform/cli/reference/cache",
    "https://buildkite.com/docs/apis/rest-api/clusters/cache-registries",
    "https://buildkite.com/docs/platform/cli/configuration"
  ],
  "rank": 0.98026,
  "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-efe67c91234b99bc-1:gate",
    "evidence_hash": "b9c78de3695958295c8ba27d06f4f3c4716ea29e8928267f183e9fcfcfca1ea2"
  },
  "review": {
    "draft_hash": "f4134a962a98202820f88af5ca4649a7d5c29b9df074a89be91eb75488dcb11b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.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)."
  }
}
