Files
dotfiles/dot_agents/skills/cloudflare/references/c3/api.md
T
Prad Nukala 6406208b35 shell: fish functions -> ~/.local/bin executables + bash/zsh ports; manage ~/.agents
- 16 cross-shell utilities converted to sh/bash chezmoi executables:
  ai c2p cp-appid extract_agents fab gdc gh-sonr-org-migrate ghg-clone
  ghn gho git-summary launch_omp_livediff_overlay lc-elir mdcp mdp pj
  (ghg-clone not named ghg: unrelated cargo binary owns that name)
- cwd/history helpers stay per-shell: yy c cd clip-last + ghg/ghn/gho
  cd-wrappers in bash/functions/ and zsh/functions/, loaded by rc files
- fish keeps only shell-state functions; converted ones now hit PATH
- cp-appid ignore gating moved to .local/bin path
- dot_agents/skills: 82 skills materialized from dotstate storage so
  dot_claude skill symlinks resolve on fresh bootstrap; dotstate
  profile/symlinks.json released .agents/skills .bashrc .zshrc
2026-08-10 15:15:06 -04:00

2.2 KiB

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