wms lego import-parts¶
Import a parts list: a Rebrickable CSV or a BrickLink inventory XML (--dry-run shows the plan first)
Reads Part / Color / Quantity from a Rebrickable parts-list CSV, or ITEM entries from a BrickLink XML
(parts only; BrickLink colour numbers are translated through Rebrickable, which needs a key). Quantities
are added to what you hold (--mode add) or replace it (--mode set). Names and categories come from the
offline catalog. Everything is written in one transaction. Nothing goes to Part-DB until you run
wms lego sync-parts.
wms lego import-parts <file> [flags]
Examples¶
wms lego import-parts my-parts.csv --dry-run
wms lego import-parts inventory.xml --mode set --yes
Options¶
--dry-run show the plan and stop
--format string auto, rebrickable (CSV) or bricklink (XML) (default "auto")
--mode string add (add to what you hold) or set (replace it) (default "add")
--yes don't ask for confirmation