shopify theme check

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

Options

NameDescription
--config <PATH>The path to your custom Theme Check config. This config overrides .theme-check.yml, if it is present in the directory being analyzed
--category <CATEGORY>Run only the specified category of checks. You can specify multiple categories using multiple instances of this flag
--exclude-category <CATEGORY>Run all checks other than those in the specified category. You can specify multiple categories using multiple instances of this flag
--fail-level <LEVEL>Configure the severity level that causes a run of theme check to fail (exit code 1). Options include error, suggestion, and style
--auto-correctAutomatically fix correctable offenses
--initGenerate a new Theme Check config file
--output <type>Output the results of the check to a file. Options include json and text (default)
--printOutput the active config to STDOUT
--listList the active checks
--versionPrint the version of Theme Check being used