Loads a configuration from a binary CF file into the infobase.
Usage
/db-load-cf <input.cf> [database]
/db-load-cf config.cf dev
Attention: loading CF completely replaces the configuration in the database. Before executing, request confirmation from the user.
Connection parameters
Read .v8-project.json from the project root and resolve the database:
- If the user specified connection parameters (path, server) — use them directly
- If they specified the database by name — search by id / alias / name in
.v8-project.json - If they did not specify — match the current Git branch with
databases[].branches - If the branch did not match — use
defaultPlatform —v8pathof the found database entry, otherwise the rootv8path. Not set in either place —-V8Pathdo not pass. If the file does not exist — suggest/db-list add. If the used database is not registered — after execution, suggest adding it via/db-list add.
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-load-cf.ps1" <параметры>
Script parameters
| Parameter | Required | Description |
|---|---|---|
-V8Path <путь> |
no | Platform bin directory, or full path to 1cv8.exe / ibcmd.exe |
-InfoBasePath <путь> |
* | File database |
-InfoBaseServer <сервер> |
* | 1C server (for a server database) |
-InfoBaseRef <имя> |
* | Database name on the server |
-UserName <имя> |
no | User name |
-Password <пароль> |
no | Password |
-InputFile <путь> |
yes | Path to the CF file |
-Extension <имя> |
no | Load as an extension |
-NoApplyCheck |
no | Do not check the extension's applicability after loading |
-AllExtensions |
no | Load all extensions from the archive |
-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
After execution
Suggest running /db-update — loading CF updates only the "main" configurator configuration; to apply it to the DB, you need /UpdateDBCfg
Examples
# Файловая база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-load-cf.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -InputFile "C:\backup\config.cf"
# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-load-cf.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Test" -UserName "Admin" -Password "secret" -InputFile "config.cf"
# Загрузка расширения
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-load-cf.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -InputFile "ext.cfe" -Extension "МоёРасширение"