Controlling the Mac Airport via command line

hostname$ cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/
hostname$ ./airport -h