{
  "slug": "cf-docs-search-returns-ranked-documentation-results-b84ff18ca88f",
  "title": "cf docs search returns ranked documentation results",
  "tools": [
    "cf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-16T00:00:00.000Z",
  "announced_at": "2026-10-16T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When implementing or debugging code that uses a Cloudflare product, use an Internet connection to search the live docs with `cf docs search \"<query>\"`; it returns up to five ranked JSON results. To read a result as Markdown, select its URL with `jq` and request it with `curl` using `Accept: text/markdown`.",
    "examples": [
      "cf docs search \"<query>\"",
      "url=$(cf docs search \"<query>\" | jq -r '.[0].url')\ncurl -H \"Accept: text/markdown\" \"$url\""
    ],
    "gotchas": [
      "Version: 1.0.0-beta.16",
      "Requires npm install --global cf@latest; yarn global add cf@latest; pnpm add --global cf@latest; bun add --global cf@latest",
      "<query> (required): Natural-language description or question to search for, passed as one quoted argument.",
      "jq expression `.[0].url` (required): Selects the URL field of the first result.",
      "HTTP header `Accept: text/markdown` (required): Requests the selected documentation page as Markdown.",
      "Prerequisite: An Internet connection is required.",
      "Prerequisite: Install or update the CLI with `npm install --global cf@latest`.",
      "An Internet connection is required.",
      "Returns up to five ranked JSON results."
    ]
  },
  "why_it_matters": "Find Cloudflare guidance while implementing or debugging code that uses a Cloudflare product.",
  "sources": [
    "https://developers.cloudflare.com/changelog/post/2026-10-16-docs-search/"
  ],
  "rank": 0.98051,
  "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": "daily-20261016-12",
    "verdict_id": "daily-20261016-12:daily-20261016-12-c19be55ddc2f6d78-0:gate",
    "evidence_hash": "7a1449b052b2ad1a23fa2ad544588b3cea2ca67b738502181ac565d88c6b3cba"
  },
  "review": {
    "draft_hash": "ffc6b90be7867c258d3180814509bd8e3422ec8f2d70fc583ead48781816cb8e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-16T00:00:00.000Z",
    "decision": "daily-20261016-12:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
