Install Theme Kit and Setting Up a Shopify Development Environment
Step 1: Install Theme Kit
If you’re using OSX or Linux, run this command in Terminal:
$ curl https://raw.githubusercontent.com/Shopify/themekit/master/scripts/install | python
Step 2: Set up API Access
To authorize Theme Kit with your Shopify store, you’ll need to create a Private App.
Head over to:
https://[your-shopify-store].myshopify.com/admin/apps/private
Click ‘Create Private App’ and you will see a page like this:
Add a Title for your app. I usually use the name of the project or client.
You’ll also need to change the permissions for Theme templates and theme assets to Read & Write.
Click ‘Save App’. Then copy your API Password, you’ll need it in the next step.
Step 3: Set up Your config.yml
To set up your config.yml file, you’ll need the following pieces of information:
Your API password from Step 2
Your Shopify store’s URL
Your Theme ID
The easiest way to find your Theme ID is to go to your Shopify Admin Themes page, click on the theme you want to use, and copy the ID from the URL.
Once you have those three pieces of information, just plug them into this command and run it inside the local folder you want the theme in.
# creates configuration file
$ theme configure --password=[your-api-password] --store=[your-shopify-store.myshopify.com] --themeid=[your-theme-id]
# example cmd: theme configure --password=c1641cecb37bb6420dfc6b9bdee9c063 --store=example-store.myshopify.com --themeid=11926024
# this will download entire theme to current directory
$ theme download
At this point you should have successfully downloaded your Shopify theme to your local folder.
Step 4: The last step is to run this command inside that folder:
$ theme watch
If you’re using OSX or Linux, run this command in Terminal:
$ curl https://raw.githubusercontent.com/Shopify/themekit/master/scripts/install | python
Step 2: Set up API Access
To authorize Theme Kit with your Shopify store, you’ll need to create a Private App.
Head over to:
https://[your-shopify-store].myshopify.com/admin/apps/private
Click ‘Create Private App’ and you will see a page like this:
Add a Title for your app. I usually use the name of the project or client.
You’ll also need to change the permissions for Theme templates and theme assets to Read & Write.
Click ‘Save App’. Then copy your API Password, you’ll need it in the next step.
Step 3: Set up Your config.yml
To set up your config.yml file, you’ll need the following pieces of information:
Your API password from Step 2
Your Shopify store’s URL
Your Theme ID
The easiest way to find your Theme ID is to go to your Shopify Admin Themes page, click on the theme you want to use, and copy the ID from the URL.
Once you have those three pieces of information, just plug them into this command and run it inside the local folder you want the theme in.
# creates configuration file
$ theme configure --password=[your-api-password] --store=[your-shopify-store.myshopify.com] --themeid=[your-theme-id]
# example cmd: theme configure --password=c1641cecb37bb6420dfc6b9bdee9c063 --store=example-store.myshopify.com --themeid=11926024
# this will download entire theme to current directory
$ theme download
At this point you should have successfully downloaded your Shopify theme to your local folder.
Step 4: The last step is to run this command inside that folder:
$ theme watch
Comments
Post a Comment