Command-line tool
duti
brew/duti
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Select default apps for documents and URL schemes on macOS
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install duti
Set Safari as the default handler for HTML documents
duti -s com.apple.Safari public.html all
Set VLC as the default viewer for files with `.m4v` extensions
duti -s org.videolan.vlc m4v viewer
Set Finder as the default handler for the ftp:// URL scheme
duti -s com.apple.Finder "ftp"
Related command-line tools
- infat
Tool to set default openers for file formats and url schemes on macOS - lispkit
Scheme framework for extension and scripting languages on macOS and iOS - utiluti
macOS command-line tool to work with default apps - guile
GNU Ubiquitous Intelligent Language for Extensions - cot
Rust web framework for lazy developers - CotEditor
Plain-text editor for web pages, program source codes and more - mac-cleanup-go
TUI macOS cleaner that scans caches/logs and lets you select what to delete - gnustep-base
Library of general-purpose, non-graphical Objective C objects
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents