Set Salesforce CLI proxy environment variables when the IDE is configured for a proxy

Issue #1550 new
Nikita Drepin created an issue

Hello,

There is a problem with connecting to sandbox with SFDX via corporate proxy. So connection works from regular command line, I used this manual https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm

And regular connection also works proxy is setup in Intellij Idea settings. But SFDX keeps dropping error in Idea

Comments (2)

  1. Scott Wells repo owner

    Interesting. I'm really surprised that this hasn't ever been needed. As a workaround you might set those environment variables in the host OS. Make sure to restart the IDE so that it picks them up. It will then propagate the host environment to the sfdx process when executed and it should work. I'll also investigate setting those environment variables automatically if a proxy is configured in the IDE and they're not already set.

  2. Log in to comment