NAME snyk-auth - Authenticate Snyk CLI with a Snyk account SYNOPSIS snyk auth [API_TOKEN] [OPTIONS] DESCRIPTION Authenticate Snyk CLI with a Snyk account. Running $ snyk auth without an API_TOKEN will open a browser window and asks you to login with Snyk account and authorize. When inputting an API_TOKEN, it will be vali- dated with Snyk API. When running in a CI environment API_TOKEN is required. OPTIONS [API_TOKEN] Your Snyk token. May be an user token or a service account. How to get your account token https://snyk.co/ucT6J How to use Service Accounts https://snyk.co/ucT6L Flags available accross all commands --insecure Ignore unknown certificate authorities. -d Output debug logs. --quiet, -q Silence all output. --version, -v Prints versions. [COMMAND] --help, --help [COMMAND], -h Prints a help text. You may specify a COMMAND to get more de- tails. EXIT CODES Possible exit codes and their meaning: 0: success, no vulns found 1: action_needed, vulns found 2: failure, try to re-run command 3: failure, no supported projects detected ENVIRONMENT You can set these environment variables to change CLI run settings. SNYK_TOKEN Snyk authorization token. Setting this envvar will override the token that may be available in your snyk config settings. How to get your account token https://snyk.co/ucT6J How to use Service Accounts https://snyk.co/ucT6L SNYK_API Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. SNYK_CFG_KEY Allows you to override any key that's also available as snyk config option. E.g. SNYK_CFG_ORG=myorg will override default org option in con- fig with "myorg". SNYK_REGISTRY_USERNAME Specify a username to use when connecting to a container reg- istry. Note that using the --username flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present. SNYK_REGISTRY_PASSWORD Specify a password to use when connecting to a container reg- istry. Note that using the --password flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present. NOTICES Snyk API usage policy The use of Snyk's API, whether through the use of the 'snyk' npm pack- age or otherwise, is subject to the terms & conditions https://snyk.co/ucT6N