Command-line interface¶
The reprotrail command-line interface groups seven executable commands into
five common provenance workflows. Run reprotrail --help to list top-level
commands, or append --help at any group or command level for local guidance.
Files and side effects¶
Command |
Writes or changes |
|---|---|
|
Executes the wrapped command and writes its log, provenance JSON, runtime bundle, and requested product sidecars. |
|
Writes or refreshes checksum, README, license, and RO-Crate sidecars; it can also stamp supported products. |
|
Writes one requested template file and refuses to overwrite it unless |
|
Creates a workspace, clones or restores repositories and the Pixi lockfile, writes |
|
Initializes or accepts the dependency contract only when needed and authorized; |
|
Writes the requested audit JSON. |
|
Runs a Pixi dry-run and does not update the lockfile or environment. |
Successful commands exit with 0. Operational or policy failures generally
exit with 1; argument parsing errors exit with 2. The freshness command uses
1 specifically for stale selected Git sources and 2 for inspection errors.
Command tree¶
reprotrail
├── run
├── finalize
├── template
│ └── readme
├── reproduce
├── epoch
│ ├── check
│ └── audit
└── pixi
└── check-git-freshness
Run commands with provenance¶
reprotrail run wraps a data-processing command, captures its runtime and Git
state, snapshots declared inputs, and writes product provenance and logs.
reprotrail run \
--log results/run.log \
--provenance-json results/product.prov.json \
--input data/source.nc \
-- python -m my_project.step --output results/product.zarr
See the reprotrail run argument reference for input placement, output inference, and repository-state safeguards.
Finalize product metadata¶
reprotrail finalize completes the checksum, README, licensing, and RO-Crate
sidecars for an existing provenance record. The related reprotrail template readme command exports the bundled README template for customization.
reprotrail finalize --provenance-json results/product.prov.json
See the reprotrail finalize argument reference and reprotrail template readme argument reference.
Reproduce a recorded run¶
reprotrail reproduce restores recorded repositories and the locked Pixi
environment into a fresh workspace, validates provenance artifacts, and can
optionally execute the recorded command.
reprotrail reproduce \
--provenance results/product.prov.json \
--workspace /tmp/product-reproduction \
--env dev
See the reprotrail reproduce argument reference for strict validation, repository sources, input remapping, and workspace reuse.
Manage dependency epochs¶
reprotrail epoch check compares the current runtime snapshot with the accepted
snapshots for a run root. reprotrail epoch audit reports how product provenance
records relate to those accepted epochs.
reprotrail epoch check \
--run-root results/run \
--acceptance-reason "validated smoke metrics"
See the reprotrail epoch check argument reference and reprotrail epoch audit argument reference.
Check Pixi Git dependency freshness¶
reprotrail pixi check-git-freshness reports whether selected Git-backed Pixi
packages would move during a dry-run lockfile update without modifying the
lockfile or environment.
reprotrail pixi check-git-freshness \
--env analysis \
--package example-library \
--package reprotrail
See the Pixi Git freshness argument reference for manifest selection, repeatable packages, JSON output, and exit statuses.