OpenKB CLI & SDK Reference
Technical reference for OpenKB CLI commands, options, and programmatic APIs.
OpenKB CLI API Reference
Command line interface specifications for @todo-labs/openkb.
openkb init [dir]
Scaffolds a complete OpenKB documentation repository in the target directory.
The directory path where starter documentation files should be created.
openkb dev
Starts the local Astro live-reloading preview server.
Port number to listen on. Defaults to 3000.
openkb build
Compiles documentation into 100% static HTML/CSS/JS and builds the Pagefind search index.
Contains all static HTML files, JavaScript bundles, CSS stylesheets, and precomputed search indexes.
openkb generate
Synthesizes evidence-backed OKF concept documentation with a read-only OpenCode research agent.
Performs full initial codebase analysis and documentation creation.
Refreshes generated documentation with fresh repository research.