$ npm install eda-bom-to-inventree-assemblyThis tool takes a EDA BOM (such as one would generate using KiCad's "Tools -> Generate Bill of Materials...") and converts it into an InventTree importable BOM.
It uses the following fields in the input:
npm -g i eda-bom-to-inventree-assembly
eda-bom-to-inventree-assembly < kicad-bom.csv > inventree-bom.csv
or, without installing, using npx:
npx eda-bom-to-inventree-assembly < kicad-bom.csv > inventree-bom.csv
The BOM can then be imported using InvenTree's BOM import functionality.
If you prefer a GUI-based approach, check out kinventree-bom.