What it does
The Cloudflare CLI, cf, manages zones, DNS, storage, and security settings. It also creates, develops, and deploys Workers. Install cf globally with npm, yarn, pnpm, or bun. To deploy a Worker, create a project with cf init, develop it locally, and deploy it. To manage resources, find zones and create, list, and delete DNS records from the command line. Coding agents run the same commands that people run. Cf is in beta. Commands, configuration, and Build Output can change before the stable release.
Capabilities
- More than 2,900 commands cover the public Cloudflare API, and most are generated from the schemas that describe that API.
- Workers projects use cloudflare.config.ts as typed project configuration.
- The commands cf dev, cf build, and cf deploy run the framework's own command, the Cloudflare Vite plugin, or Wrangler, depending on the project.
- The command cf cli search finds commands from a plain-language description of a task.
- The command cf migrate converts a Wrangler project so it can use cf dev, cf build, and cf deploy.
When to use it
- You need to work with zones and DNS records from the command line.
- You want to move an existing Wrangler project to cf.
- You want to authenticate with API tokens and run cf in pipelines.
