From unity-cli
Guides unity-cli usage for Unity Editor automation: verifies installation, connects/switches instances, selects typed vs raw commands, troubleshoots setup.
npx claudepluginhub akiojin/unity-cli --plugin unity-cliThis skill is limited to using the following tools:
Use `unity-cli` as the primary Unity automation interface.
Automates Unity Editor via UniCli: edit Assets/Packages files, compile C# code, run EditMode/PlayMode tests, modify GameObjects, scenes, prefabs, assets, build/project settings.
Enforces common rules for unity-cli skills: mandatory -i instance flags, connection verification, post-change verify sequences (clear/refresh/poll/check errors), fallback orders, and security policies. Prerequisite for all unity-* skills.
Bridges to live Unity Editor for agentic tool operations needing editor access: CLI commands like `editor invoke`, UnityAgenticTools.Create/Update for scenes/prefabs.
Share bugs, ideas, or general feedback.
Use unity-cli as the primary Unity automation interface.
Read references/runtime-checklist.md when installation mode, instance selection, or CI environment details matter.
unity-cli.system ping, instances list, instances set-active, or --output json.raw.unity-cli.unity-cli is available globally or must be run with cargo run --.system ping or instances list.system, scene, or instances when available.raw only when there is no typed command for the needed tool.--output json for chained automation or when another tool will consume the result.if ! command -v unity-cli >/dev/null 2>&1; then
if [ -f Cargo.toml ] && grep -q '^name = "unity-cli"' Cargo.toml; then
echo "unity-cli is not installed globally. Use: cargo run -- <args>"
else
echo "unity-cli is not installed."
echo "Install a release binary from https://github.com/akiojin/unity-cli/releases"
echo "or clone the repo and run: cargo install --path ."
exit 1
fi
fi
Then verify:
unity-cli --version
system, scene, instances) when available.raw for the rest of Unity command types.--output json when chaining automation steps.unity-cli system ping
unity-cli scene create MainScene --path Assets/Scenes/
unity-cli raw create_gameobject --json '{"name":"Player"}'
unity-cli instances list --ports 6400,6401
unity-cli instances set-active localhost:6401
unity-cli can reach my Unity Editor."scene create or a raw tool call."unity-cli not found: use cargo run -- <args> from the repo root or install the release binary.instances set-active returns unreachable: run instances list and select a target with up status.UNITY_CLI_HOST and UNITY_CLI_PORT explicitly.--json receives a valid JSON object, not shell-expanded fragments.