A powerful command line utility for the Unity Game Engine. Automate Unity project setup, editor installation, license management, building, and more—ideal for CI/CD pipelines and developer workflows.
- Install and manage Unity Hub and Unity Editors (multi-platform)
- Activate and return Unity licenses (personal, professional, floating)
- Create new Unity projects from templates
- Run Unity Editor commands and builds from the CLI
- Supports all modules, architectures, and build targets
- Works on Windows, macOS, and Linux
- Designed for automation and CI/CD
npm install -g @rage-against-the-pixel/unity-cli
unity-cli [command] [options]
unity-cli hub-install
: Install Unity Hubunity-cli hub-version
: Print Unity Hub versionunity-cli hub-path
: Print Unity Hub executable pathunity-cli hub [args...]
: Run Unity Hub commands directlyunity-cli activate-license
: Activate a Unity licenseunity-cli return-license
: Return a Unity licenseunity-cli license-version
: Print Unity License Client versionunity-cli setup-unity
: Find or install Unity Editor for a project/versionunity-cli create-project
: Create a new Unity project from a templateunity-cli run [args...]
: Run commands in Unity Editor Command Line Arguments
unity-cli hub-install
unity-cli setup-unity --unity-version 2022.3.x --modules android,ios --json
unity-cli activate-license --email <your-email> --password <your-password> --serial <your-serial>
unity-cli create-project --name "MyGame" --template com.unity.template.3d --unity-editor <path-to-editor>
unity-cli run --unity-editor <path-to-editor> --unity-project <path-to-project> -quit -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild