Newer Version Available
Update Salesforce CLI
If you want to ensure that you’re running the latest version of Salesforce CLI, you can
manually update it.
If You Installed Salesforce CLI Using the Installer
To install the latest Salesforce CLI and plug-in versions,
run:
1sfdx update
2
3sfdx-cli: Updating CLI from 7.74.1-32db2396ed to 7.85.1-2fb9e41053... done
4sfdx-cli: Updating CLI... doneBy default, the CLI periodically checks for and installs updates. To disable auto-update, set the SFDX_AUTOUPDATE_DISABLE environment variable to true.
If You Installed Salesforce CLI Using npm
The auto-update option isn’t available. To update Salesforce CLI using npm,
run:
1npm install --global sfdx-cliDisable Automatic Update of the CLI and Plug-In
When you run a command, Salesforce CLI checks to see if you have the latest version. If
not, the CLI automatically updates itself and the salesforcedx and supporting plug-ins. You can disable this automatic update with an
environment variable.
To remain on the current version of the CLI and disable automatic updates, set the SFDX_AUTOUPDATE_DISABLE environment variable to true. How you set an environment variable is different for different operating systems. See the operating system vendor’s help for instructions on how to set environment variables.