Skip to content

Command Line & Deploy Tokens ​

The Crowd Control command line, @crowdcontrol/cli, uploads, tests and releases your game from a terminal or from CI. It works for any engine.

bash
npm install --save-dev @crowdcontrol/cli@beta

Deploy Tokens ​

The command line signs in with a deploy token. Create one under Deploy Tokens on your app's page in the Developer Portal. It's shown once and hidden on screen, so copy it right away with the copy button.

A token works for one game only and acts as the team member who created it. Revoke it from the same page if it leaks.

bash
crowdcontrol login        # paste the token when asked; saved for this game on this machine
crowdcontrol whoami       # the game, and who the token acts as
crowdcontrol logout

In CI, skip login and set the token as CROWDCONTROL_TOKEN:

yaml
- run: npx crowdcontrol upload ${{ github.ref_name }} --submit
  env:
    CROWDCONTROL_TOKEN: ${{ secrets.CC_DEPLOY_TOKEN }}

Your own scripts can call the same HTTP routes (https://openapi.crowdcontrol.live/developer/games/<gameID>/...) with the header Authorization: cc-deploy-token <token>.

Config ​

For a game not written in JavaScript, save a crowdcontrol.config.json in the folder you run the commands from:

json
{
  "menu": "./CrowdControl/menu.json",
  "icons": "./CrowdControl/icons",
  "gameID": "x_YourGame"
}

Add "gamePackID" if you upload to a pack other than the game's first.

Versions ​

bash
crowdcontrol validate                  # check the menu and icons, upload nothing
crowdcontrol upload 1.2.0              # zip and upload as version 1.2.0
crowdcontrol upload 1.2.0 --test       # ...and start testing it
crowdcontrol upload 1.2.0 --submit --note "Adds two effects"   # ...and send it to review

crowdcontrol versions                  # every version and where it stands
crowdcontrol test 1.2.0                # start testing (--stop to stop)
crowdcontrol submit 1.2.0              # send to review
crowdcontrol withdraw 1.2.0            # take it back out of review
crowdcontrol release 1.2.0             # release once approved (the game's owner only)

--min-game-version sets the oldest game build the upload works with, and --changelog says what changed. Uploading a version number again replaces it while it's idle or denied.

Effects ​

bash
crowdcontrol effects 1.2.0                          # a version's effects and their live edits
crowdcontrol edit 1.2.0 low_gravity --price 300     # goes live right away, no review
crowdcontrol edit 1.2.0 low_gravity --disable       # take an effect out of every menu
crowdcontrol edit 1.2.0 low_gravity --reset price   # back to what was uploaded

Library Listing ​

bash
crowdcontrol listing                                # show the game's library listing
crowdcontrol listing --description "Catch stars" --box-art ./art/box.png
crowdcontrol listing --submit --note "New banner"   # send it to review on its own
crowdcontrol listing --withdraw                     # take it back out of review

See Library Listing for how listing review works.

Creating games and packs, managing the team, and creating or revoking tokens are done in the portal. Run crowdcontrol help for every option.