command to update heroku code example
Example 1: how to update heroku
heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku
Example 2: how to update heroku terminal
$ 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