Clone the repo
git clone [email protected]:oddvalue/dockerised-shopify-cli.git [PROJECT NAME]
cd [PROJECT NAME]make buildmake upYou'll be provided a link for your store, open it in your browser and login and you'll be dropped in to a bash shell in the docker container where you can run shopify commands on that store.
The script automatically adds an env file to your project directory. The env file contains the following variables:
STORE_URL- The URL of the store you want to connect to
You can use the CLI to pull the theme files from Shopify and they will be deposited in the /theme directory. Alternatively, if you use a VCS to manage your theme files, you can clone it directly into the /theme directory.
e.g.
git clone [YOUR THEME REPO] themeWhen serving your theme set the host to 0.0.0.0
i.e.
shopify theme serve --host 0.0.0.0Then access via localhost:9292 on the host machine.
If you're prompted to update the Shopify CLI or any of it's dependencies then run the build command again.
make build- sti:
shopify theme init - stp:
shopify theme pull - stps:
shopify theme push - sts:
shopify theme serve --host 0.0.0.0 - stc:
shopify theme check