跳到主内容
@wquguru
精选85Cloudflare Workers(Changelog)AI 编程与模型

Cloudflare CLI v1.0.0-beta.16:新增 docs search

Workers, Cloudflare CLI - Search Cloudflare documentation with the Cloudflare CLI

原文
发到 X
推荐理由

CLI 命令命名规范发生破坏性变更,自动化脚本和依赖特定参数名的 Agent 必须适配 kebab-case 格式,建议立即检查并升级。

Cloudflare CLI 1.0.0-beta.16 includes cf docs search, so you and your coding agent can find Cloudflare documentation without leaving the terminal. Search for guides, tutorials, and examples across Cloudflare products.

Cloudflare CLI 1.0.0-beta.16 包含 cf docs search 功能,因此你和你的编码代理可以在不离开终端的情况下查找 Cloudflare 文档。搜索涵盖所有 Cloudflare 产品的指南、教程和示例。

To install or update to the latest release:

安装或更新到最新版本:

npmyarnpnpmbun

npm yarn pnpm bun

代码 · 1 行
npm install --global cf@latest
代码 · 1 行
yarn global add cf@latest
代码 · 1 行
pnpm add --global cf@latest
代码 · 1 行
bun add --global cf@latest

Describe what you want to do, or ask a question:

描述你想执行的操作,或提出问题:

代码 · 3 行
cf docs search "proxy a DNS record"
cf docs search "rate limit requests with WAF"
cf docs search "schedule a worker"

The command searches live Cloudflare documentation and returns up to five ranked JSON results. Each result includes a title, description, and documentation URL. An Internet connection is required.

该命令会搜索实时的 Cloudflare 文档,并返回最多五个按相关性排序的 JSON 结果。每个结果均包含标题、描述和文档 URL。需要互联网连接。

Agents can parse the results and fetch a complete page as Markdown. For example, use jq to select the first result, then request its URL with the Accept: text/markdown header:

代理可以解析这些结果并以 Markdown 格式获取完整页面。例如,使用 jq 选择第一个结果,然后通过 Accept: text/markdown 标头请求其 URL:

代码 · 2 行
url=$(cf docs search "proxy a DNS record" | jq -r '.[0].url')
curl -H "Accept: text/markdown" "$url"

This release also standardizes generated command names to kebab-case. For example, cf accounts billing getCredits becomes cf accounts billing get-credits. For the full list of breaking command and flag changes, refer to the Cloudflare CLI release notes ↗︎.

此版本还将生成的命令名称统一为 kebab-case(短横线命名法)。例如,cf accounts billing getCredits 变为 cf accounts billing get-credits。有关命令和标志更改的完整列表,请参阅 Cloudflare CLI 发行说明 ↗︎。

For more information, refer to Find Cloudflare documentation with a coding agent.

更多信息,请参阅使用编码代理查找 Cloudflare 文档。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件