Developer Platform von Cloudflare
Workers, Cloudflare CLI - Cloudflare CLI (cf) 1.0 release candidate
Cloudflare CLI (cf) 1.0.0-rc.1 is a release candidate for cf 1.0. cf has been in beta since late September. This is the release we recommend you try on your own projects, and we want your feedback before 1.0.
To install or update to the latest release:
npmyarnpnpm
npm install --global cf@latest
yarn global add cf@latest
pnpm add --global cf@latest
To migrate an existing Worker project from Wrangler to cf, run cf migrate in your project directory:
cf migrate
cf migrate converts your Wrangler configuration file to cloudflare.config.ts and lists any remaining steps to finish by hand. To preview the changes first, run cf migrate --dry-run. For the full guide, refer to Migrate a Wrangler project.
What is stable
We expect the following features to remain stable to cf 1.0:
- The
cloudflare.config.tsconfiguration format. - The Build Output format that
cf buildwrites andcf deployreads. - The commands that create, develop, build, and deploy projects, including
cf init,cf dev,cf build,cf deploy,cf previews deploy, andcf workers versions create. - The large majority of commands generated from the Cloudflare API and used in the beta. …