Skip to content

CLI reference

This page is generated from the parser shipped by Boundver. For workflow rules, configuration examples, and exit-code semantics, use the behavioral reference.

Command index

Command Purpose
boundver generate Generate or update the lockfile
boundver verify Check lockfile matches current repo state
boundver review Compare reconciled facet identities across a Git range
boundver diff Diff two lockfiles
boundver slice Show fingerprint for a specific slice
boundver validate-config Validate config for strict boundary rules
boundver check-config Alias for validate-config
boundver init Create a starter boundary.config.json
boundver add Add a component to the config
boundver remove Remove a component from the config
boundver status Show lockfile summary and warnings
boundver compare-deployment Compare contracts against an explicit local deployment reference
boundver coverage Find tracked files missing from declarations
boundver record-derivation Record generated-artifact freshness after a trusted generator runs
boundver explain Explain changed files for a component
boundver why Explain component or slice drift
boundver discover Find Git-tracked component manifests
boundver migrate-lock Normalize a current lock or explain why regeneration is required
boundver completions Emit shell completion scripts

Global syntax

usage: boundver [-h] [--version] [--quiet | --verbose]
                {generate,verify,review,diff,slice,validate-config,check-config,init,add,remove,status,compare-deployment,coverage,record-derivation,explain,why,discover,migrate-lock,completions} ...

Detect declared component, behavior, boundary, and compatibility drift

Argument Value Default Description
-h, --help — — show this help message and exit
--version — — show program's version number and exit
--quiet — false Reduce non-error human-readable output
--verbose — false Print additional progress diagnostics

boundver generate

usage: boundver generate [-h] [--config CONFIG] [--out OUT] [--source {head,index,working-tree}]
                         [--allow-partial] [--dry-run] [--components COMPONENTS]
                         [--format {json,text,changes-json}] [--limit LIMIT] [--summary]
                         [--allow-custom-providers] [--inspect-working-tree] [--progress]
                         [--timing] [--timeout SECONDS]
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json Config file path
--out OUT boundary.lock.json Output lockfile path
--source {head,index,working-tree} head Snapshot to fingerprint (default: head): last commit, staged index, or tracked files on disk
--allow-partial — false Allow intentional null facet inputs in slices (not provider or source errors)
--dry-run — false Compute lockfile and print status without writing output
--components COMPONENTS — Comma-separated component names to regenerate
--format {json,text,changes-json} text Output format; changes-json requires --dry-run and compares the previous selected-source lock
--limit LIMIT 1000 Change-report rows, 0..10000; changes-json only
--summary — false Change-report counts without rows; changes-json only
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key (or set BOUNDVER_ALLOW_CUSTOM_PROVIDERS=1)
--inspect-working-tree — false With source head, also run an expensive working-tree warning scan using index capture; never changes generation inputs
--progress — false Print bounded generation progress to stderr
--timing — false Print bounded local phase/component timings to stderr
--timeout SECONDS — Computation deadline from source capture; expiry exits 2 before publication. Atomic commit and final output are not hard wall-time bounded; native providers are not sandboxed
Examples:
  boundver generate
  boundver generate --source working-tree
  boundver generate --components auth-service,billing --dry-run
  boundver generate --format json

boundver verify

usage: boundver verify [-h] [--config CONFIG] [--lock LOCK] [--source {head,index,working-tree}]
                       [--components COMPONENTS] [--changed-from CHANGED_FROM] [--fail-fast]
                       [--facets FACETS] [--transitive] [--update] [--strict-config-source]
                       [--baseline PATH | --write-baseline PATH | --update-baseline PATH]
                       [--format {json,text,scoped-json}] [--allow-custom-providers]

Verify the lockfile is up to date with the current repo state.

Exit codes:
  0  Selected facets match
  1  Exact or metadata drift
  2  Usage, configuration, or digest error
  3  Behavioral drift
  4  Boundary drift
  5  Compatibility-family drift
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json Config path inside the selected source snapshot
--lock LOCK boundary.lock.json Lock path inside the selected source snapshot
--source {head,index,working-tree} head Snapshot to compare (default: head): last commit, staged index, or tracked files on disk
--components COMPONENTS — Comma-separated component names to verify
--changed-from CHANGED_FROM empty Report components changed since a Git ref while verifying full lock integrity
--fail-fast — false Report only the highest-severity mismatch
--facets FACETS empty Comma-separated CLI-wide gate override (default: component verify_facets, then config defaults, then all available facets)
--transitive — false Report the transitive downstream consumer closure for boundary/compat drift
--update — false After reporting drift, atomically regenerate the lockfile if computation succeeds
--strict-config-source — false Refuse --update when the selected snapshot config differs from the same working-tree path
--baseline PATH empty Allow reviewed violation identities from a baseline while failing on new ones
--write-baseline PATH empty Explicitly capture current baselinable violations in a new JSON file
--update-baseline PATH empty Shrink an existing baseline by removing resolved identities; never adds violations
--format {json,text,scoped-json} text Output format; scoped-json adds versioned selection and analysis attribution
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key
Examples:
  boundver verify
  boundver verify --components auth-service
  boundver verify --changed-from main
  boundver verify --source working-tree --format json

boundver review

usage: boundver review [-h] [--base BASE] [--target TARGET] [--merge-base] [--config CONFIG]
                       [--lock LOCK] [--facets FACETS] [--transitive] [--format {json,text,plan}]
                       [--summary-file PATH] [--allow-custom-providers]
                       [BASE..TARGET]

Compare two immutable Git endpoints and report historical facet, consumer, and slice impact.

A complete review exits 0 whether or not identities changed. Missing history, invalid endpoints, or unreconciled config/lock state exit 2. Reconcile and commit both endpoint locks first; use verify separately as the current-tree integrity gate.

Argument Value Default Description
-h, --help — — show this help message and exit
BASE..TARGET BASE..TARGET? — Explicit Git endpoint range
--base BASE — Explicit base Git ref
--target TARGET — Explicit target Git ref
--merge-base — false Compare the unique merge base of BASE and TARGET to TARGET
--config CONFIG boundary.config.json Config path at both endpoints
--lock LOCK boundary.lock.json Lock path at both endpoints
--facets FACETS empty Comma-separated policy override; all four identities are always compared
--transitive — false Report the transitive downstream consumer closure
--format {json,text,plan} text Output format; plan is the versioned CI routing projection
--summary-file PATH empty Write a bounded Markdown summary of --format plan
--allow-custom-providers — false Allow trusted custom provider modules while recomputing both historical endpoints
Examples:
  boundver review origin/main..HEAD
  boundver review --base origin/main --target HEAD --merge-base
  boundver review main..feature --transitive --format json
  boundver review main..feature --format plan --summary-file plan.md

boundver diff

usage: boundver diff [-h] [--format {json,text,changes-json,upgrade-json}] [--limit LIMIT]
                     [--summary]
                     old new
Argument Value Default Description
-h, --help — — show this help message and exit
old OLD required Old lockfile
new NEW required New lockfile
--format {json,text,changes-json,upgrade-json} text Output format; upgrade-json inspects supported v3/v4 contracts read-only, without migration
--limit LIMIT 1000 Change-report rows, 0..10000; changes-json/upgrade-json only
--summary — false Change-report counts without rows; changes-json/upgrade-json only

boundver slice

usage: boundver slice [-h] [--lock LOCK] [--format {json,text}] name
Argument Value Default Description
-h, --help — — show this help message and exit
name NAME required Slice name
--lock LOCK boundary.lock.json —
--format {json,text} text Output format

boundver validate-config

usage: boundver validate-config [-h] [--config CONFIG] [--source {head,index,working-tree}]
                                [--allow-partial] [--allow-custom-providers]
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json —
--source {head,index,working-tree} working-tree Snapshot to validate (default: working-tree); head does not capture the index
--allow-partial — false Allow intentional null facet inputs in slices
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key
Examples:
  boundver validate-config
  boundver validate-config --config custom-config.json

boundver check-config

usage: boundver check-config [-h] [--config CONFIG] [--source {head,index,working-tree}]
                             [--allow-partial] [--allow-custom-providers]
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json —
--source {head,index,working-tree} working-tree Snapshot to validate (default: working-tree); head does not capture the index
--allow-partial — false Allow intentional null facet inputs in slices
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key

boundver init

usage: boundver init [-h] [--out OUT] [--force] [--discover]
Argument Value Default Description
-h, --help — — show this help message and exit
--out OUT boundary.config.json Output config file path
--force — false Overwrite existing file
--discover — false Auto-discover components from common manifests
Examples:
  boundver init
  boundver init --discover  # auto-detect components from manifests
After init, if you haven't committed yet, generate with:
  boundver generate --source working-tree

boundver add

usage: boundver add [-h] [--provider PROVIDER] [--paths PATHS] [--boundary-path PATH]
                    [--config CONFIG]
                    name path
Argument Value Default Description
-h, --help — — show this help message and exit
name NAME required Component name
path PATH required Component path relative to repo root
--provider PROVIDER implicit Boundary provider (default: implicit)
--paths PATHS empty Comma-separated boundary paths; use repeatable --boundary-path when a path contains a comma
--boundary-path PATH none One boundary path; repeat for multiple paths (commas are preserved)
--config CONFIG boundary.config.json Config file path

boundver remove

usage: boundver remove [-h] [--config CONFIG] name
Argument Value Default Description
-h, --help — — show this help message and exit
name NAME required Component name to remove
--config CONFIG boundary.config.json Config file path

boundver status

usage: boundver status [-h] [--config CONFIG] [--lock LOCK] [--source {head,index,working-tree}]
                       [--format {json,text}] [--strict] [--allow-custom-providers]
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json —
--lock LOCK boundary.lock.json —
--source {head,index,working-tree} head Snapshot to inspect (default: head)
--format {json,text} text Output format
--strict — false Exit non-zero if any drift or warnings are detected (useful for CI)
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key
Examples:
  boundver status
  boundver status --format json
  boundver status --strict  # exit non-zero on drift (for CI)

boundver compare-deployment

usage: boundver compare-deployment [-h] --environment ENVIRONMENT --ref REF [--config CONFIG]
                                   [--reference-config REFERENCE_CONFIG]
                                   [--reference-lock REFERENCE_LOCK]
                                   [--source {head,index,working-tree}] [--facets FACETS]
                                   [--limit LIMIT] [--summary] [--format {json,text}]
                                   [--allow-custom-providers]

Read-only comparison; an environment/ref is an operator assertion, not deployment attestation. Run verify separately for current-lock integrity. Never fetches, moves refs or writes locks.

Argument Value Default Description
-h, --help — — show this help message and exit
--environment ENVIRONMENT required Operator-supplied environment label
--ref REF required Explicit local deployment Git ref
--config CONFIG boundary.config.json —
--reference-config REFERENCE_CONFIG — Reference config path (defaults to --config)
--reference-lock REFERENCE_LOCK boundary.lock.json —
--source {head,index,working-tree} head —
--facets FACETS — Comma-separated gating facets; defaults to current config policy
--limit LIMIT 1000 Displayed component and slice changes, 0..10000; hidden drift still gates
--summary — false Report counts without component or slice rows
--format {json,text} text —
--allow-custom-providers — false Allow trusted native Python providers; not a sandbox

boundver coverage

usage: boundver coverage [-h] [--config CONFIG] [--component NAME] [--path-prefix PATH]
                         [--limit LIMIT] [--summary] [--source {head,index,working-tree}]
                         [--format {json,text}] [--strict]
Argument Value Default Description
-h, --help — — show this help message and exit
--config CONFIG boundary.config.json —
--component NAME — Audit this component's facets; repeat to select more. Skips repository ownership audit
--path-prefix PATH none Restrict findings to a literal repository-relative path prefix; repeat for a union
--limit LIMIT 1000 Maximum displayed path entries, 0..10000; analysis and strict totals remain complete
--summary — false Report per-component/facet counts without listing paths
--source {head,index,working-tree} head Snapshot to inspect (default: head)
--format {json,text} text Output format
--strict — false Exit 1 when any uncovered declaration path is reported
Examples:
  boundver coverage --source head
  boundver coverage --source index --format json --strict

boundver record-derivation

usage: boundver record-derivation [-h] [--config CONFIG] [--source {head,index,working-tree}] name
Argument Value Default Description
-h, --help — — show this help message and exit
name NAME required Configured derivation name
--config CONFIG boundary.config.json —
--source {head,index,working-tree} working-tree Snapshot whose inputs and outputs to record (default: working-tree)

This command hashes declared inputs and outputs; it never runs the configured generator identity.

Example:
  boundver record-derivation public-api --source index

boundver explain

usage: boundver explain [-h] [--config CONFIG] [--lock LOCK] [--base-ref BASE_REF]
                        [--source {head,index,working-tree}] [--allow-custom-providers]
                        component
Argument Value Default Description
-h, --help — — show this help message and exit
component COMPONENT required Component name from config
--config CONFIG boundary.config.json —
--lock LOCK boundary.lock.json Lockfile path; not proof of its generating source
--base-ref BASE_REF — Git ref to resolve to an immutable commit and diff against (required for source=head; defaults to HEAD for index/working-tree). This comparison is not lock-source provenance
--source {head,index,working-tree} head Source to diff against base-ref (default: head)
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key

boundver why

usage: boundver why [options] (component | --slice SLICE)

Compare current fingerprints against the lockfile and explain what changed.

Shows which facets (exact/behavior/boundary/compat) drifted, what type of change it is. Explicit --base-ref adds a source comparison, not proof of lock provenance.

Exit codes:
  0  No gated component/slice drift
  1  Selected component/slice has drifted
  2  Usage error (unknown component, missing config, etc.)
Argument Value Default Description
-h, --help — — show this help message and exit
component COMPONENT? — Component name from config
--slice SLICE — Explain a declared slice instead of one component
--limit LIMIT 1000 Slice member rows, 0..10000; counts remain complete
--summary — false Slice counts without member rows
--config CONFIG boundary.config.json —
--lock LOCK boundary.lock.json —
--base-ref BASE_REF — Git ref resolved to an immutable commit for changed-file diagnostics (required for source=head file lists; defaults to HEAD for index/working-tree). A lock-containing commit does not prove the generating source
--source {head,index,working-tree} head Fingerprint source to compare against (default: head)
--format {json,text} text Output format
--transitive — false Report the transitive downstream consumer closure
--allow-custom-providers — false Allow loading external provider modules declared in the config 'providers' key

boundver discover

usage: boundver discover [-h] [--format {json,text}] [--diff-config] [--config CONFIG]
                         [--exclude PATH]
Argument Value Default Description
-h, --help — — show this help message and exit
--format {json,text} text Output format
--diff-config — false Compare discovered component paths with the current config
--config CONFIG boundary.config.json Config file used by --diff-config
--exclude PATH none Exclude a repository-relative path and everything below it; repeat for multiple paths

boundver migrate-lock

usage: boundver migrate-lock [-h] [--lock LOCK] [--dry-run | --explain] [--config CONFIG]
                             [--source {head,index,working-tree}] [--format {json,text}]

Normalize a supported current-schema boundary.lock.json in place. Hash-contract v1, v2, and v3 locks cannot be upgraded safely and are rejected with instructions to regenerate from repository content. Use --dry-run to preview normalization as JSON, or report that the lock is already normalized, without writing it.

Argument Value Default Description
-h, --help — — show this help message and exit
--lock LOCK boundary.lock.json Path to lockfile (default: boundary.lock.json)
--dry-run — false Print prospective normalized JSON, or report a no-op, without writing the file
--explain — false Analyze and classify every boundary/behavior selector under v0.10 and current semantics without writing
--config CONFIG boundary.config.json Config used by --explain
--source {head,index,working-tree} head Source analyzed by --explain (default: head)
--format {json,text} text Analysis output format used by --explain

boundver completions

usage: boundver completions [-h] --shell {bash,zsh,fish}

Print a shell completion script to stdout.

Installation:
  bash:  boundver completions --shell bash >> ~/.bash_completion
  zsh:   boundver completions --shell zsh > ~/.zfunc/_boundver
         (add ~/.zfunc to $fpath before compinit)
  fish:  boundver completions --shell fish > ~/.config/fish/completions/boundver.fish
Argument Value Default Description
-h, --help — — show this help message and exit
--shell {bash,zsh,fish} required Target shell