Newer Version Available

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

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
  1. 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
  2. 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
  3. Change to the sfdx directory.
    1$ cd sfdx
  4. Run the install script.
    1$ ./install

    The Salesforce CLI is installed in /usr/local/bin/sfdx.