"Couldn't find that app." when running heroku commands in console

Solved it. Just sharing for future searches.

The issue was fixed by running git init and then heroku git:remote -a worldofwarcraft-api in my command line while inside my repositories folder. This initialized git in the repo and then set the heroku git remote to that repository.

Hopefully, this helps anyone else who had a similar issue.


In my case, someone renamed GitHub repo and I tried to find Heroku app with new GitHub name

It helps me

heroku apps
heroku git:remote -a YOUR_APP

For my case, I was renaming my github repository.

You can find it in your repository settings then just rename it, it appears in the first place.

Then you can continue with git init again to re-initiate your existing git repository and then set your heroku remote with your heroku apps new name heroku git:remote -a YOUR_APP_NAME