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:
- If the user specified connection parameters (path, server) — use them directly
- If the user specified a base by name — search by id / alias / name in
.v8-project.json - If not specified — match the current Git branch with
databases[].branches - If the branch did not match — use
defaultPlatform —v8pathof the found base record, otherwise the rootv8path. Not set in either place —-V8Pathdo 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 "МоёРасширение"