Cocos Console Deploy Command

  • Sonar Systems admin
    Likes 0

    Problem Description

    With the newer versions of Cocos2d-x and Cocos2d-JS the Cocos Console will be more mandatory than ever.

     

    Let’s learn how to deploy using the Cocos Console.

    Solution Description

    -p is the platform [mac, ios, web, android, win32]
    -m is the mode [debug, release] (this is optional and if ommitted the mode is set to debug)
    -s is the project directory (can be ommitted if you cd to you project directory first)

    cocos deploy -s /Users/sonarsystems/Desktop/Game1 -p mac -m release
    cocos deploy -p mac -m release

    Quiet - reduces output to the console
    ------------------------------------------------
    cocos deploy -q -s /Users/sonarsystems/Desktop/Game1 -p mac -m release
    cocos deploy -q -p mac -m release

Login to reply