Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"

like image 518
Guido Lange Avatar asked Jul 24 '19 20:07

Guido Lange


People also ask

How do I check my heroku login?

Get Started with the Heroku CLI After you install the CLI, run the heroku login command. Enter any key to go to your web browser to complete login. The CLI then logs you in automatically.

Can you have multiple heroku accounts?

Install the heroku-accounts plugin – this will let you use multiple Heroku accounts in parallel.

How do I see all my heroku apps?

Navigating the dashboardThe Heroku Dashboard's default view is a list of the apps and pipelines that belong to your personal Heroku account. The list includes each app's name, technology, stack, and region.


1 Answers

Display the current logged in user:

USAGE

$ heroku auth:whoami

ALIASES

$ heroku whoami

For more information: Heroku CLI Commands

like image 107
Flavio Caduff Avatar answered Oct 19 '22 04:10

Flavio Caduff