Turn your Wi-Fi on and off
macOS and Windows only, but pull request welcome for Linux support.
$ npm install --global manage-wifi-cli
$ wifi --help
Usage
$ wifi <command>
Commands
on Turn Wi-Fi on
off Turn Wi-Fi off
toggle Toggle Wi-Fi
restart Turn Wi-Fi off & on
status Wi-Fi status
device Wi-Fi device name
Examples
$ wifi off
$ wifi status
off
$ wifi device
en0
- manage-wifi - API for this module