Pure Swift CLI to access the CoreWLAN
API in macOS.
make install
-
wifi -action interfaces
List the available Wi-Fi interfaces in the system.
-
wifi -action current
(or simplywifi
, sincecurrent
is the default action)Print connection information for the default Wi-Fi interface.
-
wifi -action scan
Scan for available Wi-Fi networks.
-
wifi -action associate -bssid bssid [-password password]
Associate with the Wi-Fi network with the given BSSID. (Or attempt to do so; it doesn't seem to work reliably.)
Copyright © 2018–2020 Christopher Brown. MIT Licensed.