
June 19, 2020
New action: Shopify Theme Kit CLI
Shopify is a cloud-based commercial platform allowing you to easily build online stores. For a long time Buddy has enforced web developers in their job with bulding, testing, and deploying themes to Shopify stores. This week we deliver a new functionality that expands the scope of automation even further: the Shopify Theme Kit CLI.
What is Shopify Theme Kit CLI
In short, the tool lets you run operations such as creating new themes or uploading/downloading changes in the context of Shopify themes directly from your terminal. The action can be found in the DevOps section of the action roster:
Shopify Theme Kit CLI in the action roster
Integration is very simple – just provide the URL to your shop and log in to your Shopify account (in case your browser session has expired):
Shopify integration
Example use case: Backing up themes before deployment
Here's an example deployment pipeline in Buddy:
- Run Gulp script
- Deploy theme to Shopify store
- Send notification of successful update (or compilation errors)
Example Shopify pipeline
Let's add the Shopify Theme Kit CLI action that will run theme download
in the previously created folder:
mkdir archive/$BUDDY_EXECUTION_ID
cd archive/$BUDDY_EXECUTION_ID
theme download
$$$
Shopify Theme Kit CLI action details
The whole pipeline will now look like this:
Shopify backup & deploy pipeline
Share:

Alexander Kus
Customer Success Manager