Newer Version Available

This content describes an older version of this product. View Latest

Install Salesforce CLI Plug-Ins

By default, the latest versions of the salesforcedx and supporting plug-ins are installed when you install Salesforce CLI for the first time. Sometimes, however, you want to use a specific version of a plug-in.

To determine which Salesforce CLI (sfdx-cli), salesforcedx, and supporting plug-in versions you’ve installed, run:

1$ sfdx plugins --core
2
3@oclif/plugin-autocomplete 0.1.5 (core)
4@oclif/plugin-commands 1.3.0 (core)
5@oclif/plugin-help 3.2.0 (core)
6@oclif/plugin-not-found 1.2.4 (core)
7@oclif/plugin-plugins 1.9.0 (core)
8@oclif/plugin-update 1.3.10 (core)
9@oclif/plugin-warn-if-update-available 1.7.0 (core)
10@oclif/plugin-which 1.0.3 (core)
11@salesforce/sfdx-trust 3.4.3 (core)
12alias 1.1.2 (core)
13analytics 1.12.1 (core)
14config 1.1.8 (core)
15generator 1.1.3 (core)
16salesforcedx 49.13.1 (core)                        // salesforcedx plug-in version
17|- custom-metadata 1.0.10 (core)
18|- @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
19|- templates 49.9.1 (core)
20|- apex 0.1.1 (core)
21|- salesforce-alm 49.12.2 (core)
22sfdx-cli 7.75.1 (core)                             // CLI version

The output displays all installed plug-ins. If a plug-in has (core) next to its name, it’s the version bundled with the CLI. If you install a specific version of the plug-in, its version number or tag is displayed instead. See the npm registry for all published versions of the salesforcedx and supporting plug-ins.

Run this command to install a specific version of the salesforcedx plug-in, such as 50.7.1:

1sfdx plugins:install salesforcedx@50.7.1

Run this command to install a specific version of the alias plug-in:

1sfdx plugins:install alias@1.1.5

Run this command to install the release candidate of salesforcedx. The release candidate contains changes that we plan to include in the next official version. The list of changes that are actually included in the official version, however, is subject to change.

1sfdx plugins:install salesforcedx@latest-rc

When you install a plug-in version using a tag, such as latest-rc, you stay with that tag until you uninstall the plug-in. To stop being tied to this release tag and go back to using the latest version of the salesforcedx plug-in, run this command:

1sfdx plugins:uninstall salesforcedx

Important