altium monkey v2026.11.26 · gobblerito
On This Page (4)

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.

powershell
uv tool install altium-cruncher
uv tool update-shell
acr version

Installing altium-cruncher provides three commands:

CLI Workflow Map

GuideCommands CoveredTypical Use
Fabrication & Outputsfab, gerbz, ipc2581, vdoc, bom, pnp, jlc, pcb-layer-stepConfig-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 Reviewpcb-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 Referencecompile, 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, versionComplete 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 FileCommandsPurposeStarter Command
fab.jsoncfab, gerbz, ipc2581Gerber 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_pcbdocacr fab --init-config --config fab.jsonc
vdoc.jsoncvdoc (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-svgComposed 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 palettesAuto-created beside board on first acr pcb-svg run (or --config pcb.svg.jsonc)
toon.config (or toon.jsonc)toonIllustrated top/bottom PCB assembly SVG presets, styles, and virtual-layer inheritanceacr toon --write-config toon.jsonc
pcb-layer-step.jsoncpcb-layer-stepPure-Python Micro-STEP AP242/AP214 layer selection, pad/track/polygon feature bodies, test-point highlight rules, drill modes (cut/overlay/ring), and multi-output presetsacr pcb-layer-step --init-config --config pcb-layer-step.jsonc
bom.config (or bom-pnp.jsonc)bom, pnp, jlcField aliases, BOM grouping/output columns (quantity, designators, mfg, mpn, description), DNP placement (end), variant selection, PnP position mode, and filename templatesacr bom --write-config bom-pnp.jsonc
altium-clean.json / altium-pcblib-clean.jsoncleanSchematic/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)mateMating/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:

powershell
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.jsonc

Common Patterns

powershell
# 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
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)