Skip to content

Invoke rootform <command> from a project root, or pass an explicit input where the command accepts one. The syntax blocks below are reference forms: placeholders such as [input] and [flags] are not literal arguments. Run rootform <command> --help for terminal help. The tables on command pages retain the CLI's exported option types and defaults.

For a first result, follow the quickstart. For a complete task, use the guides and return here for exact command contracts.

Find a command

  • Analyze or explore: run compiles a plan or state JSON into a Form, or reopens a saved Form, then serves the local Explorer or writes reports.
  • Review: check evaluates selected Policies against one stage of a Form and exits with the verdict; run --diff compares two inputs.
  • Inspect: list shows active content, show displays a definition, and explain traces an interpretation or result.
  • Prepare: init verifies selected content and can fetch missing OCI units; vendor copies selected content into the project.
  • Validate and author: validate checks an object; fmt, test, compile, package, publish, and lsp have their own contracts below.

Usage

rootform <command> [options]
SHELL

Options

Global options

FlagTypeDefaultDescription
--colormodeautocolor human output: auto|always|never; default: auto
-h, --helpboolfalseshow how to use rootform
--no-pagerboolfalseprint a long report in full instead of opening it in less
-v, --versionboolfalseprint the rootform version and exit

Command inventory

Analyze

CommandPurpose
rootform checkEvaluate Policies against a Form or each side of a comparison
rootform runProduce a Form from a plan or state JSON, or open a saved Form

Inspect

CommandPurpose
rootform explainJustify one conclusion of a Form or a Policy result
rootform explain instanceExplain how one instance was interpreted
rootform explain policyExplain one Policy outcome recorded by check
rootform explain ruleExplain how one Rule applied in an input
rootform listList Rootform definitions
rootform list dialectsList the Dialect catalog
rootform list policiesList Policies
rootform list policy-packsList Policy Packs
rootform showShow a Rootform definition
rootform show policyShow a Policy definition
rootform show policy-packShow a Policy Pack
rootform validateValidate a Rootform object
rootform validate conceptValidate a Concept definition
rootform validate contextValidate a context dimension
rootform validate dialectsValidate Dialect definitions
rootform validate formValidate a saved Form
rootform validate policyValidate a Policy definition
rootform validate relationValidate a relation predicate
rootform validate ruleValidate a Rule definition

Project

CommandPurpose
rootform addAdd content to rootform.lock
rootform add dialectsAdd Dialects to rootform.lock
rootform add policy-packsAdd Policy Packs to rootform.lock
rootform initPrepare a Rootform project
rootform removeRemove content from rootform.lock
rootform remove dialectsRemove Dialects from rootform.lock
rootform remove policy-packsRemove Policy Packs from rootform.lock
rootform updateChange a selection in rootform.lock
rootform update dialectChange one selected Dialect
rootform update policy-packChange one selected Policy Pack
rootform vendorVendor selected non-embedded content
rootform vendor dialectsVendor selected Dialects
rootform vendor policy-packsVendor selected Policy Packs

Rootform home

CommandPurpose
rootform installInstall registry content in the Rootform home
rootform install dialectsInstall Dialects from registry references
rootform install policy-packsInstall Policy Packs from registry references
rootform uninstallDelete installed versions from the Rootform home
rootform uninstall dialectsDelete installed Dialect versions
rootform uninstall policy-packsDelete installed Policy Pack versions

Author and publish

CommandPurpose
rootform compileCompile a Policy Pack for offline checks
rootform compile policy-packCompile and pin a Policy Pack
rootform fmtFormat Rootform files
rootform lspServe Rootform language features over stdio
rootform packagePackage Rootform content for distribution
rootform package dialectsBuild Dialect packages
rootform package policy-packsBuild Policy Pack packages
rootform publishPublish packaged Rootform content
rootform publish dialectsPublish a verified Dialect registry layout
rootform publish policy-packsPublish a verified Policy Pack registry layout
rootform testTest Dialect fixtures

Other

CommandPurpose
rootform completionGenerate shell completion
rootform versionShow the Rootform version

The complete command inventory above links to every subcommand, including language-authoring commands. For result formats and non-universal exit codes, see Outputs and exit status.