Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't login to heroku using CLI

I try to login to heroku on Windows. Using cmd.exe

C:\Users\Komp_1\OneDrive\PHP_projects\chatbot>heroku auth:login
Enter your Heroku credentials:
Email: [email protected]
Password: **********
Enter your Heroku credentials:
Email: [email protected]
Password: **********
Enter your Heroku credentials:
Email:

It looks like a never ending loop. But when I try use a git-bash to login than:

$ heroku login
Enter your Heroku credentials:
Email: [email protected]
 !    Login is currently incompatible with git bash/Cygwin/MinGW

What can be wrong? I can't find solution.

like image 339
SerSergious Avatar asked Jun 08 '17 08:06

SerSergious


People also ask

Why can't I log into heroku?

Double check that there are no typos in your password as well. Reset your password and try logging in with the new password. Try using a different email address. Try using an email alias with a plus sign if you might have signed up using an alias such as [email protected] instead of just [email protected].

How do I log into heroku CLI with MFA?

Log In with MFAWhen logging in to Heroku Dashboard after MFA is enabled, you enter your username and password as usual. You are then prompted to complete MFA verification using a registered verification method.

How do I log into heroku without a browser?

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.


2 Answers

From Git Bash try using winpty heroku login and it will work

like image 111
Vishal Avatar answered Sep 19 '22 18:09

Vishal


Ok so probably that was problem from Heroku. Simple steps to repair this: 1. Go to heroku 2. Log out 3. Reset password 4. Go to your email and set up new password 5. Login to your heroku :-)

PS. My password was correct and I used this same in cmd and on heroku. On heroku worked but in cmd not :-)

like image 25
SerSergious Avatar answered Sep 16 '22 18:09

SerSergious