macOS / binaries /

networksetup

/usr/sbin/networksetup
Configuration tool for network settings in system preferences

The networksetup command is used to configure network settings typically configured in the System Preferences application. The networksetup command requires at least admin privileges to change network settings.

source: man