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:
Through your browser
Using your Organization API key (API token)
Authenticate through your browser
Run 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.