theme initcommand
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.
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.
Anchor to flagsFlags
The following flags are available for the theme init
command:
- Anchor to --no-color--no-colorenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --path <value>--path <value>stringenv: SHOPIFY_FLAG_PATH
The path where you want to run the command. Defaults to the current working directory.
- Anchor to --verbose--verboseenv: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output.
- Anchor to -l, --latest-l, --latestenv: SHOPIFY_FLAG_LATEST
Downloads the latest release of the
clone-url
- Anchor to -u, --clone-url <value>-u, --clone-url <value>stringenv: SHOPIFY_FLAG_CLONE_URL
The Git URL to clone from. Defaults to Shopify's Skeleton theme.
themeinit
- --no-color
Disable color output.
""
- --path <value>
The path where you want to run the command. Defaults to the current working directory.
string
- --verbose
Increase the verbosity of the output.
""
- -l, --latest
Downloads the latest release of the `clone-url`
""
- -u, --clone-url <value>
The Git URL to clone from. Defaults to Shopify's Skeleton theme.
string
export interface themeinit {
/**
* The Git URL to clone from. Defaults to Shopify's Skeleton theme.
* @environment SHOPIFY_FLAG_CLONE_URL
*/
'-u, --clone-url <value>'?: string
/**
* Downloads the latest release of the `clone-url`
* @environment SHOPIFY_FLAG_LATEST
*/
'-l, --latest'?: ''
/**
* Disable color output.
* @environment SHOPIFY_FLAG_NO_COLOR
*/
'--no-color'?: ''
/**
* The path where you want to run the command. Defaults to the current working directory.
* @environment SHOPIFY_FLAG_PATH
*/
'--path <value>'?: string
/**
* Increase the verbosity of the output.
* @environment SHOPIFY_FLAG_VERBOSE
*/
'--verbose'?: ''
}
Theme init
examples
theme init
theme init
shopify theme init [name] [flags]