On This Page (4)
kcr Full Command Reference
One dedicated page per core kcr command, generated directly from live kicad_cruncher._cli.build_parser() definitions and paired with hand-authored configuration, precedence, and conflict-resolution guides. Both kicad-cruncher and kcr invoke the same Python CLI; commands marked Python + Rust also ship in the standalone native Rust k3 binary (see the Native Rust CLI (k3) Parity Guide).
Fabrication & Manufacturing Outputs
Analytic Gerber X2/X1, Excellon NC drill, IPC-2581B, virtual documentation baking, BOM, PnP, JLCPCB, and 3D alignment STEP.
| Command | Aliases | Runtime | Config | Summary |
|---|---|---|---|---|
kcr fab | gerbz, ipc2581 | Python + Rust | fab.jsonc | Emit Gerber X2/X1, Excellon NC drill, IPC-2581B, PnP, BOM, Micro-STEP, and 17 virtual fab layers. |
kcr vdoc | virtual-doc | Python + Rust | <stem>.vdoc.jsonc or vdoc.jsonc | Clean documentation layers and bake virtual layers into boards, footprints, or .pretty libraries. |
kcr bom | — | Python + Rust | ./bom.config in the current working directory | Generate normalized raw, grouped, and JLCPCB Bills of Materials (CSV, JSON, XLSX) with variant support. |
kcr pnp | — | Python + Rust | Optional ./bom.config in the current working directory | Export variant-aware Pick-and-Place centroid tables (CSV, JSON, JLC CPL) in mm or mils. |
kcr jlc | — | Python + Rust | Optional ./bom.config in the current working directory | Generate ready-to-upload JLCPCB BOM and CPL workbooks in millimetres. |
kcr pcb-layer-step | — | Python + Rust | <input_dir>/pcb-layer-step.jsonc | Export pure-Python ISO 10303-21 Micro-STEP copper and outline alignment models. |
PCB Visualization & Design Review
Configured PCB SVG views, shaded Toon renders, and agent-first design review bundles (available in both Python kcr and native Rust k3).
| Command | Aliases | Runtime | Config | Summary |
|---|---|---|---|---|
kcr pcb-svg | — | Python + Rust | <stem>.pcb.svg.config or pcb.svg.config | Render configured multi-layer assembly, diode, and virtual-layer PCB SVGs. |
kcr toon | — | Python + Rust | <board_dir>/toon.config | Render shaded 3D-illustrated PCB Toon SVGs with soldermask themes and optional assembly labels. |
kcr design | design-review, dr | Python + Rust | — | Generate deterministic design-review bundles (schematic/PCB SVGs, compiled graph, netlist, manifest). |
Projects, Libraries & Assets
Project scaffolding, health checks, local library relinking, asset extraction, 3D model embedding, and PCB cleanup.
| Command | Aliases | Runtime | Config | Summary |
|---|---|---|---|---|
kcr project | — | Python | Explicit --config <FILE.jsonc> only | Scaffold a new KiCad 10 project from CLI flags, a JSONC config, or an interactive TUI. |
kcr project-lib | project-library, project-local-lib, local-library | Python | — | Extract project-local symbol/footprint libraries and optionally relink schematic/board references. |
kcr health | — | Python | — | Run a read-only audit of project assets, missing footprints, and embedded vs. external 3D models. |
kcr megamaid | — | Python | — | Build a non-destructive project dissection bundle (libraries, models, embedded assets, design review). |
kcr lib-extract | library-extract | Python | — | Extract non-power symbols and footprints from a project into clean reusable libraries. |
kcr pcb | — | Python | Explicit --config <FILE> | Board and footprint maintenance: plan/apply doc-layer cleanup (clean) and embed 3D STEP models (embed-models). |
KiCad Environment & Utilities
Local KiCad installation inspection, process management, preference discovery, and version reporting.
| Command | Aliases | Runtime | Config | Summary |
|---|---|---|---|---|
kcr kicad | — | Python | — | Inspect local KiCad installs, preferences, and running processes; launch or stop KiCad apps. |
kcr version | — | Python + Rust | — | Print installed kicad-cruncher and kicad-monkey versions. |