Hi, @chebas. The docs for this can be found here:
https://docs.netlify.com/cli/get-started/#obtain-a-token-with-the-command-line
Personally, I prefer the workflow with the environment variable NETLIFY_AUTH_TOKEN. That is just me, though, and all workflow on that page will work.