--- title: theme preview description: Applies a JSON overrides file to a theme and creates or updates a preview. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/theme/theme-preview' md: 'https://shopify.dev/docs/api/shopify-cli/theme/theme-preview.md' --- # theme preview Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes. 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. #### Flags The following flags are available for the `theme preview` command: * **--overrides \** **string** **required** **env: SHOPIFY\_FLAG\_OVERRIDES** Path to a JSON overrides file. * **-t, --theme \** **string** **required** **env: SHOPIFY\_FLAG\_THEME\_ID** Theme ID or name of the remote theme. * **--json** **''** **env: SHOPIFY\_FLAG\_JSON** Output the preview URL and identifier as JSON. * **--no-color** **''** **env: SHOPIFY\_FLAG\_NO\_COLOR** Disable color output. * **--open** **''** **env: SHOPIFY\_FLAG\_OPEN** Automatically launch the theme preview in your default web browser. * **--password \** **string** **env: SHOPIFY\_CLI\_THEME\_TOKEN** Password generated from the Theme Access app or an Admin API token. * **--path \** **string** **env: SHOPIFY\_FLAG\_PATH** The path where you want to run the command. Defaults to the current working directory. * **--preview-id \** **string** **env: SHOPIFY\_FLAG\_PREVIEW\_ID** An existing preview identifier to update instead of creating a new preview. * **--verbose** **''** **env: SHOPIFY\_FLAG\_VERBOSE** Increase the verbosity of the output. * **-e, --environment \** **string** **env: SHOPIFY\_FLAG\_ENVIRONMENT** The environment to apply to the current command. * **-s, --store \** **string** **env: SHOPIFY\_FLAG\_STORE** Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, ). Examples ### Examples * #### ##### theme preview ```sh shopify theme preview [flags] ``` ***