how to check if heroku cli is installed code example
Example 1: install heroku cli on linux
sudo snap install --classic heroku
Example 2: heroku cli
$ sudo snap install --classic heroku
sudo snap install --classic heroku
$ sudo snap install --classic heroku