I am new to Heroku. I tried to use the command heroku to get some inforamtion of my apps.

I can use heroku list to get the list. But when I use heroku info, it returns

App not found

What's the problem? How can I fix this error?

Thank you in advance.


You need to either run

heroku info --app name-of-app

or run

heroku info

from the base directory of one of your heroku-hosted applications.

  • Thanks buddy. I run both commands in the base directory, but same error pop up.... any idea? – Victor Lam Jan 4 '11 at 16:15
  • What does the command 'git remote show heroku' return? does the remote git match that of one fo the apps in the heroku info result? – Steve Wilhelm Jan 4 '11 at 21:05
  • oops... i got Permission denied (publickey). fatal: The remote end hung up unexpectedly..... how come?! I don't understand... I can deploy the app to heroku with no problem..... – Victor Lam Jan 5 '11 at 17:38
  • have you tried generating a new public key? – corroded May 30 '11 at 16:51

there's two sets of credentials in use here. Git uses your SSH key and heroku CLI will use your heroku credentials

From the command line do

heroku auth:login

and enter your heroku credentials and you should be back up and running

  • This worked for me! I don't know why that became an issue all of a sudden. I think they need a better error message. – Bruno Bronosky Feb 3 '15 at 19:59
  • Just damn. I spoke too soon. Now heroku info works, but heroku logs -tail still gives me ` ! App not found.` – Bruno Bronosky Feb 3 '15 at 20:00

Make sure you have the "build" and "install" commands in the package.json file on the root directory of your project. If you are using Nodejs:

"scripts": {
    "build": "cd client && npm run build",
    "install": "cd client && npm install",
    "start": "node server",
    "server": "nodemon server",
    "client": "npm start --prefix client",
    "dev": "concurrently \"npm run server\" \"npm run client\""
  • It may be valuable to explain why this will solve the problem described in the question. – womble Jan 19 '20 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.