200
    cf-ray: 910a25b4e5878cc3-ewr
    connection: keep-alive
    content-type: text/html
    date: wed, 12 feb 2025 05:23:33 gmt
    server: cloudflare
    transfer-encoding: chunked
    vary: accept-encoding
    Click to copy
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cloudflare Workers Playground</title>
    <link
    rel="stylesheet"
    href="https://playground.devprod.cloudflare.dev/welcome-style.css"
    />
    </head>
    <body>
    <div class="flares">
    <img src="https://playground.devprod.cloudflare.dev/flares.png" />
    </div>
    <main>
    <div class="workers-logo"></div>
    <p>
    Welcome! Use this Playground to test drive a Worker, create a demo to
    share online, and when ready deploy directly to the edge by setting up a
    Cloudflare account.
    </p>
    <h1>What is a Worker?</h1>
    <p>
    A Cloudflare Worker is JavaScript code you write that handles your web
    site's HTTP traffic directly in Cloudflare's edge locations around the
    world, allowing you to locate code close to your end users in order to
    respond to them more quickly
    </p>
    <h1>Try it yourself</h1>
    <p>
    On your left is a sample Worker that is running on this site. You can
    edit it live and see the results here. Edit the path above to /api to
    see how the example Worker handles different routes. You can also edit
    the code to see what's possible and bring your next idea to life.
    </p>
    </main>
    </body>
    </html>
    Click to copy
    Develop with Wrangler CLI

    Build, preview, and deploy your Workers from the Wrangler command line interface (CLI). Once set up, you’ll be able to quickly iterate on Worker code and configuration from your local development environment.Using Wrangler CLI

    1. 1

      Initialise a new project

      $ npx create-cloudflare@latest
      Click to copy

    2. 2

      Deploy your project

      You'll be asked to deploy via the create-cloudflare CLI. Choose 'yes' and your project will deploy.

    That’s it! 🎉

    You’ve now deployed your project via the CLI. To support you along your journey developing with Cloudflare's CLI tool, Wrangler, here are some resources: