You are here:
Develop with the Analytics Plugin for the Salesforce CLI
The Salesforce CLI is a powerful command-line interface that simplifies development and build automation when working with a Salesforce org. The CLI plugin extends that experience to CRM Analytics. Plugin commands work from either the CLI or Microsoft Visual Studio (VS) Code.
Use Salesforce CLI and Salesforce Developer Experience (SFDX) to create scratch orgs with Analytics Studio, which you can use to develop and test source code. CLI and SFDX work with any Salesforce org.
The CLI plugin gives you access to commands that call a subset of Analytics REST API endpoints to manage Analytics assets programmatically. Use plugin commands to convert an app created in Analytics Studio to a template and manage the complete template lifecycle. Download the template JSON files for refinement, using an editor of your choice. For example, adding a configuration wizard to enable app customization and updating the template. And update the template files from the master app when you change it in Analytics Studio or edit the JSON files in VS Code.
You can also share the results of your work with other developers using a version control system. They can push the template JSON files to their own scratch orgs for further testing and development work, including updating and deleting apps and templates.
Use other CLI plugin commands to update and delete apps, dashboards, lenses, and dataflows. You can also restore previous versions of Analytics assets programmatically. You can also use the Analytics Studio user interface to restore previous versions of dashboards and dataflows.
For a full reference of the Analytics commands, see the Salesforce Analytics CLI Plugin Command Reference.

