Command line feature request: get game ID from game file

I’m asking because I’m working on a front end for emulators called Bottlenose

Currently it matches games to the gamestdb 3ds game database via fuzzy search but it doesn’t work well if file names don’t use the official game title or ID as the file name. If I could get the game ID and other info from the game header by calling a command like this that would be awesome:

citra /path/to/game --info

It wouldn’t be too hard (I think), but I don’t think this feature is being worked upon. I will take this suggestion to the developers.

You should consider using ctrtool instead.
(Don’t blame yourself, even idk what ctrtool is. Suggestion by Flame Sage & BreadFish64.)