systemsetup
Configure System Preferences machine settings. tldr-pages
On macOS
macOS
Enable remote login (SSH)
systemsetup -setremotelogin onIdentifySpecify timezone, NTP Server, and enable network time
systemsetup -settimezone "US/Pacific" -setnetworktimeserver us.pool.ntp.org -setusingnetworktime onIdentifyMake the machine never sleep and automatically restart on power failure or kernel panic
systemsetup -setsleep off -setrestartpowerfailure on -setrestartfreeze onIdentifyList valid startup disks
systemsetup -liststartupdisksIdentifySpecify a new startup disk
systemsetup -setstartupdisk path/to/directoryIdentify