Skip to the workspace
Pebellslearn by building

Cloudflare / Installation & setup

CLI tools & setup

Prepare your workspace, run a small example and check the result before starting the course.

A terminal is where you type commands. A runtime or compiler runs your code; a package manager installs project dependencies. Follow the tools and command surfaces named in this course’s guide.

Already set up? Continue to The Workers Runtime — Code at the Edge →

BEFORE THE FIRST CODING TASK

Your computer, ready to learn.

A Worker running locally

Create a new practice folder in your editor and open its integrated terminal there. Use a separate folder from personal or production projects. Install supported Node LTS. Use a fresh practice directory. The fixture below has no remote bindings and only starts a local development worker; deployment is a later separate step.

Already configured? Run the verification steps and continue. Use the command surface labelled beside each snippet, such as your terminal or SQL console.

Files to create

Save these files in the practice folder described above before running its file commands.

wrangler.jsonc
{
  "name": "pebells-practice",
  "main": "src/index.js",
  "compatibility_date": "2026-01-01"
}
src/index.js
export default {
  async fetch() {
    return new Response("My workspace is ready");
  }
};
  1. 1

    Initialize this new project and install its local development tool.

    Windows · Terminal
    node --version
    npm init -y
    npm install --save-dev wrangler
    npx wrangler --version

    What you should see: Node and Wrangler report versions. Save the generated lockfile.

    Something didn’t work?

    Check Node compatibility and package-install errors. Do not reuse a product project.

  2. 2

    Save wrangler.jsonc and src/index.js as shown below, then start local development.

    Windows · Terminal
    npx wrangler dev

    What you should see: The terminal prints a local address. Its response is My workspace is ready.

    Something didn’t work?

    Use the reported local address and check compilation output. The fixture should have no configured remote resources.

Check it yourself

Change the response text and verify the local response changes. Explain why a local worker is not a deployed Cloudflare service.

This is a self-check; it does not mark a lesson or course complete.

Official setup guides & version requirements
My workspace notes

Notes stay in this browser. They are not uploaded or assessed.

Continue to The Workers Runtime — Code at the Edge →
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.