There is no iwlist on Mac OS, that is why I've created my own script to get all SSID around me via cli ;)
Before running anything, check out the requirements.txt and make sure you have everything neccessary to run this script installed. To install all needed requirements:
pip install -r requirements.txtThen run a script:
python3 wifi-scan
How to use it:
python3 wifi-scan.py
{'SOME WIFI': {'BSSID': '11:11:11:11:11:11', 'RSSI': -45},
'ANOTHER_WIFI': {'BSSID': '11:11:11:11:11:11', 'RSSI': -57}}
Wifi-scan.py support filter argument, which can be used to find any particular SSID.
python3 wifi-scan.py -f SOME_WIFI
{'SOME WIFI': {'BSSID': '11:11:11:11:11:11', 'RSSI': -45}