CLI
Convert a folder
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs convert ./docs --out ./okf
Developer CLI
The CLI uses the same OKF core as the web workbench, so Markdown conversion, bundle indexes, validation scores, and report output stay consistent across local, CI, and browser workflows.
OKF developer workflow
Use the OKF generator for a first bundle, run the CLI validator before merging, and open the browser workbench when you need a human-readable OKF viewer.
Commands
CLI
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs convert ./docs --out ./okf
CLI
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs convert ./README.md --out ./okf
CLI
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs validate ./okf --json
CLI
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs github-export ./okf --repo ../docs-repo --target okf --branch okf-export
CLI
Run this from the repository root after installing dependencies.
node scripts/okf-converter.mjs github-export ./okf --repo ../docs-repo --target okf --branch okf-export --open-pr