Working locally
To work locally you will need to install themekit from Shopify. You can find out how at https://shopify.github.io/themekit/
Once you have the themekit application installed you'll need to configure the theme.
- Navigate to your code folder
- Create a new folder for the project
- You will need three pieces of information to run the configure command.
- The Admin API Password
- The URL of the store
- The ThemeId
Finding the Admin API Password
- Log into the Shopify Partners Site
- Select the site that you want to work on and click
Log In - On the left nav click
Apps - On this page, at the bottom of the list click
Manage Private Apps - Select the
Themeapp from the list - Scroll down to the
Admin APIsection and copythe API Password
The URL of the store
- You don't need the protocol park of the URL, just the main part for example
bleh.myshopify.com
Finding the Theme ID
- Still in the stores admin (Steps 1 & 2 from above)
- Choose
Online Storefrom the left navigation - Find the theme you're working on in the list and select
Customise - Copy the ThemId from the URL e.g. the URL is
https://bleh.myshopify.com/admin/themes/36953030726/editorwe only need the numbers36953030726
Configure the site
- Run the command below but replace the values with your own
theme configure --password=########### --store=bleh.myshopify.com --themeid=123456789101112
It is possible that this process might fail with a permission error.
Allowing access
- Again in the private app settings page (Steps 1-6 from Finding the Admin API Password)
- Ensure the setting
Theme templates and theme assetshas Read and Write access - Re run the above configure command
Downloading the theme code
- Run the command
theme download
That's it really.