Themes CLI
A robust Command-Line Interface tool designed to empower Zid partners in creating and maintaining custom themes for their stores.
:::info[]
Prerequisites
π§ Installation
Make sure Node.js is installed on your system. To start a new project, initialize it with npm init
or yarn init
.
Install the CLI tool globally:
# Using npm
npm install -g @zidsa/themes-cli
# Using Yarn
yarn global add @zidsa/themes-cli
π Quick Start
Install the CLI tool globally:
npm install -g @zidsa/themes-cli
Authenticate with your Zid partner account:
themes-cli login
Create a new theme project:
themes-cli new my-awesome-theme
Navigate to your new themeβs directory:
cd my-awesome-theme
Build your theme for deployment:
themes-cli build
Preview your theme in a demo store:
themes-cli preview --store_email your-demo-store@zid.dev
Submit an update for your theme:
themes-cli update --theme_id abc123def456 --change_type minor --release_notes "Added new footer design and improved mobile responsiveness"
π» Available Commands
Command | Description | Usage | Documentation |
---|---|---|---|
build | Compile your theme for deployment | themes-cli build [options] |
Build Documentation |
new | Set up a new theme project | themes-cli new [options] |
New Theme Documentation |
help | Display help information for commands | themes-cli help |
- |
login | Authenticate with your Zid partner account | themes-cli login |
Login Documentation |
list | View themes available in your account | themes-cli list |
List Documentation |
preview | Preview your theme in a demo store | themes-cli preview [options] |
Preview Documentation |
update | Submit a theme update for approval | themes-cli update [options] |
Update Documentation |
For detailed information on each command, refer to the documentation links or run:
themes-cli help
Last modified: 19 days ago