Feature request: flyctl volumes list --all

The flyctl volumes list command currently only lists the volumes for the current application - where presumably that’s defined as the application that is named in the fly.toml file in the current directory? I just noticed there’s an optional -a flag too.

I want to see ALL of my volumes across every app in my account at once.

It would be great if the Fly web dashboard provided this, but I’d also love to be able to do this:

flyctl volumes list --all

This comes up now and again to find which app a resource belongs to, like an IP. Here’s my gross hack:

flyctl apps list | awk '{print $1}' | xargs -I {} flyctl volumes list -a {} 

Out of curiosity, what are you trying to do?

Out of curiosity, what are you trying to do?

Remember which volumes I had created while I play with the feature!

I figured out a way to do it using the GraphQL API at https://api.fly.io/graphql

{
  apps {
    nodes {
      name
      volumes {
        nodes {
          name
        }
      }
    }
  }
}
2 Likes

Makes sense! Good idea, the api is a much easier way than my bash golfing :slight_smile: