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.

  1. 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.
  2. Install the Salesforce CLI. See Install the Salesforce CLI.
  3. Create a Salesforce Developer Experience (SFDX) project. See Create a Salesforce DX Project.
  4. Create a scratch org. See Create Scratch Orgs.
  5. Install the CLI Analytics plugin by running the command sf plugins install @salesforce/analytics.
  6. 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.