Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.11 KB

File metadata and controls

35 lines (20 loc) · 1.11 KB

Authenticate with Snyk

Authenticate the CLI

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.

Authenticate the CLI with your account

When working with our Snyk CLI tool, Snyk first requires authentication (except for the snyk protect command).

To authenticate:

  1. Run snyk auth from the CLI.

    A browser tab opens, redirecting you to authenticate the CLI for use with your account.

  2. Click Authenticate.

    The authentication ends and you can go back to your terminal to continue working.

Authenticate with your token

  1. Visit your Snyk account.
  2. Navigate to General Account Settings and copy your token.
  3. From the token field, click click to show and then select and copy your API token.
  4. In the CLI, run snyk config set api=XXXXXXXX

{% hint style="info" %} We will use your personal API token during the maven plugin. {% endhint %}