We can invite collaborators through both the web dashboard and the CLI. In this recipe, we'll learn how to quickly invite collaborators through the CLI.
To start, let's open a terminal and navigate to the Heroku application that we would like to share, using the following steps:
To see the current users who have access to our application, we can use the
sharing
command:$ heroku sharing === load-tester-rails Access List [email protected] owner [email protected] collaborator
To invite a collaborator, we can use
sharing:add
:$ heroku sharing:add [email protected] Adding [email protected] to load-tester-rails as collaborator... done
If we'd like to revoke access to our application, we can do so with
sharing:remove
:$ heroku sharing:remove [email protected] Removing [email protected] from load-tester...