dotmd-cli 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dotmd.mjs +41 -31
- package/package.json +1 -1
package/bin/dotmd.mjs
CHANGED
|
@@ -34,40 +34,50 @@ const pkg = JSON.parse(readFileSync(path.join(__dirname, '..', 'package.json'),
|
|
|
34
34
|
const HELP = {
|
|
35
35
|
_main: `dotmd v${pkg.version} — frontmatter markdown document manager
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
list [--verbose
|
|
39
|
-
json
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
doctor
|
|
53
|
-
fix-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
37
|
+
View & Query:
|
|
38
|
+
list [--verbose] [--json] List docs grouped by status (default command)
|
|
39
|
+
json Full index as JSON
|
|
40
|
+
context [--summarize] [--json] Compact briefing (LLM-oriented)
|
|
41
|
+
focus [status] [--json] Detailed view for one status group
|
|
42
|
+
query [filters] [--json] Filtered search (--status, --keyword, --stale, etc.)
|
|
43
|
+
coverage [--json] Metadata coverage report
|
|
44
|
+
stats [--json] Doc health dashboard
|
|
45
|
+
graph [--dot] [--json] Visualize document relationships
|
|
46
|
+
deps [file] [--json] Dependency tree or overview
|
|
47
|
+
diff [file] [--summarize] Show changes since last updated date
|
|
48
|
+
summary <file> [--json] AI summary of a document
|
|
49
|
+
|
|
50
|
+
Validate & Fix:
|
|
51
|
+
check [--fix] [--errors-only] [--json] Validate frontmatter and references
|
|
52
|
+
doctor [--dry-run] Auto-fix everything: refs, lint, dates, index
|
|
53
|
+
lint [--fix] Check and auto-fix frontmatter issues
|
|
54
|
+
fix-refs [--dry-run] Auto-fix broken reference paths + body links
|
|
55
|
+
|
|
56
|
+
Lifecycle:
|
|
57
|
+
status <file> <status> Transition document status
|
|
58
|
+
archive <file> Archive (status + move + update refs)
|
|
59
|
+
touch <file> Bump updated date
|
|
60
|
+
touch --git Bulk-sync dates from git history
|
|
61
|
+
rename <old> <new> Rename doc and update all references
|
|
62
|
+
migrate <field> <old> <new> Batch update a frontmatter field value
|
|
63
|
+
|
|
64
|
+
Create & Export:
|
|
65
|
+
new <name> [--template <t>] Create doc from template (plan, adr, rfc, audit, design)
|
|
66
|
+
index [--write] Generate/update docs.md index block
|
|
67
|
+
export [--format md|html|json] Export docs as markdown, HTML, or JSON
|
|
68
|
+
notion import|export|sync [db-id] Notion database integration
|
|
69
|
+
|
|
70
|
+
Setup:
|
|
71
|
+
init Create starter config + docs directory
|
|
72
|
+
watch [command] Re-run a command on file changes
|
|
73
|
+
completions <shell> Shell completion script (bash, zsh)
|
|
74
|
+
|
|
75
|
+
Global Options:
|
|
67
76
|
--config <path> Explicit config file path
|
|
77
|
+
--root <name> Filter to a specific docs root
|
|
68
78
|
--dry-run, -n Preview changes without writing anything
|
|
69
79
|
--verbose Show config details and doc count
|
|
70
|
-
--help, -h Show help
|
|
80
|
+
--help, -h Show help (per-command: dotmd <cmd> --help)
|
|
71
81
|
--version, -v Show version`,
|
|
72
82
|
|
|
73
83
|
list: `dotmd list — list docs grouped by status
|
package/package.json
CHANGED