how to use the console in heroku code example
Example 1: how to update heroku
heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku
Example 2: heroku cli
$ brew tap heroku/brew && brew install heroku
heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku
$ brew tap heroku/brew && brew install heroku