Vibeleaderboard
← All Intel
Intel / article

Cloudflare's cf CLI covers the whole API and opens up Forge

Source
blog.cloudflare.com
Author
Cloudflare
Date

Context

Cloudflare built cf, a new command-line tool now in open beta, because AI agents now account for nearly half the use of its old one. The company says agents accounted for a quarter of the use of Wrangler, its existing developer CLI, in March 2026, up from single-digit percentages a year earlier, and reached 48% in the week before launch. Agents also use almost twice as many distinct commands per day as other users. Wrangler, though, has commands for only around 280 operations, while Cloudflare offers thousands.

Rather than hand-write more commands, Cloudflare generates cf from the OpenAPI schema that already describes its API and feeds its documentation and SDKs. The generator is Forge, a pipeline Cloudflare released as open source the same day. That takes cf from Wrangler's roughly 280 commands, which each product team had designed in its own style, to more than 3,000 operations covering the entire Cloudflare API. One tool can now set up and deploy a Worker, monitor it, protect it with Cloudflare Access, buy a domain and put Cloudflare's web application firewall in front of it.

With that many commands, the design work shifts to helping an find and read them. cf returns JSON by default, where many Wrangler commands printed tables meant for people and agents had to add a JSON flag and filter the result. A cf cli search command takes a plain-language request and returns matching commands from a small index, and cf tells an agent about it the first time it asks for help. Configuration moves to cloudflare.config.ts, a TypeScript file whose types let editors and coding agents that use language-server plugins, such as Claude Code and Codex, check and autocomplete settings. Cloudflare says some of its internal Wrangler configurations of more than 5,000 lines shrank by 40% when rewritten this way.

cf uses Vite by default, and cf migrate converts Workers that already build with Vite; it keeps handing builds to Wrangler for JavaScript Workers that still need esbuild and for Rust and Python Workers. When the beta ends, Cloudflare plans a final major Wrangler release that points users to cf, followed by 18 months of maintenance support for Wrangler, which sets the window teams have to move.

Terms in this piece · Glossary
  • AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
Read the source blog.cloudflare.com
More from Cloudflare
Recommended reads
Comments

Checking sign-in…

Loading comments…