networksetup
SafeNetwork settings (macOS)
networksetup -getinfo Wi-Fi
Get/set macOS network service settings from the CLI.
Examples
networksetup -listallnetworkservicesList network services
Syntax
networksetup -getinfo <service> | -setairportpower en0 on
Before you run it
get is read-only; set changes config.
Used when you see
Related commands
- ifconfigShow IP (macOS)
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store