Current Version: 2.64.4C3 requires Node.js 18.14.1 or higher and supports npm, pnpm, yarn, and bun.
Quick Start
Create a new project with one command:Interactive Setup
C3 guides you through project creation with an interactive wizard:- Project name - Choose your application name
- Template selection - Pick from Workers, Pages, or framework templates
- TypeScript/JavaScript - Select your preferred language
- Git initialization - Optionally initialize a Git repository
- Deployment - Choose to deploy immediately or later
Template Categories
Workers Templates
Hello World
Basic Worker with fetch handler - perfect starting point
Hello World with Assets
Worker with static file serving capabilities
Durable Objects
Worker with Durable Objects for stateful applications
Scheduled Worker
Cron-triggered Worker for background tasks
Queue Consumer
Worker that processes Queue messages
Workflows
Worker with Cloudflare Workflows for orchestration
OpenAPI
OpenAPI-compliant API with validation
Hono
Fast web framework built for edge computing
Framework Templates
C3 supports popular web frameworks with Cloudflare integration:React Ecosystem
- React - Create React App with Cloudflare Pages
- Next.js - React framework with SSR and SSG
- Remix - Full-stack React framework
- React Router - Single-page applications with routing
- Gatsby - Static site generator
- Redwood - Full-stack framework for Jamstack
- TanStack Start - Modern React framework
Vue Ecosystem
- Vue - Progressive JavaScript framework
- Nuxt - Vue framework with SSR and SSG
- Vike - Vue + Vite framework
Other Frameworks
- Astro - Content-focused web framework
- SvelteKit - Svelte application framework
- Solid.js - Reactive JavaScript library
- Qwik - Resumable framework for instant apps
- Angular - Platform for web applications
- Analog - Full-stack Angular meta-framework
- Docusaurus - Documentation website generator
- Waku - Minimalist React framework
Command-Line Options
Non-Interactive Mode
Skip prompts and use defaults:Specify Template
Choose Language
Framework Selection
Deployment Options
Git Initialization
Complete Example
Project Templates
Workers - Hello World
Basic Worker with TypeScript:Workers - Durable Objects
- Durable Object class definition
- Worker with DO binding
- Storage API examples
- Testing setup
Workers - Scheduled
Cron-triggered Worker:Workers - Queue Consumer
- Queue producer setup
- Queue consumer handler
- Batch processing example
Workers with Hono
Fast web framework:Framework Integration
Next.js
- Next.js with Cloudflare Pages adapter
- Edge runtime for API routes
- Static asset optimization
- Environment variables
Astro
- Astro with Cloudflare adapter
- SSR configuration
- Image optimization
- Edge middleware
Remix
- Cloudflare Workers adapter
- KV/D1 integration
- Session storage
- Asset handling
SvelteKit
- Cloudflare adapter
- Platform-specific types
- Edge functions
Pre-existing Projects
Add Cloudflare configuration to existing projects:- Detect your framework
- Add wrangler.jsonc configuration
- Install necessary dependencies
- Configure deployment scripts
Generated Project Structure
Typical generated structure for a Worker:wrangler.jsonc- Cloudflare configuration- Modified
package.jsonwith deploy scripts - Platform types and adapters
Post-Creation Steps
After C3 creates your project:1. Install Dependencies (if not auto-installed)
2. Start Development Server
3. Deploy to Cloudflare
- Login to Cloudflare
- Select your account
- Confirm deployment
Configuration
Wrangler Configuration
C3 generates awrangler.jsonc file:
Package Scripts
Generatedpackage.json includes:
Advanced Features
Custom Templates
Use a custom template from a Git repository:AGENTS.md File
C3 can add anAGENTS.md file to help AI coding assistants:
- Project structure documentation
- Cloudflare-specific guidance
- API usage patterns
- Best practices
Experimental Features
Try experimental autoconfig:wrangler setup for automatic configuration.
Deployment
Automatic Deployment
C3 can deploy immediately after creation:- Authenticates with Cloudflare (if needed)
- Builds the project
- Uploads to Cloudflare
- Provides deployment URL
Manual Deployment
Deploy later with:Pages Deployment
For Pages projects:Testing
C3 sets up testing with Vitest:Telemetry
C3 collects anonymous usage data to improve the tool.Disable Telemetry
Enable Telemetry
Check Telemetry Status
Common Workflows
Create and Deploy a Worker
Create a Full-Stack App
Add to Existing Project
Best Practices
Choose the Right Template
Choose the Right Template
- Workers: For APIs, middleware, and edge logic
- Pages: For static sites and full-stack frameworks
- Durable Objects: For stateful applications
- Scheduled: For cron jobs and background tasks
Use TypeScript
Use TypeScript
TypeScript provides better IDE support and catches errors:
Test Locally First
Test Locally First
Always test with
wrangler dev before deploying:Version Control
Version Control
Initialize Git to track changes:
Troubleshooting
Node Version Issues
Ensure you’re using Node.js 18.14.1 or higher:Package Manager Detection
C3 auto-detects your package manager. To force a specific one:Permission Errors
If you encounter permission errors during deployment:Template Not Found
List available templates:Comparison with Other Tools
| Feature | C3 | Wrangler Init | Manual Setup |
|---|---|---|---|
| Interactive | ✅ Yes | ✅ Yes | ❌ No |
| Framework Support | ✅ 20+ frameworks | ❌ Workers only | ⚠️ Manual |
| Auto-deployment | ✅ Optional | ❌ No | ❌ No |
| Git Setup | ✅ Optional | ❌ No | ⚠️ Manual |
| Testing Setup | ✅ Included | ✅ Included | ⚠️ Manual |
| Best For | New projects | Workers only | Custom setups |
Additional Resources
Related Tools
Wrangler
CLI for Workers development and deployment
Miniflare
Local Workers simulator for testing