defaults
command-line tool. The defaults
command is a powerful tool and, when you know the specific key and value in a property list you want to change, the defaults
tool is very efficient.defaults
tool works directly with the macOS preferences subsystem and is used by many apps in macOS to manage preferences and other settings. It can be built into shell scripts and lets you access preferences in the multiple domains that exist on a given computer.com.apple.Dock.plist
. (When invoking the defaults command, omit the .plist extension.)defaults
command: