Cloudflare 推出了全新的 AI 代理友好型 CLI 工具 'cf',它超越了现有工具 Wrangler 的局限,能够控制所有 3,000 多个 API。
试想一下:你早上醒来,对人工智能 (AI) 代理说:“帮我设置一下今天的网站安全策略,部署一个新的 Worker(无服务器应用程序),然后进行监控。” 以前,开发人员需要手动输入几十个命令才能完成这些复杂的工作,而现在,AI 已经可以直接处理这些任务了。
| Cloudflare 最近为了顺应这个“代理时代”,公开了一款全新的命令行工具 (CLI) —— ‘cf’。这不仅是一个工具的更迭,更是一个标志性事件,预示着我们处理技术的方式将发生根本性变革。 [Introducing cf: the agentic CLI for the entire Cloudflare API | Cloudflare Blog](https://blog.cloudflare.com/cloudflare-cf-cli-launch/) |
为什么这很重要? (Why It Matters)
我们平时使用的智能手机应用或网站背后,需要大量的服务器和配置支撑,这被称为云技术。过去,开发人员一直使用名为 ‘Wrangler’ 的命令行工具来更改这些云配置。但现在情况完全变了。
数据显示,上周 Cloudflare 的 API 调用量中,竟然有 48% 来自 AI 代理,而非人类。 Cloudflare launches cf, an agentic CLI covering its entire … 而仅仅在一年前,这一比例还不到个位数。现在,AI 已经成为 Web 基础设施的主要“操盘手”。 Cloudflare launches cf, an agentic CLI covering its entire … Cloudflare 制作新工具的原因很简单:必须为 AI 提供一个更智能、更便捷的工作环境。
简单解释 (The Explainer)
‘cf’ 是一款旨在一次性处理 Cloudflare 几乎所有功能的工具。
简单打个比方,如果之前的工具 Wrangler 是专门烹饪特定菜肴的“小型厨具箱”,那么 ‘cf’ 就好比 Cloudflare 这家大饭店里“存放所有食材和工具的大型厨房系统”。现在,AI 可以更自由地在这个巨大的厨房里烹饪想要的菜肴。
| 具体融入了什么技术?Cloudflare 开源了一项名为 ‘Forge’ 的技术。 [Introducing cf: the agentic CLI for the entire Cloudflare API | Cloudflare Blog](https://blog.cloudflare.com/cloudflare-cf-cli-launch/) 它就像一个“自动化厨师制造机”。它能够读取复杂的 API(机器之间通信的规则)信息,即 OpenAPI 架构,然后自动创建所需的命令。 [Introducing cf: the agentic CLI for the entire Cloudflare API | Noise](https://noise.getoto.net/2026/09/28/introducing-cf-the-agentic-cli-for-the-entire-cloudflare-api/) |
| 得益于此,支持的功能从现有 Wrangler 的约 280 个飞跃式增加到了 3,000 个以上。 [Introducing cf: the agentic CLI for the entire Cloudflare API | Noise](https://noise.getoto.net/2026/09/28/introducing-cf-the-agentic-cli-for-the-entire-cloudflare-api/) 放弃了人类易读的表格 (Table),改用机器易于理解和处理的 JSON 格式作为默认值,这也是专门为 AI 考虑的改进。 [Introducing cf: the agentic CLI for the entire Cloudflare API | daily.dev](https://daily.dev/posts/introducing-cf-the-agentic-cli-for-the-entire-cloudflare-api-2x4miixan) |
现状 (Where We Stand)
目前 ‘cf’ 以开放测试版或技术预览版的形式提供,任何人都可以试用。 Cloudflare Agent: Day 2 - by Aaron Lee Cloudflare launches cf, an agentic CLI covering its entire …
不过,该工具并非为人类盯着屏幕点击鼠标而设计,而是专为 AI 通过命令行直接控制系统而构建。因此,相比普通用户,它将首先让直接开发或运营 AI 自动化解决方案的技术专家受益。
未来展望 (What’s Next)
‘cf’ 的出现预示着未来会有更多的 IT 企业竞相推出专为 AI 代理设计的接口。
| 未来的开发人员将不再只是单纯编写代码的人,而是变成指示 AI 如何执行任务的“AI 指挥家”。随着能自由操控 3,000 多个 API 的 AI 让我们的数字环境变得更快、更安全,’cf’ 正为这个新世界敞开大门。 [Introducing cf: the agentic CLI for the entire Cloudflare API | Cloudflare Blog](https://blog.cloudflare.com/cloudflare-cf-cli-launch/) |
参考资料
-
[Introducing cf: the agentic CLI for the entire Cloudflare API Cloudflare Blog](https://blog.cloudflare.com/cloudflare-cf-cli-launch/) -
[Introducing cf: the agentic CLI for the entire Cloudflare API Noise](https://noise.getoto.net/2026/09/28/introducing-cf-the-agentic-cli-for-the-entire-cloudflare-api/) -
[Introducing cf: the agentic CLI for the entire Cloudflare API daily.dev](https://daily.dev/posts/introducing-cf-the-agentic-cli-for-the-entire-cloudflare-api-2x4miixan) -
[Building a CLI for all of Cloudflare Cloudflare Blog](https://blog.cloudflare.com/cf-cli-local-explorer/) - Cloudflare’s cf CLI: Agentic Design Patterns for Command-Line Tools - DEV Community
-
[Cloudflare CLI for AI Agents Composio](https://composio.dev/toolkits/cloudflare/framework/cli) - r/CloudFlare on Reddit: Building a CLI for all of Cloudflare
- Cloudflare Agent: Day 2 - by Aaron Lee
- r/SoftwareEngineering on Reddit: Building a CLI for all of Cloudflare
- Cloudflare launches cf, an agentic CLI covering its entire …
-
[Cf: The Agentic CLI for the Cloudflare API Hacker News](https://news.ycombinator.com/item?id=49879577) - Introducing cf: the agentic CLI for the entire Cloudflare API …
- Cloudflare overhauls its Wrangler CLI because its primary …
- 更好的图形用户界面
- 集成超过 3,000 个 API 并针对 AI 代理进行了优化
- 简化了用户账户管理
- 由人工手动编写所有命令
- 通过 Forge SDK 生成器从 OpenAPI 架构自动生成
- 通过外部开源社区的贡献制作
- HTML 表格
- JSON
- 文本报告