CLI Reference

Overview of all available Docboot CLI commands, options, and shorthand flags.


Command Summary #

CommandDescription
docboot [dir]Discovers Markdown files and starts the development server with live reload
docboot present <file.md>Starts live slide presentation mode from a Markdown file with instant SSE reload
docboot present build <file.md>Compiles presentation into a static standalone bundle in dist-presentation/
docboot build [dir]Compiles the documentation into static HTML and assets in dist/
docboot serve [dir]Serves the compiled production static directory locally
docboot doctor [dir]Diagnoses broken links, missing images, duplicate routes, and frontmatter issues
docboot stats [dir]Analyzes page counts, word counts, code blocks, bundle sizes, and cache hits
docboot setup githubGenerates an official GitHub Actions workflow for GitHub Pages
docboot generate assetsGenerates SVG favicons, social preview banners, and PWA manifests in public/
docboot init [dir]Scaffolds starter docboot.config.js and initial Markdown files
docboot clean [dir]Clears the local .docboot/ incremental cache folder

Detailed Command Usage #

docboot [dir] (or docboot dev [dir]) #

Starts the local development server with Server-Sent Events (SSE) live reload:

BASH
docboot .               # Watch current directory
docboot ./docs -o       # Watch ./docs and open default browser
docboot -p 8080         # Custom port

docboot build [dir] #

Compiles your documentation into a standalone static website:

BASH
docboot build           # Build docs folder to ./dist
docboot build -c        # Clean cache and output directory before building
docboot build --no-cache # Bypass build cache entirely
docboot build --pwa     # Generate PWA manifest and offline Service Worker

docboot serve [dir] #

Starts a lightweight local HTTP server for testing your compiled ./dist folder:

BASH
docboot serve
docboot serve ./dist -p 4000

docboot doctor [dir] #

Validates internal cross-links, anchor headings, missing images, and route conflicts:

BASH
docboot doctor
docboot doctor --github # Include GitHub Pages workflow validation

docboot stats [dir] #

Inspects documentation volume and compiled asset weights:

BASH
docboot stats

docboot setup github #

Creates .github/workflows/docs.yml configured with automated base path resolution:

BASH
docboot setup github
docboot setup github --dry-run # Preview changes without writing files
docboot setup github --force   # Overwrite existing workflow

docboot generate assets #

Generates vector favicons, social preview cards, and PWA manifests:

BASH
docboot generate assets
docboot generate assets --force

CLI Flags #

FlagLong FlagDescription
-b--buildBuild static production site
-s--serveServe static production build
-o--openOpen default web browser after server starts
-p <port>--port <port>Specify custom server port (default: 3000)
-c--cleanWipe cache directory and output directory before build
--no-cacheDisable reading and writing to incremental build cache
--dry-runPreview setup actions without modifying filesystem
-f--forceOverwrite existing files when supported
--githubInclude GitHub Pages health checks in docboot doctor
--pwaEnable Progressive Web App offline caching and manifest generation
-q--quietSilence non-error terminal output
-v--verboseEnable verbose error logging
-h--helpDisplay CLI help menu
--versionDisplay Docboot version

Combined Shorthand Flags #

Flags can be combined:

BASH
docboot . -bo   # Build + open in browser
docboot . -so   # Serve + open in browser
docboot . -bc   # Clean build

Next Steps #

3 min read · Updated