Skip to content
Tech News
← Back to articles

Building a CLI for all of Cloudflare

read original get Cloudflare Workers CLI Tool → more articles
Why This Matters

Cloudflare is developing a unified CLI, called Wrangler, to provide comprehensive command-line access to all its products and APIs. This initiative aims to improve developer experience by enabling easier configuration, automation, and integration across Cloudflare's extensive service offerings. The early technical preview invites community feedback to refine and expand its capabilities, signaling a move towards more seamless and accessible cloud management tools for developers and agents alike.

Key Takeaways

6 min read

Cloudflare has a vast API surface. We have over 100 products, and nearly 3,000 HTTP API operations.

Increasingly, agents are the primary customer of our APIs. Developers bring their coding agents to build and deploy applications , agents , and platforms to Cloudflare, configure their account, and query our APIs for analytics and logs.

We want to make every Cloudflare product available in all of the ways agents need. For example, we now make Cloudflare’s entire API available in a single Code Mode MCP server that uses less than 1,000 tokens . There’s a lot more surface area to cover, though: CLI commands . Workers Bindings — including APIs for local development and testing. SDKs across multiple languages. Our configuration file . Terraform . Developer docs . API docs and OpenAPI schemas. Agent Skills .

Today, many of our products aren’t available across every one of these interfaces. This is particularly true of our CLI — Wrangler . Many Cloudflare products have no CLI commands in Wrangler. And agents love CLIs.

So we’ve been rebuilding Wrangler CLI, to make it the CLI for all of Cloudflare. It provides commands for all Cloudflare products, and lets you configure them together using infrastructure-as-code.

Today we’re sharing an early version of what the next version of Wrangler will look like as a technical preview. It’s very early, but we get the best feedback when we work in public.

You can try the Technical Preview today by running npx cf . Or you can install it globally by running npm install -g cf .

Right now, cf provides commands for just a small subset of Cloudflare products. We’re already testing a version of cf that supports the entirety of the Cloudflare API surface — and we will be intentionally reviewing and tuning the commands for each product, to have output that is ergonomic for both agents and humans. To be clear, this Technical Preview is just a small piece of the future Wrangler CLI. Over the coming months we will bring this together with the parts of Wrangler you know and love.

To build this in a way that keeps in sync with the rapid pace of product development at Cloudflare, we had to create a new system that allows us to generate commands, configuration, binding APIs, and more.

... continue reading