跳转到内容

BMCLI database

命令名、参数与机器可读字段保持英文,以便直接复制到终端或交给 AI 使用;当前安装版本的精确契约请以 bmcli help ... --format=json 为准。

Persistent lifecycle for typed engineering database resources. database owns registration, validation, discovery, and removal; protocol-specific operations remain under dbc, ldf, and future database categories. Resources are stored in the per-user BMCLI state directory and remain available to later processes.

Validate and register a DBC, LDF, A2L, or mapping file. The type is inferred from the extension unless --type is supplied. The default resource name is the filename stem. Loading the same canonical path again is idempotent.

Terminal window
bmcli database load --file=network.dbc --name=vehicle
bmcli database load --file=body.ldf --name=body-lin
Terminal window
bmcli database unload vehicle
bmcli database unload --all
Terminal window
bmcli database list --format=json
bmcli database list --type=dbc --format=json
bmcli database info vehicle --format=json
bmcli database validate --file=network.dbc --format=json
bmcli database validate vehicle --format=json

validate --file does not change registry state. info and validation of a registered resource re-open the source file, so stale or damaged paths fail instead of returning cached parser metadata.


权威来源: bmcli_reference.md in the BMCLI repository. Run bmcli help <category> <action> --format=json for the exact contract of the installed version.