Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Install a CLI Plugin

You can extend the functionality of the core Salesforce CLI by installing a plugin, which is a set of CLI commands that are grouped in an npm package. The plugin can come from a variety of providers: Salesforce, a third party, or even one that you create yourself. Salesforce CLI plugin installs work similarly to npm installs.

An example of a non-core plugin provided by Salesforce is DevOps Center. The examples in this topic use this plugin.

The typical way to install a plugin is to specify its long name with the plugins install command. This method installs the latest release of the plugin. The long name is the name property in the plugin’s package.json file, such as @salesforce/plugin-devops-center.

1sf plugins install @salesforce/plugin-devops-center

To install a specific release of a plugin, specify its tag with the @ character after the long name.

1sf plugins install @salesforce/plugin-devops-center@1.2.27