unity-cli-refresh

Installation
SKILL.md

Unity CLI Refresh

Trigger Unity to re-scan assets and recompile scripts. Use after writing or modifying .cs files on disk.

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.

Recommended (one-step):

python "$HOME/.unity-cli-plugin/current/cli/cs.py" refresh --json --project "$(pwd)" --exit-playmode --wait 120
  • --exit-playmode automatically exits play mode before refreshing if needed
  • --wait TIMEOUT blocks until the refresh + compile + domain-reload cycle completes (default 120s, max 600s)
  • Domain reload restarts the HTTP service and clears REPL sessions; --wait handles reconnection
Installs
1
GitHub Stars
44
First Seen
Jun 25, 2026