Getting Started
No servers, no credit card needed — sign up, type a few commands, and put your first app online today.
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.
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.
Runs everywhere
Your code automatically runs in the city closest to each visitor — no regions to pick.
Generous free tier
100,000 requests a day for free, no credit card required to begin.
Batteries included
Compute, storage, databases, and AI all live on the same platform.
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.
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.
Enter email and password
Type an email address and a strong password, then submit. Use a real inbox you can open.
Verify your email
Cloudflare emails you a verification link. Click it to confirm the account is yours.
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.
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.
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.
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
Install Wrangler
Run this in your terminal. The -g means "install globally" so you can use the wrangler command anywhere.
npm install -g wranglerLog 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.
wrangler loginConfirm it worked
This prints the email of the logged-in account. If you see your email, you are ready for the next step.
wrangler whoami
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.
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.
npm create cloudflare@latest -- my-first-workerAnswer 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.
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.
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.
npx wrangler deploy
export default {
async fetch(request, env, ctx) {
return new Response("Hello World!");
},
};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.
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.
Remember small things — KV
Workers KV is a simple key-value store, like a giant sticky-note board for settings, counters, and flags.
Store files — R2
R2 holds big files like images, videos, and backups — with no fees for downloading them out.
Use a database — D1
D1 is a real SQL database for structured data like users and orders, built right into the platform.
Add AI — Workers AI
Workers AI runs ready-made AI models (chat, images, translation) from inside your Worker with one call.
Stay safe — Security
Explore the WAF, Turnstile, and Access to block bad traffic and protect your apps as they grow.
Read the docs
The official Cloudflare docs have copy-paste examples for every product. Bookmark them — you'll come back often.
Beginner tips
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.
Related products
menu_bookOfficial docsopen_in_new