2026-11-26 15:47 UTC

Cloudflare launches agent-focused CLI covering 3,000+ API operations

state: watchingheat: mediumuncertainty: mediumrelevance: highagent-harnesses ai-infrastructure developer-toolsCloudflareMatt "TK" TaylorSamuel Macleod

What is this?

Cloudflare announced cf, an open-beta CLI intended to expose more than 3,000 Cloudflare API operations, compared with about 280 in Wrangler. The company says agents made up 48% of Wrangler usage the week before the September 28, 2026 announcement, and describes cf’s JSON-default output, natural-language command search, and typed TypeScript configuration as agent-oriented features. Wrangler migration and broader adoption are not yet established; the claim that cf becomes a standard interface is a hypothesis, not a reported outcome.

Why it matters

Cloudflare’s open-beta cf CLI is a practical attempt to make a large cloud API easier for coding agents to discover and use: it advertises more than 3,000 operations, with JSON output by default, natural-language command search, and typed configuration. If these features work reliably, they could reduce friction when agents manage Cloudflare services and offer a pattern other infrastructure providers may follow. The launch is evidence of a product direction, not of broad adoption or industry standardization; Cloudflare’s usage figures are company-reported.

Current assessment

Cloudflare announced cf on September 28, 2026 as an open-beta, agent-oriented CLI intended to cover more than 3,000 Cloudflare API operations, versus roughly 280 command paths in Wrangler. Cloudflare says agents accounted for 25% of Wrangler use in March 2026, up from single-digit percentages a year earlier, and 48% in the week before launch; it also says agents use nearly twice as many distinct commands per day as other users. These are company-reported figures, with no independent validation in the supplied evidence. The announced features include JSON-by-default output, natural-language command discovery through `cf cli search`, a TypeScript-based `cloudflare.config.ts`, and Vite as the default development path. Cloudflare offers `cf migrate`, says it will continue maintaining Wrangler for 18 months after the beta ends, and describes the CLI as open source. This is a meaningful infrastructure-tooling bet on agent-mediated development, but the supplied sources do not establish reliability at the full API scope, actual migration or adoption, or imitation by competitors. For users, the potential benefit is a more discoverable and machine-readable interface; consequential infrastructure changes still raise permission, review, and operational-safety concerns.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1441h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-27 14:00⭐ origin echo-reconstructedOriginal launch announcement: "We are releasing cf, our new command-line tool that mirrors the entire Cloudflare API and supports programmat
Cloudflare on blog (echo) · attributed from hn.story.49879577
—
09-28 15:28first on hacker news · published · +25.5hCf: The Agentic CLI for the Cloudflare API
macleos
—
09-28 15:28amplified on hacker news 👑hn.story.49879577
macleos
peak 171 · 88 comments · 100% of case engagement
09-28 18:21our radar first saw it · +28.4hdiscovery anchor: hn.story.49879577—
09-30 06:42reached heat=high · +64.7h · via ledger——

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnCf: The Agentic CLI for the Cloudflare API
Retrieved article excerpt

Open article · Retrieved 2026-09-28T18:37:03.576713+00:00

[cf](https://blog.cloudflare.com/tag/cf/)[Developers](https://blog.cloudflare.com/tag/developers/)

[Agents](https://blog.cloudflare.com/tag/agents/)[API](https://blog.cloudflare.com/tag/api/)[Birthday Week](https://blog.cloudflare.com/tag/birthday-week/)[cf](https://blog.cloudflare.com/tag/cf/)[Developers](https://blog.cloudflare.com/tag/developers/)

September 28, 2026

# Introducing cf: the agentic CLI for the entire Cloudflare API

Matt “TK” TaylorSamuel Macleod

[Matt “TK” Taylor](https://blog.cloudflare.com/author/matt-tk-taylor/) and [Samuel Macleod](https://blog.cloudflare.com/author/samuel/)

10 minute read

COPY URL

Over the last year, agent use of Wrangler has skyrocketed.

In March 2026, agents were responsible for a quarter of Wrangler use, up from single-digit percentages the year prior. Last week, agent usage reached 48%.

Agents are more prolific users, using almost twice as many distinct commands per day, and are almost four times as likely to use six or more commands.

Agents love CLIs. But Wrangler only provides commands for around 280 operations, and Cloudflare offers thousands.

Earlier in the year we teased [how we were planning to solve this](https://blog.cloudflare.com/cf-cli-local-explorer) and today, we’re enabling agents to use every Cloudflare product by introducing a new CLI: cf.

cf is a CLI that is built for the next generation of software development:

- Agents can find the command they need to do anything they want to do with bespoke search and steering.
- JSON is the default interface, pretty printed for humans and condensed for agents for maximum context savings.
- cloudflare.config.ts is the new configuration format for the whole of Cloudflare, starting with Workers, and bringing the safety and accuracy of TypeScript to you and your agent’s language server protocol (LSP)
- Vite becomes default, bringing with it the best local development server, and a plugin suite for developers and framework authors.

Install the open beta today globally and run it from anywhere:

```
npm i -g cf
```

Copy promptCopy promptPrompt copied!

## cf gives your agent access to the entire Cloudflare API

What if your agent could do everything Cloudflare can do? That’s the question that sparked our interest earlier this year: agents were getting ever more powerful, but what they were able to do with Cloudflare’s CLI was still limited.

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. Some teams built entirely custom experiences across thousands of lines of code that turned out to be used extremely rarely, and teams came up with different approaches to solve the same problems.

We wanted to both standardize what we had and make a massive expansion, all at once. [Forge](https://blog.cloudflare.com/forge-open-source-generation-pipeline) — 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. Everything we provide has an OpenAPI schema, and if we annotate this with just a little more information, we can use it as the source for Forge to make a CLI.

This enables us to expand `cf` from the ~280 functions that Wrangler had built up over time, to cover the entirety of the Cloudflare API surface of over 3,000 operations.

Now it’s simple to give your agent `cf` and ask it to go set up a worker, deploy it, monitor and observe it, protect it with Cloudflare Access, buy a domain, and front it with Cloudflare WAF, all from a single tool.

## Building for an agent that has never used cf

cf is built for the trajectory of software engineering, where agentic development is drastically changing how software is built and deployed. This year we’ve been focused on providing tools to support this shift, culminating in cf. cf has been built from the ground up with agents in mind, and includes novel tools for agentic command discovery that we think will become standard in more CLIs in the near future.

Wrangler came with the advantage that years of documentation, blogs, and third-party guides have been absorbed into the training process of LLMs. It also came with the same disadvantage: changing how Wrangler works now goes against learned behavior, and significant change would be inevitable given the scale of improvement we want to make.

Introducing a new CLI that agents have never seen sounds like a big disruptive change — but actually it’s the cleanest thing we can do. Because of the design decisions we have made, the context injections we can make, and the AGENTS.md files we can append, making a switch in this way is actually less confusing than having an agent contextualize the major differences between two versions of a tool it is familiar with. We’re launching with a couple of these agent-focused features built in, with more to come.

## Agents need to filter JSON, not look at tables

When agents use Wrangler, they append `--json` to every command they run, and then often filter the output with `jq` to extract a subset of fields. But only some commands in Wrangler supported `--json` ; many commands returned unicode tables, designed for humans looking at output in their terminal. Agents can figure these out, but it costs them more time and tokens than a `jq` filter.

In cf we’re taking the opposite stance: agents just need JSON, and if agents are the future primary user of this tool, it should be the default. For the vast majority of commands that will rarely be accessed by humans, this is obviously the right call.

You as the human customer of this CLI are, in reality, one step removed from using it. Agents being able to easily filter their results and then return that filtered list in whatever format you request is preferable to supplying tables you will never likely read directly.

But what if you’re looking to do something that might require real personal input, like searching for a domain to buy?

For commands that your agent can access through chaining named parameters in a long and unwieldy sequence, you can simply fill in a form. Cf deconstructs the requirements of the API into a series of validated inputs, so buying a domain, even one with complex requirements, is simple to follow.

Or, if you insist, just ask your agent to do it.

## Your agent can find the right command itself

With 3,000 possible routes through a CLI, how can your agent find the right operation it needs quickly without bloating your context? For this reason we have also added `cf cli search`.

This command allows your agent to ask in natural language what it needs to do, and a small search index will provide a list of appropriate commands, based on their API description and parameters. We automatically tell your agent about this command when it runs `--help` for the first time.

## Configuration that type-checks your agent

Our new configuration format is based on TypeScript, which is easy for humans and agents to parse, and allows you to write your configuration programmatically.

Typed configuration is enormously helpful for agents. We’ve found that even with no prior context of the programmatic configuration format, agents are able to easily identify and edit the configuration on demand, even across elements like `env` which have dramatically changed from the same named feature in Wrangler. All agents that use LSP plugins, such as Claude Code and Codex, benefit from being able to interpret more about the configuration file format in context, and make much more accurate suggestions as a result.

Compare this to TOML, which had no accessible schema, or JSONC, which had a linked schema that agents rarely used.

Some Wrangler configuration files inside Cloudflare have been condensed by 40% from over 5,000 lines, with many custom environments per developer, to factory files that build each developer’s configuration more efficiently.

This is achieved through programmatically defining each environment from the same universal base, instead of copying `env` blocks as was typical in Wrangler. A simple Worker with multiple environments simply switches on the Vite-native `mode` argument to swap between one set of configuration and another.

A simple configuration that does this now looks like:

```
import { bindings, defineConfig } from "cf/config";
import * as entrypoint from "./index.js" with { type: "cf-worker" };

export default defineConfig(({ mode }) => ({
  worker: {
    name: "example-worker", 
      entrypoint,
      compatibilityDate: "2026-09-27",
      env: {
        Environment: bindings.text(`This is ${mode} environment`),
      },
    },
}));
```

You can migrate your Cloudflare Worker to this new format through `cf migrate`.

We’re also providing a few helper functions to make building your Worker a breeze.

`bindings` gives you a simple place for your agent to discover all the developer platform has to offer. Everything — from environment variables to storage, database, and queues — can be auto-completed and explained by your editor.

```
import { bindings, defineConfig } from "cf/config";

export default defineConfig(({ mode }) => ({
  worker: {
    // ...
    env: {
      API_URL: bindings.text(
        mode === "production"
          ? "https://example.com"
          : "https://staging.example.com",
      ),
      API_TOKEN: bindings.secret(),
      CACHE: bindings.kv({
        id: mode === "production"
          ? "production-namespace-id"
          : "staging-namespace-id",
      }),
      DATABASE: bindings.d1({ name: `example-${mode}-database` }),
      UPLOADS: bindings.r2({ name: `example-${mode}-uploads` }),
      JOBS: bindings.queue < { userId: string } > ({
        name: `example-${mode}-jobs`,
      }),
      AI: bindings.ai(),
      SEARCH_INDEX: bindings.vectorize({
        name: `example-${mode}-search`,
      }),
      API: bindings.worker({ worker: `example-${mode}-api` }),
    },
  },
}));
```

Similarly, we have included a helper for `triggers,` which is the new way to define routes, queues, schedules, and email triggers for your Worker. Rather than having these scattered through your configuration file, it’s now simple to find, in a single block, the actions that could trigger your Worker to run.

```
import { defineConfig, triggers } from "cf/config";

export default defineConfig({
  worker: {
    // ...
    triggers: [
      triggers.fetch({ pattern: "example.com/*" }),
      triggers.scheduled({ schedule: "0 * * * *" }),
      triggers.queue({ name: "jobs", maxBatchSize: 10 }),
      triggers.email({ addresses: ["[email protected]"] }),
    ],
  },
});
```

`defineConfig.worker` is just the start here. Our intention with cloudflare.config.ts is that this is how you manage Cloudflare as a whole. Every product you need — along with its API being available to your agent through cf — will be able to be expressed through typesafe configuration. Soon you will be able to configure entire policies, set up zones, configure DNS and more, all through this configuration file.

## A best in class development experience

When Wrangler first started building JavaScript Workers, [Vite](https://vite.dev/) didn’t exist. Instead, we used esbuild in Wrangler to bundle your Workers. The dev server that Wrangler made available on :8787 was something that the Wrangler team built, and modifying any of this meant reaching into the internals of Cloudflare-specific local tooling like Miniflare.

Vite is a huge improvement on this, and comes with a large ecosystem of plugins you can use, as well as providing a best in class dev server with HMR (hot module replacement), and builds that use the Rust-based library R
macleos17188
🟧 echo.blog ⭐Original launch announcement: "We are releasing cf, our new command-line tool that mirrors the entire Cloudflare API and supports programmatCloudflare——

Interpretation history

Decision trace