# duti

> A command-line tool to select default applications for document types and URL schemes on macOS

Source: https://talira.ai/catalog/duti-fm2pds4t
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [system utilities / macos / default apps](https://talira.ai/categories/system-utilities/macos/default-apps), [developer tools / macos](https://talira.ai/categories/developer-tools/macos)
- Platforms: macos, cli[^2]
- Licence: public domain[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Public domain.
- Free tier: yes[^2]
- Self-hostable: yes[^2]
- Creator: Andrew Mortensen

duti is a command-line utility that sets the default applications for document types and URL schemes on [macOS](https://talira.ai/catalog/macos-8swyggxb.md), using Apple's Uniform Type Identifiers. It reads settings from standard input, a settings file, a property list or command-line arguments, so the defaults for a Mac can be kept in a file and applied in one go, and it can print the default application for a file extension. It was released into the public domain by Andrew Mortensen, and the README says it is unsupported.

## Links

- GitHub: https://github.com/moretension/duti

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/duti>[^1]

## Problems it solves

- set which app opens PDF or Markdown files on my Mac from a script
- make my preferred browser handle http links from the command line
- apply the same default apps on every new Mac from a dotfiles settings file
- find out which application opens .jpg files and its bundle ID
- change the handler for a URL scheme like ftp:// without clicking through Finder

## Features

- set default handlers by bundle ID and UTI
- set URL scheme handlers
- settings from standard input, a settings file, a plist or arguments
- apply every settings file in a directory
- -x prints the default application for an extension

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.29 out of 1.
Signals: maintenance 0.06, adoption 0.67, momentum 0.34, community 0.52, backing 0.20, extensibility 0.20.

- 2.1k GitHub stars
- 19 contributors
- created by Andrew Mortensen

Warnings:

- last commit 3.4 years ago

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/moretension/duti (checked 19 Nov 2026)
