Salesforce Lightning CLI Options

There are several options that modify the behavior of Lightning CLI.

The following options are available.

Option Description
-i, --ignore IGNORE Pattern to ignore some folders. For example, to ignore any folder named foo:
--ignore **/foo/**
--files FILES Pattern to include only specific files. Defaults to all .js files. For example, to include only client-side controllers:
--files **/*Controller.js
-j, --json Output JSON to facilitate integration with other tools. Without this option, defaults to standard text output format.
--config CONFIG Path to a custom ESLint configuration. Only code styles rules are picked up, the rest are ignored. For example:
--config path/to/.eslintrc
--verbose Report errors and warnings. By default, Lightning CLI reports only errors.

Lightning CLI also provides some built-in help, which you can access at any time with the following commands:

heroku lightning --help
heroku lightning:lint --help