SNYK_TOKEN
~/.config/configstore/snyk.json
). Use SNYK_TOKEN
in a CI/CD environment. After setting SNYK_TOKEN
you can get started using the CLI..SNYK_CFG_<KEY>
snyk config
option.SNYK_CFG_ORG=myorg
overrides the default org option in config
with "myorg".SNYK_REGISTRY_USERNAME
--username
flag overrides this value. This is ignored in favor of local Docker binary credentials when Docker is present.SNYK_REGISTRY_PASSWORD
--password
flag overrides this value. This is ignored in favor of local Docker binary credentials when Docker is present.https://snyk.io/api/v1
.SNYK_API
http
protocol the CLI upgrades the requests to https
, unless SNYK_HTTP_PROTOCOL_UPGRADE
is set to 0
.SNYK_HTTP_PROTOCOL_UPGRADE=0
0
, API (and CLI) requests aimed at http
URLs are not upgraded to https
. If the protocol is not set, the default behavior is to upgrade these requests from http
to https
. This is useful, for example, for reverse proxies.HTTPS_PROXY
and HTTP_PROXY
https
and http
calls. The https
in the HTTPS_PROXY
means that requests using https
protocol use this proxy. The proxy itself doesn't need to use https
.SNYK_DISABLE_ANALYTICS=1
SNYK_OAUTH_TOKEN=<OAuth token>