auth:whoami should fail if not logged in #1149

listrophy opened this Issue Jul 22, 2014 · 2 comments


None yet

3 participants


There doesn't seem to be any way in the entire toolbelt to determine whether I'm logged in without triggering an interactive login.

I'd like for heroku auth:whoami to return with exit status > 0 when not logged in. The actual output in such a case is up to you.

Context: I'm writing a script that calls heroku config, and I'd like to provide a helpful error message.


Agreed. I'm trying to automate the login process, but if there is no current user logged in, an auth:login triggers. Which is a bit annoying

@dickeyxxx dickeyxxx closed this Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment