theme opencommand
Returns links that let you preview the specified theme. The following links are returned:
- A link to the editor for the theme in the Shopify admin.
- A preview link that you can share with other developers.
If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.
Anchor to flagsFlags
The following flags are available for the theme open
command:
- Anchor to --no-color--no-colorenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --password <value>--password <value>stringenv: SHOPIFY_CLI_THEME_TOKEN
Password generated from the Theme Access app.
- 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 -d, --development-d, --developmentenv: SHOPIFY_FLAG_DEVELOPMENT
Open your development theme.
- Anchor to -E, --editor-E, --editorenv: SHOPIFY_FLAG_EDITOR
Open the theme editor for the specified theme in the browser.
- Anchor to -e, --environment <value>-e, --environment <value>stringenv: SHOPIFY_FLAG_ENVIRONMENT
The environment to apply to the current command.
- Anchor to -l, --live-l, --liveenv: SHOPIFY_FLAG_LIVE
Open your live (published) theme.
- Anchor to -s, --store <value>-s, --store <value>stringenv: SHOPIFY_FLAG_STORE
Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
- Anchor to -t, --theme <value>-t, --theme <value>stringenv: SHOPIFY_FLAG_THEME_ID
Theme ID or name of the remote theme.
themeopen
- --no-color
Disable color output.
""
- --password <value>
Password generated from the Theme Access app.
string
- --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.
""
- -d, --development
Open your development theme.
""
- -E, --editor
Open the theme editor for the specified theme in the browser.
""
- -e, --environment <value>
The environment to apply to the current command.
string
- -l, --live
Open your live (published) theme.
""
- -s, --store <value>
Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
string
- -t, --theme <value>
Theme ID or name of the remote theme.
string
export interface themeopen {
/**
* Open your development theme.
* @environment SHOPIFY_FLAG_DEVELOPMENT
*/
'-d, --development'?: ''
/**
* Open the theme editor for the specified theme in the browser.
* @environment SHOPIFY_FLAG_EDITOR
*/
'-E, --editor'?: ''
/**
* The environment to apply to the current command.
* @environment SHOPIFY_FLAG_ENVIRONMENT
*/
'-e, --environment <value>'?: string
/**
* Open your live (published) theme.
* @environment SHOPIFY_FLAG_LIVE
*/
'-l, --live'?: ''
/**
* Disable color output.
* @environment SHOPIFY_FLAG_NO_COLOR
*/
'--no-color'?: ''
/**
* Password generated from the Theme Access app.
* @environment SHOPIFY_CLI_THEME_TOKEN
*/
'--password <value>'?: string
/**
* The path where you want to run the command. Defaults to the current working directory.
* @environment SHOPIFY_FLAG_PATH
*/
'--path <value>'?: string
/**
* Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
* @environment SHOPIFY_FLAG_STORE
*/
'-s, --store <value>'?: string
/**
* Theme ID or name of the remote theme.
* @environment SHOPIFY_FLAG_THEME_ID
*/
'-t, --theme <value>'?: string
/**
* Increase the verbosity of the output.
* @environment SHOPIFY_FLAG_VERBOSE
*/
'--verbose'?: ''
}
Theme open
examples
theme open
theme open
shopify theme open [flags]