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