Dashboard
Follow this guide to create a Workers application using the Cloudflare dashboard.
Sign up for a Cloudflare account ↗ if you have not already.
To create a Workers application:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to Workers & Pages.
- Select Create application.
- Select a template or Create Worker.
- Review the provided code and select Deploy.
- Preview your Worker at its provided
workers.dev
subdomain.
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:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Select Workers & Pages.
- Select your application.
- Select Edit Code.
![Edit code directly within the Cloudflare dashboard](/_astro/workers-edit-code.CKxxvQSe_bG9Of.webp)
To develop more advanced applications or implement tests, start working in the Wrangler CLI.
- Run the following command, replacing the value of
[<DIRECTORY>]
which the location you want to put your Worker Script.
npm create cloudflare@latest [<DIRECTORY>] -- --type=pre-existing
yarn create cloudflare@latest [<DIRECTORY>] --type=pre-existing
pnpm create cloudflare@latest [<DIRECTORY>] --type=pre-existing
bun create cloudflare@latest [<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.