Turning on AP Mode Airport

How can I turn my airport card onto AP mode from the commandline? I've been looking around the daemons that are launched when "Internet Sharing" is enabled but cannot figure out how it is turning the airport card into an access point. Is there any information on how to start an access point on apple without using "Internet Sharing"?

Turning on AP Mode Airport
 
 
Q