Choose the account for the connection
The token acts as the Heroku account that creates it, with that account’s role in the team. A token created with the default scope can read and write everything that account can reach, so use a viewer of the team. A viewer has read-only access to the team’s resources and can still view its users and invitations.
Pick or add the account
Use an account that is a viewer, member or admin of the Heroku Team you want to connect.
- If the team uses single sign-on, use an account created directly in Heroku and added to the team.
Create the API token
Heroku creates long-lived tokens from the Heroku CLI.
Create the token
Create the token in the Heroku CLI.
- Run
heroku loginand sign in as the account you chose. - Run
heroku authorizations:create -d "StackOne" -S. It prints only the token.
Copy the token
Copy the API Key across. The token does not expire. Revoking it with heroku authorizations:revoke disconnects the connection.
Find the team name
Check which Heroku Teams the account belongs to.
Copy the team name
Run heroku teams in the Heroku CLI to list the teams the account belongs to.
- If the account belongs to more than one Heroku Team, copy the Team Name across.
- If it belongs to only one, leave Team Name empty.
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions