acr bom
Generate Bill of Materials (BOM) from Altium SchDoc or PrjPcb files. CSV/XLSX formats include parameters as columns; JSON preserves nested structure. Config-driven runs can emit raw JSON, grouped tables, and JLCPCB BOM upload columns in one invocation.
| Property | Value |
|---|---|
| Command | acr bom (or altium-cruncher bom) |
| Category | Fabrication & Manufacturing Outputs |
| Config File | bom.config / bom-pnp.jsonc (altium_cruncher.bom.config.a0) |
| Workflow Guide | Fabrication & Outputs: acr bom |
Usage
acr bom [-h] [-o OUTPUT] [--format {csv,json,raw-json,generic-json,legacy-json,grouped-json,grouped-csv,grouped-xlsx,jlc-csv,jlc-xlsx,xlsx}] [--config CONFIG] [--write-config [PATH]] [--variant VARIANT] [--all-variants] [file]Arguments And Options
Positional Arguments
| Argument | Required | Description |
|---|---|---|
file | No | SchDoc or PrjPcb file (optional if PrjPcb in CWD) |
Options
| Flag | Default | Description |
|---|---|---|
-o, --output <OUTPUT> | — | output directory (default: ./output/bom) |
--format <FORMAT> | — | single output format; overrides multi-output config mode (choices: csv, json, raw-json, generic-json, legacy-json, grouped-json, grouped-csv, grouped-xlsx, jlc-csv, jlc-xlsx, xlsx) |
--config <CONFIG> | — | BOM/PnP JSON/JSONC config (default: ./bom.config; created when omitted in config mode) |
--write-config <PATH> | — | write a default BOM/PnP config template |
--variant <VARIANT> | — | filter by specific variant name |
--all-variants | False | generate BOM for all variants (plus base) |
Examples
# Write a starter BOM/PnP JSONC config template
acr bom --write-config bom-pnp.jsonc
# Export grouped BOM (raw JSON + formatted XLSX, DNP rows at end)
acr bom project.PrjPcb --config bom-pnp.jsonc -o out/bom