Read Swift documentation The Swift Driver, Compilation Model, and Command-Line Experience.

From running man swift came accross APPLE DEVELOPER RESOURCES for Swift. A lot of interesting stuff.