Why doesn't this command give me logs?

I’m trying to deploy my first app on fly and it has crashed. I’d like to see logs to figure out why.

Following these instructions I typed flyctl builds logs --app "my-app-name" (which is something like fancy-dingo-1234), but it says:

Error: accepts 1 arg(s), received 0
Usage:
  flyctl builds logs [flags]

Flags:
  -a, --app string      App name to operate on
  -c, --config string   Path to an app config file or directory containing one (default "./fly.toml")
  -h, --help            help for logs

Global Flags:
  -t, --access-token string   Fly API Access Token
  -j, --json                  json output
  -v, --verbose               verbose output

Error accepts 1 arg(s), received 0

I’m probably doing something dumb but I don’t see it.

That command gives you build logs for apps that deploy from Heroku. Normal build & deploy logs are streamed while running flyctl deploy so there isn’t a command for them. And logs from running apps can be viewed with flyctl logs. Does that help?

Thanks for your help!

Hmm, I don’t see Heroku mentioned on that page, but OK. :slight_smile:

Normal build & deploy logs are streamed while running flyctl deploy so there isn’t a command for them.

Ah, yes, I saw the docker build and such there.

logs from running apps can be viewed with flyctl logs .

That’s what I needed - now I can see the crash. Thanks! :grinning_face_with_smiling_eyes: