Getting started
This documentation explains how to use SHOPLINE CLI for theme development.
Before you start
Ensure you have
- Installed CLI successfully.
- A developer store for development and commissioning.
- Are connected to the Internet. Most SHOPLINE CLI commands need an Internet connection to run.
Authenticate
Use shopline login
to connect SHOPLINE CLI with the store that you want to work on.
- Enter the store you want to log in at the terminal
shopline login --store example.myshopline.com
- In your browser window, enter the account password and log in.
Create a new theme
Use shopline theme init <THEME-NAME>
to create a new theme on your local machine. This command will clone a copy of Seed from a Git repository.
shopline theme init theme-demo
After execution, you will create a new folder in the current directory. The theme name you enter will be used as the directory name.
Use an existing theme
Use Shopline theme pull
command to pull an existing theme to your local machine. You need to log in to the store before running this command.
This command will indicate that you need to select the theme you want to download from the themes within the list.
Use --theme
flag to specify which of these is to be downloaded to your local machine.
If the specified theme is the live version, this command will create a copy based on the live version and download it to the local machine
shopline theme pull --theme <THEME_ID>
Push your theme to your store
Use shopline theme push
to upload your local theme files to SHOPLINE, overwriting the remote versions.
Use the --theme
flag to upload theme files and overwrite the remote specified version.
shopline theme push --theme <THEME_ID>
Error loading component.