CommandsDoc
doc refresh
Realign tracked docs to the standard document contract
What It Does
doc refresh non-destructively rewrites tracked docs so their type-specific structure stays aligned with the standard document contract.
Syntax
pnpm ragit doc refresh [--type <type> | --files <glob>] \ [--dry-run] [--format text|json|both]
Key Points
- Use it when you want existing docs cleaned up without manually editing each file.
--typenarrows the refresh by doc type.--fileslets you target a glob inside the repository.--dry-runreportsplannedFiles,violationsBefore, andviolationsAfterwithout writing.