Newer Version Available

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

Where is Salesforce CLI Installed?

When troubleshooting installation problems, it's often useful to know which directories Salesforce CLI is installed in.

Run this command and search the output for the location property, which points to the global Salesforce CLI installation directory. The command works for all types of installations: installers, npm, and TAR files.

In this sample output, Salesforce CLI is installed in the /Users/astro/.local/share/sf/client/2.25.7-b42201f directory.

To find the directories in which the plugins are installed, set the DEBUG environment variable to sf and run the version command. For example:

The data property in the output contains the directory that contains the installed plugins. In this truncated sample output, plugins are installed in the /Users/astro/.local/share/sf directory.