How to get wireless access point information from MacOS terminal
I am not entirely sure what you want to achieve, but with /usr/sbin/airport
you can obtain various information from wireless networks/your connection:
e.g.
airport -s
gives information about all the networks in range (such as RSSI strength).
airport -I
gives information about your connection.