Skip to main content

theme console
command

Starts the Shopify Liquid REPL (read-eval-print loop) tool. This tool provides an interactive terminal interface for evaluating Liquid code and exploring Liquid objects, filters, and tags using real store data.

You can also provide context to the console using a URL, as some Liquid objects are context-specific

The following flags are available for the theme console command:

env: SHOPIFY_FLAG_NO_COLOR

Disable color output.

string
env: SHOPIFY_CLI_THEME_TOKEN

Password generated from the Theme Access app.

string
env: SHOPIFY_FLAG_PATH

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

Anchor to --store-password <value>
--store-password <value>
string
env: SHOPIFY_FLAG_STORE_PASSWORD

The password for storefronts with password protection.

string
env: SHOPIFY_FLAG_URL

The url to be used as context

env: SHOPIFY_FLAG_VERBOSE

Increase the verbosity of the output.

Anchor to -e, --environment <value>
-e, --environment <value>
string
env: SHOPIFY_FLAG_ENVIRONMENT

The environment to apply to the current command.

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).

Was this section helpful?

Theme console

shopify theme console

shopify theme console --url /products/classic-leather-jacket