Launches the infobase in 1C:Enterprise mode (user mode).
Usage
/db-run [database]
/db-run dev
/db-run dev /Execute process.epf
/db-run dev /C "параметр запуска"
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 a database 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
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 database used is not registered — after execution, suggest adding it via/db-list add.
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-run.ps1" <параметры>
Script parameters
| Parameter | Required | Description |
|---|---|---|
-V8Path <путь> |
no | Platform bin directory (or full path to 1cv8.exe) |
-InfoBasePath <путь> |
* | File database |
-InfoBaseServer <сервер> |
* | 1C server (for a server database) |
-InfoBaseRef <имя> |
* | Database name on the server |
-UserName <имя> |
no | User name |
-Password <пароль> |
no | Password |
-Execute <файл.epf> |
no | Launch an external data processor immediately after startup |
-CParam <строка> |
no | Launch parameter (/C) |
-URL <ссылка> |
no | Navigation link (format e1cib/...) |
-AdditionalV8Arguments <список> |
no | Additional launch arguments 1cv8.exe separated by commas, e.g. /UseHwLicenses+ |
*— either-InfoBasePathis required, or the pair-InfoBaseServer+-InfoBaseRef
Important
The script launches 1C in the background (Start-Process without -Wait) — control returns immediately.
Examples
# Простой запуск
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-run.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin"
# Запуск с обработкой
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-run.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -Execute "C:\epf\МояОбработка.epf"
# Открыть по навигационной ссылке
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-run.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -URL "e1cib/data/Справочник.Номенклатура"
# Серверная база с параметром запуска
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-run.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -CParam "ЗапуститьОбновление"