Skip to main content
These commands edit what the four tabs of a version page edit: General, Props, Theme and Messages. They follow the same rules as the Admin, and the checkout picks the change up on its next page load.
They need a login and permission to edit the store: organization owners and admins can change a version, members can only read it.

Changing a live version

A change to an active version reaches shoppers as soon as it is saved, and so does activating one, so these commands refuse both unless you pass --live:
The safer path is the one the Admin’s Duplicate offers: clone the version, edit the copy, then activate it.
Activating the copy is the step that goes live, so it is the one that takes --live. The copy is inactive and not default, and carries the template, theme, props, messages, components and functions of the source.

Previewing with —dry-run

Every set, unset, update and patch accepts --dry-run. The API computes the result without writing it and returns what would change:
A real run returns the same shape with "dryRun":false. changed lists the sections whose stored value differs; when it is empty nothing was written. live says whether the change reaches shoppers: the version is active, or the patch activates it. Unlike the dry runs of the record commands, these call the API, so they need a login.

General

Props

set writes the top-level keys you send and leaves the others as they are; an object value replaces the stored one. unset deletes the keys listed. The buckets the General tab owns (flags, shipping, integrations) and a few internal ones cannot be changed here: use version update for the first three. The font prop becomes a stylesheet link and a CSS rule on the checkout, so its href must be an https URL and its fontFamily follows the same character rule as theme values.

Theme

Keys are the theme tokens: letters, digits, - and _. Every value is a string of at most 256 characters and cannot contain ;, {, }, <, > or \, since it is written into the checkout’s stylesheet as is. Colors, sizes, rgba(…), var(…) and quoted font stacks are all fine. set merges over the stored tokens; add --replace to make the tokens you send the whole theme.

Messages

The document has two namespaces, ui and app, each flat or split by locale as described in Translations. set deep-merges, so adding a pt-br text keeps every other key; --replace makes what you send the whole document. unset takes dot paths that start with the namespace.

Several sections at once

version patch sends one request with any of the sections, written together:
Each section takes set, unset (a list of keys; for messages, a list of paths such as ["ui","pt-br","pages_cart_title"]) and, for theme and messages, replace. Add "confirmLive": true or --live for an active version. ollieshop schema version.patch prints the full shape.

Errors

Errors carry a code next to the message: