The signup process will guide you through choosing a workers.dev subdomain, selecting the Workers Unlimited plan, and veryifying your email address.
From any directory, use NPM to install Wrangler globally:
~/ $ npm install -g @cloudflare/wrangler
To configure Wrangler, grab your Global API key from your Profile.
Then run the configure command and interactively enter your email address and this API key:
~/ $ wrangler config
Enter api key:
To create a new site, just generate it with the
~/ $ wrangler generate --site my-site
That will create a directory called
my-site with all of the initial files necessary to create a basic site. Enter into that directory:
~/ $ cd my-site
From that directory, you can deploy the site to your workers.dev subdomain using one simple command:
~/my-site $ wrangler publish
If you’d like more info on deploying an existing static site, follow our general quick start. Or you can watch this tutorial in which we create & deploy a site from create‑react‑app in under 3 minutes:
Your site. Our network.
Distributed to the world.
Static assets. Dynamic sites.
Assets. APIs. All-in-one.
Workers Sites requires the Workers Unlimited plan—starting at $5 per month. Workers Unlimited includes 10 million requests, 1 GB of Workers KV storage, and 1 million KV reads and writes each month with pay as you go pricing for additional usage.
Workers Unlimited plan(Includes Workers Sites)
- Deploy up to 30 sites
- Free workers.dev subdomain
- 1 gigabyte of storage
- Up to 50ms CPU time per request
- Runs on all 194 data centers
- Always lowest latency