function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aliaksandr SatskouAliaksandr Satskou 

SFDX CLI - Proxy

Hi


Please, help to set up proxy for SFDX CLI.

I'm trying:
sfdx update

I'm getting:
If you are behind a proxy, please make sure that the network 'proxy' config is set properly.  See: 'npm help config'

Regards, Aliaksandr Satskou
Best Answer chosen by Aliaksandr Satskou
Shunsuke Gimba (銀羽 俊介)Shunsuke Gimba (銀羽 俊介)
Hi.
Check
  internet options > lan settings > bypass proxy server for local addresses
on, because the login process seems to pass localhost(1717),
and this page should not be via proxy.
Then type command
  set https_proxy=[your proxy adress]
then you can login to DevHub using OAuth.

i hope this helps you.

All Answers

Shunsuke Gimba (銀羽 俊介)Shunsuke Gimba (銀羽 俊介)
Hi.
Check
  internet options > lan settings > bypass proxy server for local addresses
on, because the login process seems to pass localhost(1717),
and this page should not be via proxy.
Then type command
  set https_proxy=[your proxy adress]
then you can login to DevHub using OAuth.

i hope this helps you.
This was selected as the best answer
Aliaksandr SatskouAliaksandr Satskou
Gimba, thank you so much :-) Problem has been resolved.


Regards, Aliaksandr Satskou
Shunsuke Gimba (銀羽 俊介)Shunsuke Gimba (銀羽 俊介)
Aliaksandr Satskou, you're welcome.
And your next question may be "How to Login to DevHub or Scratch Org. via PROXY on Force.com IDE 2 ?".
https://developer.salesforce.com/forums/ForumsMain?id=9060G000000MSqTQAW
This link is what I posted.
"Force.com IDE 2" is a GUI-based Salesforce DX, not using command prompt.
If you get some information, please share me at the link above. :D
 
Trail Head 135Trail Head 135
Gimba, I won't be able to change enable bypass for local addresses, as it is set as a global default in my company. Can you please suggest any other options?
Nishant Singh PanwarNishant Singh Panwar
Gimba, I won't be able to change enable bypass for local addresses, as it is set as a global default in my company. Can you please suggest any other options?
Indhumathi GanesanIndhumathi Ganesan
@Nishant Singh Panwar, Able to find the solution? Please hare it!! Me also facing same issue.