1.创建工程
lixiangyang$ cd /Users/lixiangyang/Desktop/cocos2d
lixiangyang$ cocos new AirFight -l js
2.运行工程
lixiangyang$ cd /Users/lixiangyang/Desktop/cocos2d/AirFight
lixiangyang$ cocos run -p web (&& ios && android)
3.编译工程
lixiangyang$ cd /Users/lixiangyang/Desktop/cocos2d/AirFight
lixiangyang$ cocos compile -p ios && web && android
4.打包工程
lixiangyang$ cd /Users/lixiangyang/Desktop/cocos2d/AirFight
lixiangyang$ cocos compile -p ios (&& web && android) -m release
5.获取帮助
lixiangyang$ cocos --help