Heroku "Couldn't find that app" in CI
Heroku could not resolve the app you named. The -a value or the git remote points at an app that does not exist, was renamed, or is not accessible to the authenticated account.
What this error means
A Heroku command fails with "Couldn't find that app." or git push reports the app does not exist.
Heroku CLI
▸ Couldn't find that app.Common causes
Wrong or renamed app name
The -a app name or the heroku git remote URL does not match an existing app, so Heroku cannot find it.
The account cannot access the app
The app exists but the authenticated account is not a collaborator or owner, so Heroku reports it as not found.
How to fix it
Pass the correct app name
- List apps with
heroku appsto confirm the exact name. - Pass it with
-aor set theherokugit remote correctly. - Confirm the account has access to the app.
Terminal
heroku apps:info -a my-appSet the git remote to the right app
Point the heroku remote at the actual app so git-push deploys target it.
Terminal
heroku git:remote -a my-appHow to prevent it
- Confirm the app name with
heroku apps. - Keep the
herokugit remote in sync with the app. - Use an account that has access to the app.
Related guides
Heroku "Invalid credentials provided" (HEROKU_API_KEY) in CIFix Heroku CLI "Invalid credentials provided" in CI - the HEROKU_API_KEY is missing, expired, or wrong, so th…
Heroku "Push rejected, failed to compile" in CIFix Heroku "Push rejected, failed to compile" on git push deploy in CI - a buildpack could not build the app,…
Fly.io "failed to fetch an image or build" in CIFix Fly.io flyctl "Error: failed to fetch an image or build from source" in CI - flyctl could not pull the na…