How to replace functionality of deprecated `airport` command line application?
4
votes
4
answers
3243
views
I am the author of the wifi-wand Ruby gem and command line application that reports and modifies wifi networking information on the Mac (https://github.com/keithrbennett/wifiwand) . The
airport
utility on which many of wifi-wand's commands rely is now deprecated (as of Sonoma 14.4 or thereabouts, I believe), and no longer provides any functionality. (As a side note, is it common to report deprecation and remove the functionality in the same version? This caught me off guard and disabled functionality on which users rely. Or did I miss something?)
Can you help me find alternatives that can be run from a command line program, i.e. not GUI apps, that can provide the following functionality that airport
provided?:
* list the available wifi networks' names
* list the available wifi networks' details
* disconnect from the currently connected network (without turning off wifi)
EDIT: I previously included the 2 below in the above list but found options to networksetup that worked:
* report the currently connected wifi network name
* report whether or not the wifi is currently turned on
I would prefer not to have to use sudo to run any of these; wifi-wand is used in scripting and as a library that other applications can access.
Also, asking the users to install another utility (e.g. via brew
) is not ideal but would be preferable to nothing at all.
Asked by Keith Bennett
(1263 rep)
Apr 14, 2024, 01:18 PM
Last activity: Dec 2, 2024, 11:56 AM
Last activity: Dec 2, 2024, 11:56 AM