Cloudflare's cf CLI Is Built for Agents First
On September 28, 2026, Cloudflare put cf into open beta: a single command-line tool covering more than 3,000 operations across the public Cloudflare API, against roughly 280 commands in Wrangler today. The announcement calls it an "agentic CLI," and the label is structural rather than decorative — the tool's first design decision is that an AI agent reads it before a human does.
The problem: tooling lags the API
Every cloud platform lives this gap. The API grows across a hundred-plus products while the CLI is written by hand, so it covers what people touch daily and leaves the rest to raw HTTP calls. Inconsistency accumulates: one product names a command get, another names it info; a --force flag here goes by another name there; and documentation trails both.
For a human that is tolerable friction. For an agent it is a failure mode. An agent infers syntax from a learned pattern, and every exception to the pattern becomes a wrong command, then a retry, then a longer loop. Consistency stopped being a matter of taste and became a requirement of the interface.
What changed
The answer is not a more carefully hand-written tool — it is a tool that is not hand-written at all. cf commands are generated from the API definition through Forge, the generation pipeline Cloudflare announced the same day and released under Apache 2.0. From one definition, Forge produces SDKs, the CLI, documentation, the Terraform provider, and MCP servers.
Putting the rules at the schema layer makes consistency enforced rather than hoped for: command shape is uniform, flag names such as --json and --force are uniform, and coverage spans the whole API because generation does not get tired.
Discovery got a path of its own. cf cli search takes a plain-language description and returns the matching command from a small search index, instead of asking anyone to browse the docs for a hundred products. Configuration moved to a TypeScript cloudflare.config.ts file rather than TOML or JSONC, so editors and agents get completion and type checking on bindings and triggers directly. Usage guidance for agents ships through AGENTS.md files.
A practical example
npm install --global cf
# discover a command from a plain-language description
cf cli search "create a KV namespace"
# existing Wrangler project: migrate before building
cf migrate
cf dev
cf deployCaveats before migrating
- Status is open beta. The documentation itself warns that commands, configuration, and build output can change before the stable release, and a production repository deserves some patience here.
- Wrangler is not disappearing. Cloudflare committed to 18 months of support after the beta ends, plus a final major release pointing users and their agents at
cf. The path is clear, and its end is declared. - Workers built with esbuild or Python still delegate builds back to Wrangler, so the new tool does not retire the old one on those paths.
- The new configuration file means a migration step for every existing project — a real cost on a repository holding dozens of Workers.
- Most importantly, exposing 3,000 operations to an agent widens the surface of what can be run by mistake. Scoped credentials, and review of what the agent is about to execute, become part of the setup rather than an optional extra.
Takeaway
The news is not a new CLI. The news is that consistency is now a machine-enforced specification, because the primary consumer of the interface changed. Every team shipping an API or an internal tool faces the same question: can an agent guess your interface correctly, or does it require tribal knowledge that lives only in the head of whoever wrote it? An agent does not stand in for a developer — it multiplies one, and the more regular the interface, the larger that multiple.
Primary source: Introducing cf: the agentic CLI for the entire Cloudflare API, alongside Introducing Forge. For related context on standardizing agent tooling: Agent Plugins 1.0.