Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/c3/api.md
1# C3 CLI Reference23## Invocation45```bash6npm create cloudflare@latest [name] [-- flags] # NPM requires --7yarn create cloudflare [name] [flags]8pnpm create cloudflare@latest [name] [-- flags]9```1011## Core Flags1213| Flag | Values | Description |14|------|--------|-------------|15| `--type` | `hello-world`, `web-app`, `demo`, `pre-existing`, `remote-template` | Application type |16| `--platform` | `workers` (default), `pages` | Target platform |17| `--framework` | `next`, `remix`, `astro`, `react-router`, `solid`, `svelte`, `qwik`, `vue`, `angular`, `hono` | Web framework (requires `--type=web-app`) |18| `--lang` | `ts`, `js`, `python` | Language (for `--type=hello-world`) |19| `--ts` / `--no-ts` | - | TypeScript for web apps |2021## Deployment Flags2223| Flag | Description |24|------|-------------|25| `--deploy` / `--no-deploy` | Deploy immediately (prompts interactive, skips in CI) |26| `--git` / `--no-git` | Initialize git (default: yes) |27| `--open` | Open browser after deploy |2829## Advanced Flags3031| Flag | Description |32|------|-------------|33| `--template=user/repo` | GitHub template or local path |34| `--existing-script=./src/worker.ts` | Existing script (requires `--type=pre-existing`) |35| `--category=ai\|database\|realtime` | Demo filter (requires `--type=demo`) |36| `--experimental` | Enable experimental features |37| `--wrangler-defaults` | Skip wrangler prompts |3839## Environment Variables4041```bash42CLOUDFLARE_API_TOKEN=xxx # For deployment43CLOUDFLARE_ACCOUNT_ID=xxx # Account ID44CF_TELEMETRY_DISABLED=1 # Disable telemetry45```4647## Exit Codes4849`0` success, `1` user abort, `2` error5051## Examples5253```bash54# TypeScript Worker55npm create cloudflare@latest my-api -- --type=hello-world --lang=ts --no-deploy5657# Next.js on Pages58npm create cloudflare@latest my-app -- --type=web-app --framework=next --platform=pages --ts5960# Astro blog61npm create cloudflare@latest my-blog -- --type=web-app --framework=astro --ts --deploy6263# CI: non-interactive64npm create cloudflare@latest my-app -- --type=web-app --framework=next --ts --no-git --no-deploy6566# GitHub template67npm create cloudflare@latest -- --template=cloudflare/templates/worker-openapi6869# Convert existing project70npm create cloudflare@latest . -- --type=pre-existing --existing-script=./build/worker.js71```72