Unloads 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. Take v8path (path to the platform) 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
defaultIfv8pathis not set — auto-detect:Get-ChildItem "C:\Program Files\1cv8\*\bin\1cv8.exe" | Sort -Desc | Select -First 1If 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/skills/db-dump-cf/scripts/db-dump-cf.ps1 <параметры>
Script parameters
| Parameter | Required | Description |
|---|---|---|
-V8Path <путь> |
no | Platform bin directory (or full path to 1cv8.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 | Unload extension |
-AllExtensions |
no | Unload all extensions |
*— either-InfoBasePathis required, or the pair-InfoBaseServer+-InfoBaseRef
Return codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | Error (see log) |
After execution
Read the log file and show the result. If there are errors — show the contents of the log.
Examples
# Выгрузка конфигурации (файловая база)
powershell.exe -NoProfile -File .claude/skills/db-dump-cf/scripts/db-dump-cf.ps1 -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -OutputFile "C:\backup\config.cf"
# Серверная база
powershell.exe -NoProfile -File .claude/skills/db-dump-cf/scripts/db-dump-cf.ps1 -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Dev" -UserName "Admin" -Password "secret" -OutputFile "config.cf"
# Выгрузка расширения
powershell.exe -NoProfile -File .claude/skills/db-dump-cf/scripts/db-dump-cf.ps1 -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -OutputFile "ext.cfe" -Extension "МоёРасширение"