The Return of the CLI: Why Cloudflare decided to put everything on the command line

AI agents do not click GUIs. So can today’s developer tools — designed around mouse clicks — survive the AI era?

Introduction

In April 2026, Cloudflare made a quiet but symbolic announcement. With over 100 products and roughly 3,000 HTTP APIs, the company unveiled a single command-line interface (CLI) that spans the entire platform. The name is succinct: cf. Installation is one line — npx cf.

On the surface it looks like just another convenient developer tool. But read Cloudflare’s official blog post on the launch and the story shifts. They say: “AI agents are becoming the primary users of APIs.” In other words, the cf CLI is for human developers too, but fundamentally it is an interface designed so that AI agents can operate Cloudflare.

This declaration goes beyond a product launch. It pushes the question: after a decade in which GUIs and web dashboards became the default for developer tooling, why are major platforms returning to the CLI now? And the answer turns out to be much more structural than expected.

Is the CLI really coming back: a renaissance in numbers

Contrary to what’s perceived only as a vibe shift, the revival of CLI tools is already confirmed in the data.

According to Stack Overflow’s annual developer survey, the share of professional developers spending more than half of their daily work hours in the terminal grew from 62% in 2023 to 78% in 2025. That’s a 16-percentage-point jump in two years. This is not a taste shift of “more developers like CLIs.” It’s a structural signal that the development workflow itself is being reorganized around the terminal.

The more dramatic evidence comes from GitHub. According to data analyzed by OSS Insight, six major open-source repositories aimed at wrapping existing software in a CLI interface launched in Q1 2026 alone. Together, those six gained over 130,000 GitHub stars in just 90 days.

The specific numbers are even more striking.

RepositoryStarsPeriodStars/dayFork ratio
CLI-Anything25,21923 days1,096/day8.96%
agent-browser25,81279 days327/day6.06%
Google Workspace CLI23,21929 days801/day4.90%
opencli9,23617 days543/day8.37%

The fork ratios show that this isn’t just “starred out of interest.” CLI-Anything’s fork ratio is 8.96%. That means roughly 9 out of every 100 people who starred actually copied the repo. In open-source ecosystems, a fork ratio at this level signals “actually used or modified,” not “just looked.”

The timing is no accident. It exactly overlaps with late 2025, when AI coding agents began to be deployed in real engineering work. Once AI started “using” tools, what interface the tools expose suddenly mattered.

It isn’t only Cloudflare. In the same period, Google shipped a CLI spanning all of Google Workspace and gathered 23,000 stars in 29 days. In April 2026, Vercel CEO Guillermo Rauch signaled IPO readiness on the back of surging AI-agent-driven revenue, and the Vercel CLI already operates as a central axis of that agent integration. The entire developer tooling industry is moving in one direction.

Why now, why CLI: the fundamental problem of agents and interfaces

To understand this phenomenon, you first have to understand how AI agents “use” software.

Human developers log into a web dashboard, find a menu, click a button, fill a form. Human visual perception, contextual understanding, and mouse skill are all required to drive this process. GUIs are designed assuming those skills.

AI agents are different. Agents work by taking text in and emitting text out. “Seeing” the screen is not impossible (screenshot-based agents do exist), but it is slow, unstable, and expensive in tokens. The CLI, by contrast, runs exactly the way agents handle best: as text commands. A command like cf r2 bucket list --json can be executed by an agent directly, and the result returns as structured JSON. Easy to parse, easy to pass to the next step. Error handling is predictable too.

What Cloudflare CLI’s design principles tell us

Cloudflare CLI’s three design principles, read in this context, are not just UX guidelines but an agent-friendly design manifesto.

First, consistency. “If some commands use info and others use get, agents make mistakes because they expect consistency.” Cloudflare enforces this at the schema level. --json is supported in every command. The only force-execution flag is --force. This consistency is convenient for humans, but for agents it is essentially a prerequisite. You cannot build reliable automation on top of an unpredictable interface.

Second, local-remote symmetry. Cloudflare CLI flips the same command from operating against remote Cloudflare infrastructure to operating against a local dev environment with a single --local flag. If cf kv get mykey queries the remote KV store, cf kv get mykey --local queries the local dev server’s KV store. Because the command structure is identical, agents don’t need to learn separate interfaces for development versus production. The design lets agents own the development-test-deploy cycle on their own.

Third, single-source codegen. Perhaps the most interesting piece. Cloudflare built the CLI so that, from a single TypeScript-based schema, CLI commands, the API SDK, the Terraform provider, and the MCP (Model Context Protocol) server are all generated simultaneously. MCP is the standard protocol AI agents use to communicate with external services. In other words, building the CLI is the same as building the AI agent integration interface. Define the interface once, and you get both a CLI for human developers and an MCP server for agents.

Put the three principles together and it becomes clear that Cloudflare didn’t build the CLI merely for developer convenience. They are preemptively constructing an interface that assumes the primary users of their API going forward will be agents, not humans.

The GUI paradox: the easier it is, the harder it is to automate

Here a paradoxical truth emerges. GUIs rely on a great deal of implicit context (visual hierarchy, color coding, hover state, animated feedback) to be intuitive for humans. Those implicit contexts are exactly what makes automation hard. Just as a screen reader struggles to interpret a website, an AI agent controlling software through a GUI is fundamentally inefficient.

By contrast, the CLI’s text-based interface looks like a “constraint,” but that constraint is precisely the source of its automation-friendliness. When input is text and output is text, agents can slot into the pipeline. The reason shell scripts have survived for decades lives here, and AI agents are extending that ecosystem one level further.

Implications for developers and businesses

If this trend really accelerates, there are concrete implications for both developers and companies.

Developer perspective: Terminal proficiency is re-emerging as a core skill. From the mid-2010s onward, in the era of “everything in the GUI,” CLI proficiency was relatively de-emphasized; now the direction is likely to reverse. Developers working alongside AI agents in particular have to ask, from the start, whether the tools and systems they build are agent-friendly. “Can this feature be invoked via CLI?”, “Is the output JSON?”, “Are error codes consistent?” — these belong on the design checklist now.

Platform/SaaS perspective: Cloudflare’s move sends a clear signal to SaaS companies. However beautiful you make your web dashboard, any feature an AI agent can’t drive effectively does not exist in the agent era. Especially for B2D (Business to Developer) SaaS, the quality and consistency of the CLI and API interface is now a direct competitive variable. “Can the agent use it?” is becoming a new product evaluation criterion.

Infrastructure/cloud perspective: CLI-first design goes beyond agent support — it makes integration with automation pipelines easier in general. In a DevOps environment where CI/CD, IaC (Infrastructure as Code), and monitoring scripts are text-based by default, the CLI is already “automation-friendly.” AI agents extend that ecosystem even further. The common thread among tools where the CLI has become an industry standard — Terraform, Ansible, kubectl — is a clear I/O interface and structured error handling. That’s exactly the direction Cloudflare is heading.

That said, one practical caveat. CLI consistency and predictability being agent-friendly does not mean GUIs are obsolete. When you’re first exploring a complex configuration, when visual feedback matters, when non-developers on the team are using something — GUIs are still the better fit. The Cloudflare CLI itself ships with a web-UI-based exploration tool called “Local Explorer.” The trend is not a zero-sum “CLI vs. GUI” but “the CLI returns as a first-class citizen.”

Conclusion

The launch of Cloudflare CLI is not just a convenient developer tool. It is a case study in what the AI agent era demands from interface design.

The reality that the share of developers using the terminal grew from 62% to 78%, and that AI-agent-oriented CLI projects gathered 130,000 stars in 90 days, tells us this revival is not retro nostalgia. It is a structural shift produced by demand for automation, AI integration, and predictable interfaces.

Historically, the mainstream interface has always evolved to suit the most powerful user. In the 1970s and 80s, professional operators were the protagonists, so the CLI ruled. From the 90s on, mainstream consumers became the center of computing, and the GUI became the standard. And now, with AI agents joining the lineup of primary software consumers, the era of the CLI is coming again.

The question Cloudflare is putting on the table is, in the end, this: “Can your service be used by an AI agent?”

If your platform doesn’t have an answer ready, the day this question becomes increasingly uncomfortable to hear is not far off.


Sources: