novinzodevelopers
Storefront & themes

Previewing a theme while you edit it

Upload a theme to a preview of your store on every save with the theme CLI, without committing or deploying, and share the preview link.

Deploying a theme takes a push and a GitHub Actions run. While you work on a theme, the theme CLI uploads it to a preview of your store on every save instead. The preview renders with the store's real products, cart and plugins, and only browsers that opened its link see it. Buyers keep seeing the live theme until you push to the branch your store deploys from.

Start previewing

Run the CLI in your theme's repository

npx @emergente-labs/theme-cli dev

The repository is one made from the starter theme, as for deploying a theme. The CLI needs Node.js 20 or later.

Approve the computer

On its first run, the CLI opens the dashboard in your browser. Pick the store and choose Approve. Anyone on the store's team can approve a computer.

If your browser runs on another computer (over SSH, in a container or a cloud workspace), it cannot reach the CLI. The CLI also prints a code for that case:

If your browser runs on another computer, go to https://dashboard.novinzo.com/connect/code and enter WDJB-MJHT.

Open that page, enter the code, check that the computer it names is yours, and approve. The CLI carries on within a few seconds. A code lasts ten minutes.

The CLI uploads the theme and prints the preview link:

Uploaded 0.12.1. Refresh your preview.
Previewing on acme: https://acme.mynovinzo.com/__theme-preview?token=…
Anyone with the link sees the preview until 21/11/2026, 10:04:31.
Watching for changes (Ctrl+C to stop).

Opening the link turns the preview on in that browser and lands on the home page. Every page of the store then renders the uploaded theme, with a Previewing a theme in development banner at the bottom. Its Exit preview link, or /__theme-preview/exit on the store, turns the preview off again.

What each save does

On every save, the CLI:

  1. runs the theme's npm run build, which builds the starter's Tailwind CSS;
  2. uploads the theme, which Novinzo checks the way a deploy checks it, so a preview shows what the next deploy would serve;
  3. prints the version the preview shows now.

A problem is printed with its file and line, and the theme is not published: the preview keeps showing the last theme that uploaded. Warnings, such as a field that is going away, print the way a deploy reports them.

A computer can upload 240 times an hour; each check counts as an upload.

Share a preview

Anyone you send the preview link to sees the preview, until it ends. The link only works on your store's own address.

Nothing a preview renders is cached. A preview never replaces what buyers see, and opening the link again after it ended shows the live store.

Connected computers

Settings → Theme → Theme development lists the computers connected to your store, who connected each, when it last uploaded, and when its session ends. A session lasts 30 days; after that, the next dev run asks for your approval again.

Disconnect ends a computer's session at once: it stops uploading, and its preview link stops working for everyone it was shared with. The store's owner can disconnect any computer; anyone else on the team, the computers they connected.

Commands

CommandWhat it does
novinzo-theme dev [dir]Connects the computer if needed, uploads the theme, and uploads it again on every save.
novinzo-theme check [dir]Connects the computer if needed, and has Novinzo check the built theme the way a deploy does, changing nothing.
novinzo-theme logoutDisconnects this computer: its upload token and preview link stop working, and the session is forgotten here.

Every command accepts --api-url, which falls back to NOVINZO_API_URL and then to https://dashboard.novinzo.com/api. dev and check also accept --dashboard-url, the dashboard that approves the computer, which falls back to NOVINZO_DASHBOARD_URL and then to the API's address without /api. Set them only to use another Novinzo environment, such as staging.

The CLI keeps its session in ~/.config/novinzo/theme-cli.json ($XDG_CONFIG_HOME when set), readable only by you.

On this page