Install Salesforce Code Analyzer
Install Salesforce Code Analyzer
error
You're reading documentation of an unsupported version of Code Analyzer. See the latest instead.
Install Salesforce Code Analyzer
NOTE: Complete the prerequisites before you install this plug-in
To install a specific Code Analyzer version, run this command.
$ sfdx plugins:install @salesforce/sfdx-scanner@2.13.9
Installing plugin @salesforce/sfdx-scanner...
installed v2.13.9
To check that Code Analyzer is installed, run this command.
$ sfdx plugins
@salesforce/sfdx-scanner 2.13.9
To display Code Analyzer usage and help, run this command.
$ sfdx scanner --help
Scan code to detect code quality issues and security vulnerabilities.
USAGE
$ sfdx scanner:COMMAND
COMMANDS
scanner:run Evaluate a selection of rules against a codebase.
TOPICS
Run help for each topic below to view subcommands
scanner:rule View/add rules that are used to scan code.
Upgrade Code Analyzer
To update Code Analyzer to the latest version, run this command.
$ sfdx plugins:update
sfdx-cli: Updating plugins... done
$ sfdx plugins:update --help
update installed plugins
USAGE
$ sfdx plugins:update
OPTIONS
-h, --help show CLI help
-v, --verbose