Command naming conventions for Unity CLI
Name groups, commands, arguments, and tags consistently when you define Unity CLI commands in the Pipeline package or a CLI extension.
読み終わるまでの所要時間 2 分最終更新 3日前
Use these conventions when you author commands with the attribute in the Unity Pipeline package () or in any Unity CLI extension. Consistent names make commands easier to discover and predict, for both people and AI agents.
[CliCommand]com.unity.pipelineThese conventions cover command groups, command names, argument names, and tags. They don't cover the commands that ship with the binary itself, such as or . For those commands, refer to Unity CLI reference.
unityunity installunity openCommand structure
Every command belongs to exactly one group and has a name that's unique within that group. The group is where the command lives, such as or . The name is what the command does, such as or .
prefabanimation.animatorcreatecreate_controllerThe following table describes each part of a command:
Term | Description | Example |
|---|---|---|
| Group | Where the command lives. Every command has exactly one group, and the group is required. A group can contain subgroups, separated by dots. | |
| Name | The operation the command performs, relative to its group. A name only needs to be unique within its group. | |
| id | The group and name joined with a dot. The server uses the id to match commands, and batch JSON uses it to refer to a command. The id isn't shown in the CLI. | |
| MCP tool name | The id with each dot replaced by an underscore. MCP clients see the command under this name. | |
| Tags | Optional labels that describe what a command is like. A command can have zero or more tags. Tags don't indicate where a command lives. | |