It is simple to launch sublime text from command line on OSX you simply need to symlink a file found within the Sublime Text installation directory to
This can be done using the following command:
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
Within your favourite OSX terminal / shell you can now use the command:
subl to launch sublime text.