unity-cli-exec-code

Installation
SKILL.md

Unity CLI Exec Code (Fallback)

Execute raw C# in a running Unity Editor via the Roslyn-based CSharpConsole REPL. Always prefer the unity-cli-command skill first.

Then check the snippet library (cs snippets search <description>) before writing ad-hoc code. After solving a non-trivial task that's likely to recur, consider distilling it into a snippet — see the unity-cli-snippets skill.

Running cs: below, cs is shorthand for python "$HOME/.unity-cli-plugin/current/cli/cs.py" — one stable path, run verbatim without changing directory. If it's not installed yet, run the unity-cli-setup skill once first.

Usage

Inline code:

python "$HOME/.unity-cli-plugin/current/cli/cs.py" exec --json --project "$(pwd)" "<C# code>"
Installs
1
GitHub Stars
44
First Seen
Jun 25, 2026