To get started using the Salesforce Code Analyzer CLI commands, complete the prerequisites and follow the installation instructions.
Prerequisites
To set up Salesforce Code Analyzer, complete these prerequisites.
Java Platform, Standard Edition Development Kit
Some Code Analyzer features depend on the Java Platform, Standard Edition Java Development Kit (JDK). Install JDK version 11 or later.
Salesforce CLI
Code Analyzer is a Salesforce CLI plugin, so you must install Salesforce CLI on your machine. Then use Salesforce CLI to execute commands against Salesforce orgs and work with source files on your local computer.