How to list commands provided by a specific package?

Is there a generic and handy way to do that?

Build the package and inspect contents of it’s bin folder.

Also there is nix-index which builds a database and queries it. Though I can’t say much about it, it stopped working for me half a year ago.