|
7157 | 7157 | "category": "theme", |
7158 | 7158 | "related": [] |
7159 | 7159 | }, |
| 7160 | + { |
| 7161 | + "name": "theme preview", |
| 7162 | + "description": "Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.", |
| 7163 | + "overviewPreviewDescription": "Applies JSON overrides to a theme and returns a preview URL.", |
| 7164 | + "type": "command", |
| 7165 | + "isVisualComponent": false, |
| 7166 | + "defaultExample": { |
| 7167 | + "codeblock": { |
| 7168 | + "tabs": [ |
| 7169 | + { |
| 7170 | + "title": "theme preview", |
| 7171 | + "code": "shopify theme preview [flags]", |
| 7172 | + "language": "bash" |
| 7173 | + } |
| 7174 | + ], |
| 7175 | + "title": "theme preview" |
| 7176 | + } |
| 7177 | + }, |
| 7178 | + "definitions": [ |
| 7179 | + { |
| 7180 | + "title": "Flags", |
| 7181 | + "description": "The following flags are available for the `theme preview` command:", |
| 7182 | + "type": "themepreview", |
| 7183 | + "typeDefinitions": { |
| 7184 | + "themepreview": { |
| 7185 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7186 | + "name": "themepreview", |
| 7187 | + "description": "", |
| 7188 | + "members": [ |
| 7189 | + { |
| 7190 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7191 | + "syntaxKind": "PropertySignature", |
| 7192 | + "name": "--no-color", |
| 7193 | + "value": "\"\"", |
| 7194 | + "description": "Disable color output.", |
| 7195 | + "isOptional": true, |
| 7196 | + "environmentValue": "SHOPIFY_FLAG_NO_COLOR" |
| 7197 | + }, |
| 7198 | + { |
| 7199 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7200 | + "syntaxKind": "PropertySignature", |
| 7201 | + "name": "--open", |
| 7202 | + "value": "\"\"", |
| 7203 | + "description": "Automatically launch the theme preview in your default web browser.", |
| 7204 | + "isOptional": true, |
| 7205 | + "environmentValue": "SHOPIFY_FLAG_OPEN" |
| 7206 | + }, |
| 7207 | + { |
| 7208 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7209 | + "syntaxKind": "PropertySignature", |
| 7210 | + "name": "--overrides <value>", |
| 7211 | + "value": "string", |
| 7212 | + "description": "Path to a JSON overrides file.", |
| 7213 | + "environmentValue": "SHOPIFY_FLAG_OVERRIDES" |
| 7214 | + }, |
| 7215 | + { |
| 7216 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7217 | + "syntaxKind": "PropertySignature", |
| 7218 | + "name": "--password <value>", |
| 7219 | + "value": "string", |
| 7220 | + "description": "Password generated from the Theme Access app or an Admin API token.", |
| 7221 | + "isOptional": true, |
| 7222 | + "environmentValue": "SHOPIFY_CLI_THEME_TOKEN" |
| 7223 | + }, |
| 7224 | + { |
| 7225 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7226 | + "syntaxKind": "PropertySignature", |
| 7227 | + "name": "--path <value>", |
| 7228 | + "value": "string", |
| 7229 | + "description": "The path where you want to run the command. Defaults to the current working directory.", |
| 7230 | + "isOptional": true, |
| 7231 | + "environmentValue": "SHOPIFY_FLAG_PATH" |
| 7232 | + }, |
| 7233 | + { |
| 7234 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7235 | + "syntaxKind": "PropertySignature", |
| 7236 | + "name": "--preview-id <value>", |
| 7237 | + "value": "string", |
| 7238 | + "description": "An existing preview identifier to update instead of creating a new preview.", |
| 7239 | + "isOptional": true, |
| 7240 | + "environmentValue": "SHOPIFY_FLAG_PREVIEW_ID" |
| 7241 | + }, |
| 7242 | + { |
| 7243 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7244 | + "syntaxKind": "PropertySignature", |
| 7245 | + "name": "--verbose", |
| 7246 | + "value": "\"\"", |
| 7247 | + "description": "Increase the verbosity of the output.", |
| 7248 | + "isOptional": true, |
| 7249 | + "environmentValue": "SHOPIFY_FLAG_VERBOSE" |
| 7250 | + }, |
| 7251 | + { |
| 7252 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7253 | + "syntaxKind": "PropertySignature", |
| 7254 | + "name": "-e, --environment <value>", |
| 7255 | + "value": "string", |
| 7256 | + "description": "The environment to apply to the current command.", |
| 7257 | + "isOptional": true, |
| 7258 | + "environmentValue": "SHOPIFY_FLAG_ENVIRONMENT" |
| 7259 | + }, |
| 7260 | + { |
| 7261 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7262 | + "syntaxKind": "PropertySignature", |
| 7263 | + "name": "-s, --store <value>", |
| 7264 | + "value": "string", |
| 7265 | + "description": "Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).", |
| 7266 | + "isOptional": true, |
| 7267 | + "environmentValue": "SHOPIFY_FLAG_STORE" |
| 7268 | + }, |
| 7269 | + { |
| 7270 | + "filePath": "docs-shopify.dev/commands/interfaces/theme-preview.interface.ts", |
| 7271 | + "syntaxKind": "PropertySignature", |
| 7272 | + "name": "-t, --theme <value>", |
| 7273 | + "value": "string", |
| 7274 | + "description": "Theme ID or name of the remote theme.", |
| 7275 | + "environmentValue": "SHOPIFY_FLAG_THEME_ID" |
| 7276 | + } |
| 7277 | + ], |
| 7278 | + "value": "export interface themepreview {\n /**\n * The environment to apply to the current command.\n * @environment SHOPIFY_FLAG_ENVIRONMENT\n */\n '-e, --environment <value>'?: string\n\n /**\n * Disable color output.\n * @environment SHOPIFY_FLAG_NO_COLOR\n */\n '--no-color'?: ''\n\n /**\n * Automatically launch the theme preview in your default web browser.\n * @environment SHOPIFY_FLAG_OPEN\n */\n '--open'?: ''\n\n /**\n * Path to a JSON overrides file.\n * @environment SHOPIFY_FLAG_OVERRIDES\n */\n '--overrides <value>': string\n\n /**\n * Password generated from the Theme Access app or an Admin API token.\n * @environment SHOPIFY_CLI_THEME_TOKEN\n */\n '--password <value>'?: string\n\n /**\n * The path where you want to run the command. Defaults to the current working directory.\n * @environment SHOPIFY_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * An existing preview identifier to update instead of creating a new preview.\n * @environment SHOPIFY_FLAG_PREVIEW_ID\n */\n '--preview-id <value>'?: string\n\n /**\n * Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).\n * @environment SHOPIFY_FLAG_STORE\n */\n '-s, --store <value>'?: string\n\n /**\n * Theme ID or name of the remote theme.\n * @environment SHOPIFY_FLAG_THEME_ID\n */\n '-t, --theme <value>': string\n\n /**\n * Increase the verbosity of the output.\n * @environment SHOPIFY_FLAG_VERBOSE\n */\n '--verbose'?: ''\n}" |
| 7279 | + } |
| 7280 | + } |
| 7281 | + } |
| 7282 | + ], |
| 7283 | + "category": "theme", |
| 7284 | + "related": [] |
| 7285 | + }, |
7160 | 7286 | { |
7161 | 7287 | "name": "theme profile", |
7162 | 7288 | "description": "Profile the Shopify Liquid on a given page.\n\n This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.", |
|
0 commit comments