
Cloudflare launches cf, an agentic CLI for its entire API
Cloudflare has opened the beta of cf, a command-line tool that covers more than 3,000 API operations, returns JSON by default and is configured with TypeScript. It targets coding agents.
Cloudflare has published the open beta of cf, a command-line interface that gives developers and coding agents access to the company's entire API. It installs globally with npm i -g cf and succeeds Wrangler for new projects.
From roughly 280 commands to more than 3,000 operations
Wrangler shipped commands for about 280 operations, while Cloudflare offers thousands of services. According to the company, agents accounted for a quarter of Wrangler usage in March 2026, and last week that share reached 48%. Agents also run almost twice as many distinct commands per day.
The new commands are generated by Forge, Cloudflare's unified API generation pipeline, directly from the OpenAPI schema behind the company's API documentation and SDKs. With cf, users can create a Worker, deploy it, monitor it, protect it with Cloudflare Access, buy a domain and put it behind the WAF.
JSON by default and a search command
In Wrangler, agents appended --json to every call and often filtered the result with jq, but not every command supported JSON, and the rest returned Unicode tables built for humans. In cf the default is reversed: JSON is the standard interface, pretty printed for people and condensed for agents.
Because navigating 3,000 routes is hard, Cloudflare added cf cli search. An agent describes in natural language what it needs, and a small index returns suitable commands based on their API descriptions and parameters.
TypeScript configuration and Vite
The new configuration format, cloudflare.config.ts, is based on TypeScript. Typed configuration helps agents: tools with language server protocol plugins, such as Claude Code and Codex, read the file's structure in context and suggest more accurately. Some of Cloudflare's internal Wrangler configuration files shrank by 40%, from more than 5,000 lines.
cf is built on Vite, which provides hot module replacement and Rust-based Rolldown builds. Cloudflare recommends the Vite Plugin, with the Vitest plugin, for building Workers.
Migrating from Wrangler
A Worker moves over with cf migrate, and projects that already build with Vite are converted to cloudflare.config.ts automatically. Workers that depend on Wrangler for esbuild, as well as Rust and Python Workers, are still built through Wrangler for now.
After the open beta ends, Cloudflare will ship a final major version of Wrangler that points users and agents to cf, and will keep maintaining Wrangler for 18 months after that. New projects start with cf init, while static sites deploy with cf deploy.
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.