mizchi/skills/cloudflare-deploy
Claude Code and agent skill by mizchi/skills
- community
Checking that the SKILL.md file is still in the repository.
Deploy applications and infrastructure to Cloudflare with the cf CLI and typed cloudflare.config.ts. Use when deploying Workers, migrating a Wrangler project to cf, or setting up Cloudflare resources and CI.
Install
npx vskill@latest install mizchi/skills/cloudflare-deploySKILL.md
The same SKILL.md was published earlier as mizchi/skills/cloudflare-deploy.
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; satisfy the installed packages' exact
enginespatch floors. Install the npm package `cf`, not@cloudflare/cf. - Keep
cfin project devDependencies and commit the lockfile. The smoke project checkscf@1.0.0-rc.1with@cloudflare/vite-plugin@2.0.0-rc.1, Vite 8.3.8 and Node 24.22.2 (2026-11-18). The cf 1.0 release candidate requires plugin 2.0.0-rc.0 or later for Vite builds, or Wrangler 4.163.0 or later for legacy Wrangler builds. Check the published plugin tags and pin a compatible 2.x release in Vite projects. - The 1.0 release candidate stabilizes typed configuration, Build Output and project commands. Some generated API command paths can still change. When upgrading from beta, rebuild into
.cloudflare/output/v1/before using--prebuilt; see the upgrade guide. - 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:
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.
Discover Commands Before Running Them
Describe only the operation and resource type in search queries. Pass names and IDs to the discovered command, not to search. API commands return JSON on stdout and progress on stderr. Resource commands usually use IDs and remote data; inspect --local support instead of copying Wrangler's --remote, --env, --json, or --yes flags.
When to Read references/
Current CLI, migration, configuration and build guidance lives in references/cf/. Product references retain SDK and runtime knowledge; files marked as legacy preserve old CLI/config examples only as migration input. Do not execute those Wrangler examples or generate new Wrangler configuration from them. Translate the intended operation using cf search/schema and typed bindings.
Rules of thumb:
- Picking a product? Use decision trees below, then load
references/<picked-product>/ - Writing
cloudflare.config.ts? Read configuration first. - CI/CD setup? Read GitHub Actions.
- Deploy fails? Read cf gotchas, then the product's runtime gotchas.
- The minimal example below covers Workers + KV + secret — for anything beyond that, descend into references
Minimal Worker Example (copy-paste starter)
Start with this Worker, one KV binding and one secret. Apply the TypeScript setup from the configuration reference before typechecking:
Bootstrap commands:
Put API_SECRET in an ignored .env.production for deployment and .dev.vars for local development. bindings.secret() declares the Worker binding; CLI process variables do not automatically supply its value. Before publication, check that the selected secret source contains every required key with a non-empty value, without printing values. In RC.1, deploy dry-run can succeed with the secret file omitted, so it does not prove secret completeness. Include .cloudflare/types in tsconfig.json; see the configuration reference for the full TypeScript setup. Change an existing Worker's compatibility date deliberately.
Stream live events with pnpm exec cf observability tail --worker my-worker; enable Workers Logs for that Worker first. Output is newline-delimited JSON. See observability and command discovery for selectors and filters.
Deploy an already-built static site with pnpm exec cf deploy ./dist; this skips the build and creates an assets-only Worker. Projects with server-side code use the normal build/deploy pipeline. For an existing Pages project, preserve its publisher until its functions/assets have migrated; the static-directory command targets Workers. See deployment patterns.
For Pages / D1 / Durable Objects / multi-env / CI — descend into references/.
Quick Decision Trees
"I need to run code"
"I need to store data"
"I need AI/ML"
"I need networking/connectivity"
"I need security"
"I need media/content"
"I need infrastructure-as-code"
Product Index
Compute & Runtime
| Product | Reference | |
|---|---|---|
| Workers | references/workers/ | |
| Pages | references/pages/ | |
| Pages Functions | references/pages-functions/ | |
| Durable Objects | references/durable-objects/ | |
| Workflows | references/workflows/ | |
| Containers | references/containers/ | |
| Workers for Platforms | references/workers-for-platforms/ | |
| Cron Triggers | references/cron-triggers/ | |
| Tail Workers | references/tail-workers/ | |
| Snippets | references/snippets/ | |
| Smart Placement | references/smart-placement/ |
Storage & Data
| Product | Reference | |
|---|---|---|
| KV | references/kv/ | |
| D1 | references/d1/ | |
| R2 | references/r2/ | |
| Queues | references/queues/ | |
| Hyperdrive | references/hyperdrive/ | |
| DO Storage | references/do-storage/ | |
| Secrets Store | references/secrets-store/ | |
| Pipelines | references/pipelines/ | |
| R2 Data Catalog | references/r2-data-catalog/ | |
| R2 SQL | references/r2-sql/ |
AI & Machine Learning
| Product | Reference | |
|---|---|---|
| Workers AI | references/workers-ai/ | |
| Vectorize | references/vectorize/ | |
| Agents SDK | references/agents-sdk/ | |
| AI Gateway | references/ai-gateway/ | |
| AI Search | references/ai-search/ |
Networking & Connectivity
| Product | Reference | |
|---|---|---|
| Tunnel | references/tunnel/ | |
| Spectrum | references/spectrum/ | |
| TURN | references/turn/ | |
| Network Interconnect | references/network-interconnect/ | |
| Argo Smart Routing | references/argo-smart-routing/ | |
| Workers VPC | references/workers-vpc/ |
Security
| Product | Reference | |
|---|---|---|
| WAF | references/waf/ | |
| DDoS Protection | references/ddos/ | |
| Bot Management | references/bot-management/ | |
| API Shield | references/api-shield/ | |
| Turnstile | references/turnstile/ |
Media & Content
| Product | Reference | |
|---|---|---|
| Images | references/images/ | |
| Stream | references/stream/ | |
| Browser Rendering | references/browser-rendering/ | |
| Zaraz | references/zaraz/ |
Real-Time Communication
| Product | Reference | |
|---|---|---|
| RealtimeKit | references/realtimekit/ | |
| Realtime SFU | references/realtime-sfu/ |
Developer Tools
| Product | Reference | |
|---|---|---|
| cf CLI | references/cf/ | |
| Miniflare | references/miniflare/ | |
| C3 | references/c3/ | |
| Observability | references/observability/ | |
| Analytics Engine | references/analytics-engine/ | |
| Web Analytics | references/web-analytics/ | |
| Sandbox | references/sandbox/ | |
| Workerd | references/workerd/ | |
| Workers Playground | references/workers-playground/ |
Infrastructure as Code
| Product | Reference | |
|---|---|---|
| Pulumi | references/pulumi/ | |
| Terraform | references/terraform/ | |
| API | references/api/ |
Other Services
| Product | Reference | |
|---|---|---|
| Email Routing | references/email-routing/ | |
| Email Workers | references/email-workers/ | |
| Static Assets | references/static-assets/ | |
| Bindings | references/bindings/ | |
| Cache Reserve | references/cache-reserve/ |
Troubleshooting
Escalated Network Access
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcloudflare-deploy/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mizchi/skills/cloudflare-deploy)