networksetup
Configuration tool for Network System Preferences. tldr-pages
On macOS 1 Sigma rule name it
macOS
List available network service providers (Ethernet, Wi-Fi, Bluetooth, etc.)
networksetup -listallnetworkservicesIdentifyShow network settings for a particular networking device
networksetup -getinfo "Wi-Fi"IdentifyGet currently connected Wi-Fi network name (Wi-Fi device usually en0 or en1)
networksetup -getairportnetwork en0IdentifyConnect to a particular Wi-Fi network
networksetup -setairportnetwork en0 ssid passwordIdentify