brew install heroku cli code example
Example 1: how to install heroku cli
sudo apt-get install heroku
Example 2: brew install heroku cli
$ brew tap heroku/brew && brew install heroku
Example 3: heroku cli install
$ curl https://cli-assets.heroku.com/install.sh | sh
Example 4: heroku cli install
$ sudo snap install --classic heroku