SuperAPI AI Directory

erf-dump

Coding & development

View repository

Updated 10-15 21:03

About this skill

/erf-dump — Report unpacking

Usage

/erf-dump <ErfFile> [OutDir]
Parameter Required Default Description
ErfFile yes — Path to the ERF file
OutDir no src Directory for exporting sources

Connection parameters (required)

Unpacking EPF/ERF requires an infobase with a configuration. Without a base, reference types are irretrievably lost.

  1. Read .v8-project.json from the project root and resolve the base:
  2. If the user specified connection parameters (path, server) — use them directly
  3. If they specified a base by name — search by id / alias / name in .v8-project.json
  4. If they did not specify — match the current Git branch with databases[].branches
  5. If the branch did not match — use default
  6. If .v8-project.json is missing or the base was not found — report an error to the user. For dump, a base is required: in an empty base, reference types (CatalogRef, DocumentRef, etc.) are irretrievably reset to strings. Suggest specifying a base or registering via /db-list add.

Platform — v8path of the found base record, otherwise the root v8path. If it is not set in either place — -V8Path do not pass. If the base used is not registered — after execution, suggest adding it via /db-list add.

Command

Use the shared script from epf-dump:

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/../epf-dump/scripts/epf-dump.ps1" <параметры>

Script parameters

Parameter Required Description
-V8Path <путь> no Platform bin directory (or full path to 1cv8.exe)
-InfoBasePath <путь> * File base
-InfoBaseServer <сервер> * 1C server (for a server base)
-InfoBaseRef <имя> * Base name on the server
-UserName <имя> no User name
-Password <пароль> no Password
-InputFile <путь> yes Path to the ERF file
-OutputDir <путь> yes Directory for exporting sources
-Format <формат> no Hierarchical (default) / Plain
-AdditionalV8Arguments <список> no Additional launch arguments 1cv8.exe comma-separated, e.g. /UseHwLicenses+
-AdditionalIbcmdArguments <список> no Additional arguments ibcmd comma-separated, in the form --ключ=значение

* — at least one connection is required. Without a database, the script will fail with an error (a dump into an empty database irreversibly loses reference types)

Examples

# Разборка отчёта (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/../epf-dump/scripts/epf-dump.ps1" -InfoBasePath "C:\Bases\MyDB" -InputFile "build/МойОтчёт.erf" -OutputDir "src"

# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/../epf-dump/scripts/epf-dump.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -InputFile "build/МойОтчёт.erf" -OutputDir "src"