Skip to main content

theme init
command

Clones a Git repository to your local machine to use as the starting point for building a theme.

If no Git repository is specified, then this command creates a copy of Shopify's Skeleton theme, with the specified name in the current folder. If no name is provided, then you're prompted to enter one.

Caution

If you're building a theme for the Shopify Theme Store, then you can use our example theme as a starting point. However, the theme that you submit needs to be substantively different from existing themes so that it provides added value for users.

The following flags are available for the theme init command:

env: SHOPIFY_FLAG_NO_COLOR

Disable color output.

string
env: SHOPIFY_FLAG_PATH

The path where you want to run the command. Defaults to the current working directory.

env: SHOPIFY_FLAG_VERBOSE

Increase the verbosity of the output.

env: SHOPIFY_FLAG_LATEST

Downloads the latest release of the clone-url

Anchor to -u, --clone-url <value>
-u, --clone-url <value>
string
env: SHOPIFY_FLAG_CLONE_URL

The Git URL to clone from. Defaults to Shopify's Skeleton theme.

Was this section helpful?

Theme init

shopify theme init [name] [flags]