Skip to main content

theme-extension

Build, test, and deploy theme extensions. Alias: te.

In a terminal, create, build, connect and serve ask for required flags you leave off (connect lets you pick the app, serve the theme). With --no-input, in CI, or when stdin or stderr is not a terminal, a missing flag fails fast instead.

create​

Scaffold a new standalone theme extension project in the current directory (local, no network). Its config is written to extension.config.json.

shell
shoplazza theme-extension create [flags]

Flags​

FlagTypeDescription
--name <name>stringProject name / target directory (required)
--type <type>stringTemplate type: basic or embed (required)

serve​

Register (on first run), push a dev build, and start incremental sync with file watching on theme-app/, against the current store. Prints the Admin and Storefront preview URLs and runs until interrupted.

shell
shoplazza theme-extension serve [flags]

Flags​

FlagTypeDescription
--theme-id, -t <THEME_ID>stringTheme to preview the extension on (required)
--path <path>stringProject path (default: current directory)

build​

Build a new theme-extension version (zip, upload, and create the version on the server). The zip is made from theme-app/ and leaves out files at its top level other than assets-manifest.json, dot entries at any depth (.env, .gitignore, .DS_Store, .git/) and node_modules/.

shell
shoplazza theme-extension build [flags]

Flags​

FlagTypeDescription
--version <version>stringNew semver version in X.Y.Z form, e.g. 1.0.0, greater than the latest version (required)
--description <text>stringVersion description (required)
--store-domain, -s <domain>stringTarget store (defaults to current store)
--path <path>stringProject path (default: current directory)

deploy​

Enable a version in the current store.

shell
shoplazza theme-extension deploy [flags]

Flags​

FlagTypeDescription
--version <version>stringVersion to enable, e.g. 1.0.0 (defaults to the version recorded by te build)
--path <path>stringProject path (default: current directory)
--debugboolPrint the raw publish request/response for troubleshooting

connect​

Link this theme extension to an app. The app's partner is derived from --client-id.

shell
shoplazza theme-extension connect [flags]

Flags​

FlagTypeDescription
--client-id <id>stringApp client_id to link (required)
--path <path>stringProject path (default: current directory)

release​

Publish a version in the bound app.

shell
shoplazza theme-extension release [flags]

Flags​

FlagTypeDescription
--version <version>stringVersion to publish, e.g. 1.0.0 (defaults to the version recorded by te build)
--path <path>stringProject path (default: current directory)
--debugboolPrint the resolved publish request for troubleshooting

list​

List the store's theme extensions.

shell
shoplazza theme-extension list [flags]

Flags​

FlagTypeDescription
--store-domain, -s <domain>stringTarget store (defaults to current store)

versions​

List the versions of the project's theme extension (its id is read from extension.config.json) on the current store.

shell
shoplazza theme-extension versions [flags]

Flags​

FlagTypeDescription
--path <path>stringProject path (default: current directory)