CLICommands
newLast updated on
Last updated on
Create new OpenForm artifacts
Creates new OpenForm artifacts with interactive prompts or command-line options.
Usage
ofm new <type> <name> [options]Subcommands
| Command | Description |
|---|---|
form | Create a new form artifact |
document | Create a new document artifact |
checklist | Create a new checklist artifact |
bundle | Create a new bundle artifact |
new form
Create a new form artifact.
ofm new form <name> [options]Options
| Option | Description |
|---|---|
-y, --yes | Non-interactive mode (skip prompts) |
--slug <slug> | Override auto-generated slug |
--title <title> | Human-readable title |
--description <desc> | Description |
--code <code> | Code/reference |
--artifact-version <version> | Version (default: 1.0.0) |
--dir <path> | Custom output directory |
--field <name:type> | Add field (can be used multiple times) |
--dry-run | Preview without creating files |
--format <format> | Output format: json or yaml (default: json) |
Examples
Interactive form creation:
ofm new form my-formNon-interactive with options:
ofm new form lease-agreement \
--yes \
--title "Lease Agreement" \
--field "address:address" \
--field "rent:money" \
--format yamlnew document
Create a new document artifact.
ofm new document <name> [options]Options
| Option | Description |
|---|---|
-y, --yes | Non-interactive mode |
--slug <slug> | Override auto-generated slug |
--format <format> | Output format: json or yaml |
--dry-run | Preview without creating files |
new checklist
Create a new checklist artifact.
ofm new checklist <name> [options]Options
| Option | Description |
|---|---|
-y, --yes | Non-interactive mode |
--slug <slug> | Override auto-generated slug |
--format <format> | Output format: json or yaml |
--dry-run | Preview without creating files |
new bundle
Create a new bundle artifact.
ofm new bundle <name> [options]Options
| Option | Description |
|---|---|
-y, --yes | Non-interactive mode |
--slug <slug> | Override auto-generated slug |
--format <format> | Output format: json or yaml |
--dry-run | Preview without creating files |