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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store