from the root of your project ./node_modules/.bin/ngc -p src where src is where all your angular 2 code lives. This will generate a folder called ngfactory where all your compiled code will live.
./node_modules/.bin/ngc -p src
src
ngfactory
"node_modules/.bin/ngc" -p src for windows
"node_modules/.bin/ngc" -p src