cloudflare-deploy
Originally fromopenai/skills
Installation
SKILL.md
Cloudflare Deploy
Use cf for Cloudflare operations. Use the decision trees below to pick a product, then read its runtime/API references and the current cf CLI guide.
Prerequisites
- Node.js 24+ and pnpm. Install the npm package
cf, not@cloudflare/cf. - Keep
cfin project devDependencies and commit the lockfile. The checked example usescf@1.0.0-beta.5and@cloudflare/vite-plugin@beta; recheck help and types when upgrading. - Workers use
cloudflare.config.ts. For an existing Wrangler project, runcf migrate --dry-run, thencf migrateand resolve its follow-up items before project commands. Automatic configuration does not import the old bindings.
Authentication (Required Before Deploy)
Verify auth before publishing or mutating account resources:
pnpm exec cf auth whoami
See authentication. Use pnpm exec cf auth login locally; cf has its own login credentials. In CI set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID. A deploy dry run needs no credentials.