How can I use Snyk behind a proxy?

To run Snyk from behind a proxy you will need to use an environment value to point to your proxy. The following environment variables are respected by Snyk:

  • HTTP_PROXY / http_proxy
  • HTTPS_PROXY / https_proxy
  • NO_PROXY / no_proxy

For example, to configure this as a one time value, you can run:

$ https_proxy=https://my.corporate.proxy:8080/ && snyk test