CmdID

CmdID / Commands

duti

Set default applications for document types and URL schemes on macOS. tldr-pages

On macOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Set Safari as the default handler for HTML documents

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

Set VLC as the default viewer for files with .m4v extensions

duti -s org.videolan.vlc m4v viewerIdentify

Set Finder as the default handler for the ftp:// URL scheme

duti -s com.apple.Finder "ftp"Identify

Display information about the default application for a given extension

duti -x extIdentify

Display the default handler for a given UTI

duti -d utiIdentify

Display all handlers of a given UTI

duti -l utiIdentify