kicad monkey v2026.11.30
On This Page (11)

kcr kicad

Discover installed KiCad versions, inspect running processes, manage preferences, and launch or stop KiCad applications.

CommandAliasesCategoryRuntimeConfigGuide
kcr kicad—KiCad Environment & UtilitiesPython kcrNone (CLI flags only)—

Usage

sh
kcr kicad [-h] <kicad-action> ...

Subcommands

SubcommandDescription
kcr kicad installsDiscover installed KiCad releases and executables on this workstation.
kcr kicad launchLaunch a KiCad application executable with optional project path and passthrough arguments.
kcr kicad prefsInspect KiCad config, documents, plugin roots, and IPC API settings.
kcr kicad runningList currently running KiCad-family processes with PID, version, and executable path.
kcr kicad stopPreview (dry-run by default) or terminate matching running KiCad processes.

kcr kicad installs

Discover installed KiCad releases and executables on this workstation.

sh
kcr kicad installs [-h] [--version VERSION] [--json]

Options

FlagDescription
--version VERSIONFilter installs to a specific KiCad major.minor version (e.g., 10.0)
--jsonEmit machine-readable JSON (kicad_cruncher.kicad.installs.a0)

kcr kicad launch

Launch a KiCad application executable with optional project path and passthrough arguments.

sh
kcr kicad launch [-h] [--version VERSION]
    [--app {kicad,pcbnew,eeschema,kicad-cli}]
    [--exe EXE] [--project PROJECT] [--new]
    [--dry-run] [--json]
    ...

Positional Arguments

ArgumentDescription
argsAdditional arguments forwarded to the KiCad executable (prefix with --)

Options

FlagDescription
--version VERSIONSelect a specific installed KiCad version
--app APPKiCad application executable to launch (default: kicad). Choices: kicad, pcbnew, eeschema, kicad-cli.
--exe EXEExplicit executable path (overrides --version/--app discovery)
--project PROJECTPath to a .kicad_pro project or design file to open
--newPass KiCad --new so the project manager does not reload the previous project (valid with --app kicad only)
--dry-runPrint the resolved command line without launching the process
--jsonEmit machine-readable JSON (kicad_cruncher.kicad.launch.a0)

kcr kicad prefs

Inspect KiCad config, documents, plugin roots, and IPC API settings.

sh
kcr kicad prefs [-h] [--version VERSION]
    [--open {config,documents,plugins}] [--json]

Options

FlagDescription
--version VERSIONFilter preference roots to a specific KiCad version
--open OPEN_TARGETOpen the selected KiCad directory in the system file manager. Choices: config, documents, plugins.
--jsonEmit machine-readable JSON (kicad_cruncher.kicad.prefs.a0)

kcr kicad running

List currently running KiCad-family processes with PID, version, and executable path.

sh
kcr kicad running [-h] [--version VERSION]
    [--app {kicad,pcbnew,eeschema,kicad-cli}]
    [--json]

Options

FlagDescription
--version VERSIONFilter processes by KiCad version
--app APPFilter processes to one KiCad executable. Choices: kicad, pcbnew, eeschema, kicad-cli.
--jsonEmit machine-readable JSON (kicad_cruncher.kicad.running.a0)

kcr kicad stop

Preview (dry-run by default) or terminate matching running KiCad processes.

sh
kcr kicad stop [-h] [--version VERSION]
    [--app {kicad,pcbnew,eeschema,kicad-cli}]
    [--all] [--json]

Options

FlagDescription
--version VERSIONFilter processes by KiCad version
--app APPFilter processes to one KiCad executable. Choices: kicad, pcbnew, eeschema, kicad-cli.
--allTerminate all matching KiCad processes instead of printing a dry run
--jsonEmit machine-readable JSON (kicad_cruncher.kicad.stop.a0)

How It Works

kcr kicad is a workstation helper for inspecting local KiCad installations, finding or stopping running KiCad processes, launching KiCad apps, and discovering kicad_common.json preferences and resolved 3D model search paths (KICAD10_3DMODEL_DIR, custom env_vars, and extra_3d_search_dirs).

Running kcr kicad with no subcommand prints help to stderr and exits with code 2.

Every subcommand supports --json to emit a stable, versioned JSON envelope to stdout:

SubcommandPurposeJSON Schema (--json)
kcr kicad installsList locally discovered KiCad versions, install roots, and executableskicad_cruncher.kicad.installs.a0
kcr kicad runningList running kicad, pcbnew, eeschema, and kicad-cli processeskicad_cruncher.kicad.running.a0
kcr kicad launchLaunch a KiCad desktop app or kicad-cli (supports --dry-run)kicad_cruncher.kicad.launch.a0
kcr kicad stopPreview (default) or terminate (--all) running KiCad processeskicad_cruncher.kicad.stop.a0
kcr kicad prefsInspect KiCad preference dirs, API status, lib tables, and 3D model pathskicad_cruncher.kicad.prefs.a0

Subcommand Rules & Conflict Guards

  1. launch --new requires --app kicad:
    • Passing --new with --app pcbnew, --app eeschema, or --app kicad-cli fails immediately with exit code 1 because only the top-level kicad launcher accepts --new.
  2. Multi-install ambiguity in launch:
    • When multiple KiCad versions are installed on the machine (e.g. 9.0 and 10.0), kcr kicad launch refuses to guess which binary to start — pass --version <VER> (e.g. --version 10.0) or an explicit --exe <PATH>.
    • Extra arguments intended for the launched KiCad executable can be forwarded after --.
  3. stop is dry-run by default:
    • Running kcr kicad stop prints matching PIDs (Would stop: ...) and never kills any process until you explicitly pass --all (optionally scoped by --version and/or --app). This is especially handy before running in-place kcr pcb embed-models when KiCad holds .lck lock files.
  4. prefs --open requires disambiguation on multi-install machines:
    • Passing --open <target> (config, documents, plugins) when more than one KiCad profile version is discovered fails with exit code 1 until you select one profile with --version <VER>.
  5. 3D model path diagnostics:

Quick Examples

sh
# List locally discovered KiCad installations and executables
kcr kicad installs
sh
# Inspect resolved KiCad 3D model path variables from kicad_common.json and environment
kcr kicad prefs
sh
# Preview which running KiCad processes would be stopped (dry-run by default)
kcr kicad stop
kicad-monkey v2026.11.30·Docs updated 2026.12.01 15:43 UTC (fd9b75b)