Shopify CLI Docs

shopify theme init

Clones a Git repository to use as a starting point for building a new theme.

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.

Usage

shopify theme init [name] [flags]

Summary

Clones a Git repository to use as a starting point for building a new theme.

Flags

  • --no-color — Disable color output. optional Environment: SHOPIFY_FLAG_NO_COLOR.
  • --path <value> string — The path where you want to run the command. Defaults to the current working directory. optional Environment: SHOPIFY_FLAG_PATH.
  • --verbose — Increase the verbosity of the output. optional Environment: SHOPIFY_FLAG_VERBOSE.
  • -l, --latest — Downloads the latest release of the clone-url optional Environment: SHOPIFY_FLAG_LATEST.
  • -u, --clone-url <value> string — The Git URL to clone from. Defaults to Shopify's Skeleton theme. optional Environment: SHOPIFY_FLAG_CLONE_URL.

Official source

On this page