snyk auth [<API_TOKEN>] [<OPTIONS>]
snyk auth command authenticates your machine to associate the Snyk CLI with your Snyk account.
$ snyk auth opens a browser window with prompts to log in to your Snyk account and authenticate. No repository permissions are needed at this stage, only your email address.
When you have authenticated, you can start using the CLI; see Getting started with the CLI
In some environments and configurations, you must use the
<API_TOKEN>; see Authenticate the CLI with your account
The value may be a user token or a service account; see Service accounts
In a CI/CD environment, use the
SNYK_TOKEN environment variable; see Configure the Snyk CLI
After setting this environment variable, you can use CLI commands.
-d option to output the debug logs.