Export Gerber Single
export_gerber_singleExport selected PCB layers into one Gerber file with kicad-cli, including options for X2 format, netlist, precision, and drill origin.
Instructions
Plot the given layers to a SINGLE Gerber file via kicad-cli (pcb export gerber). Singular sibling of export_gerbers. Exposes the full single-file Plot option set (X2, netlist attributes, DNP fab-layer modes, soldermask subtraction, aperture macros, drill-file origin, precision, Protel extension). Reads the last SAVED state of the .kicad_pcb.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noX2 | No | Do not use the extended X2 Gerber format | |
| layers | No | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] | |
| boardPath | No | Path to the .kicad_pcb (default: current board) | |
| defineVar | No | Project variable overrides as 'KEY=VALUE' strings | |
| noNetlist | No | Do not generate netlist attributes | |
| precision | No | Gerber coordinate precision: 5 or 6 (default 6) | |
| outputPath | Yes | Output Gerber file path | |
| noProtelExt | No | Use KiCad Gerber file extensions instead of Protel | |
| commonLayers | No | Layers to include on every plot (e.g. ['Edge.Cuts']) | |
| drawingSheet | No | Path to a drawing sheet override | |
| excludeValue | No | Exclude value text | |
| excludeRefdes | No | Exclude reference designator text | |
| includeBorderTitle | No | Include the border and title block | |
| subtractSoldermask | No | Subtract soldermask from silkscreen | |
| useDrillFileOrigin | No | Use the drill/place file origin | |
| disableApertureMacros | No | Disable aperture macros | |
| sketchPadsOnFabLayers | No | Draw pad outlines and numbers on fab layers | |
| hideDnpFootprintsOnFabLayers | No | Don't plot DNP footprint text/graphics on fab layers | |
| sketchDnpFootprintsOnFabLayers | No | Plot DNP footprints in sketch mode on fab layers | |
| crossoutDnpFootprintsOnFabLayers | No | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |