Skip to main content

theme check
command

Calls and runs Theme Check to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. Learn more about the checks that Theme Check runs.

The following flags are available for the theme check command:

Anchor to --fail-level <value>
--fail-level <value>
string
env: SHOPIFY_FLAG_FAIL_LEVEL

Minimum severity for exit with error code

env: SHOPIFY_FLAG_INIT

Generate a .theme-check.yml file

env: SHOPIFY_FLAG_LIST

List enabled checks

env: SHOPIFY_FLAG_NO_COLOR

Disable color output.

string
env: SHOPIFY_FLAG_PATH

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

env: SHOPIFY_FLAG_PRINT

Output active config to STDOUT

env: SHOPIFY_FLAG_VERBOSE

Increase the verbosity of the output.

env: SHOPIFY_FLAG_AUTO_CORRECT

Automatically fix offenses

Anchor to -C, --config <value>
-C, --config <value>
string
env: SHOPIFY_FLAG_CONFIG

Use the config provided, overriding .theme-check.yml if present Supports all theme-check: config values, e.g., theme-check:theme-app-extension, theme-check:recommended, theme-check:all For backwards compatibility, :theme_app_extension is also supported

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

The environment to apply to the current command.

Anchor to -o, --output <value>
-o, --output <value>
string
env: SHOPIFY_FLAG_OUTPUT

The output format to use

env: SHOPIFY_FLAG_VERSION

Print Theme Check version

Was this section helpful?

Theme check

shopify theme check [flags]