You can do this from the Heroku CLI with the command code example
Example 1: heroku cli
npm i -g heroku
code to install heroku in windows
Example 2: download heroku
$ brew tap heroku/brew && brew install heroku
Example 3: heroku cli
$ sudo snap install --classic heroku