heroku commands 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
$ sudo snap install --classic heroku
Example 3: heroku cli
$ brew tap heroku/brew && brew install heroku