heroku commands code example
Example 1: heroku cli
$ sudo snap install --classic heroku
Example 2: how to update heroku
heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku
Example 3: heroku cli
$ brew tap heroku/brew && brew install heroku