npm install -g wranglerwrangler login
Configure your account ID in wrangler.toml
wrangler secret put CLOUDFLARE_API_TOKEN
npm run dev
npm run deploy
Automatic deployment via GitHub Actions is configured in .github/workflows/deploy.yml.
Required secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDCreate .dev.vars for local development:
ENVIRONMENT=development
CLOUDFLARE_API_TOKEN=your_token_here
Check worker status:
wrangler tail
View logs in Cloudflare Dashboard: https://dash.cloudflare.com/