duti

Set default applications for document types and URL schemes on macOS. More information: https://github.com/moretension/duti.

duti -s com.apple.Safari public.html all

duti -s org.videolan.vlc m4v viewer

duti -s com.apple.Finder "ftp"

duti -x ext

duti -d uti

duti -l uti