Newer Version Available

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

Install the Salesforce DX CLI on the Windows 10 Subsystem for Linux

The Windows Subsystem for Linux (WSL) allows you to run native Linux command-line tools on Windows 10 alongside your traditional Windows desktop.
  1. From the Run dialog box (Windows key + R), run optionalfeatures.exe.
  2. In Windows Features, select Windows Subsystem for Linux.
    Windows Subsystem for Linux
  3. From the command prompt, enter bash, which triggers the installation of Ubuntu. At the prompt, enter y to agree to install the components.
  4. When the Ubuntu install is finished, create the directory /mnt/c/ProgramFilesLinux.
  5. Change to the new directory.
  6. Run wget with the download URL of the latest Linux (amd64) tarball. Find the appropriate URL in this manifest file.
  7. Unpack the contents.
  8. Change to the sfdx directory.
  9. Run the install script.
  10. Install Git.

    You must install Git for the Salesforce CLI to work correctly.

    Note