Automate Heroku CLI Login
Answer : The Heroku CLI only uses your username and password to retrieve your API key, which it stores in your ~/.netrc file ( $HOME\_netrc on Windows). You can manually retrieve your API key and add it to your ~/.netrc file: Log into the Heroku web interface Navigate to your Account settings page Scroll down to the API Key section and click the Reveal button Copy your API key Open your ~/.netrc file, or create it, with your favourite text editor Add the following content: machine api.heroku.com login <your-email@address> password <your-api-key> machine git.heroku.com login <your-email@address> password <your-api-key> Replace <your-email@address> with the email address registered with Heroku, and <your-api-key> with the API key you copied from Heroku. This should manually accomplish what heroku login does automatically. However, I don't recommend this. Running heroku login does the same thing more easily an...