femic.cli.main

Typer-based CLI entry point for FEMIC.

Functions

export_dual([tsa, bundle_dir, checkpoint, ...])

Export both Patchworks and Woodstock artifacts, then optionally run ws3 smoke.

export_patchworks([tsa, bundle_dir, ...])

Export a Patchworks model package for the selected FMU/code targets.

export_release([case_id, output_root, ...])

Assemble and validate a user-facing release bundle.

export_woodstock([tsa, bundle_dir, ...])

Export Woodstock CSV artifacts for the selected FMU/code targets.

instance_account_surface([config, output, ...])

Summarize species/AU account coverage from tracks/accounts.csv.

instance_init([instance_root, ...])

Create and initialize an instance workspace from packaged templates.

instance_promote_evidence([report, output, ...])

Promote a rebuild report into normalized release-gate evidence JSON.

instance_rebuild([spec, run_config, ...])

Execute the reproducible instance rebuild flow and write evidence artifacts.

instance_refresh_reference_evidence([...])

Refresh maintainer reference evidence artifact from latest rebuild report.

instance_validate_spec([spec, instance_root])

Validate rebuild-spec structure and required fields for an instance.

instance_ws3_smoke([woodstock_dir, output, ...])

Run ws3 smoke validation for Woodstock outputs and emit a JSON report.

main([version, debug])

Handle top-level CLI flags before delegating to subcommands.

patchworks_build_blocks([config, model_dir, ...])

Generate model-local Patchworks blocks (and optional topology) artifacts.

patchworks_matrix_build([config, log_dir, ...])

Run Patchworks matrix-builder and emit logs/manifests.

patchworks_preflight([config, instance_root])

Run Patchworks runtime preflight checks from a config file.

prep_geospatial_preflight([strict_warnings, ...])

Verify geospatial runtime dependencies and optional shapefile smoke checks.

prep_run([data_root, output_root, tsa, ...])

Placeholder prep command retained for CLI compatibility.

prep_validate_case([run_config, ...])

Validate run config, case selections, and required input paths.

run_all([data_root, output_root, tsa, ...])

Run the end-to-end data-prep pipeline from current CLI inputs/profile.

tipsy_validate([config_dir, tsa, instance_root])

Validate per-case/per-FMU TIPSY YAML config availability and parseability.

tsa_post_tipsy([tsa, verbose, run_id, ...])

Build post-TIPSY bundle tables for selected FMU/code targets.

tsa_run([data_root, output_root, tsa, ...])

Placeholder FMU/code command retained behind the legacy tsa CLI seam.

vdyp_report([curve_log, run_log, ...])

Summarize VDYP logs and enforce warning/error budget thresholds.

vdyp_run([data_root, output_root, tsa, ...])

Placeholder VDYP command retained for CLI compatibility.