Calls and runs [Theme Check](/docs/themes/tools/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.](/docs/themes/tools/theme-check/checks)
shopify theme check [flags]
The following flags are available for the `theme check` command:
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.
env: SHOPIFY_FLAG_PATH
The path to your theme 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
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
env: SHOPIFY_FLAG_ENVIRONMENT
The environment to apply to the current command.
env: SHOPIFY_FLAG_OUTPUT
The output format to use
env: SHOPIFY_FLAG_VERSION
Print Theme Check version