CLI
The Knoku CLI syncs a local documentation folder with a Knoku project. It handles project setup, document uploads, and setup diagnostics.
Install
Run commands directly with npx:
npx @knoku/cli@latest <command>Or install globally:
npm install -g @knoku/cliRequires Node.js 20 or later.
Commands
| Command | Description |
|---|---|
init | Initialize Knoku in your documentation project |
push | Push documentation files to Knoku |
status | Show sync status |
doctor | Verify Knoku setup and diagnose issues |
Typical Workflow
npx @knoku/cli@latest init # set up API key, project ID, docs path
npx @knoku/cli@latest push # upload docsRun push again after each documentation change. For CI pipelines, add it as
a step after your docs build to keep the index up to date on every merge.
File Types
The CLI uploads .md, .mdx, and .rst files. Other formats are ignored.
Files inside node_modules, .git, and .knoku directories are excluded
automatically.
Configuration
All settings are stored in .knoku/.env at your project root. The init
command creates this file. See Configuration for details.
Last updated on