Configure OLP CLI HTTP proxy
Configure OLP CLI HTTP proxy
You have two options for setting up a proxy in the OLP CLI configuration:
-
By running the
olp proxy setupcommand to add your proxy settings to theolpcli.inifile. -
By exporting the
HTTPS_PROXYenvironment variable to set the proxy. The example below shows how to set the proxy toproxy.hostname.comand the port to8000:
export HTTPS_PROXY=http://proxy.hostname.com:8000 set HTTPS_PROXY=http://proxy.hostname.com:8000Use the same syntax for the ALL_PROXY variable.
You can also provide your proxy credentials using the following command:
export HTTPS_PROXY=http://username:[email protected]:8000 set HTTPS_PROXY=http://username:[email protected]:8000Proxy settings resolution order
The OLP CLI resolves proxy settings in the following order:
- OLP CLI proxy settings defined in the
.here/olpcli.inifile in your home directory HTTPS_PROXYenvironment variableALL_PROXYenvironment variable- Java proxy settings
Updated 22 days ago