To use Heroku CLI it requires Git, before get starting with Heroku make sure Git was installed. Once installed, you can use the heroku command from your command shell.
In commandprompt, login with your heroku logins.
$ heroku login Enter your Heroku credentials. Email: ********** Password:*********
By using the below commands make sure you have installed all the requirements.
$ node --version $ npm --version $ git --version
Create an app on heroku and push the code to it.
$ heroku create
Usually we use the git push command to push our code from local repository to server. we can use the same to push our code to heroku.
$ git push heroku master
once deployed we can open the website using,
$ heroku open