SuperAPI AI Directory

db-load-cf

General & other

View repository

Updated 10-15 21:03

About this skill

/db-load-cf — Loading a configuration from a CF file

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:

  1. If the user specified connection parameters (path, server) — use them directly
  2. If they specified the database by name — search by id / alias / name in .v8-project.json
  3. If they did not specify — match the current Git branch with databases[].branches
  4. If the branch did not match — use default Platform — v8path of the found database entry, 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 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 "МоёРасширение"