Is there a way to produce Gerber files from command line in KiCAD (Linux/Unix) or a tool which can do it for me? The same question for SPICE netlist and BOM xml?
I need it to automate this process within a CI-pipelie. GUI is not useable here.
Electronic – Command line interface for KiCAD
automationkicadlinuxserver
Best Answer
It is possible to export Gerbers from Pcbnew with the Python Interface, as described here (with some adaption).
This can obviously be expanded to include all of the required layers for your output.
It's worth looking at the scripting reference to see if there's anything to help you further there.
Because netlists are handled by eeschema, it's unlikely you're going to be able to script that. Pcbnew can export BOMs, but it doesn't look like there is any way to export from the python interface.