For this lab, please use the instructions to authenticate with your token detailed below. Authenticate with your account via a browser is provided as an alternative.
When working with our Snyk CLI tool, Snyk first requires authentication (except for the
snyk protect command).
snyk auth from the CLI.
A browser tab opens, redirecting you to authenticate the CLI for use with your account.
The authentication ends and you can go back to your terminal to continue working.
Visit your Snyk account.
Navigate to General Account Settings and copy your token.
From the token field, click click to show and then select and copy your API token.
In the CLI, run
snyk config set api=XXXXXXXX