GuidesChangelogData Inspector Library API Reference
Guides

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 setup command to add your proxy settings to the olpcli.ini file.

  • By exporting the HTTPS_PROXY environment variable to set the proxy. The example below shows how to set the proxy to proxy.hostname.com and the port to 8000:

  export HTTPS_PROXY=http://proxy.hostname.com:8000
  set HTTPS_PROXY=http://proxy.hostname.com:8000

Use 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]:8000

Proxy settings resolution order

The OLP CLI resolves proxy settings in the following order:

  1. OLP CLI proxy settings defined in the .here/olpcli.ini file in your home directory
  2. HTTPS_PROXY environment variable
  3. ALL_PROXY environment variable
  4. Java proxy settings