macOS

defaults

CautionEdit preferences (Mac)

defaults write <domain> <key> <value>

Read/write app and system preferences (plist) from the CLI.

Examples

  • defaults read com.apple.finderShow Finder prefs

Syntax

defaults read|write|delete <domain> [key] [value]

Before you run it

write changes settings directly; mistakes affect behavior.

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store