System Settings, from the terminal
networksetup is macOS's command-line interface to the System Settings → Network panel. Anything you can do via the UI — set a static IP, change DNS, switch to DHCP, set the MTU for jumbo frames — you can script. Indispensable for fleet automation, dotfiles bootstrap, and any scenario where you want repeatable network config.