SuperAPI AI Directory

unity-cli-refresh-commands

Coding & development

View repository

Updated 10-16 02:31

About this skill

Unity CLI Refresh Commands

Sync the custom command catalog from the running Unity Editor.

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.

Run:

python "$HOME/.unity-cli-plugin/current/cli/cs.py" catalog sync --json --project "$(pwd)"

Parse the JSON output. Report the summary (added/removed/total) and the catalog file path from data.catalogFile.

On first sync for a project, the catalog file defaults to {project}/.unity-cli/catalog.json (the path is cached for subsequent runs). To pick a different location once, run:

python "$HOME/.unity-cli-plugin/current/cli/cs.py" catalog sync --json --project "$(pwd)" --catalog-path /your/path/catalog.json

If the command fails, suggest the user check that Unity Editor is open and the C# Console package is installed.