use heroku app through cli code example
Example 1: heroku cli connect to app
heroku git:remote -a yourApp
Example 2: heroku cli
$ sudo snap install --classic heroku
heroku git:remote -a yourApp
$ sudo snap install --classic heroku