themelab
v0.6.1
Published
Shopify Theme Lab CLI
Downloads
794
Readme
Command Line Interface for Shopify Theme Lab.
There is no need to install this package locally,
npx
takes care of everything, simply run the commands in your terminal.
System requirements
- Node.js >=
12.0.0
Commands
For all options you can also use the shorthand version, which is the first letter only, with a single dash in front e.g. For
--password
it's-p
.
Create a local development environment:
$ npx themelab create <directory-name>
Create a local development environment from a preset:
Prints a list of available options in the terminal to select from
$ npx themelab create <directory-name> --preset
Initialize a remote Shopify theme and create a local config file:
Run in the root directory of your Shopify Theme Lab project!
$ npx themelab shopify:init --password [your-api-password] --store [your-store.myshopify.com] --env [dev or live] --name ['theme name']
Create a local config file (connect to an existing Theme Lab theme on a remote store):
Run in the root directory of your Shopify Theme Lab project!
$ npx themelab shopify:init --password [your-api-password] --store [your-store.myshopify.com] --env [dev or live] --id [theme-id]
Create a local config file for a published/main theme:
Run in the root directory of your Shopify Theme Lab project!
$ npx themelab shopify:init --password [your-api-password] --store [your-store.myshopify.com] --env [dev or live] --main
Display help:
$ npx themelab --help