Dashboard
Follow this guide to create a Workers application using the Cloudflare dashboard ↗.
Prerequisites
Create a Cloudflare account, if you have not already.
Setup
To create a Workers application:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to Workers & Pages.
- Select Create.
- Select a template or Create Worker.
- Review the provided code and select Deploy.
- 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:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Select Workers & Pages.
- Select your application.
- Select Edit Code.
Wrangler CLI
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.
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.
Next steps
To do more:
- Review our Examples and Tutorials for inspiration.
- Set up bindings to allow your Worker to interact with other resources and unlock new functionality.
- Learn how to test and debug your Workers.
- Read about Workers limits and pricing.