/interface-edit — editing CommandInterface.xml
Pointwise editing of the command interface file of a 1C subsystem.
Parameters
| Parameter |
Required |
Description |
| CIPath |
yes |
Path to CommandInterface.xml |
| Operation |
no |
Operation: hide, show, place, order, subsystem-order, group-order |
| Value |
no |
Value for the operation |
| DefinitionFile |
no |
JSON file with an array of operations (alternative to Operation) |
| CreateIfMissing |
no |
Create the file if it does not exist |
| NoValidate |
no |
Skip auto-validation |
Command
Inline mode
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/interface-edit.ps1" -CIPath '<path>' -Operation hide -Value '<cmd>'
JSON mode
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/interface-edit.ps1" -CIPath '<path>' -DefinitionFile '<json>'
Operations
| Operation |
Value |
Description |
| hide |
Cmd.Name or array |
Hide command (CommandsVisibility, false) |
| show |
Cmd.Name or array |
Show command (visibility, true) |
| place |
{"command":"...","group":"CommandGroup.X"} |
Place command in a group |
| order |
{"group":"...","commands":[...]} |
Set the order of commands in a group |
| subsystem-order |
["Subsystem.X.Subsystem.A",...] |
Order of child subsystems |
| group-order |
["NavigationPanelOrdinary",...] |
Order of groups |
Examples
# Скрыть команду
... -CIPath Subsystems/Продажи/Ext/CommandInterface.xml -Operation hide -Value "Catalog.Товары.StandardCommand.OpenList"
# Показать команду
... -Operation show -Value "Report.Продажи.Command.Отчёт"
# Разместить в группе
... -Operation place -Value '{"command":"Report.X.Command.Y","group":"CommandGroup.Отчеты"}'
# Задать порядок подсистем
... -Operation subsystem-order -Value '["Subsystem.X.Subsystem.A","Subsystem.X.Subsystem.B"]'
# Создать новый CI
... -CIPath <new-path> -Operation subsystem-order -Value '[...]' -CreateIfMissing
Verification
/interface-validate <CIPath>