Get Started with Cloudflare Workers
This guide will help you install Wrangler, the Workers CLI, and deploy your first Worker.
1Install Wrangler CLI
Wrangler is the official CLI for managing Cloudflare Workers. Install it using your package manager:
Installation
brew install wrangler
Or using npm:
npm install -g wrangler
Installation
winget install Cloudflare.Wrangler
Or using npm:
npm install -g wrangler
Installation
npm install -g wrangler
Or using your package manager:
curl -fsSL https://wrangler.io/install.sh | sh
2Verify Installation
Check that Wrangler is installed correctly:
wrangler --version
3Authenticate with Cloudflare
Login to your Cloudflare account:
wrangler login
4Create Your First Worker
Use Wrangler to scaffold a new Worker project:
wrangler init my-worker
cd my-worker
5Deploy to Production
When you're ready, deploy your Worker:
wrangler deploy
Next Steps: Explore our examples, tutorials, and API documentation to build your next project.