cf CLI
cf is the open beta of the unified Cloudflare CLI: commands found by search and condensed JSON output made for agents.
- 1,034 ★ on the repository
- Last commit
- Apache-2.0
Extended access
Why this level
- An agent with a Cloudflare token can change and delete account resources as far as the token rights allow.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add cli/cfDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- An agent with a Cloudflare token can change and delete account resources as far as the token rights allow.
This is third-party code. Review the repository files before installing.
What it does
cf is a Cloudflare command-line tool built to work with AI agents and cover the whole Cloudflare API. The agent finds the needed command through built-in search and steering instead of combing through documentation. Output defaults to JSON: pretty-printed for people and condensed for agents to spend less context. Configuration lives in the new `cloudflare.config.ts` format for the whole platform, starting with Workers. TypeScript adds type checking and language-server hints that both developer and agent use. For local development Vite is the default, with a plugin suite for framework authors. The status is open beta. It installs globally with `npm i -g cf` and runs from any directory. The latest minor release of each supported Node.js major is supported.
Who it is for. Cloudflare Workers developers and teams that hand an agent the setup and deployment on the platform.
Good fit when
- An agent must find the right command across the whole Cloudflare API without reading documentation pages.
- A Worker configuration is described in TypeScript with type checks instead of editing TOML.
- The agent context is limited and JSON output must be condensed.
- A Vite project runs locally and on Cloudflare with a shared plugin suite.
Not a fit when
- You need a stable production tool: cf is still in open beta.
- The Node.js version is outside the list supported in `package.json`.
- The project is on the old wrangler and changing the configuration format is not possible now.
Example request
Find the cf command for creating a Worker with a KV binding and show the JSON output without deploying anything.Limitations
The product is in open beta: commands and the `cloudflare.config.ts` format may change. The list of supported Node.js versions is in `package.json`. The README is short, and detailed command and configuration references live in the Cloudflare documentation. API work needs a Cloudflare account and login, and an agent should be limited to a token with a narrow set of permissions. The repository is a large monorepo under Apache 2.0 and MIT licenses. The last commit dates from November 2026.
How to disable. Remove the tool with `npm uninstall -g cf`. Revoke tokens and login settings in the Cloudflare dashboard if they were created only for cf.
FAQ
How do I install cf?
Run `npm i -g cf` and launch it from any directory. This is an open beta.
How does an agent find a command?
Through built-in search and steering: the tool leads the agent to the right command instead of browsing documentation.
What is the output format?
JSON by default: formatted for people and condensed for agents to save context.
What is cloudflare.config.ts?
The new configuration format for the whole Cloudflare platform, starting with Workers. TypeScript adds type checks and language-server hints.
Which dev server is used?
Vite by default, with a plugin suite for developers and framework authors.
Discussion
No questions or reviews yet.
Related
CLI toolsA CLI that shares a local app on a temporary Cloudflare link, with an MCP server giving agents visitor chat and request logs.
The CLI deploys a shared app gateway in your Cloudflare account so people and agents can use one entry point.
Official Cloudflare MCP server: the agent drives the whole Cloudflare API by searching the spec and running code
Cloudflare's official agent skills: Workers, Durable Objects, wrangler, Pages, storage and an MCP server
CLI that runs commands and AI agents in isolated microVMs that boot in under 125 ms and keeps API keys out of the sandbox itself.
Cloudflare MCP servers
Cloudflare MCP Server
A set of remote Cloudflare MCP servers: documentation, Workers, logs, Radar, browser, DNS and other account services
README in short
A Cloudflare command-line tool in open beta installed through npm. The `cloudflare.config.ts` format and command search are built for AI agents.