SuperAPI AI Directory

db-run

General & other

View repository

Updated 10-15 17:18

About this skill

/db-run — Launching 1C:Enterprise

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. Take v8path (path to the platform) and resolve the database:

  1. If the user specified connection parameters (path, server) — use them directly
  2. If the user specified a database 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 there is no file — 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/skills/db-run/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/...)

* — 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/skills/db-run/scripts/db-run.ps1 -InfoBasePath "C:\Bases\MyDB" -UserName "Admin"

# Запуск с обработкой
powershell.exe -NoProfile -File .claude/skills/db-run/scripts/db-run.ps1 -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -Execute "C:\epf\МояОбработка.epf"

# Открыть по навигационной ссылке
powershell.exe -NoProfile -File .claude/skills/db-run/scripts/db-run.ps1 -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -URL "e1cib/data/Справочник.Номенклатура"

# Серверная база с параметром запуска
powershell.exe -NoProfile -File .claude/skills/db-run/scripts/db-run.ps1 -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -CParam "ЗапуститьОбновление"