defaults - set preferences in macOS — by SS64.com
Reference for the defaults command, which reads, writes and deletes macOS app preferences stored as property lists. It explains domains, why defaults is safer than hand-editing plists because of preference caching, and that Dock or Finder changes usually need killall to take effect.