Cloudflare Docs
Workers
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Get started in the dashboard

Follow this guide to create a Workers application using the Cloudflare dashboard.

​​ Prerequisites

Sign up for a Cloudflare account if you have not already.

​​ Setup

To create a Workers application:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Go to Workers & Pages.
  3. Select Create application.
  4. Select a template or Create Worker.
  5. Review the provided code and select Deploy.
  6. Preview your Worker at its provided workers.dev subdomain.

​​ Development

​​ Dashboard

Editing in the dashboard is helpful for simpler use cases.

Once you have created your Worker script, you can edit and deploy your Worker using the Cloudflare dashboard:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Select Workers & Pages.
  3. Select your application.
  4. Select Edit Code.

Edit code directly within the Cloudflare dashboard

​​ Wrangler CLI

To develop more advanced applications or implement tests, start working in the Wrangler CLI.

  1. Install npm.
  2. Install Node.js.
  1. Run the following command, replacing the value of [<DIRECTORY>] which the location you want to put your Worker Script.
$ npm create cloudflare [<DIRECTORY>] -- --type=pre-existing
$ yarn create cloudflare [<DIRECTORY>] --type=pre-existing
$ pnpm create cloudflare [<DIRECTORY>] --type=pre-existing
$ bun create cloudflare [<DIRECTORY>] --type=pre-existing

After you run this command - and work through the prompts - your local changes will not automatically sync with dashboard. So, once you download your script, continue using the CLI.