cf docs search returns ranked documentation results
Introduced 2026-10-16 · score 0.98
HOW TO USE IT
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`.
cf docs search "<query>"url=$(cf docs search "<query>" | jq -r '.[0].url')
curl -H "Accept: text/markdown" "$url"WHY THIS HELPS
Find Cloudflare guidance while implementing or debugging code that uses a Cloudflare product.
REQUIREMENTS AND LIMITATIONS
- 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.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON