Shopify Themes: Local Development & Version Control

  • PublishedMarch 5, 2020
  • Length1 Minute
  • CategoryTutorials

This is the first in a series of posts for developers getting started building Shopify themes. In this post, we'll review local theme development and git version control.

Photo by Marcus Loke on Unsplash

About the Author

Dan is a front end engineer working on design systems. Previous roles include: Huge, Cvent, Gifn, and PRPL. For more information, see here.

Questions & Comments

If you have feedback, view this post on GitHub and create an issue or open a pull request with edits. Thanks for reading!

Shopify Theme Series

  • Part 1: Local Development & Version Control
  • Part 2: Automated Deployments with GitHub Actions (coming soon)

Environment Setup

Before we can get started, you'll need a few things in order to follow along:

Shopify Theme CLI

Installation

Shopify has a number of tools to support different developer workflows. For theme development, we will need at least the Shopify Theme Kit CLI installed and authenticated.

Follow the instructions here to install the CLI (themekit) and any supporting libraries (shopify/shopify).

Once complete, running the theme --help command should print a message like the following:

1$ theme --help
2Theme Kit is a tool kit for manipulating shopify themes
3
4Theme Kit is a fast and cross platform tool that enables you to build shopify themes with ease.
5
6Complete documentation is available at https://shopify.github.io/themekit/