Many features of working with Heroku are made much easier if you have access to the Heroku Command Line Interface (CLI).
The Heroku CLI is also sometimes called the heroku command, because you type heroku at a command line prompt to use it.
Here's how to get install the heroku command in a repl.it shell window
To install the heroku command, start by typing heroku -v
This command normally is used to tell us what version of the heroku command is installed; however, in the repl.it Shell, if the command is not installed, it will prompt us and ask us if we want to install it.
If it's not installed, you'll see this:
If it's already installed, you'll see this:
If you see the message on the left, just press the Enter/Return key, and it will install heroku. Here's what that looks like:
Now that we have the heroku command (i.e. the Heroku CLI) available in the Shell window, we can use it to login.
Please note that this only works if multi-factor authentication (MFA) is not enabled in your Heroku account.
While MFA is definitely a good thing, and in general, we would encourage you to use it, at least for now, it's probably easier if you don't enable it in your Heroku account until after SPIS is over.
The remainder of these instructions assume that you do not have it enabled on your account.
To login using the Heroku CLI, type heroku login -i in the shell window (that's lowercase i as in interactive), as shown below:
To connect your repl to Heroku, you need to have already done these commands in the Shell window
Step 1: heroku -v (to make sure the heroku command line is installed)
Step 2: heroku login -i (to login to your Heroku account)
Next, type these two commands in the Shell window (except substitute the name of your Heroku app (the one you created on the Heroku Dashboard, dashboard.heroku.com)
git init
heroku git:remote --app pair1-pair2-hello
If you get the error Error: Couldn't find that app. Error ID: not found, it means that what you have after --app