Docsify CLI
$ docsify Official Low RiskDocsify CLI scaffolds zero-build Docsify sites (docsify init), generates _sidebar.md navigation (docsify generate), and runs a local live-reload preview server (docsify serve). Agents should reserve init/generate for explicit scaffolding and run serve only as a background preview process.
npm install -g docsify-cli Local Markdown site scaffolding and live-reload preview belong directly in local CLI workflows rather than MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
init and generate run headlessly, but serve is a blocking dev server (with --open browser launch option) and no subcommand outputs JSON.
docsify serveblocks until terminated- No
--jsondiagnostics or dry-run mode
Local-only scaffolding; docsify generate avoids overwriting existing sidebars unless --overwrite is explicitly passed.
--overwriteis explicit opt-in ondocsify generate
Cross-platform Node package via npm install -g docsify-cli or npx docsify-cli.
- Standard npm / npx package
Convenient for quick zero-build Markdown doc previews and _sidebar.md generation, though modern static generators (mkdocs, mdbook) offer richer search/build checks.
- Zero-build
init,generate, andserveworkflow
Official Docsify repository (docsifyjs/docsify-cli) under MIT.
- Official
docsifyjsGitHub organization
Clear quickstart and CLI docs at docsify.js.org and GitHub README.
- Official docs at docsify.js.org
Security, Auth & Guardrails
None required; reads/writes local Markdown documentation directories.
100% free and MIT open-source.
# Docsify CLI Agent Rules - Never run `docsify serve` in a foreground agent turn—it blocks indefinitely as a local dev server; pass `--no-open` if daemonized. - Omit `--overwrite` (`-o`) on `docsify generate` unless regenerating an existing `_sidebar.md` is intended.
Agent-Ready Command Recipes
Safe Read-Only Queries
docsify --help
Displays init, serve, and generate options without scaffolding files or starting a server.
Controlled Writes & Previews
docsify init ./docs --local
Creates index.html, README.md, and .nojekyll inside ./docs with local Docsify assets.
Strengths for Agents
- +
docsify generateprotects existing_sidebar.mdfiles unless--overwriteis passed. - +
docsify init --localscaffolds offline-capable documentation without CDN dependencies. - + Available via
npx docsify-cliwith zero setup.
Caveats & Pitfalls
- !
docsify servelaunches a persistent local HTTP server that blocks foreground turns. - ! No
--jsonoutput or static link-checking build step (docs render client-side).