Skip to content

CLI Reference

Complete reference for the boringdocs command-line interface.

Commands

boringdocs init

Initialize boringdocs in the current project. Creates boringdocs.yaml with defaults.

boringdocs init [--force]
FlagDescription
--forceOverwrite existing config

boringdocs check

Run validation checks against the current codebase and docs.

boringdocs check [--fix] [--staged] [--format text|json|github|gitlab]
FlagDescription
--fixAuto-fix issues where possible
--stagedOnly check git-staged files
--formatOutput format (default: text)

boringdocs diff

Show drift between the current state and the last baseline.

boringdocs diff [--baseline <path>]

boringdocs baseline

Manage the validation baseline.

boringdocs baseline [--update] [--show]
FlagDescription
--updateUpdate baseline to current state
--showDisplay current baseline

boringdocs sync

Run doc-code sync. Updates documentation stubs based on code changes.

boringdocs sync [--dry-run]

boringdocs version

Print the boringdocs version.

Global Flags

FlagDescription
--config <path>Path to config file (default: boringdocs.yaml)
--verboseVerbose output
--quietSuppress all output except errors
--no-colorDisable colored output