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.
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