Note
if you are missing any command, please know it's common sense to just install it yourself since i cant just cover every distros and package managers.
It all comes down to xdg-mime (aka a command used to query & manage MIME types)
anyway, the magic command is xdg-mime default [app] [mimetype(s)]
so we are missing two arguments here, app and mimetype
this one is simply the desktop entry for the app you wanna use, most package managers have this covered for you