CLI
boardreadyops run [path] runs the full pipeline. boardreadyops check [path] is the concise preflight form for local and CI use. boardreadyops check <rule-id> [path] runs one rule. boardreadyops fix [path] plans and applies safe automated fixes. boardreadyops generate [path] produces first-party KiCad manufacturing outputs. boardreadyops sbom [path] emits a CycloneDX hardware SBOM from the captured fabrication BOM. boardreadyops explain <rule-id> [path] prints rule-specific diagnostics when that rule exposes an explainer. doctor, schema, vendor, and init support setup and automation.
Use --project <path> with run or check to restrict a workspace scan to one project directory or .kicad_pro file. Use --concurrency <count> to cap concurrent project execution when a workspace contains multiple boards.
The paths in these examples are placeholders for a real KiCad project in the current workspace. The same command forms were smoke-tested with repository fixtures during the BOARD-57 copy-paste audit.
boardreadyops run . --project hardware/mainboard
boardreadyops check manufacturing.outputs-present . --project hardware/mainboard
boardreadyops run . --concurrency 2
Use boardreadyops run --gate release to select a configured gate from boardreadyops.yml. A selected gate enforces its configured threshold and named requirements for local release checks; GitHub Action runs auto-detect pull_request, main, or release when the Action gate input is empty.
Use --format json with run or check when another tool should consume diagnostics from stdout. The JSON contract is described in reports/json.md and validated by schemas/findings.schema.json. Human logs and annotations are written to stderr, so stdout remains parseable JSON even when the command exits nonzero for findings, configuration, or required-environment failures.
See Exit Codes & Finding Severities for the full nonzero exit code and severity reference shared across these commands.
boardreadyops schema [name] prints the requested JSON Schema, defaulting to config when no name is supplied. Use boardreadyops schema --help to see the names. An unknown schema name returns exit code 2, writes a supported-name hint to stderr, and emits no JSON on stdout; automation must not mistake an invalid request for the configuration schema.
Review publishing
boardreadyops review publish [path] publishes the local review evidence to BoardReadyOps Cloud. Text output remains the default for interactive use. Pass --format json for integrations that need a stable machine-readable result without parsing display text.
BOARDREADYOPS_TOKEN=... boardreadyops review publish . --format json
boardreadyops schema review-publish > review-publish-result.schema.json
Successful JSON stdout is one schema-versioned document containing the BoardReadyOps tool name/version, success, dryRun, the full evidenceDigest, the resolved same-origin reviewUrl for live publishes, and runId when the service supplies one. Dry runs omit reviewUrl and runId. Human diagnostics and failures are written to stderr; failed JSON-mode publishes leave stdout empty. Validate consumers against schemas/review-publish-result.schema.json or boardreadyops schema review-publish.
When publishing from a multi-project workspace, use --project <path> to restrict analysis, findings, and generated Review snapshots to that specific KiCad project. A projects: entry in boardreadyops.yml sets project-local rules; it does not limit discovery. Review the selected project before opting in to source-derived native visuals:
boardreadyops review publish . --project hardware/mainboard/mainboard.kicad_pro --native-visuals
Before uploading, run boardreadyops review publish . --project hardware/mainboard/mainboard.kicad_pro --native-visuals --dry-run to verify that KiCad can plot actual artwork locally with no network upload. The text result reports native PCB-layer and schematic-sheet counts; a missing native image, failed plot, or incomplete layer/sheet export is an error, not a successful synthetic Review. JSON dry runs keep the stable result schema and signal failure via exit code/stderr. This checks local exportability, not hosted authorization or manufacturing readiness. For hierarchical schematics, the native exporter stages in-project referenced sheets so the Review does not show empty placeholders; missing or outside-project sheet references fail closed. KiCad export-clock metadata is removed from native SVGs for stable same-source image hashes.
Native PCB and schematic visuals require explicit opt-in. Use boardreadyops review publish . --native-visuals only when your organization permits detailed source-derived design geometry to be stored by the configured BoardReadyOps server. The option changes the effective upload mode to snapshots when it would otherwise be metadata; the exported SVG can reveal copper routing, component arrangement, net labels, and schematics even though raw KiCad source files are not uploaded. Without the flag, Review publishing retains the existing lightweight summary snapshots and does not upload native design artwork. This option neither certifies manufacturing readiness nor independently verifies the geometry server-side. To avoid attributing edited CAD files to an immutable Git commit, native publishing requires the published head SHA to match checked-out HEAD and a clean committed working tree. Generated .kicad_prl editor state is exempt; other tracked or untracked changes are not. A mismatch exits with status 2 before uploading. Dry runs remain network-free.
Publish a Review through your signed-in browser (no API token)
Prepare a local-only evidence file from a clean committed Git checkout. The chosen --repo must match the checkout's origin, and --project limits discovery so unrelated workspace designs are not included:
boardreadyops review publish . \
--project hardware/mainboard/mainboard.kicad_pro \
--repo owner/repository \
--native-visuals \
--bundle /tmp/mainboard-review-evidence.json \
--server https://boardreadyops.com
--project selects the board, not the rules configuration. The Review command resolves its rules from the checkout root unless you pass --config. To compare a local Review with a hosted readiness check, pass the same tracked config path used by the hosted workflow (for example, --config .github/boardreadyops-cloud.yml). Two checks can legitimately report different findings for the same commit when one enables ERC/DRC and the other disables them. Local browser bundles preview the source-relative rules file name when available; that preview-only hint is not sent as authoritative server evidence.
This command creates a new, owner-readable (0600 on POSIX) JSON evidence bundle without any HTTP request, authentication token, or publication. It never overwrites an existing file, rejects an uncommitted Git source and conflicting --token, --dry-run or --upload source options, and limits the file to 64 MiB. Generated .kicad_prl editor state is excluded from the source-design modification guard. --format json optionally returns the local bundlePath with dryRun: true; this is not a published Review.
While signed in with GitHub, open Publish local Review, select the JSON file, verify the exact repository, commit SHA, findings, blocker count and native artwork, and deliberately click Publish this Review. Native PCB/schematic uploads require a separate explicit checkbox explaining the source-derived design-IP disclosure. The browser sends this user-selected evidence only with your current same-origin GitHub session, not an API token. Server-side authorization resolves the repository against your actual connected GitHub installation; a file containing a different owner/repo does not grant access.
The file contains complete reported findings and, when --native-visuals was selected, real SVG copper routing, nets, schematics, layer names and KiCad source-object positions. Treat it as potentially confidential design data. Store it outside the Git working tree, never commit/share it unintentionally, and remove it when finished. No manufacturing authority follows from a published Review. When identical committed findings contain different genuine SVGs or source-object anchors, the bundle receives a distinct content-derived idempotency key; publishing the same bundle again will not duplicate a Run.
The existing repository-scoped API token path remains available for CI and unattended local tools:
To publish native views on the hosted service, choose the intended KiCad project and configure a repository-scoped BOARDREADYOPS_TOKEN with runs:write:
boardreadyops review publish . --project hardware/mainboard/mainboard.kicad_pro --native-visuals --server https://boardreadyops.com
This creates a separate source-bound run and Review. It does not add visual evidence to a previous GitHub App readiness run or approve manufacturing.
Optional observed BOM publication requires separate explicit opt-in. By default review publish does not send component references, manufacturer names, MPNs or BOM rows. When disclosure is authorized by the repository owner, run this from a clean committed KiCad project:
boardreadyops review publish . --project hardware/mainboard/mainboard.kicad_pro --share-bom --server https://boardreadyops.com
--share-bom requires the exact checked-out 40-character Git HEAD and a clean worktree before and after analysis. Observed BOM rows are normalized through the shared schema, SHA-256 checked, then recorded for that exact Run. The server must acknowledge the stored BOM. No supply-watch enrollment, manufacturing archive or fabrication approval is created; BOM rows remain publisher-reported, not independently attested against remote Git source. Use --project in multi-board repositories to avoid unrelated design disclosure. A repository-scoped runs:write token is required; --dry-run does not upload anything.
BOM data can reveal commercial part numbers and hardware design IP. The signed-in-browser evidence bundle path (--bundle) intentionally rejects --share-bom, because its current approval UI has no separate BOM disclosure acknowledgment. Until that exists, publish observed BOMs only through the token-authenticated CLI. A passing Review or a stored BOM never by itself approves a board for fabrication.
Optional PCB footprint-count publishing requires a separate explicit opt-in. With two exact Git revisions and a tracked KiCad PCB, use:
boardreadyops review publish . --base HEAD~1 --head HEAD --pcb hardware/mainboard/board.kicad_pcb --share-footprint-summary --format json
With --share-footprint-summary, the selected --head revision must be the repository's checked-out HEAD, and the working tree (including untracked files) must be clean. This prevents attaching current-directory pipeline findings to a different immutable PCB revision; otherwise publication fails before any network request. Offline review footprint-diff does not impose these working-tree limits, since it compares committed blobs without publishing pipeline findings.
Without --share-footprint-summary, the CLI does not send source-derived PCB counts or hashes. With opt-in, the CLI reads only immutable Git blobs, validates the complete footprint inventories, and sends a bounded count-only summary with commit/blob IDs and source SHA-256 digests. These hashes can still reveal source identity and must be approved by the repository owner. Raw PCB source, coordinates, references and footprint UUIDs are never transmitted by this option. Cloud requires repository-scoped runs:write, explicit consent, exact base/head commit binding, strict schema validation and a matching run before persisting. The server acknowledges that it stored the summary; the CLI rejects older-server responses that do not acknowledge it. The hosted Review labels these counts as client-reported, not independently verified against Git source by the server. The totals cover only the single PCB file named by --pcb. It never asserts electrical/DRC/policy/manufacturing approval. The feature requires migration 0094_run_pcb_footprint_summaries.sql in the target deployment; it is not enabled in production by merely creating the local development commit.
The result intentionally excludes API tokens, authorization headers, uploaded source contents, internal trace fields, and unrelated service response data. A successful service response must contain either a same-origin reviewUrl or a runId; otherwise the command fails closed.
Offline, source-verified PCB footprint comparison
boardreadyops review footprint-diff [path] --base <ref> --head <ref> --pcb <repo-relative.kicad_pcb> compares immutable Git commit blobs for one tracked KiCad PCB. It ignores uncommitted edits, reads no cloud data and makes no network requests. It reports footprint UUID-backed additions, removals, and changes to reference, library ID, layer, position and rotation. An unavailable or incomplete native source causes a nonzero exit without invented changes.
boardreadyops review footprint-diff . --base HEAD~1 --head HEAD --pcb hardware/mainboard/board.kicad_pcb --format text
boardreadyops review footprint-diff . --base HEAD~1 --head HEAD --pcb hardware/mainboard/board.kicad_pcb --format summary-json
Use --format json only for local detailed inspection: it includes object UUIDs, references, library identifiers and absolute source coordinates, all potentially confidential design information. Prefer --format summary-json for manually handled, disclosure-minimal evidence: versioned counts by change type/field, Git commit/blob IDs, SHA-256 source digests, and an explicit not-evaluated risk state. The summary excludes object UUIDs, coordinates, references and library identifiers. Both output formats may still expose sensitive source-derived information (including commit identity and content hashes); follow your organization's information-sharing policy.
Neither output publishes to the BoardReadyOps server or asserts DRC, risk, policy or manufacturing acceptance. Only the separately opted-in review publish --share-footprint-summary workflow can send the count-only v1 summary through the authenticated and commit-bound cloud ingestion route. The server verifies the persisted summary digest for integrity, not the truth of its client-reported PCB change counts. Comparison covers KiCad footprints only, not traces, vias, zones, schematic content or entire PCB geometry.
Self-hosted runner operations
boardreadyops runner provides the customer-worker lifecycle for the self-hosted execution plane.
A trusted control-plane administrator issues a one-time enrollment token directly to a root-only file:
boardreadyops runner issue-enrollment \
--database-url-file /run/secrets/boardreadyops-database-url \
--installation-id 11111111-1111-4111-8111-111111111111 \
--name factory-runner-01 \
--scope repository \
--repository octo-org/private-board \
--token-output /secure-transfer/factory-runner-01.token
A trusted operator permanently revokes a registration and any unconsumed enrollment token with an allowlisted reason:
boardreadyops runner revoke-registration \
--database-url-file /run/secrets/boardreadyops-database-url \
--installation-id 11111111-1111-4111-8111-111111111111 \
--registration-id 22222222-2222-4222-8222-222222222222 \
--actor-id operator:release-engineering \
--reason credential-rotation
A revoked registration cannot return to pending or active. Create any replacement with runner issue-enrollment, a new unique runner name, and therefore a new registration ID.
The customer host activates an Ed25519 identity without sending the generated private key to the control plane:
boardreadyops runner activate \
--url https://boardreadyops.example.com \
--enrollment-token-file /secure-transfer/factory-runner-01.token \
--identity-dir /var/lib/boardreadyops-runner/identity \
--capability kicad:10 \
--capability linux-x64
Process one queue item during commissioning, or run the polling service continuously:
boardreadyops runner once \
--identity /var/lib/boardreadyops-runner/identity/runner.json \
--workspace-root /var/lib/boardreadyops-runner/workspaces
boardreadyops runner serve \
--identity /var/lib/boardreadyops-runner/identity/runner.json \
--workspace-root /var/lib/boardreadyops-runner/workspaces \
--heartbeat-seconds 30 \
--poll-seconds 15 \
--artifact-mode metadata-only \
--format json
The optional --manufacturing-draft-upload flag additionally transfers a locally verified but unsigned and non-approving Gerber/Excellon ZIP through scoped cloud artifact capabilities, only for public, non-safe-mode, KiCad-required runs using control-plane mode. This is disabled by default; it is not a signed manufacturing delivery. See the privacy constraints in Self-hosted runner mode.
The worker accepts only customer_checkout assignments, fetches the exact server-assigned SHA with customer-controlled Git credentials or a local mirror, and removes the temporary workspace by default. Artifact mode defaults to control-plane, which uploads only generated reports through attempt-bound capabilities. --artifact-mode metadata-only sends the bounded terminal findings/metrics/readiness result without requesting artifact capabilities or transferring report artifact bytes. See Self-hosted runner mode for the trust boundary, permissions, network policy, service configuration, private-repository evidence, updates, and rollback.
Agent planning
boardreadyops plan [path] emits an agent-ready JSON remediation plan. It runs the validation pipeline and converts each finding into an action with evidence, a fix strategy, a safe-auto-fix flag, and commands an agent should run after changing files. Use it when a coding agent, EDA agent, review bot, or release workflow needs deterministic next steps without scraping human-oriented reports. See Agent Planning Output.
boardreadyops plan .
boardreadyops plan . --config boardreadyops.yml > build/agent-plan.json
boardreadyops plan . --fail-on medium
The command exits 0 when the plan has no blocking findings and 1 when blocking findings or configuration diagnostics are present. stdout is always JSON; logs go to stderr. Validate consumers with boardreadyops schema agent-plan.
Release evidence bundles
boardreadyops release pack [path] runs the pipeline and writes a verifiable evidence directory with a structured release record (manifest.json, schema version 2): a pass/fail decision, reports, copied manufacturing artifacts, optional generated outputs, checksums, Git metadata, optional provenance links, and explicit evidence gaps. Pass --include-generated <dir> to fold generated outputs into the bundle. boardreadyops release verify [bundle] recomputes artifact digests from manifest.json and fails if any recorded artifact has changed or is missing. See release/evidence-bundles.md for the full manifest contract.
boardreadyops release pack . --output build/boardreadyops-release
boardreadyops release pack . --include-generated build/outputs
boardreadyops release verify build/boardreadyops-release
boardreadyops release verify build/boardreadyops-release --format json
Release signing
boardreadyops release sign [bundle] --key <private-key> signs the bundle's manifest.json with an Ed25519 private key and writes a manifest.sig sidecar (algorithm, manifest digest, signature, and the embedded public key). Because the manifest records the SHA-256 of every artifact, signing the manifest covers the whole bundle. boardreadyops release verify [bundle] --public-key <public-key> then requires a valid signature in addition to recomputing artifact digests, and pins the embedded key to the trusted public key you pass. See release/evidence-bundles.md for the trust model.
# Generate an Ed25519 keypair once (kept out of the repository):
openssl genpkey -algorithm ed25519 -out release-signing.key
openssl pkey -in release-signing.key -pubout -out release-signing.pub
boardreadyops release pack . --output build/boardreadyops-release
boardreadyops release sign build/boardreadyops-release --key release-signing.key
boardreadyops release verify build/boardreadyops-release --public-key release-signing.pub
release verify exits 1 when a --public-key is supplied but the bundle is unsigned, when the signature does not match the manifest, or when the embedded key differs from the trusted key. Without --public-key, an unsigned bundle still verifies on checksums alone.
For key rotation and revocation, pass --trust-store <path> instead of --public-key: a JSON array of {keyId, publicKey, validFrom, validUntil?, revokedAt?} entries, verified as of the current time. This lets an old and new key both verify during a rotation overlap, and lets a compromised key be revoked so it no longer verifies any signature — including ones signed before the revocation. --public-key and --trust-store are mutually exclusive. See release/evidence-bundles.md for the trust store format.
Release preparation
boardreadyops release audit-clauses <passport.json> --mappings <reviewed-clauses.json>
exports a deterministic offline JSON self-reported record-presence report
grouped by reviewer-supplied ISO 13485, IATF 16949, AS9100 or DO-254 clause IDs.
Use --format markdown for a readable reviewer table of the same field-presence
data, including missing fields. JSON remains the default. Neither format determines
compliance or authenticates the passport's issuer or fabrication outputs. See
clause evidence projection.
boardreadyops release prepare [path] runs a single end-to-end preparation workflow: it generates first-party manufacturing outputs (when kicad-cli is available), validates the project with the full pipeline, and records a release decision. Results are written to release-prepare.json under the output directory (build/boardreadyops-release by default), and the command exits 0 for a pass decision and 1 for a fail.
boardreadyops release prepare .
boardreadyops release prepare . --variant production --output build/release
boardreadyops release prepare . --skip-generate --format json
boardreadyops release prepare . --require-kicad
The generation stage is best-effort by default: when kicad-cli is not installed it is reported as skipped and the workflow still validates and decides, which keeps the command usable in GitHub Actions runners that do not provide KiCad. Pass --require-kicad to fail with exit code 3 when kicad-cli is missing, or --skip-generate to validate without generating. The decision is pass only when validation reports no blocking findings and no generation step failed.
Manufacturer handoff
boardreadyops release handoff [path] assembles a clean, vendor-specific package for fabrication and assembly handoff. It lays discovered manufacturing outputs into a stable directory structure, writes a receiver README.md and a handoff-manifest.json, and reports any outputs the selected vendor profile requires but that are missing. The JLCPCB profile is the default; exit code is 1 when required outputs are missing and 0 otherwise. See release/manufacturer-handoff.md.
boardreadyops release handoff . --profile jlcpcb --output build/boardreadyops-handoff
boardreadyops release handoff . --profile pcbway --service fabrication
boardreadyops release handoff . --format json
Release diff
boardreadyops release diff <previous> [path] compares the current project against a previous release — a prior JSON report or an evidence bundle directory — and reports the BOM, output/CPL, finding, and readiness changes between them. Use --html <path> to write a visual release dashboard that renders the fabrication changes — BOM rows, manufacturing outputs, and new findings — with color-coded status badges. See release/release-diff.md.
boardreadyops release diff build/previous-release.report.json .
boardreadyops release diff build/boardreadyops-release --format json --output build/release-diff.json
boardreadyops release diff build/previous-release.report.json . --html build/release-diff.html
Policy
boardreadyops policy [path] evaluates the configured release policy (a set of blocking rules over findings and readiness) and, when the policy is enforced, exits 1 if it fails. Use --simulate to preview a policy without affecting the exit code. See release/policy-engine.md.
boardreadyops policy .
boardreadyops policy . --simulate
boardreadyops policy . --format json
# .github/workflows/release-prepare.yml
jobs:
release-prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: npx boardreadyops release prepare . --format json
Vendor Profiles
boardreadyops vendor list shows the built-in manufacturer profiles. boardreadyops vendor explain <profile> prints the evidence requirements and assumptions for one profile. Use --format json when another tool should consume the profile data.
boardreadyops vendor list
boardreadyops vendor explain jlcpcb
boardreadyops vendor explain pcbway --format json
See Vendor Profiles for configuration examples.
Generate
boardreadyops generate [path] runs kicad-cli to produce first-party manufacturing outputs and writes them, with a checksum manifest, to a predictable directory (build/boardreadyops-generate by default). Each enabled step exports one output kind: gerbers and drill from the board, bom and schematic-pdf from the schematic, and positions (CPL, CSV) and board-pdf from the board. Steps whose source file is missing are reported as skipped rather than failing the run.
Generated output cleanup is fail-closed: the command never recursively replaces the project/source directory, Git metadata or a symlink output. A new or empty output directory is accepted; an existing nonempty directory must contain a recognizable BoardReadyOps generation manifest whose complete file inventory and file digests still match. Unmanaged or manually edited files are preserved; select a fresh --output directory instead of pointing the generator at a workspace or hand-edited fabrication package.
boardreadyops generate .
boardreadyops generate . --project hardware/mainboard --variant production
boardreadyops generate . --recipe generate-recipe.json --output build/release-outputs
boardreadyops generate . --format json
For a separately approved and explicitly SHA-pinned target-repository run,
--reviewed-source-sha <full-lowercase-git-sha> enables the strict clean
source, tracked KiCad inputs and Gerber/drill fresh-output checks. It is an
opt-in library/CLI prerequisite, not proof of a signed GitHub execution:
boardreadyops generate . --project hardware/mainboard --recipe path/to/manufacturing-recipe.json \
--output build/boardreadyops-attested --reviewed-source-sha 0123456789abcdef0123456789abcdef01234567
boardreadyops export-checksums . --manifest build/boardreadyops-attested/manifest.json \
--reviewed-source-sha 0123456789abcdef0123456789abcdef01234567
The checksum command rechecks actual board source/manifest/output bytes and
prints an unsigned sha256sum-formatted subject inventory. An owner-reviewed
protected target GitHub Actions job must sign those subjects with
actions/attest and retain the actual artifact bytes in the target repo.
boardreadyops verify-export-attestation then independently verifies the
GitHub/Sigstore attestation against explicitly authorized repository ID, source
SHA/ref, workflow, event, run ID and attempt. See the
opt-in attested manufacturing workflow
for exact setup, trust limitations and negative tests.
The command exits 2 for usage or configuration problems (no project, unreadable or schema-invalid recipe), 3 when kicad-cli is not available, and 1 when at least one export step fails. manifest.json records the tool version, project, recipe (including a SHA-256 hash of the recipe's canonicalized contents), the detected kicad-cli version, git commit/dirty state when run inside a git checkout, the OS platform and Node.js version, per-step status, and the SHA-256 digest and size of every generated artifact.
--recipe <path> accepts a JSON recipe validated against boardreadyops schema generate. The recipe selects which outputs to produce, lets a step be disabled with "enabled": false, and can override the output directory or a step's relative output path.
{
"schemaVersion": 1,
"outputDir": "build/release-outputs",
"steps": [
{ "kind": "gerbers" },
{ "kind": "drill" },
{ "kind": "bom", "output": "assembly/bom.csv" },
{ "kind": "positions" },
{ "kind": "schematic-pdf" },
{ "kind": "board-pdf", "enabled": false }
]
}
Hardware SBOM
boardreadyops sbom [path] writes a CycloneDX 1.7 hardware SBOM to build/hbom.json by default. Use --output - when another process should read the JSON from stdout.
boardreadyops sbom .
boardreadyops sbom . --output build/hbom.json
boardreadyops sbom . --bom production-bom.csv --variant production
boardreadyops sbom . --output -
The command accepts --config, --project, --bom, and --variant to match the same project and BOM selection used by run. --format cyclonedx is the implemented format. --format spdx is reserved for a future release and exits with code 2.
Fix
boardreadyops fix [path] prints a diff for safe automated changes before it writes anything. By default it refuses to apply changes in a dirty Git workspace; use --allow-dirty only when the local edits are intentional and already reviewed.
boardreadyops fix .
boardreadyops fix . --dry-run
boardreadyops fix . --rule bom.missing-mpn
boardreadyops fix . --interactive
boardreadyops fix . --commit
boardreadyops fix . --drc-report build/kicad-drc.json --dry-run
Automated fixes cover inferable BOM MPN values, release changelog scaffolding, release revision normalization, missing PCB revision metadata, and missing fabrication notes. bom.dnp-consistency findings are surfaced but not applied automatically. KiCad DRC JSON diagnostics that include a suggested fix, or clearance wording that can be converted into a human review suggestion, are printed under DRC suggested fixes and do not mutate board files.
Use fix.allow in boardreadyops.yml to restrict which safe fix categories may be applied. --rule narrows a single invocation further.
Logging
run and check emit command lifecycle logs through the shared logger. The default is text output at info level on stderr. Use JSON Lines when another tool ingests logs:
boardreadyops run . --log-format json --log-level debug --log-file build/boardreadyops.jsonl
Supported levels are debug, info, warn, error, critical, and silent. --quiet maps to silent unless --log-level or BOARDREADY_LOG_LEVEL is set; --verbose maps to debug. The equivalent environment variables are BOARDREADY_LOG_LEVEL, BOARDREADY_LOG_FORMAT, BOARDREADY_LOG_FILE, BOARDREADY_LOG_FILE_MAX_BYTES, and BOARDREADY_LOG_FILE_RETENTION.
Log records include stable fields such as ts, level, event, session_id, rule, and latency_ms. JSON log records redact secret-shaped values, replace the project root with <project>, and omit error stacks unless debug logging is enabled. File logs rotate by size with bounded retention:
boardreadyops check . \
--log-file build/boardreadyops.log \
--log-file-max-bytes 1048576 \
--log-file-retention 3
Locale
Human-facing CLI output uses English by default. For testing purposes, it can be switched to the pseudo-locale with BOARDREADY_LOCALE=__PSEUDO__. When BOARDREADY_LOCALE is unset, it defaults to English.
Linux and macOS shells can set the locale for one command:
BOARDREADY_LOCALE=__PSEUDO__ boardreadyops doctor
BOARDREADY_LOCALE=__PSEUDO__ boardreadyops run . --markdown -
Windows 11 PowerShell uses $env: assignment:
$env:BOARDREADY_LOCALE = "__PSEUDO__"
boardreadyops doctor
boardreadyops run . --markdown -
Remove-Item Env:\BOARDREADY_LOCALE
The locale setting affects status lines, configuration and environment error prefixes, doctor text output, and Markdown/HTML report labels produced by the CLI. JSON, SARIF, JUnit, rule IDs, and finding messages remain locale-independent for automation and stable references.
Doctor
boardreadyops doctor diagnoses the current environment and repository before a full pipeline run. Its checks cover the Node and npm runtime, KiCad CLI availability, configured adapter credentials, repository discovery and manufacturing outputs, suppression state, and the conventional .github/workflows/boardreadyops.yml or .github/workflows/boardreadyops.yaml workflow. Runtime support follows the support matrix.
boardreadyops doctor
boardreadyops doctor --check repository
boardreadyops doctor --check repository --config ci/boardreadyops.yml --format json
boardreadyops doctor --format json
boardreadyops schema doctor
--check accepts runtime, kicad, adapters, repository, suppressions, or action; unknown check names return exit code 2. --config <path> selects a non-default configuration file for the repository check. --format accepts only text and json, and unknown formats also return exit code 2.
The JSON form returns structured check items with pass, warn, fail, or info severities plus deduplicated recommendations. boardreadyops schema doctor prints the JSON Schema for consumers that ingest the report.
Baselines
Baseline commands operate on the configured baseline file, or .boardreadyops-baseline.json when the config does not override it.
The bracketed arguments below are syntax placeholders. Replace [path] and
[--config <path>] with a repository path and config flag, or omit them to use
the defaults.
boardreadyops baseline capture [path] [--config <path>]
boardreadyops baseline diff [path] [--config <path>]
boardreadyops baseline show [path] [--config <path>]
boardreadyops baseline prune [path] [--config <path>]
boardreadyops baseline clear [path] [--config <path>]
capture writes the current finding fingerprints. diff reports added, removed, and unchanged findings. prune removes entries that no longer match the current run. Each subcommand accepts an optional repository path and the same --config <path> lookup used by run, so non-default config files resolve the matching baseline file.
Opt-in signed source-bound strict policy
The optional boardreadyops.yml rule
policy.rules: [{ id: signed-export, type: require-source-bound-export }]
connects the verify-export-attestation signed-subject prerequisite with
the regular boardreadyops policy advisory or enforced decision.
Pass --manifest, --repository, --repository-id,
--reviewed-source-sha, --source-ref, --workflow, --event,
--run-id, --run-attempt, and optionally --bundle directly to
boardreadyops policy. These expected identities must come from an
independently authorized GitHub installation/run record. The output's
sourceBound.status is one of source-bound-verified,
byte-consistent-only or unverified. Missing or unverified strong
provenance fails only when the rule is opted in; policy.enforce: true
makes a failing policy command exit 1. This does not automatically
authorize production, GA trust badges or a release. Full instructions:
Source-bound opt-in policy.