Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Check the CLI is installed and current (Install the CLI).
  2. Find the command (search, don't grep help) and read its reference page.
  3. If you will drive an Editor, run unity command console status first and keep its cursor.
  4. Run the command, or drive the Editor with unity command.
  5. Check the project has zero console errors with unity command console status, and read any with console 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 with unity command script eval instead of adding logging, and take no screenshots.
  6. 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 whose invoke is unity 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 --grep waits at most 3 seconds for the Editor; command --query waits 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 with unity 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).

Полный SKILL.md на GitHub

Установить unity-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash

Вложенные файлы

SECURITY.mdreferences/CHANGELOG.mdreferences/auth-license-cloud.mdreferences/build-run-test.mdreferences/cloud-automation.mdreferences/collaboration.mdreferences/common-workflows.mdreferences/config-hub.mdreferences/diagnostics-maintenance.mdreferences/docs-workflow.mdreferences/editors-install.mdreferences/exit-codes.mdreferences/global-flags-env.mdreferences/integration-advanced.mdreferences/notes.mdreferences/playmode-verification-loop.mdreferences/projects-templates.mdreferences/version-control.mdreferences/worktrees.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить unity-cli с