To associate your Snyk account with the CLI, you must first authenticate your machine (except for using the
snyk protect command). No repository permissions are needed at this stage, only your email address.
You can authenticate:
Visit your Snyk account (Account Settings > API Token section).
In the KEY field, click click to show, then select and copy your API token.
In the CLI, run
snyk config set api=XXXXXXXX