When working with our Snyk CLI tool or with our plugins from within any third-party tool, Snyk first requires authentication (except for the
snyk protect command).
Authenticate by running
snyk auth in your terminal. A browser window opens and guides you through authentication.
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