Cloudflare’s Unified CLI Revolution: Empowering Developers and AI Agents Across the Ecosystem
Cloudflare announces a massive overhaul of its Wrangler CLI to cover every product, introducing Local Explorer and a new schema system designed for both humans and AI agents.

Key Points
- Rebuilding Wrangler CLI to serve as the unified interface for all 100+ Cloudflare products.
- Launching a technical preview of the new `cf` tool designed for both humans and AI agents.
- Introducing 'Local Explorer' to easily introspect D1, R2, and KV data during local development.
- Implementing a new TypeScript-based schema system to automate code generation and ensure command consistency.
- Providing a local API endpoint at `/cdn-cgi/explorer/api` for AI agents to manage local resources.
In a strategic move that reflects a fundamental shift in the cloud computing landscape, Cloudflare has unveiled an ambitious vision to redefine how developers and machines interact with its vast platform. No longer just a Content Delivery Network (CDN) or a website firewall, Cloudflare has evolved into a technological giant boasting over 100 products and nearly 3,000 API operations. With this massive expansion, a new challenge has emerged: how can developers, and specifically AI agents, efficiently navigate this ever-growing sea of tools? The answer lies in the total rebuilding of the popular Wrangler CLI to become the unified interface for everything Cloudflare offers. According to the company, the goal is to make every product available across all the interfaces developers need—whether it’s CLI commands, Workers Bindings, language-specific SDKs, or configuration files like Terraform and Developer Docs. This transformation is not merely a technical update; it is a rewriting of the company’s philosophy on how to serve a digital world increasingly dominated by automation and artificial intelligence. A primary driver behind this change is the rapid ascent of AI agents. Today, human developers are no longer the sole users of APIs; developers are bringing their coding agents to build and deploy applications, configure accounts, and query analytics. These agents favor CLI interfaces because they provide a clear, repeatable structure. However, a significant gap existed: many Cloudflare products lacked comprehensive support in the existing Wrangler CLI. To bridge this gap, Cloudflare has launched a Technical Preview that can be tested via the command `npx cf` or installed globally using `npm install -g cf`. To build this new system in a way that keeps pace with rapid product development, Cloudflare had to invent a new code-generation pipeline from first principles. While the company previously relied on OpenAPI schemas to generate SDKs and Terraform providers, these schemas were insufficient for describing the complex interactions of an interactive CLI or Workers bindings that utilize RPC protocols. Consequently, Cloudflare introduced a new TypeScript-based schema. This acts as a "lingua franca" to define the full scope of APIs, commands, arguments, and context needed to generate any interface. This new system allows for the enforcement of strict consistency rules; for instance, commands will now consistently use `get` instead of a fragmented mix of `info`, `show`, and `get`. Alongside the CLI overhaul, Cloudflare released "Local Explorer" in open beta. Integrated into Wrangler and the Cloudflare Vite plugin, this tool allows developers to introspect the simulated resources their Workers use during local development. This includes D1 databases, R2 storage buckets, KV namespaces, Durable Objects, and Workflows. For years, Cloudflare has bet on fully local development via Miniflare, but it was often difficult for developers to see what data was stored locally without resorting to third-party tools or reverse-engineering the `.wrangler/state` directory. Now, with a simple keyboard shortcut (`e`), developers can open a local interface to see all bindings and associated data, making the development cycle far more interactive and transparent. The brilliance of Local Explorer is that it provides a mirror of the Cloudflare API that specifically modifies local data. This ensures that any command run remotely will work identically locally by simply passing a `--local` flag. This symmetry between local and remote environments minimizes bugs caused by behavioral differences and provides AI agents with precise context. Instead of an agent mistakenly modifying a production database when it should be working locally, the new interface provides explicit signaling and ergonomic output for both humans and machines. Cloudflare is now encouraging developers to join their Discord community to provide feedback, emphasizing that this is only the beginning of their journey to build the world’s most integrated "Connectivity Cloud."
The Era of AI Agents and the Need for Consistency
Cloudflare recognizes that the future belongs not just to human developers but to AI-driven coding agents. These agents require APIs and CLIs characterized by extreme consistency. If one command uses `get` and another uses `info` to retrieve the same type of data, it confuses the AI agent and leads to execution errors. Therefore, the new vision focuses on unifying all naming conventions and flags (like `--json` and `--force`) across the entire platform. By reducing the number of tokens required to interact with the platform (less than 1,000 tokens for the Code Mode MCP server), Cloudflare aims to make its ecosystem the most AI-friendly in the market. This approach ensures that agents can configure accounts, deploy applications, and manage infrastructure-as-code without constant human intervention, significantly accelerating innovation and technical growth.
Local Explorer: Transparency in Local Development
Local development is a cornerstone of the Cloudflare Workers philosophy, yet accessing locally stored data has always been a challenge. With the launch of Local Explorer, developers can now clearly see what is happening inside their D1 databases or R2 buckets stored on their machines. As soon as an app is run via Wrangler, a prompt appears to open the local explorer, eliminating the need to dig through complex system directories or use third-party SQLite viewers. This tool serves more than just humans; it opens new horizons for automation. By providing an OpenAPI specification for local resources, developers can point their AI agents to manage local data, verify schemas, seed test records, or even drop tables—all through simple prompts. This transforms the development process into an unprecedented interactive experience where the local environment perfectly mirrors the production cloud.
This article was drafted with AI assistance and editorially reviewed before publication. Sources are listed below.