
Download the.exe file. Run the.exe file, such as double-clicking it from Windows Explorer, and answer all the prompts. After the installation completes, restart your command prompts, PowerShell windows, or IDEs to make sure the Salesforce CLI executables are available.
Full Answer
How to install Salesforce CLI on Linux?
On Linux, the only way to install Salesforce CLI is with a TAR file. If you've installed Node.js on your computer, you can use npm to install Salesforce CLI.
How do I update the path to my Salesforce CLI?
To update your PATH permanently, add the appropriate entry to your shell’s configuration file. For example, if you use the Bash shell, add this line to your ~/.bashrc or ~/.bash_profile file: If you've installed Node.js on your computer, you can use npm to install Salesforce CLI.
How do I install Salesforce on my computer?
Choose one method to install on your computer. For example, don’t install on macOs with both a .pkg and npm. You install Salesforce CLI on macOS with a .pkg file. Install Salesforce CLI on Windows with an .exe file. Salesforce CLI distributes TAR files that you can install on all supported operating systems.
How do I check the installed version of the Salesforce CLI?
To install the CLI, follow the instructions for your operating system in the Salesforce DX Setup Guide , then return here. To work with Lightning web components, you need version 45 or greater of the Salesforce CLI. Check the installed version. The command outputs version numbers.

Install the CLI with a TAR File
Salesforce CLI distributes TAR files that you can install on all supported operating systems. On Linux, the only way to install Salesforce CLI is with a TAR file.
Install the CLI with npm
If you've installed Node.js on your computer, you can use npm to install Salesforce CLI. This method lets you install Salesforce CLI from the command line and can be especially useful for continuous integration (CI) use cases.
Install Older Versions of Salesforce CLI
We recommend that you always use the latest version or release candidate of Salesforce CLI. However, we also understand that sometimes you might require an older version of the CLI. For these use cases, we publish JSON files that list the download URLs for recent versions of the installers and TAR files for each supported operating system.
Verify Your Installation
Verify your Salesforce CLI installation to ensure you’ve installed it correctly.
Install the CLI with npm
If you've installed Node.js on your computer, you can use npm to install Salesforce CLI. This method lets you install Salesforce CLI from the command line and can be especially useful for continuous integration (CI) use cases.
Install a Specific Version of the salesforcedx Plug-In
By default, the latest version of the salesforcedx plug-in is installed when you install Salesforce CLI for the first time. Sometimes, however, you want to use a specific version of the salesforcedx plug-in.
