deploy to heroku from terminal code example

Example 1: how to update heroku terminal

$ brew tap heroku/brew && brew install heroku

Example 2: how to update heroku

heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku

Example 3: how to deploy heroku app

I assume you know how to use git.
I also assume you've ran the heroku create command for the app.

First commit the app if you haven't, then run this command:
git push heroku master

If there's an error, then try to fix it.

After that access the website by running this command:
heroku open

And run this command if you encounter an error with the website:
heroku logs --tail

Example 4: heroku and github on termi

$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...

Example 5: heroku cli

$ sudo snap install --classic heroku