how to stop heroku cli code example
Example 1: how to stop build in heroku
heroku plugins:install heroku-builds
heroku builds:cancel -a YOUR_HEROKU_APP_NAME
Example 2: heroku restart
heroku ps:restart web -a <my app name>
Example 3: how to stop a heroku app
$ heroku ps:scale web=0
Scaling web processes... done, now running 0
//once ready to go back online:
heroku ps:scale web=1
Example 4: kill dyno process heroku
$ heroku ps:stop run.1
Stopping run.1 process... done