Overview
The official Cloudflare Workers CLI. Simulates the edge runtime locally and deploys to the global edge — dev to prod in one motion.
Features
- Local edge runtime
- Manage D1, KV, R2
- Durable Objects development
- Live log streaming
- Environment and secret management
Common commands
A few common invocations — the Agent runs them as you in your terminal
$ wrangler devRun the edge runtime locally
$ wrangler deployDeploy the Worker
$ wrangler d1 execute my-db --command 'select 1'Run SQL on a D1 database