Netlify Login how to use token?

I am trying to write part of a config yaml file that will allow for deployment dynamically. With Netlify Ctl you could pass a token as such

netlifyctl -A "${netlify_token}" deploy -d | tail -1

in order to login to the account, in the readme files for cli i dont see an option for that, is there any guidance on how to repeat this process in cli?

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.

1 Like