airport – a little known OS-X command line utility

From osxdaily.com

/usr/bin/sudo /bin/ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

For options

airport -help