sellStart here
rocket_launch

Getting Started

No servers, no credit card needed — sign up, type a few commands, and put your first app online today.

$0Free to start
100kFree requests / day
330+Cities worldwide
~5 minTo first deploy
cloud

What is Cloudflare?

Cloudflare is one of the world's largest networks of computers, spread across 330+ cities. Most people know it for making websites faster and safer, but it is also a developer platform — a place where you can write code and run it on that same global network, without ever renting or managing a server yourself.

The idea is called "build on Cloudflare": instead of buying one computer in one location, your code runs close to your users everywhere at once. You bring the code; Cloudflare provides the computers, the storage, the database, and even the AI.

lightbulb

Think of it like…

A traditional server is like opening one restaurant in one city — everyone has to travel to you. Cloudflare is like a food truck that instantly appears in 330+ cities at once, so the meal is always served right next to whoever ordered it. You just hand over the recipe (your code); the trucks are already everywhere.

public

Runs everywhere

Your code automatically runs in the city closest to each visitor — no regions to pick.

savings

Generous free tier

100,000 requests a day for free, no credit card required to begin.

construction

Batteries included

Compute, storage, databases, and AI all live on the same platform.

person_add

Step 1 — Create a free account

Everything below needs a Cloudflare account. The good news: it is free, takes about a minute, and does not ask for a credit card to get started.

  1. Open the sign-up page

    Go to dash.cloudflare.com/sign-up in your browser. This is the Cloudflare Dashboard — the website where you manage everything by clicking.

  2. Enter email and password

    Type an email address and a strong password, then submit. Use a real inbox you can open.

  3. Verify your email

    Cloudflare emails you a verification link. Click it to confirm the account is yours.

  4. You're in

    You now see the dashboard. You do NOT need to add a website or domain to follow this lesson — the free Workers plan works on its own.

lock

Turn on two-factor

In account settings, enable two-factor authentication (a second code on login). It is a one-minute habit that keeps your projects safe.

terminal

Step 2 — Install the Wrangler CLI

Wrangler is Cloudflare's command-line tool (CLI) — a program you type commands into, in the terminal, to build and deploy your code. The dashboard is for clicking; Wrangler is for shipping.

check_circle

First, get Node.js

Wrangler runs on Node.js (a tool for running JavaScript on your computer). Install Node.js 18 or newer from nodejs.org first. Check it worked by running: node -v

  1. Install Wrangler

    Run this in your terminal. The -g means "install globally" so you can use the wrangler command anywhere.

    bash
    npm install -g wrangler
  2. Log in to Cloudflare

    This opens your browser and asks you to allow Wrangler to use your account. Click Allow, then return to the terminal — it now knows who you are.

    bash
    wrangler login
  3. Confirm it worked

    This prints the email of the logged-in account. If you see your email, you are ready for the next step.

    bash
    wrangler whoami
rocket_launch

Step 3 — Deploy your first Worker

A Worker is a small piece of code that runs on Cloudflare's network and responds to web requests. Let's create one and put it live on the internet — for real.

  1. Create the project

    This command (called C3) scaffolds a ready-to-run project in a new folder named my-first-worker. It will ask a few questions — see the next step.

    bash
    npm create cloudflare@latest -- my-first-worker
  2. Answer the prompts

    When asked what to start with, choose "Hello World example". For the template, pick "Worker only", and for the language pick "JavaScript". Say no to deploying for now — we'll do it ourselves.

  3. Look at the generated code

    Open the new folder. Inside src/index.js you'll find the Worker below. The fetch function runs every time someone visits, and it returns a Response — the page they see.

  4. Deploy it to the world

    Run this from inside the project folder. Wrangler uploads your Worker and gives you a public URL like my-first-worker.<your-name>.workers.dev. Open it in a browser — that's your code running live.

    bash
    npx wrangler deploy
jssrc/index.js
export default {
  async fetch(request, env, ctx) {
    return new Response("Hello World!");
  },
};
edit

Make it yours

Change "Hello World!" to any text, save the file, and run npx wrangler deploy again. Refresh the URL to see your update go global in seconds.

explore

What to learn next

A Worker on its own is powerful, but real apps need to remember things, store files, and sometimes think. Here's where to go next — each is its own lesson on this site.

key

Remember small things — KV

Workers KV is a simple key-value store, like a giant sticky-note board for settings, counters, and flags.

folder

Store files — R2

R2 holds big files like images, videos, and backups — with no fees for downloading them out.

table

Use a database — D1

D1 is a real SQL database for structured data like users and orders, built right into the platform.

smart_toy

Add AI — Workers AI

Workers AI runs ready-made AI models (chat, images, translation) from inside your Worker with one call.

shield

Stay safe — Security

Explore the WAF, Turnstile, and Access to block bad traffic and protect your apps as they grow.

menu_book

Read the docs

The official Cloudflare docs have copy-paste examples for every product. Bookmark them — you'll come back often.

tips_and_updates

Beginner tips

favorite

Start small, stay free

You can learn nearly everything on the free tier. Build tiny projects, break things, and only think about paying once a real project gets real traffic.

  • Use the free tier first — 100,000 requests/day is plenty for learning and side projects.
  • Dashboard vs CLI: click around the dashboard to explore, but use Wrangler when you want repeatable, scriptable deploys.
  • Run npx wrangler dev to test your Worker locally before deploying — it's fast and free.
  • When stuck, read the official docs first; almost every page has a working copy-paste example.
  • Commit your project to Git early so you can always undo a change.
  • Each Worker gets a free .workers.dev URL — great for sharing demos without buying a domain.