Heroku toolbelt command requires app-name

rayray picture rayray · Aug 29, 2012 · Viewed 30k times · Source

How do you specify the app you want when you log in to Heroku from the command line?

I was trying to check the logs so when I first logged in I tried:

Heroku logs

this then told me:

 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app <app name>

I then tried:

heroku --app my-appname

but i get:

`--app` is not a heroku command.

I have tried all combinations.

Answer

redhotvengeance picture redhotvengeance · Aug 29, 2012

You still need to include the command:

heroku logs --app app-name

You can also use -a instead of --app:

heroku logs -a app-name