Skip to content
/cloudflare-deployOfficial

Deploy Workers, Pages, and platform services on Cloudflare with intelligent product selection.

DevOpsDeploymentCloudflareΒ· 2 min read

Quick import: Download the .md file and save it to .claude/commands/ (Claude Code), .cursorrules (Cursor), or paste as a system prompt in ChatGPT, Gemini, or any LLM API.

#What it does

The cloudflare-deploy skill deploys applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. It uses decision trees to select the right Cloudflare product for your use case, handles authentication via Wrangler CLI, and manages the full deployment lifecycle.

#How to use

bash
$cloudflare-deploy
Deploy this app to Cloudflare (Workers or Pages) and return URL, config, and required env vars.

#Workflow

  1. Authenticate -- Verify auth with npx wrangler whoami, run wrangler login if needed
  2. Select product -- Use decision trees to pick the right Cloudflare service
  3. Configure -- Set up wrangler.toml or Pages configuration
  4. Deploy -- Run wrangler deploy or wrangler pages deploy
  5. Report -- Return deployment URL, configuration, and environment variables

#Product decision trees

Need to run code?

  • Serverless functions at the edge -- Workers
  • Full-stack web app with Git deploys -- Pages
  • Stateful coordination/real-time -- Durable Objects
  • Long-running multi-step jobs -- Workflows
  • Scheduled tasks (cron) -- Cron Triggers

Need storage?

  • Key-value (config, sessions, cache) -- KV
  • Relational SQL -- D1 (SQLite) or Hyperdrive (Postgres/MySQL)
  • Object/file storage (S3-compatible) -- R2
  • Message queue (async processing) -- Queues
  • Vector embeddings (AI/semantic search) -- Vectorize

Need AI/ML?

  • Run inference (LLMs, embeddings, images) -- Workers AI
  • Vector database for RAG/search -- Vectorize
  • Build stateful AI agents -- Agents SDK
  • Gateway for any AI provider -- AI Gateway

#Authentication

bash
# Check if authenticated
npx wrangler whoami
 
# Interactive login (one-time OAuth)
wrangler login
 
# CI/CD: Set environment variable
export CLOUDFLARE_API_TOKEN=your_token_here

This skill is from the OpenAI Skills Catalog.

OpenAIΒ·
View all skills