The signup process will guide you through choosing a workers.dev subdomain, selecting the Workers Bundled plan, and veryifying your email address.
From any directory, use NPM to install Wrangler globally:
~/ $ npm install -g @cloudflare/wrangler
To configure Wrangler, you need a Workers API Token from your Profile.
Click "Create Token" and use the "Edit Cloudflare Workers" template. For more information, see "Managing API Tokens and Keys" in our documentation.
Now run the config command to interactively enter your new API Token:
~/ $ wrangler config
Enter API Token:
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 Bundled plan—starting at $5 per month. Workers Bundled 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.