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:
Image loading...
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):
Image loading...
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)
Image loading...
Let's add the Shopify Theme Kit CLI action that will run theme download
in the previously created folder:
bashmkdir archive/$BUDDY_EXECUTION_ID cd archive/$BUDDY_EXECUTION_ID theme download
$$$
Image loading...
The whole pipeline will now look like this:
Image loading...
Jarek Dylewski
Customer Support
A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.