CLICommandsregistry
registry compileLast updated on
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
| Option | Description |
|---|---|
-r, --registry <path> | Path to registry.json (default: ./registry.json) |
-o, --output <path> | Output directory for compiled registry items |
--dry-run | Show 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 compileCompile to a custom output directory:
ofm registry compile -o ./dist/rPreview without writing:
ofm registry compile --dry-runOutput
Compiling registry: Acme Forms
Output: /path/to/registry/r
✓ w9-form: compiled
✓ residential-lease: compiled
✓ nda-template: compiled
Compiled 3 artifact(s) successfullySee also
- registry catalog - Manage catalog items
- registry make - Create a registry