Newer Version Available
Install the CLI on Linux
The Linux version of the Salesforce CLI is distributed as a tarball.
The tarball is called sfdx-version-OS-ARCH.tar.xz, where:
- version is a version string, such as v5.9.9-d42cf65
- OS is either darwin, linux, freebsd, openbsd, or windows
- ARCH is either amd64 or 386
-
Download or wget the tarball. Find the download URL
for your tarball from this manifest
file. Select the URL based on your target platform. For example:
1$ wget https://developer.salesforce.com/media/salesforce-cli/sfdx-v5.99.1-d7efd75-linux-amd64.tar.xz -
Unpack the contents. For example, if you downloaded the tarball in your current
directory:
1$ tar -xvJf sfdx-v5.9.9-d42cf65-linux-amd64.tar.xz -
Change to the sfdx directory.
1$ cd sfdx -
Run the install script.
1$ ./installThe Salesforce CLI is installed in /usr/local/bin/sfdx.