Cloudflare CLI is now in beta
The Cloudflare CLI, cf, is now in beta. cf is one command-line interface for the public Cloudflare API and for Workers projects. Use it to manage zones, DNS, storage, and security settings, and to create, develop, and deploy Workers, without switching between tools.
Install cf globally, then sign in:
npm install --global cfyarn global add cfpnpm add --global cfbun add --global cfcf auth loginWith cf, you can:
- Manage resources across Cloudflare. More than 2,900 commands cover the public Cloudflare API, and most print their results as JSON.
- Create and deploy Workers.
cf initcreates a project that usescloudflare.config.ts, a typed configuration file.cf dev,cf build, andcf deploydevelop, build, and deploy it. - Move from Wrangler.
cf migrateconverts a Wrangler configuration file tocloudflare.config.ts. You can also runcfresource commands in an existing Wrangler project without migrating it. - Work with coding agents.
cf cli searchfinds the command for a task from a plain-language description, so an agent can find and run commands without prior knowledge ofcf.
cf is in beta. Commands, configuration, and Build Output can change before the stable release.
To get started, refer to Install and sign in. To move an existing project, refer to Migrate a Wrangler project.