Skip to main content
Primo has two starting points. Pick the one that matches how you work:

Start local

Run primo init and primo new to create a workspace on your machine. Build the site locally, then deploy when ready.

Start deployed

Deploy Primo to Railway or a VPS first, then pull it down to your laptop with primo pull for local edits.
Both paths land at the same place: a workspace on disk that you can edit with code, AI agents, or the visual CMS.

Path 1: Build locally, deploy later

Best for: starting from scratch, prototyping, or experimenting before committing to a host.
1

Install the CLI

Requires Node.js 18+.
2

Create a workspace and a site

primo init creates the workspace and offers to connect your AI agent to the Primo MCP tools. primo new creates the site and starts the local CMS. If the port is busy, Primo picks the next free one and prints the URLs it’s using.
Open http://my-site.localhost:3000/admin/site to see the site in the visual editor. File edits show up there immediately. By default your files are the source of truth and the editor is read-only; see authoring modes to edit in the CMS instead.
3

Edit blocks and pages

Open the workspace in your editor:
Edit sites/my-site/blocks/<name>/component.svelte in your editor — the CMS reflects changes immediately. See Local Development for the full workflow including --author modes.
4

Let AI agents help

The workspace includes an AGENTS.md guide (and a CLAUDE.md that imports it), so Claude Code, Cursor, and other agents know how Primo sites are structured. If you skipped MCP setup during primo init, connect the Primo MCP tools so agents can validate edits and scaffold blocks correctly:
See the MCP server reference for details.
5

Deploy when ready

Interactive picker for Railway or Fly.io. See Deploy with the CLI for other options.

What’s Next

Core Concepts

Sites, page types, pages, blocks, fields

Build from Scratch

Walk through building a complete site end-to-end

Local Development

primo dev, author modes, uploads folder

Invite Collaborators

Hand the site off to non-technical editors