SuperAPI AI Directory

db-dump-cf

General & other

View repository

Updated 10-15 21:03

About this skill

/db-dump-cf — Dump of the configuration to a CF file

Dumps the infobase configuration to a binary CF file.

Usage

/db-dump-cf [database] [output.cf]
/db-dump-cf dev config.cf
/db-dump-cf                          — база по умолчанию, файл config.cf

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 the user specified a 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.

Command

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-cf.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
-OutputFile <путь> yes Path to the output CF file
-Extension <имя> no Dump extension
-AllExtensions no Dump all extensions
-AdditionalV8Arguments <список> no Additional launch arguments 1cv8.exe comma-separated, e.g. /UseHwLicenses+
-AdditionalIbcmdArguments <список> no Additional arguments ibcmd comma-separated, in the form --ключ=значение

* — either -InfoBasePathis required, or the pair -InfoBaseServer + -InfoBaseRef

Examples

# Выгрузка конфигурации (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-cf.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -OutputFile "C:\backup\config.cf"

# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-cf.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Dev" -UserName "Admin" -Password "secret" -OutputFile "config.cf"

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