kicad-cli sch export python-bom MyBoard.kicad_sch -o BOM.xml
kicad-cli sch export python-bom MyBoard.kicad_sch -o BOM.xml
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow