In October 2022, support for themes was added to Shopify CLI 3.x. Shopify CLI 3.x provides a streamlined authentication and store management experience. On this page, you can learn about the differences between Shopify CLI 2.x and 3.x, and how to update your theme development environment. ## Getting started Refer to the following tutorials for details about creating or working on a Shopify theme using Shopify CLI:
2.0 | 3.0 | |
---|---|---|
Authentication | Authenticate with Shopify CLI using shopify login |
You don't need to log in explicitly. If you aren't logged in, then you're prompted to log in when you run a command that requires authentication. |
View the organization you're currently logged into using shopify whoami |
No longer supported | |
Store selection | Select a store using shopify login --store |
Pass a --store flag the first time you run a command that requires connection to a store. This store is used in subsequent commands. |
Switch between stores using shopify switch |
Pass a --store flag with a new value when you want to run a command against a new store |
|
Run shopify store to view which store you're currently using. |
Run shopify theme info to view which store you're currently using |
|
General | Preview your theme in a store using shopify theme serve |
Command is renamed to shopify theme dev |
Populate stores using shopify populate [ products | draftorders | customers ] |
No longer supported | |
Specify the directory that you want to use using the [root] positional argument |
Specify the directory that you want to use using the –-path flag |