Heroku Toolbelt switch between multiple account

前端 未结 2 790
一生所求
一生所求 2021-02-11 16:19

I would like to know what\'s the best way to switch between heroku account using the heroku toolbelt.

I\'m used to have a personnal heroku account which is a collaborato

相关标签:
2条回答
  • 2021-02-11 16:54

    Have you tried the heroku accounts plugin?

    0 讨论(0)
  • 2021-02-11 16:56

    In 2017, Heroku released heroku-accounts, an add-on to the toolbelt that lets one quickly switch accounts from the command line. Install it like this:

    heroku plugins:install heroku-accounts

    Then add an account ("work" in this case):

    heroku accounts:add work

    At this point, you'll need to provide the credentials you want associated with the "work" alias. Do the same for other accounts you have. Then switch between aliases like this:

    heroku accounts:set work

    (Sorry to zombie this question.)

    0 讨论(0)
提交回复
热议问题