Altium Cruncher CLI (acr)
altium-cruncher is the companion command-line application built directly on altium-monkey. It ships as a separate PyPI wheel from the same repository, providing ready-to-run commands for fabrication packages, mechanical-layer virtual baking, PCB/schematic visualization, Micro-STEP alignment models, BOM/PnP/JLCPCB export, compiled design review, library maintenance, Monkey Change Orders (MCO), and Windows Altium Designer automation.
Install & Entry Points
Python 3.12 through 3.14 are supported (matching altium-monkey). See Installation & Packages for full details.
uv tool install altium-cruncher
uv tool update-shell
acr versionInstalling altium-cruncher provides three commands:
acr— primary short alias (acr fab,acr vdoc,acr pcb-svg,acr bom,acr mco, …)altium-cruncher— full CLI name (identical toacr)ad— direct shortcut foracr launch(Windows Altium Designer launcher)
CLI Workflow Map
| Guide | Commands Covered | Typical Use |
|---|---|---|
| Fabrication & Outputs | fab, gerbz, ipc2581, vdoc, bom, pnp, jlc, pcb-layer-step | Config-driven Gerber X2/X1, NC drill, IPC-2581B, baking virtual layers onto mechanical layers (vdoc.jsonc), BOM, Pick & Place, JLCPCB bundles, and pure-Python Micro-STEP alignment models |
| Rendering & Design Review | pcb-svg, toon, sch-svg, sch-ir, svg, design (dr) | Composable PCB layer & virtual-layer SVGs, 3D-projected assembly illustrations, schematic SVGs/Paint IR, and agent-first single-board or multi-board design-review bundles |
| Monkey Change Orders (MCO) | mco (run, init, list) | Declarative JSONC CAD automation across 38 typed operations (project.*, schdoc.*, schlib.*, pcbdoc.*, pcblib.*, including virtual-layer baking and Micro-STEP export) |
| Full Command Reference | compile, inspect (experimental), refactor (experimental), clean, easyeda-import, extract, libraries, merge, split, notes, variants, json-dump, pcbdoc, pcblib, schdoc, schlib, prjpcb, mate, megamaid, launch, outjob, installs, profiles, version | Complete reference with a dedicated page per command across analysis, library, document authoring, mating-board planning, and Altium desktop workflows |
Configuration Files (JSONC)
altium-cruncher workflows use commented JSONC configuration files (supporting // comments, /* ... */ blocks, and trailing commas) that can be checked into your hardware repository alongside .PrjPcb and .PcbDoc:
| Config File | Commands | Purpose | Starter Command |
|---|---|---|---|
fab.jsonc | fab, gerbz, ipc2581 | Gerber film toggles, dual-key custom extensions, mechanical layer selection, NC drill, IPC-2581B options, 17 virtual layers (including pad_labels), font policy, and opt-in bake_to_pcbdoc | acr fab --init-config --config fab.jsonc |
vdoc.jsonc | vdoc (virtual-doc) | Mechanical-layer target map (MECHANICAL35..51 defaults safely above M1..M32), .PcbDoc/.PcbLib baking policies, .bak backup, User Unions, and optional virtual_layers overrides (inherits sibling fab.jsonc) | acr vdoc --init-config --config vdoc.jsonc |
pcb.svg.config (or pcb.svg.jsonc) | pcb-svg | Composed PCB SVG views, solder-mask film, 3D HLR illustrations, virtual overlays (PAD_LABELS_*, PIN1_*, DIODES_*, …), unified virtual_layers overrides, canvas bounds (all_geometry / board_outline), and color palettes | Auto-created beside board on first acr pcb-svg run (or --config pcb.svg.jsonc) |
toon.config (or toon.jsonc) | toon | Illustrated top/bottom PCB assembly SVG presets, styles, and virtual-layer inheritance | acr toon --write-config toon.jsonc |
pcb-layer-step.jsonc | pcb-layer-step | Pure-Python Micro-STEP AP242/AP214 layer selection, pad/track/polygon feature bodies, test-point highlight rules, drill modes (cut/overlay/ring), and multi-output presets | acr pcb-layer-step --init-config --config pcb-layer-step.jsonc |
bom.config (or bom-pnp.jsonc) | bom, pnp, jlc | Field aliases, BOM grouping/output columns (quantity, designators, mfg, mpn, description), DNP placement (end), variant selection, PnP position mode, and filename templates | acr bom --write-config bom-pnp.jsonc |
altium-clean.json / altium-pcblib-clean.json | clean | Schematic/symbol font & color normalization (--config-type schematic) and .PcbLib vendor mechanical-layer drafting cleanup (--config-type pcblib) | acr clean --init-config --config-type schematic |
mate.a0.jsonc (fallback mate.jsonc) | mate | Mating/interface board project generation, connector projection, and derived MCO planning (acr mate plan) | acr mate (auto-creates mate.a0.jsonc when absent) |
Generate starter configurations directly from the CLI:
acr fab --init-config --config fab.jsonc
acr vdoc --init-config --config vdoc.jsonc
acr toon --write-config toon.jsonc
acr pcb-layer-step --init-config --config pcb-layer-step.jsonc
acr bom --write-config bom-pnp.jsonc
acr clean --init-config --config-type schematic
acr clean --init-config --config-type pcblib
acr mco init change_order.mco.jsoncCommon Patterns
# Inspect installed versions of altium-cruncher, altium-monkey, and wn-geometer
acr version
# Inspect options for any command (unknown commands show a full command help summary)
acr --help
acr fab --help
acr vdoc --help
acr mco --help
# Run a full fabrication package from a project or board
acr fab project.PrjPcb -o out/fab
# Bake virtual fab layers onto safe high mechanical layers (MECHANICAL35..51)
acr vdoc project.PrjPcb --dry-run
acr vdoc project.PrjPcb
# Render top and bottom illustrated board previews (or auto-create pcb.svg.config on first run)
acr pcb-svg board.PcbDoc --config pcb.svg.jsonc -o out/pcb_svg
acr toon board.PcbDoc -o out/toon
# Export project BOM, Pick & Place, and JLCPCB bundle (with missing-LCSC check)
acr bom project.PrjPcb
acr pnp project.PrjPcb
acr jlc project.PrjPcb
# Run a declarative Monkey Change Order with dry-run preview
acr mco run change_order.mco.jsonc --dry-run