---
title: theme open
description: Returns links that let you preview the specified theme.
source_url:
  html: 'https://shopify.dev/docs/api/shopify-cli/theme/theme-open'
  md: 'https://shopify.dev/docs/api/shopify-cli/theme/theme-open.md'
api_name: shopify-cli
---

# theme open

Returns links that let you preview the specified theme. The following links are returned:

* A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
* A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) 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.

#### Flags

The following flags are available for the `theme open` command:

* **--auth-alias \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_AUTH\_ALIAS**

  Alias of the Shopify account to use for authentication.

* **--json-schema**

  **env: SHOPIFY\_FLAG\_JSON\_SCHEMA**

  Print the command's JSON schemas.

* **--no-color**

  **env: SHOPIFY\_FLAG\_NO\_COLOR**

  Disable color output.

* **--no-input**

  **env: SHOPIFY\_FLAG\_NO\_INPUT**

  Disable interactive prompts and browser authentication.

* **--password \<value>**

  **string**

  **env: SHOPIFY\_CLI\_THEME\_TOKEN**

  Password generated from the Theme Access app or an Admin API token.

* **--path \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_PATH**

  The path where you want to run the command. Defaults to the current working directory.

* **--verbose**

  **env: SHOPIFY\_FLAG\_VERBOSE**

  Increase the verbosity of the output. May include sensitive data.

* **-d, --development**

  **env: SHOPIFY\_FLAG\_DEVELOPMENT**

  Open your development theme. Use --development, --live, or --theme in non-interactive environments.

* **-E, --editor**

  **env: SHOPIFY\_FLAG\_EDITOR**

  Open the theme editor for the specified theme in the browser.

* **-e, --environment \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_ENVIRONMENT**

  The environment to apply to the current command.

* **-l, --live**

  **env: SHOPIFY\_FLAG\_LIVE**

  Open your live (published) theme. Use --development, --live, or --theme in non-interactive environments.

* **-s, --store \<value>**

  **string**

  **env: 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>).

* **-t, --theme \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_THEME\_ID**

  Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.

Examples

### Examples

* ####

  ##### theme open

  ```sh
  shopify theme open [flags]
  ```

***
