unity-cli
БесплатноБез исполняемых скриптовНе проверенControls Unity Editors and projects from the command line, including a running Editor. Make sure to use this skill when the user asks to install or manage…
от Unity-Technologies★ 1 342 звезды на GitHubОб этом скилле
Unity CLI
Always use the latest version of the Unity CLI unless you are told to use a
specific version. Newer releases regularly add commands and output fields
these docs describe, so an outdated CLI fails in ways that read like the docs
being wrong. Check with unity self-update --check --format json.
When you can run shell commands, use unity command and the rest of this CLI, not the Unity MCP server. The CLI reaches more than the server's tools. MCP is for clients that have no shell.
Fetch a doc page directly (for example WebFetch) rather than searching (WebSearch). Replace <VERSION> first: the Unity version, eg 6000.3, for docs.unity3d.com, or the package version, eg 1.2, for a package page. These sites serve .html only, with no .md variant. Error codes, causes and fixes: common-workflows.md.
Before you go forward with a workflow or diagnosis, open and read its page: the reference file for the command group (Commands) or the recipe in common-workflows.md. Name the files you read in your reply. Your training knowledge about Unity and this CLI might be out of date, incorrect, or for the wrong Unity version.
Workflow
- Check the CLI is installed and current (Install the CLI).
- Find the command (search, don't grep help) and read its reference page.
- If you will drive an Editor, run
unity command console statusfirst and keep its cursor. - Run the command, or drive the Editor with
unity command. - Check the project has zero console errors with
unity command console status, and read any withconsole get -- --since <saved cursor> --level error. Stop there unless the user asked for proof or you suspect a specific fault. To chase a fault in a change to runtime behaviour, enter Play mode once and read state withunity command script evalinstead of adding logging, and take no screenshots. - If the fix doesn't work, go back and reread the reference page for that command group before trying again.
Find a command: search, don't grep help
Never filter unity --help or a group's help with grep. Help is long, and a grep over it drops the match or the context around it. Use the CLI's own search:
unity commands --grep license # built-in commands, plugins and the connected Editor's Pipeline commands
unity command --query screenshot # the same search
unity commands --grep <pattern> and unity command --query <term> are one search. It covers the CLI's built-in commands, the plugin catalog (installed or not) and the Pipeline commands of the live connected Editor, best match first. Plain words each match in any order; regex characters make it a regular expression (Rust regex syntax, case-insensitive; no lookaround or backreferences, which are refused with a usage error). Each row says how to run it (invoke): unity projects link cloud, unity command create_gameobject, unity <id> for an installed plugin, or unity plugin install <id> for one not yet installed. In --format json each row also carries kind (command, plugin, pipeline), path, description and matchedOn (name, description or option), so act on invoke rather than parsing the table.
- Search before you work around the CLI or tell the user it can't help. A request that names a Unity service, store or product feature (finding Asset Store assets, generating a texture, a cloud build) may be served by a catalog plugin that isn't installed yet, and nothing else on the machine will say so. Search with the request's own words (
unity commands --grep "asset store"). A row whoseinvokeisunity plugin install <id>is that plugin: tell the user, and ask before installing it (Use a catalog plugin). - Use
unity command --query <term>to search a specific Editor (--project-path <project>) or a Player (--runtime <pattern>, e.g.unity command --query screenshot --runtime MyGame). commands --grepwaits at most 3 seconds for the Editor;command --querywaits for it. When the Editor was not searched, a last line says why (no Editor, no answer in time, several Editors) and what to run. Wait for the Editor first withunity status --until-ready --project-path <project>: before it connects, no Pipeline row is not proof nothing exists.
Fields and flags: integration-advanced.md.
Drive a running Unity Editor (if one is open)
If a Unity Editor is open on this machine, this CLI can control it live — create and modify GameObjects, edit scenes and assets, inspect the hierarchy, and run arbitrary C# — through the project's Pipeline package (com.unity.pipeline).
Установить unity-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashВложенные файлы
FAQ
Что делает скилл unity-cli?
Controls Unity Editors and projects from the command line, including a running Editor. Make sure to use this skill when the user asks to install or manage Editors, licenses, or projects, set up version control, build, test, edit scenes, run C#, look up the scripting API or manual for the project's Unity version, or run any unity command.
Как установить скилл unity-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic