Setup new Mac with OSX Mountain Lion from scratch
These commands are good as of 2013-1-8.
Install The latest XCode from the App Store
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.