{"version":"2.1.332","anchor":"plugin-commandregister-accepts-aliases-and-visibility-optio","canonical_anchor":"plugin-commandregister-accepts-aliases-and-visibility-optio","heading":"Plugin commands can have aliases and new visibility options","tier":"use","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/plugin-commandregister-accepts-aliases-and-visibility-optio","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Plugin commands can have aliases and new visibility options\n\nPlugins registering commands with command.register can now set aliases, isHidden, isTerminalOnly and isWorkspaceFree, with clearer conflict and validation errors\n\n**What**\n\nPlugins can add their own slash commands, the commands you type starting with \/, through `$.command.register`. Registration now accepts more options:\n\n- `aliases`: other names the command also answers to.\n\n- `isHidden`, `isTerminalOnly` and `isWorkspaceFree`, alongside the existing `name`, `description`, `argumentHint` and `immediate`. The error text lists them.\n\nIt also checks more:\n\n- A name or alias already held by another plugin or by an existing command is refused, with a specific reason. Before, only the name was checked, and only against one other holder or a built-in command.\n\n- `immediate`, `isHidden`, `isTerminalOnly` and `isWorkspaceFree` must be true or false. Other values are rejected with \" is true or false\". Before, only `immediate` was checked.\n\nPlugin validation now warns about command names that Claude Code itself ships. In a terminal, the first plugin to register such a name holds it, while headless sessions (runs with no interactive screen) and cloud sessions refuse it. Validation also flags hooks that name an alias.\n\n**Why**\n\nPlugin authors can give commands short alternative names and control where they appear. Clashing names are caught with a clear reason, and a shipped command name behaves differently depending on where Claude Code runs.\n\n- Area: Plugins\n- Names: `command.register`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}