Loading

Commands

pterodocs <command> [options]

sync is the default, so pterodocs on its own is pterodocs sync.

CommandWrites to the site?For
syncYesReconcile the target with your documentation
renderNoRender every page to disk; contacts nothing
doctorNoCheck the configuration, the credentials and the target
captureNoWrite the loaded site model to a JSON file
purgeYes, destructivelyRemove documentation pterodocs published at a path
initNoWrite a starter pterodocs.config.mjs

Only sync and purge change anything, and both refuse to by default — sync needs credentials, and purge needs --apply.

Options every command shares

--site-dir <dir>      Docusaurus site directory (default: the working directory)
--config <file>       pterodocs config file
--model <file>        Use a captured model; Docusaurus is never loaded
--env-file <file>     Read this .env file. None is read otherwise
--out <dir>           Output directory (default <site-dir>/.pterodocs)
--json                Print a machine-readable summary
--verbose             Log every page as it is processed
--quiet               Only print errors
--strict              Fail when an issue reaches the configured severity
--help, --version

Nothing is destructive by accident

  • sync writes pages but never deletes one unless you pass --prune.
  • --prune moves pages to the trash. Nothing is ever permanently deleted.
  • purge reports and changes nothing unless you pass --apply.
  • Neither will touch a page it cannot recognise as its own.