I need to log in to the CLI without a browser.

Issue

Some remote servers are not set up with a browser. Sometimes users need to access Heroku using the Heroku CLI.

Resolution

You can use the flag -i with the CLI login command which will prompt you to enter your credentials on the CLI itself without using a browser.

heroku login -i

This command is documented here: https://devcenter.heroku.com/articles/heroku-cli#getting-started

Note:- You can't use the -i option if you have multi-factor authentication enabled due to a technical dependency on web browsers for verification.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support