Skip to content
Development
Command

/loadfrom1cbase

Dump the configuration from the infobase defined in .dev.env into the current repository files

From plugin
ai-rules-1c
55045 skills13 agents45 commands
> /plugin marketplace add comol/ai_rules_1c
> /plugin install 1c-rules@1c-rules

Command definition

loadfrom1cbase.md
description: Dump the configuration from the infobase defined in .dev.env into the current repository files
argumentHint: "[full|changes|partial|all]"

/loadfrom1cbase — dump from infobase to repository

Refresh configuration files from the infobase defined in `.dev.env`: full dump, incremental refresh or selected-object export. Read `content/rules/config-sync-contract.md` before choosing the scope. With `all` (or an explicit "with extensions" request), dump the **full snapshot** — main configuration plus every extension from `EXTENSION_NAMES`; see "Full-snapshot mode" below.

This is the directory-refresh stage of the workflow shared with `/update1cbase`. It does not load files into the infobase or apply the database configuration.

**Target before mode:** follow `content/rules/extension-workspace.md`. Select the current project and main or one exact extension before choosing `full` / `changes` / `partial`; these modes do not select a target. Use that pass's source directory and extension option in every template below. Explicit task/file ownership overrides the single-target `EXTENSION_NAME` default without changing settings; `all` uses main plus `EXTENSION_NAMES`. Keep each target's baseline and lists separate.

Select scope

  • `full` / `all`: deliberately dump a complete snapshot.
  • `changes`: update an existing dump from its `ConfigDumpInfo.xml`; Designer uses `-update`, `ibcmd` uses `--sync`. Without a usable baseline, stop this mode and prepare a full dump into a new directory or obtain authorization for overwriting the existing one. Do not add `-force` as an automatic retry.
  • `partial`: follow `/getconfigfiles` with the selected objects in `repoobjects.txt`; then return to this command's result report. This is a supported branch of directory refresh, not a full dump followed by file filtering.
  • No explicit mode: use the scope already established by the task; selected objects imply `partial`, a repeated refresh of a complete dump with a valid baseline implies `changes`, and a first complete export implies `full`. State the choice. An explicit partial request never falls back to full automatically.

For a change report (`-getChanges`) or a delta directory (`-configDumpInfoForChanges`), use the Designer modes from the same contract. A report-only operation does not count as refreshing the directory.

**EDT gate:** the dump this command writes is in **Designer XML format**. In a project developed in 1C:EDT (`.dev.env` `USE_EDT=true`) whose working tree is an EDT (`src/**/*.mdo`) workspace, dumping into that tree is wrong — pick a separate target directory and state that the result is a dump, not the workspace; bringing changes back into EDT is a separate, confirmed step (`content/rules/edt-workflow.md`).

Step 0. Check `.dev.env` parameters

`.dev.env` is the single source of truth for connection parameters (created by the 1c-rules installer at the project root). If it is missing, ask the user to run `install.ps1 init` or manually copy `.dev.env.example` to `.dev.env`.

If the project still has legacy `infobasesettings.md`, migrate values to `.dev.env` (same key names, `KEY=value` format instead of a markdown list), preserving already-filled `.dev.env` keys, and delete the legacy file after successful migration. The ruleset has no other connection-settings location.

Parameters, classes and defaults — `content/rules/dev-standards-env.md §1`; Defaulted keys are never asked for. Keys read: `PLATFORM_PATH`, `INFOBASE_PATH` (**blocking** — if either is empty, ask once and write the value to `.dev.env`), `INFOBASE_KIND`, `IB_USER` / `IB_PASSWORD`, `EXTENSION_NAME`, `EXTENSION_NAMES` (`all` mode), `EXPORT_PATH`, `EXTENSIONS_PATH`, `LOG_PATH`, `IBCMD_CONFIG`.

When substituting `.dev.env` values into the templates below, resolve `{INFOBASE_FLAG}` once from the effective `INFOBASE_KIND` (`/F` for `file`, `/S` for `server`; reject any other value), and substitute a resolved `{LOG_PATH}` that contains `$env:` double-quoted — single quotes do not expand it.

Before every dump mode, inspect `git status --short` for the resolved destination (and inspect existing files if it is not under Git). The dump may overwrite source files and the version baseline. If affected files contain local changes, preserve them in a separate destination or obtain explicit overwrite authorization; never discard them silently. In a single-extension run, use that extension's source directory consistently.

Step 1. Choose tool: `ibcmd` or Designer

1. Check whether the utility exists: `Test-Path '{PLATFORM_PATH}\bin\ibcmd.exe'`. 2. Check whether `IBCMD_CONFIG` is filled in `.dev.env`. 3. If **both conditions are true**, use **Step 2a (`ibcmd`)**. 4. Otherwise use **Step 2b (Designer)**.

`ibcmd infobase config` does not apply to 1C cluster infobases; for server cluster infobases always use Designer.

Step 2a. Export through `ibcmd` (preferred)

& '{PLATFORM_PATH}\bin\ibcmd.exe' infobase config export `
    --config='{IBCMD_CONFIG}' `
    --user='{IB_USER}' `
    --password='{IB_PASSWORD}' `
    --extension={EXTENSION_NAME} `
    '{EXPORT_PATH}' *>&1 | Tee-Object -FilePath '{LOG_PATH}'

Remove empty optional keys (`--user`, `--password`, `--extension`). Add `--sync` for the selected `changes` mode only; omit it for `full` / `all`. Partial export follows `/getconfigfiles`. Use Designer for comparison / external-baseline delta modes rather than inventing `ibcmd` flags.

`ibcmd` writes diagnostics to stdout/stderr; `Tee-Object` duplicates it into `{LOG_PATH}`. Continue to **Step 3**.

Step 2b. Export through Designer (fallback)

Map `.dev.env` keys to Designer flags:

| Field | Flag | |---|---| | `INFOBASE_KIND=file` | `/F '{INFOBASE_PATH}'` | | `INFOBASE_KIND=server` | `/S '{INFOBASE_PATH}'` | | `IB_USER` when not empty | `/N '{IB_USER}'` | | `IB_PASSWORD` when not empty | `/P '{IB_PASSWORD}'` | | `EXTENSION_NAME` when not empty | `-Extension {EXTENSION_NAME}` |

&
Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other commands on ai-rules-1c.

build-release

build-release

Command

Build release artifacts from committed sources — .cf for the main configuration and .cfe per extension, with optional version…

@comol@comolInstall Command
caveman

caveman

Command

Toggle the caveman communication style — set CAVEMAN (on|auto|off) in .dev.env for the whole project; on|off|auto persist,…

@comol@comolInstall Command
check-uuid

check-uuid

Command

Check a 1C XML configuration dump for duplicate UUIDs, and optionally regenerate them

@comol@comolInstall Command
checkmcp

checkmcp

Command

Check availability of 1C MCP servers and install/start the missing ones

@comol@comolInstall Command
checkupdates

checkupdates

Command

Read-only check for available updates of the 1C MCP server images and of the 1c-rules ruleset, without pulling or installing…

@comol@comolInstall Command
deploy-and-test

deploy-and-test

Command

Load the configuration into the test infobase from .dev.env and check the result in the 1C interface — QA MCP first, the web…

@comol@comolInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command