Guido Lange
Guido Lange

Reputation: 141

How to check with which Heroku account I am currently logged in?

In the Heroku CLI (I am using WSL/Ubuntu), I would like to see with which Heroku account I am currently logged in.

The command heroku login starts a new login session but I want to know which account is currently active

I would expect (prefer) a list of accounts with which I have logged in, showing an asterisk (*) at the account I am logged in, OR, just a message "logged in as: account-email"

Upvotes: 13

Views: 5097

Answers (1)

Flavio Caduff
Flavio Caduff

Reputation: 1057

Display the current logged in user:

USAGE

$ heroku auth:whoami

ALIASES

$ heroku whoami

For more information: Heroku CLI Commands

Upvotes: 22

Related Questions