Skip to content

Command-Line Interface (CLI)

You can use HTMLHint on the command-line. For example:

Terminal window
npx htmlhint index.html

Use npx htmlhint --help to print the CLI documentation.

In addition to the standard options, the CLI accepts:

Force enabling/disabling of color.

Show all the rules available

Set all of the rules available

Load custom rules from file or folder

Show the currently installed version of HTMLHint.