You are here:
Install the Analytics CLI Plugin
Follow these steps to set up the Analytics plugin for Salesforce command-line interface (CLI) for your CRM Analytics development project.
- Enable Dev Hub in your org so you can create and manage scratch orgs from the command line. See Enable Dev Hub in Your Org.
- Install the Salesforce CLI. See Install the Salesforce CLI.
- Create a Salesforce Developer Experience (SFDX) project. See Create a Salesforce DX Project.
- Create a scratch org. See Create Scratch Orgs.
- Install the CLI Analytics plugin by running the command
sf plugins install @salesforce/analytics. - Verify the installation by listing the available CRM Analytics commands. Run the command
sf analytics --help.
For an overview and examples of commonly used CLI commands for managing CRM Analytics assets, refer to the Salesforce Analytics CLI Plugin Command Reference.

