Skip to main content
Version: v4 (current)

Command Line

You can install Game CI locally and start orchestrator jobs from the command line or by integrating your own tools. All parameters in the API Reference can be specified as CLI flags.

Install

git clone https://github.com/game-ci/unity-builder.git
cd unity-builder
yarn install

Usage

yarn run cli -m <mode> --projectPath <path> [options]

Examples

Run a standard build:

yarn run cli -m cli-build \
--projectPath /path/to/your/unity/project \
--providerStrategy aws \
--targetPlatform StandaloneLinux64 \
--gitPrivateToken $GIT_TOKEN

List active resources:

yarn run cli -m list-resources --providerStrategy aws

Watch a running build:

yarn run cli -m watch --providerStrategy aws

Clean up old resources:

yarn run cli -m garbage-collect --providerStrategy aws

Help

Run yarn run cli --help to list all modes and parameters with descriptions.

Keeping Commands Short

You can avoid long CLI flags for credentials by using environment variables or the Pull Secrets feature.

This lets you pull input from a secret manager:

yarn run cli \
--populateOverride true \
--pullInputList UNITY_EMAIL,UNITY_SERIAL,UNITY_PASSWORD \
--inputPullCommand='gcloud secrets versions access 1 --secret="{0}"'