heroku run upgrade code example Example: how to update heroku heroku update #(OR) sudo apt update && sudo apt install heroku # to update heroku