Urigami is a command-line utility for managing default applications on macOS. It allows you to get information about installed applications, find default apps for specific file types or URIs, and set default applications.
brew install noahkamara/homebrew-tap/urigami./build.sh # the executable will be at ./urigamiUrigami provides several subcommands:
urigami <subcommand>opens: Find the default app(s) for a given inputappinfo: Get information about an installed applicationsetdefault: Set the default app for a given input
Show metadata for Preview.app including
urigami appinfo Preview --uti Show applications that can open .png files
urigami opens .png Open pdf files in Arc by default
urigami setdefault .pdf Arc Contributions welcome!