cd /news/developer-tools/cloudflare-introduces-cli-for-ai-age… · home › topics › developer-tools › article
[ARTICLE · art-145829] src=infoq.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Cloudflare Introduces CLI for AI Agents, Sunsetting Wrangler

Cloudflare launched the open beta of cf, an open-source, agent-focused command-line interface written in TypeScript that covers more than 3000 API operations versus roughly 280 functions in Wrangler, and plans to deprecate Wrangler after the beta ends with a final major version and 18 months of maintenance support. Cloudflare senior product manager Matt Taylor and senior systems engineer Samuel Macleod said the new CLI was needed because Wrangler's ~280 command paths had inconsistent terminology across product teams, and cf generates commands from Cloudflare's OpenAPI schemas via its Forge pipeline, defaults to JSON output, and makes Vite the default development environment. Community reaction on Hacker News focused on the TypeScript choice, with user slowin arguing CLIs should be written in a compiled language to avoid forcing users to manage dependencies.

by read2 min views1 publishedOct 6, 2026
Cloudflare Introduces CLI for AI Agents, Sunsetting Wrangler
Image: source

Cloudflare recently launched the open beta of cf, a new open-source, agent-focused command-line interface for interacting with Cloudflare services through a unified CLI. Written in TypeScript, it provides structured output and command discovery to make Cloudflare’s APIs easier for both developers and AI agents.

The hyperscaler argues that introducing a new CLI avoids conflicts with LLMs’ learned behavior around Wrangler, allowing cf to adopt agent-focused design changes without the compatibility constraints of an established tool. Matt Taylor, senior product manager at Cloudflare, and Samuel Macleod, senior systems engineer at Cloudflare, explain why a new CLI was needed:

Wrangler was hand-built with each product team contributing and taking their own approach to their command developer experience. Enforcing patterns across teams was virtually impossible, even across our ~280 command paths. We had inconsistent terminology across d1 info, hyperdrive get, workflows describe as each team came up with their own practices at different times.

Released under either the Apache License 2.0 or MIT license, the cf CLIcloudflare.config.ts configuration format. It also makes Vite the default development environment, providing a consistent local development experience and plugin support.

Using Cloudflare’s OpenAPI schemas as the source, cf can cover more than 3000 API operations, compared with roughly 280 functions built into Wrangler. Taylor and Macleod add: We wanted to both standardize what we had and make a massive expansion, all at once. Forge — Cloudflare’s new unified API generation pipeline — enabled us to do this, building on the idea of generating our CLI commands directly from the API schema that powers our API documentation and SDK generation.

In a popular Hacker News thread, community reaction has focused in particular on the choice of TypeScript for a CLI, with discussion around startup time, portability, and dependency management. User slowin comments:

I don't understand why this is written in TypeScript. This is a great example of how agents can write code (I'm sure they wrote cf), yet having fundamental computer science knowledge is still critical. Do not force your users to manage the dependencies of your CLI. Do write your CLI in a compiled language.

Cloudflare argues instead that TypeScript makes configuration easier for both humans and agents by providing type safety and LSP support, enabling agents to understand and modify configurations more accurately. The authors contrast this with TOML and JSONC, where schema information is less accessible to agents, and say programmatic configuration can also reduce configuration duplication. Ashish Ganda notes on LinkedIn:

Cloudflare's new cf CLI outputs JSON by default. Not a table. You have to ask for the table (...) Tables are for eyes. JSON is for parsers.

Cloudflare makes JSON the default output format, allowing agents to filter and transform the output into the format required by human users while avoiding the table output used by default in Wrangler. The company plans to deprecate Wrangler after the cf open beta ends, release a final major Wrangler version directing users to cf, and provide 18 months of maintenance support to allow migration.

── more in #developer-tools 4 stories · sorted by recency
── more on @cloudflare 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cloudflare-introduce…] indexed:0 read:2min 2026-10-06 · —