Creates a new 1C infobase (file or server) and suggests registering it in .v8-project.json.
Usage
/db-create <path> — файловая база по указанному пути
/db-create <server>/<name> — серверная база
/db-create — интерактивно
Connection parameters
Read .v8-project.json from the project root. Platform — v8path entries of the base being created,
if it is already in the registry, otherwise the root v8path. Not specified in either place — -V8Path do not pass.
After creating the base, suggest registering via /db-list add.
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-create.ps1" <параметры>
Script parameters
| Parameter | Required | Description |
|---|---|---|
-V8Path <путь> |
no | Platform bin directory, or full path to 1cv8.exe / ibcmd.exe |
-InfoBasePath <путь> |
* | Path to the file base |
-InfoBaseServer <сервер> |
* | 1C server (for a server base) |
-InfoBaseRef <имя> |
* | Base name on the server |
-UseTemplate <файл> |
no | Create from a template (.cf or .dt) |
-AddToList |
no | Add to the 1C base list |
-ListName <имя> |
no | Base name in the list |
-AdditionalV8Arguments <список> |
no | Additional launch arguments 1cv8.exe separated by commas, e.g. /UseHwLicenses+ |
-AdditionalIbcmdArguments <список> |
no | Additional arguments ibcmd separated by commas, in the form --ключ=значение |
*— either-InfoBasePathis required, or the pair-InfoBaseServer+-InfoBaseRef
After creation
Suggest registering the base in .v8-project.json (via /db-list add)
3. If a template is specified /UseTemplate — warn that the configuration will be loaded from the template
Examples
# Создать файловую базу
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-create.ps1" -InfoBasePath "C:\Bases\NewDB"
# Создать серверную базу
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-create.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Test"
# Создать из шаблона CF
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-create.ps1" -InfoBasePath "C:\Bases\NewDB" -UseTemplate "C:\Templates\config.cf"
# Создать и добавить в список баз
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-create.ps1" -InfoBasePath "C:\Bases\NewDB" -AddToList -ListName "Новая база"