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