Workspace-native
Your agent can work across the site’s components, content, fields, and page types in the local workspace.
Build and edit a website with Cursor.
Work with Cursor on the site’s components, content, fields, and page types as local files. Preview your changes, save them to the hosted draft, and publish when you’re ready. Clients use Primo’s browser editor for the content you make editable.
Your local workspace contains the site’s Svelte components, content, fields, and page types. Pull brings the hosted workspace to your machine; push saves local changes to the hosted draft. Publish makes the draft public.
Each block defines its editing fields alongside its component. Primo uses those fields for the editing controls, with inline editing markers connecting visible content to the page. Clients manage the hosted content through the browser editor.
Your agent can work across the site’s components, content, fields, and page types in the local workspace.
Svelte components, YAML content, and field definitions live in the workspace. Your agent can work on the design and editing controls together.
After push, your client edits on the rendered page in the fields your blocks declared — the same source Cursor just edited. One source of truth.
Four steps. The CLI is the real Primo CLI — primo pull, primo push. What’s Cursor-specific is step three, where you drive the change from Cursor’s agent.
Sign in to your hosted Primo server with primo login <server-url>, then pull the workspace to your machine. It contains the server’s sites and shared library.
$ primo pull <server-url>
Run this from the workspace folder. Primo watches file changes and provides a browser preview. Use the URLs printed in the terminal.
$ primo dev
Open the workspace in Cursor and describe the changes you need. Define the editable fields and check the browser preview as you build.
$ ⌘K "redesign the pricing page and add a /vs/sanity comparison"
Push the selected site to the hosted draft. Review it, then publish through the editor or with primo publish --only my-site.
$ primo push --only my-site
Replace my-site with your site’s folder name. Push saves a hosted draft; publish makes it public. Pull the latest content before starting new local work.
Use your coding agent to build and change the local site files. Primo provides the CMS your client signs in to for content updates. You review and publish the changes when they’re ready.
Sign in to Primo and pull the hosted workspace, then open it in Cursor. Components are Svelte files; content and fields are YAML. Preview with primo dev, save a draft with primo push --only my-site, and publish separately when ready.
Primo combines Svelte components, a content model, and a browser editor in one system. Define each block’s fields and connect editable content with inline markers. Pull and push move the site between local files and the hosted CMS. See the Primo workflow.
No. Cursor helps you build and change the source. Clients use Primo’s browser editor to update the fields and pages you’ve set up for them.
Use primo login <server-url> to sign in to the hosted Primo server. The CLI saves that login for later pull and push commands. Keep credentials out of prompts and source files.
Build with an agent.
Hand it to a human.
Start with your agent or the CLI. Build locally, then deploy an editable CMS when you’re ready.
Create a new Primo site for my client. Set up a local workspace, help me choose a marketplace starter, and open the Primo editor. Read the Primo docs at https://docs.primo.build before starting.
MIT · open source · free forever