cloudflare-deploy

Deploy applications and infrastructure to Cloudflare using cf CLI and typed configuration.

416|6|Updated Apr 24, 2026
Ready to run
npx skills add https://github.com/mizchi/skills --skill cloudflare-deploy-mizchi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: cloudflare-deploy
Source: https://github.com/mizchi/skills/tree/main/cloudflare-deploy
Command: npx skills add https://github.com/mizchi/skills --skill cloudflare-deploy-mizchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cf, @cloudflare/vite-plugin, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? This Skill eliminates confusion about which Cloudflare product to use and how to deploy to it. It provides decision trees for compute, storage, networking, and security, then guides you through deployment with the modern cf CLI instead of legacy Wrangler. ## Core Features & Use Cases - Product Selection: Decision trees for Workers, Pages, D1, R2, KV, Durable Objects, and 40+ other Cloudflare services. - Deployment Automation: Typed cloudflare.config.ts configuration with validation and TypeScript support. - CI/CD Integration: GitHub Actions templates and environment-specific deployments. - Use Case: You have a Next.js app and need to decide between Workers and Pages, set up D1 for the database, configure KV for caching, and automate deployments to production and staging. ## Quick Start Tell me what you want to build (serverless function, full-stack web app, database, file storage, or security rules) and I'll recommend the right Cloudflare products and show you how to deploy with the cf CLI.

Frequently Asked Questions about cloudflare-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Should I use Cloudflare Workers or Pages for my application?▼

Use Workers for serverless functions, APIs, and backend logic. Use Pages for static sites and full-stack apps with Git-triggered deployments. Pages can embed Workers as middleware via Pages Functions for dynamic behavior.

How do I set up authentication before deploying to Cloudflare?▼

Run `cf auth whoami` locally to verify credentials. For CI/CD, set `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` environment variables. Create tokens in the Cloudflare dashboard scoped to specific accounts for security.

What is the difference between KV, D1, and R2 storage?▼

KV stores key-value data globally with eventual consistency, ideal for config and sessions. D1 is a serverless SQLite database for structured relational data. R2 stores large files and objects like S3.

How do I migrate from Wrangler configuration to cf config?▼

Run `cf migrate --dry-run` to preview changes, then `cf migrate` to convert wrangler.jsonc to cloudflare.config.ts. Manual resolution may be needed for custom bindings not automatically migrated.

Can I deploy to both production and staging environments?▼

Yes. Define separate environments in cloudflare.config.ts with different database IDs, KV namespaces, and secrets. Deploy with `cf deploy --env staging` or `cf deploy --env production`.

What happens if my deploy fails due to network issues?▼

Rerun the deploy with escalated network permissions using the sandbox capability. The cf CLI will prompt if escalated access is needed for outbound requests to Cloudflare APIs.