SuperAPI AI Directory

db-dump-xml

General & other

View repository

Updated 10-15 21:33

About this skill

/db-dump-xml — Dump configuration to XML

Dumps the infobase configuration to XML files (sources). Supports full, incremental, partial dump and updating ConfigDumpInfo.

Usage

/db-dump-xml [database] [outputDir]
/db-dump-xml dev src/config
/db-dump-xml dev src/config -Mode Full
/db-dump-xml dev src/config -Mode Partial -Objects "Справочник.Номенклатура,Документ.Заказ"

Connection parameters

Read .v8-project.json from the project root and resolve the base:

  1. If the user specified connection parameters (path, server) — use them directly
  2. If they specified the base by name — search by id / alias / name in .v8-project.json
  3. If not specified — match the current Git branch with databases[].branches
  4. If the branch did not match — use default Platform — v8path of the found base record, otherwise the root v8path. Not set in either place — -V8Path do not pass. If the file does not exist — suggest /db-list add. If the used base is not registered — after execution, suggest adding it via /db-list add. If the base record specifies configSrc — use it as the default dump directory. For -Extension the directory is taken from extensions[].src of the base record, if it is specified there.

Command

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" <параметры>

Script parameters

Parameter Required Description
-V8Path <путь> no Platform bin directory, or full path to 1cv8.exe / ibcmd.exe
-InfoBasePath <путь> * File base
-InfoBaseServer <сервер> * 1C server (for a server base)
-InfoBaseRef <имя> * Base name on the server
-UserName <имя> no User name
-Password <пароль> no Password
-ConfigDir <путь> yes Dump directory
-Mode <режим> no Full / Changes (default) / Partial / UpdateInfo
-Objects <список> for Partial Object names separated by commas
-Extension <имя> no Dump extension
-AllExtensions no Dump all extensions
-Format <формат> no Hierarchical (default) / Plain
-AdditionalV8Arguments <список> no Additional launch arguments 1cv8.exe separated by commas, e.g. /UseHwLicenses+
-AdditionalIbcmdArguments <список> no Additional arguments ibcmd comma-separated, in the form --ключ=значение

* — either -InfoBasePath, or a pair of -InfoBaseServer + -InfoBaseRef

Unload modes

Mode Description
Full Full unload — all configuration objects. Writes over the directory: files that are not in the configuration remain
Changes Incremental — only those changed since the last unload (by ConfigDumpInfo.xml). If there is no unload in the directory yet (empty or only .git, README), performs a full unload
Partial Partial — selected objects from the parameter -Objects
UpdateInfo Update only ConfigDumpInfo.xml without unloading files

If the user asks to unload specific objects — use -Mode Partial с -Objects.

Changes refuses if the directory contains an unload without ConfigDumpInfo.xml or the directory was unloaded in a different format version (by a different platform). -Mode Full in that case will re-unload the entire tree, and all files will change, so leave the decision about a full unload to the user.

Examples

# Полная выгрузка (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" -V8Path "C:\Program Files\1cv8\8.3.25.1257\bin" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -ConfigDir "C:\WS\cfsrc" -Mode Full

# Инкрементальная выгрузка
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -ConfigDir "C:\WS\cfsrc" -Mode Changes

# Частичная выгрузка
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -ConfigDir "C:\WS\cfsrc" -Mode Partial -Objects "Справочник.Номенклатура,Документ.Заказ"

# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Dev" -UserName "Admin" -Password "secret" -ConfigDir "C:\WS\cfsrc" -Mode Full

# Выгрузка расширения
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-xml.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -ConfigDir "C:\WS\ext_src" -Mode Full -Extension "МоёРасширение"