Newer Version Available

This content describes an older version of this product. View Latest

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:
1--ignore **/foo/**
--files FILES Pattern to include only specific files. Defaults to all .js files. For example, to include only client-side controllers:
1--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:
1--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:

1heroku lightning --help
2heroku lightning:lint --help