webstor.io address.
You only need Node.js with a package manager (npm, pnpm, yarn, or bun) and a
free Webstorio account.
Prefer the dashboard AI builder instead? See Create your first site.
Step 1 — Scaffold a project
Create a new project with the CLI, then install its dependencies:init scaffolds a ready-to-run project: a webstorio.config.ts, a brand/ folder, a pages/ folder with a
home.tsx, components/_header.tsx and _footer.tsx, plus a package.json,
tsconfig.json, and .gitignore. The directory name seeds your project’s
default name and subdomain.
Step 2 — Explore the structure
A Webstorio site is a small set of files:default export. webstorio.config.ts maps
each file to a route:
webstorio.config.ts
init also writes a compatibilityDate that pins your
supported library versions. See the full
schema in Configuration.
The empty schemas/ folders are ready when you turn on CMS, forms, or App Data
— see Feature schemas. For this tutorial you can ignore
them.
Step 3 — Preview locally
Start the dev server:pages/**,
components/**, and webstorio.config.ts, recompiling and reloading whenever you
save. It runs fully offline using mock data (data modes).
Step 4 — Edit a page
Openpages/home.tsx and make it your own. It’s just React — style with Tailwind
classes (including brand utilities like bg-brand-primary and
font-brand-primary from your branding config)
and import icons from the allowlist:
pages/home.tsx
Step 5 — Add another page
Createpages/about.tsx with a default export:
pages/about.tsx
webstorio.config.ts so it gets a route:
/about.
Step 6 — Log in
Authenticate the CLI through your browser:Step 7 — Deploy
Optional: preview what will sync with a read-only diff:subdomain (creating it
if it doesn’t exist), and uploads the source. The Webstorio server compiles it
authoritatively and publishes the site. You’ll see a per-page report:
Run
npx webstorio push without --publish to sync changes as drafts. Push
is idempotent — re-running updates existing pages in place and writes a new
version each time. More on status and push: Deploying.Next steps
You’ve built and deployed a Webstorio site from code. Keep going:Project structure
Config, pages, components, brand, assets, and schemas.
Local development
Data modes, live reload, and preview fidelity.
Deploying
Login, status, push, and publish.
Feature schemas
Version CMS, forms, and App Data as JSON in the repo.
Use AI agents
Edit local
.tsx with Cursor, Claude Code, Codex, etc.Connect MCP
Manage CMS, forms, and store from an agent.
Commands
Every command and option.
Client SDK
Read and write site data with
window.webstorio.
