okforest
The OKForest CLI: validate, inventory, and scaffold
Open Knowledge Format (OKF)
v0.2 trees.
npx okforest validate .
npx okforest validate . --format json
npx okforest inventory .
npx okforest init sales-okf --template company --owner jane@acme.example
To also check D2 and Mermaid diagram syntax, install the optional packages
alongside it:
npx -p okforest -p @d2lang/d2 -p mermaid okforest validate .
In GitHub Actions, use
OKForest Validate
(uses: okforest/validate-action@v1): the same rules, with annotations on the
pull request and the diagram checks included.
Rules, options, and what counts as a concept: see the
OKForest CLI README.
Apache-2.0 · © Preneur LLC · okforest.ai