Build blazing fast websites by seamlessly deploying static assets alongside your APIs and application code.
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 email:
foo@bar.com
Enter api key:
123456abcdef
To create a new site, just generate it with the --site flag:
~/ $ 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
Published https://my-site.<subdomain>.workers.dev
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:
Learn how to extend a static site using serverless functions by visiting the docs and template gallery.
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.