OpenForm
CLICommandsregistry

registry compile

Last updated on

Compile registry artifacts

Compile a registry by validating all artifacts, computing checksums, and generating output files for deployment.

Usage

ofm registry compile [options]

Options

OptionDescription
-r, --registry <path>Path to registry.json (default: ./registry.json)
-o, --output <path>Output directory for compiled registry items
--dry-runShow what would be compiled without writing files

Description

Reads the registry.json catalog, finds each artifact file (.json, .yaml, .yml), validates it against the OpenForm schema, computes SHA256 checksums for file-backed layers, and writes the compiled artifacts to the output directory (defaults to the artifactsPath defined in registry.json).

Examples

Compile with defaults:

ofm registry compile

Compile to a custom output directory:

ofm registry compile -o ./dist/r

Preview without writing:

ofm registry compile --dry-run

Output

Compiling registry: Acme Forms
Output: /path/to/registry/r

✓ w9-form: compiled
✓ residential-lease: compiled
✓ nda-template: compiled

Compiled 3 artifact(s) successfully

See also

On this page