Nathan Colgate RSS

This is the personal blog of Nathan Colgate Clark. I work at Brand New Box. I developed a content management system for churches.

Archive

Feb
6th
Mon
permalink

Switch heroku accounts in the console

1. Delete the SSH keys from your current account:

$ heroku keys:clear

You have to clear these first because Heroku won’t allow two accounts to have the same SSH key.

2. Delete your locally stored credentials:

$ rm ~/.heroku/credentials

3. Re-enter your (new) credentials by entering any command that requires access to an account, e.g.:

$ heroku create

Enter your Heroku credentials.

Email: my@email.com

Pass: mypass

The command line utility will record your new credentials in your ~/.heroku/credentials file and automatically add your machine’s SSH key. If you hadn’t deleted the key from your other account, it would complain about multiple accounts using the same key.