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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store