AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cloudflare-deploy

Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.

Original source
openai
License
Apache-2.0
Pinned revision
49f948faa9258a0c61caceaf225e179651397431

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read openai--cloudflare-deploy at revision 49f948faa9258a0c61caceaf225e179651397431, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 309

references/c3/api.md

C3 CLI Reference

Invocation

npm create cloudflare@latest [name] [-- flags]  # NPM requires --
yarn create cloudflare [name] [flags]
pnpm create cloudflare@latest [name] [-- flags]

Core Flags

| Flag | Values | Description | |------|--------|-------------| | --type | hello-world, web-app, demo, pre-existing, remote-template | Application type | | --platform | workers (default), pages | Target platform | | --framework | next, remix, astro, react-router, solid, svelte, qwik, vue, angular, hono | Web framework (requires --type=web-app) | | --lang | ts, js, python | Language (for --type=hello-world) | | --ts / --no-ts | - | TypeScript for web apps |

Deployment Flags

| Flag | Description | |------|-------------| | --deploy / --no-deploy | Deploy immediately (prompts interactive, skips in CI) | | --git / --no-git | Initialize git (default: yes) | | --open | Open browser after deploy |

Advanced Flags

| Flag | Description | |------|-------------| | --template=user/repo | GitHub template or local path | | --existing-script=./src/worker.ts | Existing script (requires --type=pre-existing) | | --category=ai\|database\|realtime | Demo filter (requires --type=demo) | | --experimental | Enable experimental features | | --wrangler-defaults | Skip wrangler prompts |

Environment Variables

CLOUDFLARE_API_TOKEN=xxx    # For deployment
CLOUDFLARE_ACCOUNT_ID=xxx   # Account ID
CF_TELEMETRY_DISABLED=1     # Disable telemetry

Exit Codes

0 success, 1 user abort, 2 error

Examples

# TypeScript Worker
npm create cloudflare@latest my-api -- --type=hello-world --lang=ts --no-deploy

# Next.js on Pages
npm create cloudflare@latest my-app -- --type=web-app --framework=next --platform=pages --ts

# Astro blog
npm create cloudflare@latest my-blog -- --type=web-app --framework=astro --ts --deploy

# CI: non-interactive
npm create cloudflare@latest my-app -- --type=web-app --framework=next --ts --no-git --no-deploy

# GitHub template
npm create cloudflare@latest -- --template=cloudflare/templates/worker-openapi

# Convert existing project
npm create cloudflare@latest . -- --type=pre-existing --existing-script=./build/worker.js