Authenticate to SuperHub

Michael Delzer Updated by Michael Delzer

In order to call SuperHub API from Hub CLI: to query stack instances, sync state, etc. the User must authenticate to obtain a login token. Provide the User's login email and password to hub login command:

hub login -u email@domain.tld [-p password]
Password: ...
export HUB_TOKEN=<long random string>

The CLI will output the User's personal login token which is valid for 1 year. Save it to .envrc or .bash_profile. Now the User can use hub api ... commands such as hub api instance sync ... and make sync.

How did we do?

Toolbox - The CLI Swiss Army Knife

Create a Cloud Account

Contact