Reply To: Enable/Disable internet connection with commands

#14085
AvatarLuuk
Participant

You can turn Wi-Fi off using a single line command:
networksetup -setairportpower $AIRPORT off

To turn on, simply replace off with on.