SuperAPI AI Directory

db-dump-cf

Deployment & operations

View repository

Updated 10-15 17:18

About this skill

/db-dump-cf — Unload configuration to a CF file

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:

  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 If v8path is not set — auto-detect: Get-ChildItem "C:\Program Files\1cv8\*\bin\1cv8.exe" | Sort -Desc | Select -First 1 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/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 "МоёРасширение"