heroku --version not working code example
Example 1: download heroku cli mac os catalina
$ brew tap heroku/brew && brew install heroku
Example 2: heroku cli
$ sudo snap install --classic heroku
$ brew tap heroku/brew && brew install heroku
$ sudo snap install --classic heroku