Skip to content
Cloudflare Docs logomark
Cloudflare
Docs
Workers
Navigation menu icon
Open external link
Cloudflare Docs logomark
Cloudflare
Docs
Workers
Dropdown icon
Workers menu
Workers home
Playground
Pricing
Discord
Overview
Expand: Get started
Get started
CLI
Dashboard
Quickstarts
Examples
Tutorials
Playground
Expand: Configuration
Configuration
Bindings
External link icon
Open external link
Compatibility dates
Continuous integration
Cron Triggers
Environment variables
Expand: Integrations
Integrations
APIs
External Services
Momento
Page Rules
Expand: Routes and domains
Routes and domains
Custom Domains
Routes
workers.dev
Secrets
Smart Placement (beta)
Expand: Versions & Deployments
Versions & Deployments
Gradual deployments
Rollbacks
Expand: Workers Sites
Workers Sites
Start from existing
Start from scratch
Start from Worker
Workers Sites configuration
Expand: Runtime APIs
Runtime APIs
Expand: Bindings (env)
Bindings (env)
AI
External link icon
Open external link
Analytics Engine
External link icon
Open external link
Browser Rendering
External link icon
Open external link
D1
External link icon
Open external link
Dispatcher (Workers for Platforms)
External link icon
Open external link
Durable Objects
External link icon
Open external link
Environment Variables
External link icon
Open external link
Hyperdrive
External link icon
Open external link
KV
External link icon
Open external link
mTLS
Queues
External link icon
Open external link
R2
External link icon
Open external link
Rate Limiting
Secrets
External link icon
Open external link
Expand: Service bindings
Service bindings
HTTP
RPC (WorkerEntrypoint)
Vectorize
External link icon
Open external link
Version metadata
Cache
Console
Context (ctx)
Encoding
Fetch
Expand: Handlers
Handlers
Alarm Handler
External link icon
Open external link
Email Handler
External link icon
Open external link
Fetch Handler
Queue Handler
External link icon
Open external link
Scheduled Handler
Tail Handler
Headers
HTMLRewriter
Expand: Node.js compatibility
Node.js compatibility
assert
AsyncLocalStorage
Buffer
Crypto
Diagnostics Channel
EventEmitter
path
process
Streams
StringDecoder
test
util
Performance and timers
Expand: Remote-procedure call (RPC)
Remote-procedure call (RPC)
Lifecycle
Reserved Methods
Visibility and Security Model
TypeScript
Error handling
Request
Response
Expand: Streams
Streams
ReadableStream
ReadableStream BYOBReader
ReadableStream DefaultReader
TransformStream
WritableStream
WritableStream DefaultWriter
TCP sockets
Web Crypto
Web standards
Expand: WebAssembly (Wasm)
WebAssembly (Wasm)
Wasm in JavaScript
WebSockets
Expand: Databases
Databases
Connect to databases
Analytics Engine
External link icon
Open external link
Vectorize (vector database)
External link icon
Open external link
Cloudflare D1
External link icon
Open external link
Hyperdrive
External link icon
Open external link
Expand: Database Integrations (beta)
Database Integrations (beta)
Neon
PlanetScale
Supabase
Turso
Upstash
Xata
Expand: Testing
Testing
Local development
Unit testing
Integration testing
Debugging tools
Expand: Vitest integration
Vitest integration
Expand: Get started
Get started
Write your first test
Migrate from Miniflare 2's test environments
Migrate from unstable_dev
Recipes
Configuration
Test APIs
Isolation and concurrency
Known issues
Expand: Observability
Observability
Baselime integration (beta)
Errors and exceptions
Expand: Logging
Logging
Logpush
Real-time logs
Tail Workers
Metrics and analytics
Sentry integration (beta)
Source maps and stack traces
Expand: Wrangler
Wrangler
Install/Update Wrangler
API
Bundling
Commands
Configuration
Custom builds
Deprecations
Environments
Expand: Migrations
Migrations
Expand: Migrate from Wrangler v1 to v2
Migrate from Wrangler v1 to v2
1. Migrate webpack projects
2. Update to Wrangler v2
Expand: Wrangler v1 (legacy)
Wrangler v1 (legacy)
Install / Update
Authentication
Commands
Configuration
Webpack
Migrate from Wrangler v2 to v3
Run in CI/CD
System environment variables
Expand: Languages
Languages
Expand: JavaScript
JavaScript
Examples
External link icon
Open external link
Expand: TypeScript
TypeScript
Examples
External link icon
Open external link
Expand: Python
Python
How Python Workers Work
Standard Library
Examples
Foreign Function Interface (FFI)
Expand: Packages
Packages
FastAPI
Langchain
Expand: Rust
Rust
Supported crates
Expand: Platform
Platform
Pricing
Expand: Changelog
Changelog
Workers (Historic)
Wrangler
Limits
Choose a data or storage product
Betas
Known issues
Workers for Platforms
External link icon
Open external link
Expand: Reference
Reference
How the Cache works
How Workers works
Migrate from Service Workers to ES Modules
Protocols
Security model
Glossary
AI Assistant
Edit
Edit this page
Issue
Report an issue with this page
Log in
Log into the Cloudflare dashboard
Search icon (depiction of a magnifying glass)
Light theme icon (depiction of a sun)
Dark theme icon (depiction of a moon)
Set theme to dark (⇧+D)
↑ Top
Products
Workers
Wrangler
Migrations
Migrations
Migrate from Wrangler v1 to v2
Migrate from Wrangler v2 to v3