Change macOS user preferences via command line
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/AboutPreferenceDomains/AboutPreferenceDomains.html
https://pawelgrzybek.com/change-macos-user-preferences-via-command-line/
The System Preferences window is not the only way to adjust
user settings. Macs come with a defaults command line
interface that lets you read, write, and delete macOS user
defaults.
defaults write com.apple.Dock autohide-delay -float 0; killall Dock
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2MinimumFontSize -int 19
defaults write com.apple.screencapture disable-shadow -bool TRUE
defaults write com.apple.screencapture location ~/Downloads
defaults write com.apple.Terminal FocusFollowsMouse -bool true
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool FALSE
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
defaults write -g NSRequiresAquaSystemAppearance -bool Yes
sam.wormley@icloud.com