authentication (login, logout)
auth
Authenticate, display token and current user
# File lib/heroku/command/auth.rb, line 10 def index validate_arguments! Heroku::Command::Help.new.send(:help_for_command, current_command) end
auth:login log in with your heroku credentials
Example:
$ heroku auth:login Enter your Heroku credentials: Email: email@example.com Password (typing will be hidden): Authentication successful.
# File lib/heroku/command/auth.rb, line 28 def login validate_arguments! Heroku::Auth.login display "Authentication successful." end
auth:logout clear local authentication credentials
Example:
$ heroku auth:logout Local credentials cleared.
# File lib/heroku/command/auth.rb, line 46 def logout validate_arguments! Heroku::Auth.logout display "Local credentials cleared." end
auth:token display your api token
Example:
$ heroku auth:token ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCD
# File lib/heroku/command/auth.rb, line 64 def token validate_arguments! display Heroku::Auth.api_key end
auth:whoami display your heroku email address
Example:
$ heroku auth:whoami email@example.com
# File lib/heroku/command/auth.rb, line 79 def whoami validate_arguments! display Heroku::Auth.user end