News Developer Tools

Cloudflare Launches cf, an Agentic CLI for Its Full API

Cloudflare's new cf CLI covers over 3,000 API operations, replacing Wrangler's narrower command set for AI agents.

Cloudflare released cf, a new command-line tool that lets AI agents control its entire API, covering more than 3,000 operations. Cloudflare says the tool replaces the narrower reach of its existing CLI, Wrangler, which supported around 280 command paths built up piecemeal by different product teams over time.

Cloudflare says agent activity on Wrangler jumped from single-digit percentages of total use a year ago to 48% last week, with agents running nearly twice as many distinct commands per day as human users. That shift pushed the company to standardize command naming and structure, which had varied across products, and to rebuild the CLI to close the gap between what agents could do and what Cloudflare's full platform actually offers.

The new tool relies on Forge, an internal API-generation pipeline Cloudflare has open-sourced, which builds CLI commands directly from the OpenAPI schemas that already power Cloudflare's documentation and SDK output. cf defaults to JSON output, formatted for readability by people and condensed for agents to save context space, and introduces a TypeScript-based configuration file, cloudflare.config.ts, starting with Workers. The tool also adds Vite as the default local development server. Cloudflare says cf is available now in open beta and can be installed globally with a single npm command.

Source: Introducing cf: the agentic CLI for the entire Cloudflare API | Cloudflare Blog.