Newer Version Available

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

Use the Salesforce CLI from Behind a Company Firewall or Web Proxy

If you install Salesforce DX CLI on a computer that’s behind a company firewall or web proxy, you might receive error messages. In this case, you must further configure your system.

You get an error similar to the following when you run force --help after installing the CLI binary behind a firewall or web proxy. This error is from a Windows computer, but Linux and macOS users sometimes see similar errors.

To address this issue, run these commands from your terminal or Windows command prompt, replacing username:pwd with your web proxy username and password. If your proxy doesn’t require these values, omit them. Also replace proxy.company.com:8080 with the URL and port of your company proxy.

Then set the HTTP_PROXY environment variable to the full URL of the proxy. For example, on UNIX: