unity-pipeline
Unity Pipeline (agent control)
Invoke commands with unity command <group> <name> [args]. unity command lists the command
groups, unity command <group> one group's commands, and --query <term> filters by name,
description or tag. Two servers exist: Editor (7800-7849, auto-starts with the editor) and
Runtime (7900-7949, only in a dev Player build).
Targeting the Editor
Always pass --project-path <project>, or run unity from inside the project folder. A
project folder holds exactly one Editor, so this is unambiguous, needs no other flag, and reads the
Editor's port and token straight from the project, with no process scan. An MPPM clone is its own
project: --project-path <mainProject>/Library/VP/<vpId>.
Don't use --port, --pid or --instance unless the user asks for them. Without
--project-path they search every running Editor: on Unity 6 (6000.x) that is a scan of every
process, a second or more on each call; only Unity 7 Editors answer it without a scan. The CLI
warns on stderr when a call had to scan.