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:
--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
Everyset, unset, update and patch accepts --dry-run. The API computes the result without writing it and returns what would change:
"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
- 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
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:
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 acode next to the message: