uloop-cli: Unity Editor CLI Companion

2.0.3 · active · verified Wed Apr 22

uloop-cli is a command-line interface (CLI) tool designed to communicate with the Unity Editor via the Unity CLI Loop (uLoopMCP) server. It enables external applications, particularly AI agents and Large Language Models (LLMs), to automate Unity operations such as compiling code, running tests, getting console logs, and controlling Play Mode. The current stable version is 2.0.3, released on April 22, 2026. The package maintains a rapid release cadence, with multiple bugfix releases often occurring on the same day following a major or minor update. Its key differentiator is facilitating direct, programmatic control of the Unity Editor through a standardized CLI, abstracting away the complexities of Unity's internal scripting for external tools and AI, enabling seamless integration for automated development workflows.

Common errors

Warnings

Install

Imports

Quickstart

Installs necessary 'skills' for LLMs to interact with Unity, compiles a Unity project, and then chains commands to compile and enter Play Mode, demonstrating basic automation.

npm install -g uloop-cli

# Assuming Unity CLI Loop (uLoopMCP) is installed and running in your Unity project.
# This example installs skills for Claude Code globally and then executes a compilation.
# Replace './path/to/your/unity/project' with the actual path.

# Step 1: Install skills for LLM tools (e.g., Claude Code)
# This allows LLMs to automatically use uloop commands.
uloop skills install --claude --global

# Step 2: Compile your Unity project
# This command will trigger a compilation within the specified Unity Editor instance.
# The '--wait-for-domain-reload true' flag ensures the CLI waits until Unity has finished its domain reload.
# The output will indicate compilation success or failure and any errors/warnings.
uloop compile --project-path ./path/to/your/unity/project --wait-for-domain-reload true

# Step 3: Example of chaining commands: Compile, wait, then enter Play Mode
# This demonstrates automating a sequence of operations.
uloop compile --project-path ./path/to/your/unity/project --wait-for-domain-reload true && \
uloop control-play-mode --project-path ./path/to/your/unity/project --action Play

view raw JSON →