OpenForm
CLICommands

Command Reference

Last updated on

Complete reference for all OpenForm CLI commands

The OpenForm CLI provides commands for managing projects, working with registries, authoring artifacts, and more.

Usage

ofm <command> [options]

Global options:

OptionDescription
-h, --helpDisplay help for a command
-v, --versionDisplay CLI version

Project

Commands for initializing and managing OpenForm projects.

CommandDescription
initInitialize a new OpenForm project

Registry

Commands for discovering and installing artifacts from registries.

CommandDescription
addAdd an artifact from a registry
searchSearch for artifacts in registries
listList installed artifacts
registryManage registry configurations

Authoring

Commands for creating and modifying artifacts.

CommandDescription
newCreate a new artifact (form, checklist, document, bundle)
validateValidate artifacts against schemas
fixAuto-fix common artifact issues
versionBump artifact version numbers
attachAttach files to artifacts as layers
detachDetach a layer from an artifact
generateGenerate TypeScript types from artifacts
hashCompute SHA256 checksums for layer definitions

Working with artifacts

Commands for inspecting, rendering, and working with artifact data.

CommandDescription
inspectInspect artifact structure and metadata
renderRender an artifact layer to output
showDisplay artifact content
dataData operations (fill, template)
diffCompare two artifacts
applyApply changes to artifacts

Settings

Commands for configuring the CLI.

CommandDescription
configureInteractive configuration wizard
cacheManage registry cache
renderersManage renderer plugins
resetReset CLI to factory defaults

Utility

Helpful utility commands.

CommandDescription
docsOpen documentation in browser
consoleOpen web console
aboutDisplay information about OpenForm

On this page