#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-deployDeploy this app to Cloudflare (Workers or Pages) and return URL, config, and required env vars.
#Workflow
- Authenticate -- Verify auth with
npx wrangler whoami, runwrangler loginif needed - Select product -- Use decision trees to pick the right Cloudflare service
- Configure -- Set up
wrangler.tomlor Pages configuration - Deploy -- Run
wrangler deployorwrangler pages deploy - 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_hereThis skill is from the OpenAI Skills Catalog.