Skip to main content
Version: v4 (current)

Init Command

Generate CI/CD workflow files for your game project.

Usage

game-ci init [options]

Options

OptionDefaultDescription
--providerlocalCloud provider (local, aws, k8s, etc.)
--platformStandaloneLinux64Target build platform
--workflow-typeciWorkflow type: ci, cd, or async
--ci-providergithubCI provider: github or gitlab
--output-dir.Project root directory
--engineunityGame engine

Examples

Generate a GitHub Actions CI workflow for AWS builds:

game-ci init --provider aws --platform StandaloneLinux64
# Creates .github/workflows/game-ci-ci.yml

Generate a CD workflow with artifact uploads:

game-ci init --workflow-type cd --provider k8s
# Creates .github/workflows/game-ci-cd.yml

Generate an async build workflow:

game-ci init --workflow-type async --provider aws
# Creates .github/workflows/game-ci-async.yml

Generate a GitLab CI configuration:

game-ci init --ci-provider gitlab --platform StandaloneLinux64
# Creates .gitlab-ci.yml

Generated Workflow Types

CI (--workflow-type ci)

Builds on push to main and on pull requests. Includes Unity activation with secrets.

CD (--workflow-type cd)

Builds on version tags (v*) and uploads build artifacts. Suitable for release pipelines.

Async (--workflow-type async)

Dispatches builds asynchronously using asyncWorkflow: true. The GitHub Action returns immediately while the build runs on the cloud provider.