SuperAPI AI Directory

cf-edit

General & other

View repository

Updated 10-15 17:18

About this skill

/cf-edit — editing a 1C configuration

Targeted editing of Configuration.xml: properties, ChildObjects composition, default roles.

Parameters and command

Parameter Description
ConfigPath Path to Configuration.xml or to the dump directory
Operation Operation (see the table)
Value Value for the operation (batch via ;;)
DefinitionFile JSON file with an array of operations
NoValidate Skip auto-validation
powershell.exe -NoProfile -File .claude/skills/cf-edit/scripts/cf-edit.ps1 -ConfigPath '<path>' -Operation modify-property -Value 'Version=1.0.0.1'

Operations

Operation Value format Description
modify-property Ключ=Значение (batch ;;) Change a property
add-childObject Type.Name (batch ;;) Add an object to ChildObjects
remove-childObject Type.Name (batch ;;) Remove an object from ChildObjects
add-defaultRole Role.Name or Name Add a default role
remove-defaultRole Role.Name or Name Remove a default role
set-defaultRoles Names separated by ;; Replace the list of default roles

More details: reference.md in the skill directory.

Examples

# Изменить версию и поставщика
... -ConfigPath test-tmp/cf -Operation modify-property -Value "Version=1.0.0.1 ;; Vendor=Фирма 1С"

# Добавить объекты
... -ConfigPath test-tmp/cf -Operation add-childObject -Value "Catalog.Товары ;; Document.Заказ"

# Удалить объект
... -ConfigPath test-tmp/cf -Operation remove-childObject -Value "Catalog.Устаревший"

# Роли по умолчанию
... -ConfigPath test-tmp/cf -Operation add-defaultRole -Value "ПолныеПрава"
... -ConfigPath test-tmp/cf -Operation set-defaultRoles -Value "ПолныеПрава ;; Администратор"