Introducing cf: the agentic CLI for the entire Cloudflare API
- Source
- blog.cloudflare.com
- Date
Cloudflare says agents accounted for 48% of Wrangler usage, yet Wrangler exposes only about 280 commands, a fraction of the platform. The new cf CLI mirrors the whole Cloudflare API, returns JSON by default, and introduces a cloudflare.config.ts format for TypeScript configuration. For agents, that means infrastructure changes through one predictable command surface instead of hand-built API calls.
The company also open-sourced Forge, the pluggable pipeline that generates cf, its SDKs, API documentation and MCP servers from a single API definition. Forge runs in each team's CI, so client tooling regenerates as the API changes rather than drifting behind it.
The pattern is worth copying beyond Cloudflare: if agents consume your API, generating the CLI, SDK and MCP surface from one definition keeps them consistent and complete. Cloudflare shipped Vinext 1.0 and EmDash 1.0 the same day, but cf and Forge are the pieces with the broadest reach.

Context
Cloudflare's cf command-line tool addresses two problems for coding agents: finding an operation and reading its result. The open-beta announcement says cf covers more than 3,000 API operations, compared with roughly 280 in Wrangler, its earlier command-line tool. Its search command accepts a natural-language description and returns relevant commands, and JSON, which software can filter, is the default output. Cloudflare says it generates the commands with Forge, a pipeline that builds them from API descriptions, so coverage can expand without handcrafting each command. The design aims to let an find unfamiliar operations and filter their results as it works.
- Cloudflare says agents drove 48% of Wrangler use last week, up from about a quarter in March 2026, and used nearly twice as many distinct commands per day as human users.
- cf is generated from Cloudflare's OpenAPI schemas by a pipeline called Forge, which expands CLI coverage from Wrangler's roughly 280 operations to more than 3,000 API operations.
- JSON is cf's default output. A `cf cli search` command lets an agent describe a task in natural language and get matching commands from a small index, and cf points agents to it the first time they run --help.
- Configuration moves to a TypeScript file, cloudflare.config.ts. Cloudflare says some internal configs of over 5,000 lines shrank about 40% by building each environment from one shared base instead of copying env blocks.
- cf uses Vite by default and still delegates to Wrangler for Workers that need esbuild, and for Rust and Python Workers. Wrangler gets 18 months of maintenance after the open beta ends.
- 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.
Checking sign-in…
Loading comments…


