@memberjunction/cli 6.2.0-edge.7 → 6.2.0-edge.8
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/dist/commands/diag/export.d.ts +16 -0
- package/dist/commands/diag/export.d.ts.map +1 -0
- package/dist/commands/diag/export.js +37 -0
- package/dist/commands/diag/export.js.map +1 -0
- package/dist/commands/diag/inspect.d.ts +14 -0
- package/dist/commands/diag/inspect.d.ts.map +1 -0
- package/dist/commands/diag/inspect.js +45 -0
- package/dist/commands/diag/inspect.js.map +1 -0
- package/dist/commands/diag/keygen.d.ts +11 -0
- package/dist/commands/diag/keygen.d.ts.map +1 -0
- package/dist/commands/diag/keygen.js +36 -0
- package/dist/commands/diag/keygen.js.map +1 -0
- package/dist/commands/diag/scrub.d.ts +15 -0
- package/dist/commands/diag/scrub.d.ts.map +1 -0
- package/dist/commands/diag/scrub.js +34 -0
- package/dist/commands/diag/scrub.js.map +1 -0
- package/dist/commands/diag/slow.d.ts +14 -0
- package/dist/commands/diag/slow.d.ts.map +1 -0
- package/dist/commands/diag/slow.js +32 -0
- package/dist/commands/diag/slow.js.map +1 -0
- package/dist/commands/diag/timeline.d.ts +14 -0
- package/dist/commands/diag/timeline.d.ts.map +1 -0
- package/dist/commands/diag/timeline.js +29 -0
- package/dist/commands/diag/timeline.js.map +1 -0
- package/dist/commands/install/index.d.ts +12 -0
- package/dist/commands/install/index.d.ts.map +1 -1
- package/dist/commands/install/index.js +32 -5
- package/dist/commands/install/index.js.map +1 -1
- package/dist/commands/migrate/index.d.ts +26 -6
- package/dist/commands/migrate/index.d.ts.map +1 -1
- package/dist/commands/migrate/index.js +93 -21
- package/dist/commands/migrate/index.js.map +1 -1
- package/dist/commands/test/suite.d.ts +2 -0
- package/dist/commands/test/suite.d.ts.map +1 -1
- package/dist/commands/test/suite.js +10 -0
- package/dist/commands/test/suite.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/lib/db-version.d.ts +34 -7
- package/dist/lib/db-version.d.ts.map +1 -1
- package/dist/lib/db-version.js +45 -17
- package/dist/lib/db-version.js.map +1 -1
- package/dist/lib/migration-fetch.d.ts +17 -14
- package/dist/lib/migration-fetch.d.ts.map +1 -1
- package/dist/lib/migration-fetch.js +35 -25
- package/dist/lib/migration-fetch.js.map +1 -1
- package/dist/lib/migration-timeout.d.ts +15 -0
- package/dist/lib/migration-timeout.d.ts.map +1 -0
- package/dist/lib/migration-timeout.js +23 -0
- package/dist/lib/migration-timeout.js.map +1 -0
- package/dist/lib/out-of-order.d.ts +56 -0
- package/dist/lib/out-of-order.d.ts.map +1 -0
- package/dist/lib/out-of-order.js +37 -0
- package/dist/lib/out-of-order.js.map +1 -0
- package/dist/light-commands.d.ts.map +1 -1
- package/dist/light-commands.js +13 -0
- package/dist/light-commands.js.map +1 -1
- package/dist/utils/diag-utils.d.ts +34 -0
- package/dist/utils/diag-utils.d.ts.map +1 -0
- package/dist/utils/diag-utils.js +147 -0
- package/dist/utils/diag-utils.js.map +1 -0
- package/oclif.manifest.json +1253 -916
- package/package.json +28 -27
package/oclif.manifest.json
CHANGED
|
@@ -101,62 +101,6 @@
|
|
|
101
101
|
"init.js"
|
|
102
102
|
]
|
|
103
103
|
},
|
|
104
|
-
"ai": {
|
|
105
|
-
"aliases": [],
|
|
106
|
-
"args": {},
|
|
107
|
-
"description": "Execute AI agents and actions",
|
|
108
|
-
"flags": {},
|
|
109
|
-
"hasDynamicHelp": false,
|
|
110
|
-
"hidden": false,
|
|
111
|
-
"hiddenAliases": [],
|
|
112
|
-
"id": "ai",
|
|
113
|
-
"pluginAlias": "@memberjunction/cli",
|
|
114
|
-
"pluginName": "@memberjunction/cli",
|
|
115
|
-
"pluginType": "core",
|
|
116
|
-
"strict": true,
|
|
117
|
-
"enableJsonFlag": false,
|
|
118
|
-
"isESM": true,
|
|
119
|
-
"relativePath": [
|
|
120
|
-
"dist",
|
|
121
|
-
"commands",
|
|
122
|
-
"ai",
|
|
123
|
-
"index.js"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
"ai:usage": {
|
|
127
|
-
"aliases": [],
|
|
128
|
-
"args": {},
|
|
129
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj ai` command.",
|
|
130
|
-
"flags": {
|
|
131
|
-
"format": {
|
|
132
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
133
|
-
"name": "format",
|
|
134
|
-
"hasDynamicHelp": false,
|
|
135
|
-
"multiple": false,
|
|
136
|
-
"options": [
|
|
137
|
-
"text",
|
|
138
|
-
"json",
|
|
139
|
-
"md"
|
|
140
|
-
],
|
|
141
|
-
"type": "option"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"hasDynamicHelp": false,
|
|
145
|
-
"hiddenAliases": [],
|
|
146
|
-
"id": "ai:usage",
|
|
147
|
-
"pluginAlias": "@memberjunction/cli",
|
|
148
|
-
"pluginName": "@memberjunction/cli",
|
|
149
|
-
"pluginType": "core",
|
|
150
|
-
"strict": true,
|
|
151
|
-
"enableJsonFlag": false,
|
|
152
|
-
"isESM": true,
|
|
153
|
-
"relativePath": [
|
|
154
|
-
"dist",
|
|
155
|
-
"commands",
|
|
156
|
-
"ai",
|
|
157
|
-
"usage.js"
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
104
|
"app:check-updates": {
|
|
161
105
|
"aliases": [],
|
|
162
106
|
"args": {},
|
|
@@ -522,6 +466,62 @@
|
|
|
522
466
|
"usage.js"
|
|
523
467
|
]
|
|
524
468
|
},
|
|
469
|
+
"ai": {
|
|
470
|
+
"aliases": [],
|
|
471
|
+
"args": {},
|
|
472
|
+
"description": "Execute AI agents and actions",
|
|
473
|
+
"flags": {},
|
|
474
|
+
"hasDynamicHelp": false,
|
|
475
|
+
"hidden": false,
|
|
476
|
+
"hiddenAliases": [],
|
|
477
|
+
"id": "ai",
|
|
478
|
+
"pluginAlias": "@memberjunction/cli",
|
|
479
|
+
"pluginName": "@memberjunction/cli",
|
|
480
|
+
"pluginType": "core",
|
|
481
|
+
"strict": true,
|
|
482
|
+
"enableJsonFlag": false,
|
|
483
|
+
"isESM": true,
|
|
484
|
+
"relativePath": [
|
|
485
|
+
"dist",
|
|
486
|
+
"commands",
|
|
487
|
+
"ai",
|
|
488
|
+
"index.js"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"ai:usage": {
|
|
492
|
+
"aliases": [],
|
|
493
|
+
"args": {},
|
|
494
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj ai` command.",
|
|
495
|
+
"flags": {
|
|
496
|
+
"format": {
|
|
497
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
498
|
+
"name": "format",
|
|
499
|
+
"hasDynamicHelp": false,
|
|
500
|
+
"multiple": false,
|
|
501
|
+
"options": [
|
|
502
|
+
"text",
|
|
503
|
+
"json",
|
|
504
|
+
"md"
|
|
505
|
+
],
|
|
506
|
+
"type": "option"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"hasDynamicHelp": false,
|
|
510
|
+
"hiddenAliases": [],
|
|
511
|
+
"id": "ai:usage",
|
|
512
|
+
"pluginAlias": "@memberjunction/cli",
|
|
513
|
+
"pluginName": "@memberjunction/cli",
|
|
514
|
+
"pluginType": "core",
|
|
515
|
+
"strict": true,
|
|
516
|
+
"enableJsonFlag": false,
|
|
517
|
+
"isESM": true,
|
|
518
|
+
"relativePath": [
|
|
519
|
+
"dist",
|
|
520
|
+
"commands",
|
|
521
|
+
"ai",
|
|
522
|
+
"usage.js"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
525
|
"artifacts:reclassify": {
|
|
526
526
|
"aliases": [],
|
|
527
527
|
"args": {},
|
|
@@ -617,92 +617,65 @@
|
|
|
617
617
|
"usage.js"
|
|
618
618
|
]
|
|
619
619
|
},
|
|
620
|
-
"
|
|
620
|
+
"bump": {
|
|
621
621
|
"aliases": [],
|
|
622
622
|
"args": {},
|
|
623
|
-
"description": "
|
|
623
|
+
"description": "Bumps MemberJunction dependency versions",
|
|
624
624
|
"examples": [
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
"<%= config.bin %> <%= command.id %> --baseline-version 5.32 --database MJ_BL_Stack --out /tmp/baseline/"
|
|
629
|
-
],
|
|
630
|
-
"flags": {
|
|
631
|
-
"baseline-version": {
|
|
632
|
-
"description": "Baseline version stamp in Major.Minor format (literal x is appended for patch, matching the V-file convention). Omit to auto-detect from --source-dir (within-major rebaseline mode).",
|
|
633
|
-
"name": "baseline-version",
|
|
634
|
-
"hasDynamicHelp": false,
|
|
635
|
-
"multiple": false,
|
|
636
|
-
"type": "option"
|
|
637
|
-
},
|
|
638
|
-
"source-dir": {
|
|
639
|
-
"description": "Migrations source directory (e.g. ./migrations/v5). Used to auto-detect the next baseline version + timestamp when --baseline-version is omitted. Defaults to the highest migrations/v*/ directory walked up from cwd.",
|
|
640
|
-
"name": "source-dir",
|
|
641
|
-
"hasDynamicHelp": false,
|
|
642
|
-
"multiple": false,
|
|
643
|
-
"type": "option"
|
|
644
|
-
},
|
|
645
|
-
"description": {
|
|
646
|
-
"description": "Human-readable description embedded in the file header.",
|
|
647
|
-
"name": "description",
|
|
648
|
-
"default": "MemberJunction Baseline",
|
|
649
|
-
"hasDynamicHelp": false,
|
|
650
|
-
"multiple": false,
|
|
651
|
-
"type": "option"
|
|
625
|
+
{
|
|
626
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
627
|
+
"description": "Bump all @memberjunction/* dependencies in the current directory's package.json to the CLI version"
|
|
652
628
|
},
|
|
653
|
-
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"hasDynamicHelp": false,
|
|
657
|
-
"multiple": false,
|
|
658
|
-
"type": "option"
|
|
629
|
+
{
|
|
630
|
+
"command": "<%= config.bin %> <%= command.id %> -rdv",
|
|
631
|
+
"description": "Preview all recursive packages bumps without writing any changes."
|
|
659
632
|
},
|
|
660
|
-
|
|
661
|
-
"
|
|
662
|
-
"
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
633
|
+
{
|
|
634
|
+
"command": "<%= config.bin %> <%= command.id %> -rqt v2.10.0 | xargs -n1 -I{} npm install --prefix {}",
|
|
635
|
+
"description": "Recursively bump all @memberjunction/* dependencies in all packages to version v2.10.0 and output only the paths containing the updated package.json files. Pipe the output to xargs to run npm install in each directory and update the package-lock.json files as well."
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"flags": {
|
|
639
|
+
"verbose": {
|
|
640
|
+
"char": "v",
|
|
641
|
+
"description": "Enable additional logging",
|
|
642
|
+
"name": "verbose",
|
|
643
|
+
"allowNo": false,
|
|
644
|
+
"type": "boolean"
|
|
667
645
|
},
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"
|
|
672
|
-
"
|
|
673
|
-
"
|
|
674
|
-
"type": "option"
|
|
646
|
+
"recursive": {
|
|
647
|
+
"char": "r",
|
|
648
|
+
"description": "Bump version in current directory and all subdirectories",
|
|
649
|
+
"name": "recursive",
|
|
650
|
+
"allowNo": false,
|
|
651
|
+
"type": "boolean"
|
|
675
652
|
},
|
|
676
|
-
"
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
"
|
|
653
|
+
"tag": {
|
|
654
|
+
"char": "t",
|
|
655
|
+
"description": "Version tag to bump target for bump (e.g. v2.10.0), defaults to the CLI version",
|
|
656
|
+
"name": "tag",
|
|
680
657
|
"hasDynamicHelp": false,
|
|
681
658
|
"multiple": false,
|
|
682
659
|
"type": "option"
|
|
683
660
|
},
|
|
684
|
-
"
|
|
685
|
-
"
|
|
686
|
-
"
|
|
687
|
-
"
|
|
688
|
-
"type": "boolean"
|
|
689
|
-
},
|
|
690
|
-
"verbose": {
|
|
691
|
-
"description": "Print per-object progress.",
|
|
692
|
-
"name": "verbose",
|
|
661
|
+
"quiet": {
|
|
662
|
+
"char": "q",
|
|
663
|
+
"description": "Only output paths for updated packages",
|
|
664
|
+
"name": "quiet",
|
|
693
665
|
"allowNo": false,
|
|
694
666
|
"type": "boolean"
|
|
695
667
|
},
|
|
696
|
-
"dry
|
|
697
|
-
"
|
|
698
|
-
"
|
|
668
|
+
"dry": {
|
|
669
|
+
"char": "d",
|
|
670
|
+
"description": "Dry run, do not write changes to package.json files",
|
|
671
|
+
"name": "dry",
|
|
699
672
|
"allowNo": false,
|
|
700
673
|
"type": "boolean"
|
|
701
674
|
}
|
|
702
675
|
},
|
|
703
676
|
"hasDynamicHelp": false,
|
|
704
677
|
"hiddenAliases": [],
|
|
705
|
-
"id": "
|
|
678
|
+
"id": "bump",
|
|
706
679
|
"pluginAlias": "@memberjunction/cli",
|
|
707
680
|
"pluginName": "@memberjunction/cli",
|
|
708
681
|
"pluginType": "core",
|
|
@@ -712,106 +685,109 @@
|
|
|
712
685
|
"relativePath": [
|
|
713
686
|
"dist",
|
|
714
687
|
"commands",
|
|
715
|
-
"
|
|
716
|
-
"
|
|
688
|
+
"bump",
|
|
689
|
+
"index.js"
|
|
717
690
|
]
|
|
718
691
|
},
|
|
719
|
-
"
|
|
692
|
+
"bump:usage": {
|
|
720
693
|
"aliases": [],
|
|
721
694
|
"args": {},
|
|
722
|
-
"description": "
|
|
723
|
-
"examples": [
|
|
724
|
-
"<%= config.bin %> <%= command.id %> --left MJ_BL_Stack --right MJ_BL_New",
|
|
725
|
-
"<%= config.bin %> <%= command.id %> --left A --right B --row-compare counts",
|
|
726
|
-
"<%= config.bin %> <%= command.id %> --left A --right B --fail-on-diff --out ./diffs/"
|
|
727
|
-
],
|
|
695
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj bump` command.",
|
|
728
696
|
"flags": {
|
|
729
|
-
"
|
|
730
|
-
"description": "
|
|
731
|
-
"name": "
|
|
732
|
-
"required": true,
|
|
733
|
-
"hasDynamicHelp": false,
|
|
734
|
-
"multiple": false,
|
|
735
|
-
"type": "option"
|
|
736
|
-
},
|
|
737
|
-
"right": {
|
|
738
|
-
"description": "Right database name (override).",
|
|
739
|
-
"name": "right",
|
|
740
|
-
"required": true,
|
|
741
|
-
"hasDynamicHelp": false,
|
|
742
|
-
"multiple": false,
|
|
743
|
-
"type": "option"
|
|
744
|
-
},
|
|
745
|
-
"dialect": {
|
|
746
|
-
"description": "Dialect of both DBs (must match).",
|
|
747
|
-
"name": "dialect",
|
|
748
|
-
"default": "mssql",
|
|
697
|
+
"format": {
|
|
698
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
699
|
+
"name": "format",
|
|
749
700
|
"hasDynamicHelp": false,
|
|
750
701
|
"multiple": false,
|
|
751
702
|
"options": [
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
|
|
755
|
-
"type": "option"
|
|
756
|
-
},
|
|
757
|
-
"row-compare": {
|
|
758
|
-
"description": "Row comparison mode.",
|
|
759
|
-
"name": "row-compare",
|
|
760
|
-
"default": "full",
|
|
761
|
-
"hasDynamicHelp": false,
|
|
762
|
-
"multiple": false,
|
|
763
|
-
"options": [
|
|
764
|
-
"full",
|
|
765
|
-
"hash",
|
|
766
|
-
"counts",
|
|
767
|
-
"none"
|
|
703
|
+
"text",
|
|
704
|
+
"json",
|
|
705
|
+
"md"
|
|
768
706
|
],
|
|
769
707
|
"type": "option"
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"hasDynamicHelp": false,
|
|
711
|
+
"hiddenAliases": [],
|
|
712
|
+
"id": "bump:usage",
|
|
713
|
+
"pluginAlias": "@memberjunction/cli",
|
|
714
|
+
"pluginName": "@memberjunction/cli",
|
|
715
|
+
"pluginType": "core",
|
|
716
|
+
"strict": true,
|
|
717
|
+
"enableJsonFlag": false,
|
|
718
|
+
"isESM": true,
|
|
719
|
+
"relativePath": [
|
|
720
|
+
"dist",
|
|
721
|
+
"commands",
|
|
722
|
+
"bump",
|
|
723
|
+
"usage.js"
|
|
724
|
+
]
|
|
725
|
+
},
|
|
726
|
+
"bundle": {
|
|
727
|
+
"aliases": [],
|
|
728
|
+
"args": {},
|
|
729
|
+
"description": "Create a self-contained MemberJunction distribution zip for offline/air-gapped installs",
|
|
730
|
+
"examples": [
|
|
731
|
+
"<%= config.bin %> <%= command.id %> --out ./mj-install.zip",
|
|
732
|
+
"<%= config.bin %> <%= command.id %> --tag v5.38.0 --out ./mj-install.zip",
|
|
733
|
+
"<%= config.bin %> <%= command.id %> --source . --out ./mj-install.zip",
|
|
734
|
+
"<%= config.bin %> <%= command.id %> --tag v5.38.0 --with-migrations --out ./mj-install.zip",
|
|
735
|
+
"<%= config.bin %> <%= command.id %> --with-migrations --db-platform postgresql --out ./mj-install.zip"
|
|
736
|
+
],
|
|
737
|
+
"flags": {
|
|
738
|
+
"out": {
|
|
739
|
+
"char": "o",
|
|
740
|
+
"description": "Output zip path",
|
|
741
|
+
"name": "out",
|
|
742
|
+
"required": true,
|
|
775
743
|
"hasDynamicHelp": false,
|
|
776
744
|
"multiple": false,
|
|
777
|
-
"options": [
|
|
778
|
-
"sha256",
|
|
779
|
-
"md5",
|
|
780
|
-
"checksum_agg"
|
|
781
|
-
],
|
|
782
745
|
"type": "option"
|
|
783
746
|
},
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"
|
|
747
|
+
"tag": {
|
|
748
|
+
"char": "t",
|
|
749
|
+
"description": "Release tag to bundle (e.g. v5.38.0). Defaults to the latest branch tip.",
|
|
750
|
+
"name": "tag",
|
|
788
751
|
"hasDynamicHelp": false,
|
|
789
752
|
"multiple": false,
|
|
790
753
|
"type": "option"
|
|
791
754
|
},
|
|
792
|
-
"
|
|
793
|
-
"description": "
|
|
794
|
-
"name": "
|
|
795
|
-
"default": 100,
|
|
755
|
+
"source": {
|
|
756
|
+
"description": "Bundle from a local working-tree directory instead of fetching from the repo",
|
|
757
|
+
"name": "source",
|
|
796
758
|
"hasDynamicHelp": false,
|
|
797
759
|
"multiple": false,
|
|
798
760
|
"type": "option"
|
|
799
761
|
},
|
|
800
|
-
"
|
|
801
|
-
"description": "
|
|
802
|
-
"name": "
|
|
762
|
+
"with-migrations": {
|
|
763
|
+
"description": "Include the migration tree(s) so an air-gapped \"mj migrate\" can run offline. Ships both SQL Server and PostgreSQL trees by default.",
|
|
764
|
+
"name": "with-migrations",
|
|
765
|
+
"allowNo": false,
|
|
766
|
+
"type": "boolean"
|
|
767
|
+
},
|
|
768
|
+
"db-platform": {
|
|
769
|
+
"dependsOn": [
|
|
770
|
+
"with-migrations"
|
|
771
|
+
],
|
|
772
|
+
"description": "With --with-migrations, ship only this platform's migration tree instead of both",
|
|
773
|
+
"name": "db-platform",
|
|
803
774
|
"hasDynamicHelp": false,
|
|
804
775
|
"multiple": false,
|
|
776
|
+
"options": [
|
|
777
|
+
"sqlserver",
|
|
778
|
+
"postgresql"
|
|
779
|
+
],
|
|
805
780
|
"type": "option"
|
|
806
781
|
},
|
|
807
|
-
"
|
|
808
|
-
"description": "
|
|
809
|
-
"name": "
|
|
782
|
+
"no-claude-pack": {
|
|
783
|
+
"description": "Exclude the Claude Code pack (CLAUDE.md + .claude/) from the bundle. By default the pack is included so air-gapped installs get the same out-of-the-box Claude experience as online installs.",
|
|
784
|
+
"name": "no-claude-pack",
|
|
810
785
|
"allowNo": false,
|
|
811
786
|
"type": "boolean"
|
|
812
787
|
},
|
|
813
788
|
"verbose": {
|
|
814
|
-
"
|
|
789
|
+
"char": "v",
|
|
790
|
+
"description": "Show detailed output",
|
|
815
791
|
"name": "verbose",
|
|
816
792
|
"allowNo": false,
|
|
817
793
|
"type": "boolean"
|
|
@@ -819,7 +795,7 @@
|
|
|
819
795
|
},
|
|
820
796
|
"hasDynamicHelp": false,
|
|
821
797
|
"hiddenAliases": [],
|
|
822
|
-
"id": "
|
|
798
|
+
"id": "bundle",
|
|
823
799
|
"pluginAlias": "@memberjunction/cli",
|
|
824
800
|
"pluginName": "@memberjunction/cli",
|
|
825
801
|
"pluginType": "core",
|
|
@@ -829,119 +805,130 @@
|
|
|
829
805
|
"relativePath": [
|
|
830
806
|
"dist",
|
|
831
807
|
"commands",
|
|
832
|
-
"
|
|
833
|
-
"
|
|
808
|
+
"bundle",
|
|
809
|
+
"index.js"
|
|
834
810
|
]
|
|
835
811
|
},
|
|
836
|
-
"
|
|
812
|
+
"bundle:usage": {
|
|
837
813
|
"aliases": [],
|
|
838
814
|
"args": {},
|
|
839
|
-
"description": "
|
|
815
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj bundle` command.",
|
|
816
|
+
"flags": {
|
|
817
|
+
"format": {
|
|
818
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
819
|
+
"name": "format",
|
|
820
|
+
"hasDynamicHelp": false,
|
|
821
|
+
"multiple": false,
|
|
822
|
+
"options": [
|
|
823
|
+
"text",
|
|
824
|
+
"json",
|
|
825
|
+
"md"
|
|
826
|
+
],
|
|
827
|
+
"type": "option"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"hasDynamicHelp": false,
|
|
831
|
+
"hiddenAliases": [],
|
|
832
|
+
"id": "bundle:usage",
|
|
833
|
+
"pluginAlias": "@memberjunction/cli",
|
|
834
|
+
"pluginName": "@memberjunction/cli",
|
|
835
|
+
"pluginType": "core",
|
|
836
|
+
"strict": true,
|
|
837
|
+
"enableJsonFlag": false,
|
|
838
|
+
"isESM": true,
|
|
839
|
+
"relativePath": [
|
|
840
|
+
"dist",
|
|
841
|
+
"commands",
|
|
842
|
+
"bundle",
|
|
843
|
+
"usage.js"
|
|
844
|
+
]
|
|
845
|
+
},
|
|
846
|
+
"baseline:build": {
|
|
847
|
+
"aliases": [],
|
|
848
|
+
"args": {},
|
|
849
|
+
"description": "Generate a deterministic baseline SQL script from the END-STATE of a migrated MSSQL database.",
|
|
840
850
|
"examples": [
|
|
841
|
-
"<%= config.bin %> <%= command.id %> --
|
|
842
|
-
"<%= config.bin %> <%= command.id %> --
|
|
843
|
-
"<%= config.bin %> <%= command.id %> --
|
|
851
|
+
"<%= config.bin %> <%= command.id %> --out ./migrations/v5/ # auto: within-major rebaseline",
|
|
852
|
+
"<%= config.bin %> <%= command.id %> --source-dir ./migrations/v5 --out ./migrations/v5/",
|
|
853
|
+
"<%= config.bin %> <%= command.id %> --baseline-version 6.0 --out ./migrations/v6/ # explicit major-boundary",
|
|
854
|
+
"<%= config.bin %> <%= command.id %> --baseline-version 5.32 --database MJ_BL_Stack --out /tmp/baseline/"
|
|
844
855
|
],
|
|
845
856
|
"flags": {
|
|
846
857
|
"baseline-version": {
|
|
847
|
-
"description": "Major.Minor
|
|
858
|
+
"description": "Baseline version stamp in Major.Minor format (literal x is appended for patch, matching the V-file convention). Omit to auto-detect from --source-dir (within-major rebaseline mode).",
|
|
848
859
|
"name": "baseline-version",
|
|
849
860
|
"hasDynamicHelp": false,
|
|
850
861
|
"multiple": false,
|
|
851
862
|
"type": "option"
|
|
852
863
|
},
|
|
853
864
|
"source-dir": {
|
|
854
|
-
"description": "Migrations source directory
|
|
865
|
+
"description": "Migrations source directory (e.g. ./migrations/v5). Used to auto-detect the next baseline version + timestamp when --baseline-version is omitted. Defaults to the highest migrations/v*/ directory walked up from cwd.",
|
|
855
866
|
"name": "source-dir",
|
|
856
867
|
"hasDynamicHelp": false,
|
|
857
868
|
"multiple": false,
|
|
858
869
|
"type": "option"
|
|
859
870
|
},
|
|
860
871
|
"description": {
|
|
861
|
-
"description": "
|
|
872
|
+
"description": "Human-readable description embedded in the file header.",
|
|
862
873
|
"name": "description",
|
|
863
874
|
"default": "MemberJunction Baseline",
|
|
864
875
|
"hasDynamicHelp": false,
|
|
865
876
|
"multiple": false,
|
|
866
877
|
"type": "option"
|
|
867
878
|
},
|
|
868
|
-
"
|
|
869
|
-
"description": "
|
|
870
|
-
"name": "
|
|
871
|
-
"default": "mssql",
|
|
872
|
-
"hasDynamicHelp": false,
|
|
873
|
-
"multiple": false,
|
|
874
|
-
"options": [
|
|
875
|
-
"mssql",
|
|
876
|
-
"postgres"
|
|
877
|
-
],
|
|
878
|
-
"type": "option"
|
|
879
|
-
},
|
|
880
|
-
"source": {
|
|
881
|
-
"description": "Database name with the V-stack already applied (used as comparison gold standard).",
|
|
882
|
-
"name": "source",
|
|
883
|
-
"required": true,
|
|
884
|
-
"hasDynamicHelp": false,
|
|
885
|
-
"multiple": false,
|
|
886
|
-
"type": "option"
|
|
887
|
-
},
|
|
888
|
-
"target": {
|
|
889
|
-
"description": "Empty database name to apply the new baseline to.",
|
|
890
|
-
"name": "target",
|
|
891
|
-
"required": true,
|
|
879
|
+
"database": {
|
|
880
|
+
"description": "Override database name (host/user/password come from MJ config).",
|
|
881
|
+
"name": "database",
|
|
892
882
|
"hasDynamicHelp": false,
|
|
893
883
|
"multiple": false,
|
|
894
884
|
"type": "option"
|
|
895
885
|
},
|
|
896
886
|
"out": {
|
|
897
|
-
"description": "Output directory
|
|
887
|
+
"description": "Output directory. Filename is auto-generated.",
|
|
898
888
|
"name": "out",
|
|
899
889
|
"default": ".",
|
|
900
890
|
"hasDynamicHelp": false,
|
|
901
891
|
"multiple": false,
|
|
902
892
|
"type": "option"
|
|
903
893
|
},
|
|
904
|
-
"
|
|
905
|
-
"description": "
|
|
906
|
-
"name": "
|
|
894
|
+
"exclude-data": {
|
|
895
|
+
"description": "Comma-separated list of tables (schema-qualified or not) to skip data dump for.",
|
|
896
|
+
"name": "exclude-data",
|
|
897
|
+
"default": "",
|
|
907
898
|
"hasDynamicHelp": false,
|
|
908
899
|
"multiple": false,
|
|
909
900
|
"type": "option"
|
|
910
901
|
},
|
|
911
|
-
"
|
|
912
|
-
"description": "
|
|
913
|
-
"name": "
|
|
914
|
-
"default":
|
|
902
|
+
"batch-size": {
|
|
903
|
+
"description": "Rows per INSERT batch.",
|
|
904
|
+
"name": "batch-size",
|
|
905
|
+
"default": 1000,
|
|
915
906
|
"hasDynamicHelp": false,
|
|
916
907
|
"multiple": false,
|
|
917
|
-
"options": [
|
|
918
|
-
"full",
|
|
919
|
-
"hash",
|
|
920
|
-
"counts",
|
|
921
|
-
"none"
|
|
922
|
-
],
|
|
923
908
|
"type": "option"
|
|
924
909
|
},
|
|
925
|
-
"
|
|
926
|
-
"
|
|
910
|
+
"no-data": {
|
|
911
|
+
"description": "Emit schema only, no data inserts.",
|
|
912
|
+
"name": "no-data",
|
|
927
913
|
"allowNo": false,
|
|
928
914
|
"type": "boolean"
|
|
929
915
|
},
|
|
930
|
-
"
|
|
931
|
-
"description": "
|
|
932
|
-
"name": "
|
|
916
|
+
"verbose": {
|
|
917
|
+
"description": "Print per-object progress.",
|
|
918
|
+
"name": "verbose",
|
|
933
919
|
"allowNo": false,
|
|
934
920
|
"type": "boolean"
|
|
935
921
|
},
|
|
936
|
-
"
|
|
937
|
-
"
|
|
922
|
+
"dry-run": {
|
|
923
|
+
"description": "Print to stdout instead of writing a file.",
|
|
924
|
+
"name": "dry-run",
|
|
938
925
|
"allowNo": false,
|
|
939
926
|
"type": "boolean"
|
|
940
927
|
}
|
|
941
928
|
},
|
|
942
929
|
"hasDynamicHelp": false,
|
|
943
930
|
"hiddenAliases": [],
|
|
944
|
-
"id": "baseline:
|
|
931
|
+
"id": "baseline:build",
|
|
945
932
|
"pluginAlias": "@memberjunction/cli",
|
|
946
933
|
"pluginName": "@memberjunction/cli",
|
|
947
934
|
"pluginType": "core",
|
|
@@ -952,30 +939,113 @@
|
|
|
952
939
|
"dist",
|
|
953
940
|
"commands",
|
|
954
941
|
"baseline",
|
|
955
|
-
"
|
|
942
|
+
"build.js"
|
|
956
943
|
]
|
|
957
944
|
},
|
|
958
|
-
"baseline:
|
|
945
|
+
"baseline:compare": {
|
|
959
946
|
"aliases": [],
|
|
960
947
|
"args": {},
|
|
961
|
-
"description": "
|
|
948
|
+
"description": "Deterministically compare two databases object-by-object and row-by-row.",
|
|
949
|
+
"examples": [
|
|
950
|
+
"<%= config.bin %> <%= command.id %> --left MJ_BL_Stack --right MJ_BL_New",
|
|
951
|
+
"<%= config.bin %> <%= command.id %> --left A --right B --row-compare counts",
|
|
952
|
+
"<%= config.bin %> <%= command.id %> --left A --right B --fail-on-diff --out ./diffs/"
|
|
953
|
+
],
|
|
962
954
|
"flags": {
|
|
963
|
-
"
|
|
964
|
-
"description": "
|
|
965
|
-
"name": "
|
|
955
|
+
"left": {
|
|
956
|
+
"description": "Left database name (override).",
|
|
957
|
+
"name": "left",
|
|
958
|
+
"required": true,
|
|
966
959
|
"hasDynamicHelp": false,
|
|
967
960
|
"multiple": false,
|
|
968
|
-
"options": [
|
|
969
|
-
"text",
|
|
970
|
-
"json",
|
|
971
|
-
"md"
|
|
972
|
-
],
|
|
973
961
|
"type": "option"
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
962
|
+
},
|
|
963
|
+
"right": {
|
|
964
|
+
"description": "Right database name (override).",
|
|
965
|
+
"name": "right",
|
|
966
|
+
"required": true,
|
|
967
|
+
"hasDynamicHelp": false,
|
|
968
|
+
"multiple": false,
|
|
969
|
+
"type": "option"
|
|
970
|
+
},
|
|
971
|
+
"dialect": {
|
|
972
|
+
"description": "Dialect of both DBs (must match).",
|
|
973
|
+
"name": "dialect",
|
|
974
|
+
"default": "mssql",
|
|
975
|
+
"hasDynamicHelp": false,
|
|
976
|
+
"multiple": false,
|
|
977
|
+
"options": [
|
|
978
|
+
"mssql",
|
|
979
|
+
"postgres"
|
|
980
|
+
],
|
|
981
|
+
"type": "option"
|
|
982
|
+
},
|
|
983
|
+
"row-compare": {
|
|
984
|
+
"description": "Row comparison mode.",
|
|
985
|
+
"name": "row-compare",
|
|
986
|
+
"default": "full",
|
|
987
|
+
"hasDynamicHelp": false,
|
|
988
|
+
"multiple": false,
|
|
989
|
+
"options": [
|
|
990
|
+
"full",
|
|
991
|
+
"hash",
|
|
992
|
+
"counts",
|
|
993
|
+
"none"
|
|
994
|
+
],
|
|
995
|
+
"type": "option"
|
|
996
|
+
},
|
|
997
|
+
"row-hash-algo": {
|
|
998
|
+
"description": "Hash algorithm when --row-compare hash.",
|
|
999
|
+
"name": "row-hash-algo",
|
|
1000
|
+
"default": "sha256",
|
|
1001
|
+
"hasDynamicHelp": false,
|
|
1002
|
+
"multiple": false,
|
|
1003
|
+
"options": [
|
|
1004
|
+
"sha256",
|
|
1005
|
+
"md5",
|
|
1006
|
+
"checksum_agg"
|
|
1007
|
+
],
|
|
1008
|
+
"type": "option"
|
|
1009
|
+
},
|
|
1010
|
+
"ignore": {
|
|
1011
|
+
"description": "Regex of object names to skip.",
|
|
1012
|
+
"name": "ignore",
|
|
1013
|
+
"default": "^flyway_schema_history$",
|
|
1014
|
+
"hasDynamicHelp": false,
|
|
1015
|
+
"multiple": false,
|
|
1016
|
+
"type": "option"
|
|
1017
|
+
},
|
|
1018
|
+
"sample-limit": {
|
|
1019
|
+
"description": "Maximum row diffs to capture per table.",
|
|
1020
|
+
"name": "sample-limit",
|
|
1021
|
+
"default": 100,
|
|
1022
|
+
"hasDynamicHelp": false,
|
|
1023
|
+
"multiple": false,
|
|
1024
|
+
"type": "option"
|
|
1025
|
+
},
|
|
1026
|
+
"out": {
|
|
1027
|
+
"description": "Directory to write JSON + Markdown reports.",
|
|
1028
|
+
"name": "out",
|
|
1029
|
+
"hasDynamicHelp": false,
|
|
1030
|
+
"multiple": false,
|
|
1031
|
+
"type": "option"
|
|
1032
|
+
},
|
|
1033
|
+
"fail-on-diff": {
|
|
1034
|
+
"description": "Exit non-zero if any diff is found.",
|
|
1035
|
+
"name": "fail-on-diff",
|
|
1036
|
+
"allowNo": false,
|
|
1037
|
+
"type": "boolean"
|
|
1038
|
+
},
|
|
1039
|
+
"verbose": {
|
|
1040
|
+
"description": "Print per-phase progress.",
|
|
1041
|
+
"name": "verbose",
|
|
1042
|
+
"allowNo": false,
|
|
1043
|
+
"type": "boolean"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
"hasDynamicHelp": false,
|
|
1047
|
+
"hiddenAliases": [],
|
|
1048
|
+
"id": "baseline:compare",
|
|
979
1049
|
"pluginAlias": "@memberjunction/cli",
|
|
980
1050
|
"pluginName": "@memberjunction/cli",
|
|
981
1051
|
"pluginType": "core",
|
|
@@ -986,68 +1056,118 @@
|
|
|
986
1056
|
"dist",
|
|
987
1057
|
"commands",
|
|
988
1058
|
"baseline",
|
|
989
|
-
"
|
|
1059
|
+
"compare.js"
|
|
990
1060
|
]
|
|
991
1061
|
},
|
|
992
|
-
"
|
|
1062
|
+
"baseline:roundtrip": {
|
|
993
1063
|
"aliases": [],
|
|
994
1064
|
"args": {},
|
|
995
|
-
"description": "
|
|
1065
|
+
"description": "Build a baseline from a V-stack database, apply it to a fresh DB, and prove byte-equivalence.",
|
|
996
1066
|
"examples": [
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
"command": "<%= config.bin %> <%= command.id %> -rdv",
|
|
1003
|
-
"description": "Preview all recursive packages bumps without writing any changes."
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"command": "<%= config.bin %> <%= command.id %> -rqt v2.10.0 | xargs -n1 -I{} npm install --prefix {}",
|
|
1007
|
-
"description": "Recursively bump all @memberjunction/* dependencies in all packages to version v2.10.0 and output only the paths containing the updated package.json files. Pipe the output to xargs to run npm install in each directory and update the package-lock.json files as well."
|
|
1008
|
-
}
|
|
1067
|
+
"<%= config.bin %> <%= command.id %> --source MJ_BL_Stack --target MJ_BL_New # auto: within-major",
|
|
1068
|
+
"<%= config.bin %> <%= command.id %> --baseline-version 6.0 --source MJ_BL_Stack --target MJ_BL_New # explicit major-boundary",
|
|
1069
|
+
"<%= config.bin %> <%= command.id %> --source-dir ./migrations/v5 --source MJ_BL_Stack --target MJ_BL_New"
|
|
1009
1070
|
],
|
|
1010
1071
|
"flags": {
|
|
1011
|
-
"
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1015
|
-
"
|
|
1016
|
-
"type": "
|
|
1072
|
+
"baseline-version": {
|
|
1073
|
+
"description": "Major.Minor version stamp. Omit to auto-detect from --source-dir (within-major rebaseline).",
|
|
1074
|
+
"name": "baseline-version",
|
|
1075
|
+
"hasDynamicHelp": false,
|
|
1076
|
+
"multiple": false,
|
|
1077
|
+
"type": "option"
|
|
1017
1078
|
},
|
|
1018
|
-
"
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
"
|
|
1022
|
-
"
|
|
1023
|
-
"type": "
|
|
1079
|
+
"source-dir": {
|
|
1080
|
+
"description": "Migrations source directory used to auto-detect baseline version + timestamp when --baseline-version is omitted. Defaults to the highest migrations/v*/ near cwd.",
|
|
1081
|
+
"name": "source-dir",
|
|
1082
|
+
"hasDynamicHelp": false,
|
|
1083
|
+
"multiple": false,
|
|
1084
|
+
"type": "option"
|
|
1024
1085
|
},
|
|
1025
|
-
"
|
|
1026
|
-
"
|
|
1027
|
-
"
|
|
1028
|
-
"
|
|
1086
|
+
"description": {
|
|
1087
|
+
"description": "Header description.",
|
|
1088
|
+
"name": "description",
|
|
1089
|
+
"default": "MemberJunction Baseline",
|
|
1029
1090
|
"hasDynamicHelp": false,
|
|
1030
1091
|
"multiple": false,
|
|
1031
1092
|
"type": "option"
|
|
1032
1093
|
},
|
|
1033
|
-
"
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
"
|
|
1094
|
+
"dialect": {
|
|
1095
|
+
"description": "Dialect to test. PG path runs the converter via /pg-migrate first.",
|
|
1096
|
+
"name": "dialect",
|
|
1097
|
+
"default": "mssql",
|
|
1098
|
+
"hasDynamicHelp": false,
|
|
1099
|
+
"multiple": false,
|
|
1100
|
+
"options": [
|
|
1101
|
+
"mssql",
|
|
1102
|
+
"postgres"
|
|
1103
|
+
],
|
|
1104
|
+
"type": "option"
|
|
1105
|
+
},
|
|
1106
|
+
"source": {
|
|
1107
|
+
"description": "Database name with the V-stack already applied (used as comparison gold standard).",
|
|
1108
|
+
"name": "source",
|
|
1109
|
+
"required": true,
|
|
1110
|
+
"hasDynamicHelp": false,
|
|
1111
|
+
"multiple": false,
|
|
1112
|
+
"type": "option"
|
|
1113
|
+
},
|
|
1114
|
+
"target": {
|
|
1115
|
+
"description": "Empty database name to apply the new baseline to.",
|
|
1116
|
+
"name": "target",
|
|
1117
|
+
"required": true,
|
|
1118
|
+
"hasDynamicHelp": false,
|
|
1119
|
+
"multiple": false,
|
|
1120
|
+
"type": "option"
|
|
1121
|
+
},
|
|
1122
|
+
"out": {
|
|
1123
|
+
"description": "Output directory for baseline file + reports.",
|
|
1124
|
+
"name": "out",
|
|
1125
|
+
"default": ".",
|
|
1126
|
+
"hasDynamicHelp": false,
|
|
1127
|
+
"multiple": false,
|
|
1128
|
+
"type": "option"
|
|
1129
|
+
},
|
|
1130
|
+
"apply-cmd": {
|
|
1131
|
+
"description": "Command template to apply the baseline. Tokens: {file} {database}. Defaults to sqlcmd.",
|
|
1132
|
+
"name": "apply-cmd",
|
|
1133
|
+
"hasDynamicHelp": false,
|
|
1134
|
+
"multiple": false,
|
|
1135
|
+
"type": "option"
|
|
1136
|
+
},
|
|
1137
|
+
"row-compare": {
|
|
1138
|
+
"description": "Row compare mode passed to the comparator.",
|
|
1139
|
+
"name": "row-compare",
|
|
1140
|
+
"default": "full",
|
|
1141
|
+
"hasDynamicHelp": false,
|
|
1142
|
+
"multiple": false,
|
|
1143
|
+
"options": [
|
|
1144
|
+
"full",
|
|
1145
|
+
"hash",
|
|
1146
|
+
"counts",
|
|
1147
|
+
"none"
|
|
1148
|
+
],
|
|
1149
|
+
"type": "option"
|
|
1150
|
+
},
|
|
1151
|
+
"fail-on-diff": {
|
|
1152
|
+
"name": "fail-on-diff",
|
|
1037
1153
|
"allowNo": false,
|
|
1038
1154
|
"type": "boolean"
|
|
1039
1155
|
},
|
|
1040
|
-
"
|
|
1041
|
-
"
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
1156
|
+
"keep-target": {
|
|
1157
|
+
"description": "Do not drop the target database after run (useful for debugging diffs).",
|
|
1158
|
+
"name": "keep-target",
|
|
1159
|
+
"allowNo": false,
|
|
1160
|
+
"type": "boolean"
|
|
1161
|
+
},
|
|
1162
|
+
"verbose": {
|
|
1163
|
+
"name": "verbose",
|
|
1044
1164
|
"allowNo": false,
|
|
1045
1165
|
"type": "boolean"
|
|
1046
1166
|
}
|
|
1047
1167
|
},
|
|
1048
1168
|
"hasDynamicHelp": false,
|
|
1049
1169
|
"hiddenAliases": [],
|
|
1050
|
-
"id": "
|
|
1170
|
+
"id": "baseline:roundtrip",
|
|
1051
1171
|
"pluginAlias": "@memberjunction/cli",
|
|
1052
1172
|
"pluginName": "@memberjunction/cli",
|
|
1053
1173
|
"pluginType": "core",
|
|
@@ -1057,14 +1177,14 @@
|
|
|
1057
1177
|
"relativePath": [
|
|
1058
1178
|
"dist",
|
|
1059
1179
|
"commands",
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1180
|
+
"baseline",
|
|
1181
|
+
"roundtrip.js"
|
|
1062
1182
|
]
|
|
1063
1183
|
},
|
|
1064
|
-
"
|
|
1184
|
+
"baseline:usage": {
|
|
1065
1185
|
"aliases": [],
|
|
1066
1186
|
"args": {},
|
|
1067
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj
|
|
1187
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj baseline` command.",
|
|
1068
1188
|
"flags": {
|
|
1069
1189
|
"format": {
|
|
1070
1190
|
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
@@ -1081,7 +1201,7 @@
|
|
|
1081
1201
|
},
|
|
1082
1202
|
"hasDynamicHelp": false,
|
|
1083
1203
|
"hiddenAliases": [],
|
|
1084
|
-
"id": "
|
|
1204
|
+
"id": "baseline:usage",
|
|
1085
1205
|
"pluginAlias": "@memberjunction/cli",
|
|
1086
1206
|
"pluginName": "@memberjunction/cli",
|
|
1087
1207
|
"pluginType": "core",
|
|
@@ -1091,147 +1211,27 @@
|
|
|
1091
1211
|
"relativePath": [
|
|
1092
1212
|
"dist",
|
|
1093
1213
|
"commands",
|
|
1094
|
-
"
|
|
1214
|
+
"baseline",
|
|
1095
1215
|
"usage.js"
|
|
1096
1216
|
]
|
|
1097
1217
|
},
|
|
1098
|
-
"
|
|
1218
|
+
"cache:clear": {
|
|
1099
1219
|
"aliases": [],
|
|
1100
1220
|
"args": {},
|
|
1101
|
-
"description": "
|
|
1221
|
+
"description": "Clear the shared Redis cache (REDIS_URL) so every running server reloads from the database",
|
|
1102
1222
|
"examples": [
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
|
|
1115
|
-
"hasDynamicHelp": false,
|
|
1116
|
-
"multiple": false,
|
|
1117
|
-
"type": "option"
|
|
1118
|
-
},
|
|
1119
|
-
"tag": {
|
|
1120
|
-
"char": "t",
|
|
1121
|
-
"description": "Release tag to bundle (e.g. v5.38.0). Defaults to the latest branch tip.",
|
|
1122
|
-
"name": "tag",
|
|
1123
|
-
"hasDynamicHelp": false,
|
|
1124
|
-
"multiple": false,
|
|
1125
|
-
"type": "option"
|
|
1126
|
-
},
|
|
1127
|
-
"source": {
|
|
1128
|
-
"description": "Bundle from a local working-tree directory instead of fetching from the repo",
|
|
1129
|
-
"name": "source",
|
|
1130
|
-
"hasDynamicHelp": false,
|
|
1131
|
-
"multiple": false,
|
|
1132
|
-
"type": "option"
|
|
1133
|
-
},
|
|
1134
|
-
"with-migrations": {
|
|
1135
|
-
"description": "Include the migration tree(s) so an air-gapped \"mj migrate\" can run offline. Ships both SQL Server and PostgreSQL trees by default.",
|
|
1136
|
-
"name": "with-migrations",
|
|
1137
|
-
"allowNo": false,
|
|
1138
|
-
"type": "boolean"
|
|
1139
|
-
},
|
|
1140
|
-
"db-platform": {
|
|
1141
|
-
"dependsOn": [
|
|
1142
|
-
"with-migrations"
|
|
1143
|
-
],
|
|
1144
|
-
"description": "With --with-migrations, ship only this platform's migration tree instead of both",
|
|
1145
|
-
"name": "db-platform",
|
|
1146
|
-
"hasDynamicHelp": false,
|
|
1147
|
-
"multiple": false,
|
|
1148
|
-
"options": [
|
|
1149
|
-
"sqlserver",
|
|
1150
|
-
"postgresql"
|
|
1151
|
-
],
|
|
1152
|
-
"type": "option"
|
|
1153
|
-
},
|
|
1154
|
-
"no-claude-pack": {
|
|
1155
|
-
"description": "Exclude the Claude Code pack (CLAUDE.md + .claude/) from the bundle. By default the pack is included so air-gapped installs get the same out-of-the-box Claude experience as online installs.",
|
|
1156
|
-
"name": "no-claude-pack",
|
|
1157
|
-
"allowNo": false,
|
|
1158
|
-
"type": "boolean"
|
|
1159
|
-
},
|
|
1160
|
-
"verbose": {
|
|
1161
|
-
"char": "v",
|
|
1162
|
-
"description": "Show detailed output",
|
|
1163
|
-
"name": "verbose",
|
|
1164
|
-
"allowNo": false,
|
|
1165
|
-
"type": "boolean"
|
|
1166
|
-
}
|
|
1167
|
-
},
|
|
1168
|
-
"hasDynamicHelp": false,
|
|
1169
|
-
"hiddenAliases": [],
|
|
1170
|
-
"id": "bundle",
|
|
1171
|
-
"pluginAlias": "@memberjunction/cli",
|
|
1172
|
-
"pluginName": "@memberjunction/cli",
|
|
1173
|
-
"pluginType": "core",
|
|
1174
|
-
"strict": true,
|
|
1175
|
-
"enableJsonFlag": false,
|
|
1176
|
-
"isESM": true,
|
|
1177
|
-
"relativePath": [
|
|
1178
|
-
"dist",
|
|
1179
|
-
"commands",
|
|
1180
|
-
"bundle",
|
|
1181
|
-
"index.js"
|
|
1182
|
-
]
|
|
1183
|
-
},
|
|
1184
|
-
"bundle:usage": {
|
|
1185
|
-
"aliases": [],
|
|
1186
|
-
"args": {},
|
|
1187
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj bundle` command.",
|
|
1188
|
-
"flags": {
|
|
1189
|
-
"format": {
|
|
1190
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
1191
|
-
"name": "format",
|
|
1192
|
-
"hasDynamicHelp": false,
|
|
1193
|
-
"multiple": false,
|
|
1194
|
-
"options": [
|
|
1195
|
-
"text",
|
|
1196
|
-
"json",
|
|
1197
|
-
"md"
|
|
1198
|
-
],
|
|
1199
|
-
"type": "option"
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
"hasDynamicHelp": false,
|
|
1203
|
-
"hiddenAliases": [],
|
|
1204
|
-
"id": "bundle:usage",
|
|
1205
|
-
"pluginAlias": "@memberjunction/cli",
|
|
1206
|
-
"pluginName": "@memberjunction/cli",
|
|
1207
|
-
"pluginType": "core",
|
|
1208
|
-
"strict": true,
|
|
1209
|
-
"enableJsonFlag": false,
|
|
1210
|
-
"isESM": true,
|
|
1211
|
-
"relativePath": [
|
|
1212
|
-
"dist",
|
|
1213
|
-
"commands",
|
|
1214
|
-
"bundle",
|
|
1215
|
-
"usage.js"
|
|
1216
|
-
]
|
|
1217
|
-
},
|
|
1218
|
-
"cache:clear": {
|
|
1219
|
-
"aliases": [],
|
|
1220
|
-
"args": {},
|
|
1221
|
-
"description": "Clear the shared Redis cache (REDIS_URL) so every running server reloads from the database",
|
|
1222
|
-
"examples": [
|
|
1223
|
-
{
|
|
1224
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1225
|
-
"description": "Clear RunView, dataset and metadata caches"
|
|
1226
|
-
},
|
|
1227
|
-
{
|
|
1228
|
-
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
1229
|
-
"description": "Show the target and key counts; delete nothing"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"command": "<%= config.bin %> <%= command.id %> --category RunViewCache",
|
|
1233
|
-
"description": "Clear one category"
|
|
1234
|
-
}
|
|
1223
|
+
{
|
|
1224
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1225
|
+
"description": "Clear RunView, dataset and metadata caches"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
1229
|
+
"description": "Show the target and key counts; delete nothing"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"command": "<%= config.bin %> <%= command.id %> --category RunViewCache",
|
|
1233
|
+
"description": "Clear one category"
|
|
1234
|
+
}
|
|
1235
1235
|
],
|
|
1236
1236
|
"flags": {
|
|
1237
1237
|
"dry-run": {
|
|
@@ -1893,7 +1893,423 @@
|
|
|
1893
1893
|
},
|
|
1894
1894
|
"hasDynamicHelp": false,
|
|
1895
1895
|
"hiddenAliases": [],
|
|
1896
|
-
"id": "codegen:manifest",
|
|
1896
|
+
"id": "codegen:manifest",
|
|
1897
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1898
|
+
"pluginName": "@memberjunction/cli",
|
|
1899
|
+
"pluginType": "core",
|
|
1900
|
+
"strict": true,
|
|
1901
|
+
"enableJsonFlag": false,
|
|
1902
|
+
"isESM": true,
|
|
1903
|
+
"relativePath": [
|
|
1904
|
+
"dist",
|
|
1905
|
+
"commands",
|
|
1906
|
+
"codegen",
|
|
1907
|
+
"manifest.js"
|
|
1908
|
+
]
|
|
1909
|
+
},
|
|
1910
|
+
"codegen:usage": {
|
|
1911
|
+
"aliases": [],
|
|
1912
|
+
"args": {},
|
|
1913
|
+
"description": "Show usage, flags, examples, and runtime hints for `mj codegen`.",
|
|
1914
|
+
"flags": {
|
|
1915
|
+
"format": {
|
|
1916
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
1917
|
+
"name": "format",
|
|
1918
|
+
"hasDynamicHelp": false,
|
|
1919
|
+
"multiple": false,
|
|
1920
|
+
"options": [
|
|
1921
|
+
"text",
|
|
1922
|
+
"json",
|
|
1923
|
+
"md"
|
|
1924
|
+
],
|
|
1925
|
+
"type": "option"
|
|
1926
|
+
}
|
|
1927
|
+
},
|
|
1928
|
+
"hasDynamicHelp": false,
|
|
1929
|
+
"hiddenAliases": [],
|
|
1930
|
+
"id": "codegen:usage",
|
|
1931
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1932
|
+
"pluginName": "@memberjunction/cli",
|
|
1933
|
+
"pluginType": "core",
|
|
1934
|
+
"strict": true,
|
|
1935
|
+
"enableJsonFlag": false,
|
|
1936
|
+
"isESM": true,
|
|
1937
|
+
"relativePath": [
|
|
1938
|
+
"dist",
|
|
1939
|
+
"commands",
|
|
1940
|
+
"codegen",
|
|
1941
|
+
"usage.js"
|
|
1942
|
+
]
|
|
1943
|
+
},
|
|
1944
|
+
"dbdoc:analyze": {
|
|
1945
|
+
"aliases": [],
|
|
1946
|
+
"args": {},
|
|
1947
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
1948
|
+
"examples": [
|
|
1949
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1950
|
+
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
1951
|
+
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
1952
|
+
],
|
|
1953
|
+
"flags": {
|
|
1954
|
+
"resume": {
|
|
1955
|
+
"char": "r",
|
|
1956
|
+
"description": "Resume from an existing state file",
|
|
1957
|
+
"name": "resume",
|
|
1958
|
+
"required": false,
|
|
1959
|
+
"hasDynamicHelp": false,
|
|
1960
|
+
"multiple": false,
|
|
1961
|
+
"type": "option"
|
|
1962
|
+
},
|
|
1963
|
+
"config": {
|
|
1964
|
+
"char": "c",
|
|
1965
|
+
"description": "Path to config file",
|
|
1966
|
+
"name": "config",
|
|
1967
|
+
"default": "./config.json",
|
|
1968
|
+
"hasDynamicHelp": false,
|
|
1969
|
+
"multiple": false,
|
|
1970
|
+
"type": "option"
|
|
1971
|
+
},
|
|
1972
|
+
"skip-sampling": {
|
|
1973
|
+
"description": "Skip table data sampling pass (useful for large databases or when schema/dictionary is already provided)",
|
|
1974
|
+
"name": "skip-sampling",
|
|
1975
|
+
"allowNo": false,
|
|
1976
|
+
"type": "boolean"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"hasDynamicHelp": false,
|
|
1980
|
+
"hiddenAliases": [],
|
|
1981
|
+
"id": "dbdoc:analyze",
|
|
1982
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1983
|
+
"pluginName": "@memberjunction/cli",
|
|
1984
|
+
"pluginType": "core",
|
|
1985
|
+
"strict": true,
|
|
1986
|
+
"enableJsonFlag": false,
|
|
1987
|
+
"isESM": true,
|
|
1988
|
+
"relativePath": [
|
|
1989
|
+
"dist",
|
|
1990
|
+
"commands",
|
|
1991
|
+
"dbdoc",
|
|
1992
|
+
"analyze.js"
|
|
1993
|
+
]
|
|
1994
|
+
},
|
|
1995
|
+
"dbdoc:export-sample-queries": {
|
|
1996
|
+
"aliases": [],
|
|
1997
|
+
"args": {},
|
|
1998
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
1999
|
+
"examples": [
|
|
2000
|
+
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
2001
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
2002
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
2003
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
2004
|
+
],
|
|
2005
|
+
"flags": {
|
|
2006
|
+
"input": {
|
|
2007
|
+
"char": "i",
|
|
2008
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
2009
|
+
"name": "input",
|
|
2010
|
+
"required": true,
|
|
2011
|
+
"hasDynamicHelp": false,
|
|
2012
|
+
"multiple": false,
|
|
2013
|
+
"type": "option"
|
|
2014
|
+
},
|
|
2015
|
+
"output": {
|
|
2016
|
+
"char": "o",
|
|
2017
|
+
"description": "Output path for the .queries.json metadata file",
|
|
2018
|
+
"name": "output",
|
|
2019
|
+
"required": true,
|
|
2020
|
+
"hasDynamicHelp": false,
|
|
2021
|
+
"multiple": false,
|
|
2022
|
+
"type": "option"
|
|
2023
|
+
},
|
|
2024
|
+
"separate-sql-files": {
|
|
2025
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
2026
|
+
"name": "separate-sql-files",
|
|
2027
|
+
"allowNo": false,
|
|
2028
|
+
"type": "boolean"
|
|
2029
|
+
},
|
|
2030
|
+
"sql-dir": {
|
|
2031
|
+
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
2032
|
+
"name": "sql-dir",
|
|
2033
|
+
"default": "SQL",
|
|
2034
|
+
"hasDynamicHelp": false,
|
|
2035
|
+
"multiple": false,
|
|
2036
|
+
"type": "option"
|
|
2037
|
+
},
|
|
2038
|
+
"category": {
|
|
2039
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
2040
|
+
"name": "category",
|
|
2041
|
+
"required": false,
|
|
2042
|
+
"hasDynamicHelp": false,
|
|
2043
|
+
"multiple": false,
|
|
2044
|
+
"type": "option"
|
|
2045
|
+
},
|
|
2046
|
+
"status": {
|
|
2047
|
+
"description": "Status to assign to exported queries",
|
|
2048
|
+
"name": "status",
|
|
2049
|
+
"default": "Pending",
|
|
2050
|
+
"hasDynamicHelp": false,
|
|
2051
|
+
"multiple": false,
|
|
2052
|
+
"options": [
|
|
2053
|
+
"Approved",
|
|
2054
|
+
"Pending",
|
|
2055
|
+
"Rejected",
|
|
2056
|
+
"Expired"
|
|
2057
|
+
],
|
|
2058
|
+
"type": "option"
|
|
2059
|
+
},
|
|
2060
|
+
"min-confidence": {
|
|
2061
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
2062
|
+
"name": "min-confidence",
|
|
2063
|
+
"default": "0",
|
|
2064
|
+
"hasDynamicHelp": false,
|
|
2065
|
+
"multiple": false,
|
|
2066
|
+
"type": "option"
|
|
2067
|
+
},
|
|
2068
|
+
"validated-only": {
|
|
2069
|
+
"description": "Only export queries that were successfully validated",
|
|
2070
|
+
"name": "validated-only",
|
|
2071
|
+
"allowNo": false,
|
|
2072
|
+
"type": "boolean"
|
|
2073
|
+
},
|
|
2074
|
+
"append": {
|
|
2075
|
+
"description": "Append to existing metadata file instead of overwriting",
|
|
2076
|
+
"name": "append",
|
|
2077
|
+
"allowNo": false,
|
|
2078
|
+
"type": "boolean"
|
|
2079
|
+
},
|
|
2080
|
+
"include-primary-key": {
|
|
2081
|
+
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
2082
|
+
"name": "include-primary-key",
|
|
2083
|
+
"allowNo": false,
|
|
2084
|
+
"type": "boolean"
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
"hasDynamicHelp": false,
|
|
2088
|
+
"hiddenAliases": [],
|
|
2089
|
+
"id": "dbdoc:export-sample-queries",
|
|
2090
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2091
|
+
"pluginName": "@memberjunction/cli",
|
|
2092
|
+
"pluginType": "core",
|
|
2093
|
+
"strict": true,
|
|
2094
|
+
"enableJsonFlag": false,
|
|
2095
|
+
"isESM": true,
|
|
2096
|
+
"relativePath": [
|
|
2097
|
+
"dist",
|
|
2098
|
+
"commands",
|
|
2099
|
+
"dbdoc",
|
|
2100
|
+
"export-sample-queries.js"
|
|
2101
|
+
]
|
|
2102
|
+
},
|
|
2103
|
+
"dbdoc:export": {
|
|
2104
|
+
"aliases": [],
|
|
2105
|
+
"args": {},
|
|
2106
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
2107
|
+
"examples": [
|
|
2108
|
+
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
2109
|
+
"<%= config.bin %> <%= command.id %> --sql",
|
|
2110
|
+
"<%= config.bin %> <%= command.id %> --markdown",
|
|
2111
|
+
"<%= config.bin %> <%= command.id %> --html",
|
|
2112
|
+
"<%= config.bin %> <%= command.id %> --csv",
|
|
2113
|
+
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
2114
|
+
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
2115
|
+
],
|
|
2116
|
+
"flags": {
|
|
2117
|
+
"state-file": {
|
|
2118
|
+
"char": "s",
|
|
2119
|
+
"description": "Path to state JSON file",
|
|
2120
|
+
"name": "state-file",
|
|
2121
|
+
"hasDynamicHelp": false,
|
|
2122
|
+
"multiple": false,
|
|
2123
|
+
"type": "option"
|
|
2124
|
+
},
|
|
2125
|
+
"output-dir": {
|
|
2126
|
+
"char": "o",
|
|
2127
|
+
"description": "Output directory for generated files",
|
|
2128
|
+
"name": "output-dir",
|
|
2129
|
+
"hasDynamicHelp": false,
|
|
2130
|
+
"multiple": false,
|
|
2131
|
+
"type": "option"
|
|
2132
|
+
},
|
|
2133
|
+
"sql": {
|
|
2134
|
+
"description": "Generate SQL script",
|
|
2135
|
+
"name": "sql",
|
|
2136
|
+
"allowNo": false,
|
|
2137
|
+
"type": "boolean"
|
|
2138
|
+
},
|
|
2139
|
+
"markdown": {
|
|
2140
|
+
"description": "Generate Markdown documentation",
|
|
2141
|
+
"name": "markdown",
|
|
2142
|
+
"allowNo": false,
|
|
2143
|
+
"type": "boolean"
|
|
2144
|
+
},
|
|
2145
|
+
"html": {
|
|
2146
|
+
"description": "Generate interactive HTML documentation",
|
|
2147
|
+
"name": "html",
|
|
2148
|
+
"allowNo": false,
|
|
2149
|
+
"type": "boolean"
|
|
2150
|
+
},
|
|
2151
|
+
"csv": {
|
|
2152
|
+
"description": "Generate CSV exports (tables and columns)",
|
|
2153
|
+
"name": "csv",
|
|
2154
|
+
"allowNo": false,
|
|
2155
|
+
"type": "boolean"
|
|
2156
|
+
},
|
|
2157
|
+
"mermaid": {
|
|
2158
|
+
"description": "Generate Mermaid ERD diagram files",
|
|
2159
|
+
"name": "mermaid",
|
|
2160
|
+
"allowNo": false,
|
|
2161
|
+
"type": "boolean"
|
|
2162
|
+
},
|
|
2163
|
+
"report": {
|
|
2164
|
+
"description": "Generate analysis report",
|
|
2165
|
+
"name": "report",
|
|
2166
|
+
"allowNo": false,
|
|
2167
|
+
"type": "boolean"
|
|
2168
|
+
},
|
|
2169
|
+
"apply": {
|
|
2170
|
+
"description": "Apply SQL to database",
|
|
2171
|
+
"name": "apply",
|
|
2172
|
+
"allowNo": false,
|
|
2173
|
+
"type": "boolean"
|
|
2174
|
+
},
|
|
2175
|
+
"approved-only": {
|
|
2176
|
+
"description": "Only export approved items",
|
|
2177
|
+
"name": "approved-only",
|
|
2178
|
+
"allowNo": false,
|
|
2179
|
+
"type": "boolean"
|
|
2180
|
+
},
|
|
2181
|
+
"confidence-threshold": {
|
|
2182
|
+
"description": "Minimum confidence threshold",
|
|
2183
|
+
"name": "confidence-threshold",
|
|
2184
|
+
"default": "0",
|
|
2185
|
+
"hasDynamicHelp": false,
|
|
2186
|
+
"multiple": false,
|
|
2187
|
+
"type": "option"
|
|
2188
|
+
},
|
|
2189
|
+
"erd-mode": {
|
|
2190
|
+
"description": "ERD layout: full, clusters (one diagram per subject area) or both",
|
|
2191
|
+
"name": "erd-mode",
|
|
2192
|
+
"hasDynamicHelp": false,
|
|
2193
|
+
"multiple": false,
|
|
2194
|
+
"options": [
|
|
2195
|
+
"full",
|
|
2196
|
+
"clusters",
|
|
2197
|
+
"both"
|
|
2198
|
+
],
|
|
2199
|
+
"type": "option"
|
|
2200
|
+
},
|
|
2201
|
+
"erd-columns": {
|
|
2202
|
+
"description": "Columns drawn per entity: all, keys (PK/FK only) or none",
|
|
2203
|
+
"name": "erd-columns",
|
|
2204
|
+
"hasDynamicHelp": false,
|
|
2205
|
+
"multiple": false,
|
|
2206
|
+
"options": [
|
|
2207
|
+
"all",
|
|
2208
|
+
"keys",
|
|
2209
|
+
"none"
|
|
2210
|
+
],
|
|
2211
|
+
"type": "option"
|
|
2212
|
+
},
|
|
2213
|
+
"erd-hub-min-inbound": {
|
|
2214
|
+
"description": "A table referenced by at least this many tables is a subject-area hub",
|
|
2215
|
+
"name": "erd-hub-min-inbound",
|
|
2216
|
+
"hasDynamicHelp": false,
|
|
2217
|
+
"multiple": false,
|
|
2218
|
+
"type": "option"
|
|
2219
|
+
},
|
|
2220
|
+
"erd-lookup-max-rows": {
|
|
2221
|
+
"description": "A table that references nothing and has fewer rows than this is a reference table",
|
|
2222
|
+
"name": "erd-lookup-max-rows",
|
|
2223
|
+
"hasDynamicHelp": false,
|
|
2224
|
+
"multiple": false,
|
|
2225
|
+
"type": "option"
|
|
2226
|
+
},
|
|
2227
|
+
"erd-page-size": {
|
|
2228
|
+
"description": "Tables per diagram page beyond the hub",
|
|
2229
|
+
"name": "erd-page-size",
|
|
2230
|
+
"hasDynamicHelp": false,
|
|
2231
|
+
"multiple": false,
|
|
2232
|
+
"type": "option"
|
|
2233
|
+
},
|
|
2234
|
+
"erd-min-cluster-size": {
|
|
2235
|
+
"description": "Subject areas smaller than this fold into a neighbour",
|
|
2236
|
+
"name": "erd-min-cluster-size",
|
|
2237
|
+
"hasDynamicHelp": false,
|
|
2238
|
+
"multiple": false,
|
|
2239
|
+
"type": "option"
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
"hasDynamicHelp": false,
|
|
2243
|
+
"hiddenAliases": [],
|
|
2244
|
+
"id": "dbdoc:export",
|
|
2245
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2246
|
+
"pluginName": "@memberjunction/cli",
|
|
2247
|
+
"pluginType": "core",
|
|
2248
|
+
"strict": true,
|
|
2249
|
+
"enableJsonFlag": false,
|
|
2250
|
+
"isESM": true,
|
|
2251
|
+
"relativePath": [
|
|
2252
|
+
"dist",
|
|
2253
|
+
"commands",
|
|
2254
|
+
"dbdoc",
|
|
2255
|
+
"export.js"
|
|
2256
|
+
]
|
|
2257
|
+
},
|
|
2258
|
+
"dbdoc:generate-queries": {
|
|
2259
|
+
"aliases": [],
|
|
2260
|
+
"args": {},
|
|
2261
|
+
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
2262
|
+
"examples": [
|
|
2263
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
2264
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
2265
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
2266
|
+
],
|
|
2267
|
+
"flags": {
|
|
2268
|
+
"from-state": {
|
|
2269
|
+
"description": "Path to existing state.json file from previous analysis",
|
|
2270
|
+
"name": "from-state",
|
|
2271
|
+
"required": true,
|
|
2272
|
+
"hasDynamicHelp": false,
|
|
2273
|
+
"multiple": false,
|
|
2274
|
+
"type": "option"
|
|
2275
|
+
},
|
|
2276
|
+
"output-dir": {
|
|
2277
|
+
"description": "Output directory for generated queries",
|
|
2278
|
+
"name": "output-dir",
|
|
2279
|
+
"required": false,
|
|
2280
|
+
"hasDynamicHelp": false,
|
|
2281
|
+
"multiple": false,
|
|
2282
|
+
"type": "option"
|
|
2283
|
+
},
|
|
2284
|
+
"config": {
|
|
2285
|
+
"char": "c",
|
|
2286
|
+
"description": "Path to config file (for database connection and AI settings)",
|
|
2287
|
+
"name": "config",
|
|
2288
|
+
"default": "./config.json",
|
|
2289
|
+
"hasDynamicHelp": false,
|
|
2290
|
+
"multiple": false,
|
|
2291
|
+
"type": "option"
|
|
2292
|
+
},
|
|
2293
|
+
"queries-per-table": {
|
|
2294
|
+
"description": "Number of queries to generate per table",
|
|
2295
|
+
"name": "queries-per-table",
|
|
2296
|
+
"required": false,
|
|
2297
|
+
"hasDynamicHelp": false,
|
|
2298
|
+
"multiple": false,
|
|
2299
|
+
"type": "option"
|
|
2300
|
+
},
|
|
2301
|
+
"max-execution-time": {
|
|
2302
|
+
"description": "Maximum execution time for query validation (ms)",
|
|
2303
|
+
"name": "max-execution-time",
|
|
2304
|
+
"required": false,
|
|
2305
|
+
"hasDynamicHelp": false,
|
|
2306
|
+
"multiple": false,
|
|
2307
|
+
"type": "option"
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
"hasDynamicHelp": false,
|
|
2311
|
+
"hiddenAliases": [],
|
|
2312
|
+
"id": "dbdoc:generate-queries",
|
|
1897
2313
|
"pluginAlias": "@memberjunction/cli",
|
|
1898
2314
|
"pluginName": "@memberjunction/cli",
|
|
1899
2315
|
"pluginType": "core",
|
|
@@ -1903,31 +2319,19 @@
|
|
|
1903
2319
|
"relativePath": [
|
|
1904
2320
|
"dist",
|
|
1905
2321
|
"commands",
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
2322
|
+
"dbdoc",
|
|
2323
|
+
"generate-queries.js"
|
|
1908
2324
|
]
|
|
1909
2325
|
},
|
|
1910
|
-
"
|
|
2326
|
+
"dbdoc": {
|
|
1911
2327
|
"aliases": [],
|
|
1912
2328
|
"args": {},
|
|
1913
|
-
"description": "
|
|
1914
|
-
"flags": {
|
|
1915
|
-
"format": {
|
|
1916
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
1917
|
-
"name": "format",
|
|
1918
|
-
"hasDynamicHelp": false,
|
|
1919
|
-
"multiple": false,
|
|
1920
|
-
"options": [
|
|
1921
|
-
"text",
|
|
1922
|
-
"json",
|
|
1923
|
-
"md"
|
|
1924
|
-
],
|
|
1925
|
-
"type": "option"
|
|
1926
|
-
}
|
|
1927
|
-
},
|
|
2329
|
+
"description": "AI-powered database documentation generator",
|
|
2330
|
+
"flags": {},
|
|
1928
2331
|
"hasDynamicHelp": false,
|
|
2332
|
+
"hidden": false,
|
|
1929
2333
|
"hiddenAliases": [],
|
|
1930
|
-
"id": "
|
|
2334
|
+
"id": "dbdoc",
|
|
1931
2335
|
"pluginAlias": "@memberjunction/cli",
|
|
1932
2336
|
"pluginName": "@memberjunction/cli",
|
|
1933
2337
|
"pluginType": "core",
|
|
@@ -1937,19 +2341,21 @@
|
|
|
1937
2341
|
"relativePath": [
|
|
1938
2342
|
"dist",
|
|
1939
2343
|
"commands",
|
|
1940
|
-
"
|
|
1941
|
-
"
|
|
2344
|
+
"dbdoc",
|
|
2345
|
+
"index.js"
|
|
1942
2346
|
]
|
|
1943
2347
|
},
|
|
1944
|
-
"
|
|
2348
|
+
"dbdoc:init": {
|
|
1945
2349
|
"aliases": [],
|
|
1946
2350
|
"args": {},
|
|
1947
|
-
"description": "
|
|
2351
|
+
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
2352
|
+
"examples": [
|
|
2353
|
+
"<%= config.bin %> <%= command.id %>"
|
|
2354
|
+
],
|
|
1948
2355
|
"flags": {},
|
|
1949
2356
|
"hasDynamicHelp": false,
|
|
1950
|
-
"hidden": false,
|
|
1951
2357
|
"hiddenAliases": [],
|
|
1952
|
-
"id": "
|
|
2358
|
+
"id": "dbdoc:init",
|
|
1953
2359
|
"pluginAlias": "@memberjunction/cli",
|
|
1954
2360
|
"pluginName": "@memberjunction/cli",
|
|
1955
2361
|
"pluginType": "core",
|
|
@@ -1959,31 +2365,30 @@
|
|
|
1959
2365
|
"relativePath": [
|
|
1960
2366
|
"dist",
|
|
1961
2367
|
"commands",
|
|
1962
|
-
"
|
|
1963
|
-
"
|
|
2368
|
+
"dbdoc",
|
|
2369
|
+
"init.js"
|
|
1964
2370
|
]
|
|
1965
2371
|
},
|
|
1966
|
-
"
|
|
2372
|
+
"dbdoc:reset": {
|
|
1967
2373
|
"aliases": [],
|
|
1968
2374
|
"args": {},
|
|
1969
|
-
"description": "
|
|
2375
|
+
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
2376
|
+
"examples": [
|
|
2377
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2378
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
2379
|
+
],
|
|
1970
2380
|
"flags": {
|
|
1971
|
-
"
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
1974
|
-
"
|
|
1975
|
-
"
|
|
1976
|
-
"
|
|
1977
|
-
"text",
|
|
1978
|
-
"json",
|
|
1979
|
-
"md"
|
|
1980
|
-
],
|
|
1981
|
-
"type": "option"
|
|
2381
|
+
"force": {
|
|
2382
|
+
"char": "f",
|
|
2383
|
+
"description": "Force reset without confirmation",
|
|
2384
|
+
"name": "force",
|
|
2385
|
+
"allowNo": false,
|
|
2386
|
+
"type": "boolean"
|
|
1982
2387
|
}
|
|
1983
2388
|
},
|
|
1984
2389
|
"hasDynamicHelp": false,
|
|
1985
2390
|
"hiddenAliases": [],
|
|
1986
|
-
"id": "
|
|
2391
|
+
"id": "dbdoc:reset",
|
|
1987
2392
|
"pluginAlias": "@memberjunction/cli",
|
|
1988
2393
|
"pluginName": "@memberjunction/cli",
|
|
1989
2394
|
"pluginType": "core",
|
|
@@ -1993,48 +2398,31 @@
|
|
|
1993
2398
|
"relativePath": [
|
|
1994
2399
|
"dist",
|
|
1995
2400
|
"commands",
|
|
1996
|
-
"
|
|
1997
|
-
"
|
|
2401
|
+
"dbdoc",
|
|
2402
|
+
"reset.js"
|
|
1998
2403
|
]
|
|
1999
2404
|
},
|
|
2000
|
-
"dbdoc:
|
|
2405
|
+
"dbdoc:status": {
|
|
2001
2406
|
"aliases": [],
|
|
2002
2407
|
"args": {},
|
|
2003
|
-
"description": "
|
|
2408
|
+
"description": "Show analysis status and progress (delegates to db-auto-doc status)",
|
|
2004
2409
|
"examples": [
|
|
2005
2410
|
"<%= config.bin %> <%= command.id %>",
|
|
2006
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2007
|
-
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
2411
|
+
"<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
|
|
2008
2412
|
],
|
|
2009
2413
|
"flags": {
|
|
2010
|
-
"
|
|
2011
|
-
"char": "
|
|
2012
|
-
"description": "
|
|
2013
|
-
"name": "
|
|
2014
|
-
"required": false,
|
|
2015
|
-
"hasDynamicHelp": false,
|
|
2016
|
-
"multiple": false,
|
|
2017
|
-
"type": "option"
|
|
2018
|
-
},
|
|
2019
|
-
"config": {
|
|
2020
|
-
"char": "c",
|
|
2021
|
-
"description": "Path to config file",
|
|
2022
|
-
"name": "config",
|
|
2023
|
-
"default": "./config.json",
|
|
2414
|
+
"state-file": {
|
|
2415
|
+
"char": "s",
|
|
2416
|
+
"description": "Path to state JSON file",
|
|
2417
|
+
"name": "state-file",
|
|
2024
2418
|
"hasDynamicHelp": false,
|
|
2025
2419
|
"multiple": false,
|
|
2026
2420
|
"type": "option"
|
|
2027
|
-
},
|
|
2028
|
-
"skip-sampling": {
|
|
2029
|
-
"description": "Skip table data sampling pass (useful for large databases or when schema/dictionary is already provided)",
|
|
2030
|
-
"name": "skip-sampling",
|
|
2031
|
-
"allowNo": false,
|
|
2032
|
-
"type": "boolean"
|
|
2033
2421
|
}
|
|
2034
2422
|
},
|
|
2035
2423
|
"hasDynamicHelp": false,
|
|
2036
2424
|
"hiddenAliases": [],
|
|
2037
|
-
"id": "dbdoc:
|
|
2425
|
+
"id": "dbdoc:status",
|
|
2038
2426
|
"pluginAlias": "@memberjunction/cli",
|
|
2039
2427
|
"pluginName": "@memberjunction/cli",
|
|
2040
2428
|
"pluginType": "core",
|
|
@@ -2045,104 +2433,86 @@
|
|
|
2045
2433
|
"dist",
|
|
2046
2434
|
"commands",
|
|
2047
2435
|
"dbdoc",
|
|
2048
|
-
"
|
|
2436
|
+
"status.js"
|
|
2049
2437
|
]
|
|
2050
2438
|
},
|
|
2051
|
-
"dbdoc:
|
|
2439
|
+
"dbdoc:usage": {
|
|
2052
2440
|
"aliases": [],
|
|
2053
2441
|
"args": {},
|
|
2054
|
-
"description": "
|
|
2055
|
-
"examples": [
|
|
2056
|
-
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
2057
|
-
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
2058
|
-
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
2059
|
-
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
2060
|
-
],
|
|
2442
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj dbdoc` command.",
|
|
2061
2443
|
"flags": {
|
|
2062
|
-
"
|
|
2063
|
-
"
|
|
2064
|
-
"
|
|
2065
|
-
"name": "input",
|
|
2066
|
-
"required": true,
|
|
2067
|
-
"hasDynamicHelp": false,
|
|
2068
|
-
"multiple": false,
|
|
2069
|
-
"type": "option"
|
|
2070
|
-
},
|
|
2071
|
-
"output": {
|
|
2072
|
-
"char": "o",
|
|
2073
|
-
"description": "Output path for the .queries.json metadata file",
|
|
2074
|
-
"name": "output",
|
|
2075
|
-
"required": true,
|
|
2076
|
-
"hasDynamicHelp": false,
|
|
2077
|
-
"multiple": false,
|
|
2078
|
-
"type": "option"
|
|
2079
|
-
},
|
|
2080
|
-
"separate-sql-files": {
|
|
2081
|
-
"description": "Write SQL to separate files and use @file: references",
|
|
2082
|
-
"name": "separate-sql-files",
|
|
2083
|
-
"allowNo": false,
|
|
2084
|
-
"type": "boolean"
|
|
2085
|
-
},
|
|
2086
|
-
"sql-dir": {
|
|
2087
|
-
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
2088
|
-
"name": "sql-dir",
|
|
2089
|
-
"default": "SQL",
|
|
2090
|
-
"hasDynamicHelp": false,
|
|
2091
|
-
"multiple": false,
|
|
2092
|
-
"type": "option"
|
|
2093
|
-
},
|
|
2094
|
-
"category": {
|
|
2095
|
-
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
2096
|
-
"name": "category",
|
|
2097
|
-
"required": false,
|
|
2098
|
-
"hasDynamicHelp": false,
|
|
2099
|
-
"multiple": false,
|
|
2100
|
-
"type": "option"
|
|
2101
|
-
},
|
|
2102
|
-
"status": {
|
|
2103
|
-
"description": "Status to assign to exported queries",
|
|
2104
|
-
"name": "status",
|
|
2105
|
-
"default": "Pending",
|
|
2444
|
+
"format": {
|
|
2445
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
2446
|
+
"name": "format",
|
|
2106
2447
|
"hasDynamicHelp": false,
|
|
2107
2448
|
"multiple": false,
|
|
2108
2449
|
"options": [
|
|
2109
|
-
"
|
|
2110
|
-
"
|
|
2111
|
-
"
|
|
2112
|
-
"Expired"
|
|
2450
|
+
"text",
|
|
2451
|
+
"json",
|
|
2452
|
+
"md"
|
|
2113
2453
|
],
|
|
2114
2454
|
"type": "option"
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2455
|
+
}
|
|
2456
|
+
},
|
|
2457
|
+
"hasDynamicHelp": false,
|
|
2458
|
+
"hiddenAliases": [],
|
|
2459
|
+
"id": "dbdoc:usage",
|
|
2460
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2461
|
+
"pluginName": "@memberjunction/cli",
|
|
2462
|
+
"pluginType": "core",
|
|
2463
|
+
"strict": true,
|
|
2464
|
+
"enableJsonFlag": false,
|
|
2465
|
+
"isESM": true,
|
|
2466
|
+
"relativePath": [
|
|
2467
|
+
"dist",
|
|
2468
|
+
"commands",
|
|
2469
|
+
"dbdoc",
|
|
2470
|
+
"usage.js"
|
|
2471
|
+
]
|
|
2472
|
+
},
|
|
2473
|
+
"dev": {
|
|
2474
|
+
"aliases": [],
|
|
2475
|
+
"args": {},
|
|
2476
|
+
"description": "Local development tooling: generate, inspect, and tear down the cross-repo pnpm workspace that links sibling repo clones. Run `mj dev usage` for every command's flags, examples, and runtime hints.",
|
|
2477
|
+
"flags": {},
|
|
2478
|
+
"hasDynamicHelp": false,
|
|
2479
|
+
"hidden": false,
|
|
2480
|
+
"hiddenAliases": [],
|
|
2481
|
+
"id": "dev",
|
|
2482
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2483
|
+
"pluginName": "@memberjunction/cli",
|
|
2484
|
+
"pluginType": "core",
|
|
2485
|
+
"strict": true,
|
|
2486
|
+
"enableJsonFlag": false,
|
|
2487
|
+
"isESM": true,
|
|
2488
|
+
"relativePath": [
|
|
2489
|
+
"dist",
|
|
2490
|
+
"commands",
|
|
2491
|
+
"dev",
|
|
2492
|
+
"index.js"
|
|
2493
|
+
]
|
|
2494
|
+
},
|
|
2495
|
+
"dev:usage": {
|
|
2496
|
+
"aliases": [],
|
|
2497
|
+
"args": {},
|
|
2498
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj dev` command.",
|
|
2499
|
+
"flags": {
|
|
2500
|
+
"format": {
|
|
2501
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
2502
|
+
"name": "format",
|
|
2120
2503
|
"hasDynamicHelp": false,
|
|
2121
2504
|
"multiple": false,
|
|
2122
|
-
"
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
"
|
|
2128
|
-
"type": "boolean"
|
|
2129
|
-
},
|
|
2130
|
-
"append": {
|
|
2131
|
-
"description": "Append to existing metadata file instead of overwriting",
|
|
2132
|
-
"name": "append",
|
|
2133
|
-
"allowNo": false,
|
|
2134
|
-
"type": "boolean"
|
|
2135
|
-
},
|
|
2136
|
-
"include-primary-key": {
|
|
2137
|
-
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
2138
|
-
"name": "include-primary-key",
|
|
2139
|
-
"allowNo": false,
|
|
2140
|
-
"type": "boolean"
|
|
2505
|
+
"options": [
|
|
2506
|
+
"text",
|
|
2507
|
+
"json",
|
|
2508
|
+
"md"
|
|
2509
|
+
],
|
|
2510
|
+
"type": "option"
|
|
2141
2511
|
}
|
|
2142
2512
|
},
|
|
2143
2513
|
"hasDynamicHelp": false,
|
|
2144
2514
|
"hiddenAliases": [],
|
|
2145
|
-
"id": "
|
|
2515
|
+
"id": "dev:usage",
|
|
2146
2516
|
"pluginAlias": "@memberjunction/cli",
|
|
2147
2517
|
"pluginName": "@memberjunction/cli",
|
|
2148
2518
|
"pluginType": "core",
|
|
@@ -2152,144 +2522,52 @@
|
|
|
2152
2522
|
"relativePath": [
|
|
2153
2523
|
"dist",
|
|
2154
2524
|
"commands",
|
|
2155
|
-
"
|
|
2156
|
-
"
|
|
2525
|
+
"dev",
|
|
2526
|
+
"usage.js"
|
|
2157
2527
|
]
|
|
2158
2528
|
},
|
|
2159
|
-
"
|
|
2529
|
+
"diag:export": {
|
|
2160
2530
|
"aliases": [],
|
|
2161
|
-
"args": {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
2170
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
2171
|
-
],
|
|
2531
|
+
"args": {
|
|
2532
|
+
"file": {
|
|
2533
|
+
"description": "Path to the .mjdiag bundle archive",
|
|
2534
|
+
"name": "file",
|
|
2535
|
+
"required": true
|
|
2536
|
+
}
|
|
2537
|
+
},
|
|
2538
|
+
"description": "Export .mjdiag traces to Chrome Trace Event (Perfetto) or OpenTelemetry OTLP JSON",
|
|
2172
2539
|
"flags": {
|
|
2173
|
-
"
|
|
2174
|
-
"char": "s",
|
|
2175
|
-
"description": "Path to state JSON file",
|
|
2176
|
-
"name": "state-file",
|
|
2177
|
-
"hasDynamicHelp": false,
|
|
2178
|
-
"multiple": false,
|
|
2179
|
-
"type": "option"
|
|
2180
|
-
},
|
|
2181
|
-
"output-dir": {
|
|
2540
|
+
"output": {
|
|
2182
2541
|
"char": "o",
|
|
2183
|
-
"description": "Output
|
|
2184
|
-
"name": "output
|
|
2542
|
+
"description": "Output JSON file path",
|
|
2543
|
+
"name": "output",
|
|
2544
|
+
"required": true,
|
|
2185
2545
|
"hasDynamicHelp": false,
|
|
2186
2546
|
"multiple": false,
|
|
2187
2547
|
"type": "option"
|
|
2188
2548
|
},
|
|
2189
|
-
"
|
|
2190
|
-
"description": "
|
|
2191
|
-
"name": "
|
|
2192
|
-
"allowNo": false,
|
|
2193
|
-
"type": "boolean"
|
|
2194
|
-
},
|
|
2195
|
-
"markdown": {
|
|
2196
|
-
"description": "Generate Markdown documentation",
|
|
2197
|
-
"name": "markdown",
|
|
2198
|
-
"allowNo": false,
|
|
2199
|
-
"type": "boolean"
|
|
2200
|
-
},
|
|
2201
|
-
"html": {
|
|
2202
|
-
"description": "Generate interactive HTML documentation",
|
|
2203
|
-
"name": "html",
|
|
2204
|
-
"allowNo": false,
|
|
2205
|
-
"type": "boolean"
|
|
2206
|
-
},
|
|
2207
|
-
"csv": {
|
|
2208
|
-
"description": "Generate CSV exports (tables and columns)",
|
|
2209
|
-
"name": "csv",
|
|
2210
|
-
"allowNo": false,
|
|
2211
|
-
"type": "boolean"
|
|
2212
|
-
},
|
|
2213
|
-
"mermaid": {
|
|
2214
|
-
"description": "Generate Mermaid ERD diagram files",
|
|
2215
|
-
"name": "mermaid",
|
|
2216
|
-
"allowNo": false,
|
|
2217
|
-
"type": "boolean"
|
|
2218
|
-
},
|
|
2219
|
-
"report": {
|
|
2220
|
-
"description": "Generate analysis report",
|
|
2221
|
-
"name": "report",
|
|
2222
|
-
"allowNo": false,
|
|
2223
|
-
"type": "boolean"
|
|
2224
|
-
},
|
|
2225
|
-
"apply": {
|
|
2226
|
-
"description": "Apply SQL to database",
|
|
2227
|
-
"name": "apply",
|
|
2549
|
+
"perfetto": {
|
|
2550
|
+
"description": "Export in Chrome Trace Event format for ui.perfetto.dev",
|
|
2551
|
+
"name": "perfetto",
|
|
2228
2552
|
"allowNo": false,
|
|
2229
2553
|
"type": "boolean"
|
|
2230
2554
|
},
|
|
2231
|
-
"
|
|
2232
|
-
"description": "
|
|
2233
|
-
"name": "
|
|
2555
|
+
"otlp": {
|
|
2556
|
+
"description": "Export in OpenTelemetry OTLP JSON format",
|
|
2557
|
+
"name": "otlp",
|
|
2234
2558
|
"allowNo": false,
|
|
2235
2559
|
"type": "boolean"
|
|
2236
2560
|
},
|
|
2237
|
-
"
|
|
2238
|
-
"description": "
|
|
2239
|
-
"name": "
|
|
2240
|
-
"default": "0",
|
|
2241
|
-
"hasDynamicHelp": false,
|
|
2242
|
-
"multiple": false,
|
|
2243
|
-
"type": "option"
|
|
2244
|
-
},
|
|
2245
|
-
"erd-mode": {
|
|
2246
|
-
"description": "ERD layout: full, clusters (one diagram per subject area) or both",
|
|
2247
|
-
"name": "erd-mode",
|
|
2248
|
-
"hasDynamicHelp": false,
|
|
2249
|
-
"multiple": false,
|
|
2250
|
-
"options": [
|
|
2251
|
-
"full",
|
|
2252
|
-
"clusters",
|
|
2253
|
-
"both"
|
|
2254
|
-
],
|
|
2255
|
-
"type": "option"
|
|
2256
|
-
},
|
|
2257
|
-
"erd-columns": {
|
|
2258
|
-
"description": "Columns drawn per entity: all, keys (PK/FK only) or none",
|
|
2259
|
-
"name": "erd-columns",
|
|
2260
|
-
"hasDynamicHelp": false,
|
|
2261
|
-
"multiple": false,
|
|
2262
|
-
"options": [
|
|
2263
|
-
"all",
|
|
2264
|
-
"keys",
|
|
2265
|
-
"none"
|
|
2266
|
-
],
|
|
2267
|
-
"type": "option"
|
|
2268
|
-
},
|
|
2269
|
-
"erd-hub-min-inbound": {
|
|
2270
|
-
"description": "A table referenced by at least this many tables is a subject-area hub",
|
|
2271
|
-
"name": "erd-hub-min-inbound",
|
|
2272
|
-
"hasDynamicHelp": false,
|
|
2273
|
-
"multiple": false,
|
|
2274
|
-
"type": "option"
|
|
2275
|
-
},
|
|
2276
|
-
"erd-lookup-max-rows": {
|
|
2277
|
-
"description": "A table that references nothing and has fewer rows than this is a reference table",
|
|
2278
|
-
"name": "erd-lookup-max-rows",
|
|
2279
|
-
"hasDynamicHelp": false,
|
|
2280
|
-
"multiple": false,
|
|
2281
|
-
"type": "option"
|
|
2282
|
-
},
|
|
2283
|
-
"erd-page-size": {
|
|
2284
|
-
"description": "Tables per diagram page beyond the hub",
|
|
2285
|
-
"name": "erd-page-size",
|
|
2561
|
+
"private-key": {
|
|
2562
|
+
"description": "Base64 PKCS#8 X25519 private key for an encrypted MJDB envelope. The value is visible to other processes and stays in shell history; prefer --private-key-file or MJ_DIAG_PRIVATE_KEY",
|
|
2563
|
+
"name": "private-key",
|
|
2286
2564
|
"hasDynamicHelp": false,
|
|
2287
2565
|
"multiple": false,
|
|
2288
2566
|
"type": "option"
|
|
2289
2567
|
},
|
|
2290
|
-
"
|
|
2291
|
-
"description": "
|
|
2292
|
-
"name": "
|
|
2568
|
+
"private-key-file": {
|
|
2569
|
+
"description": "Path to a file that holds the base64 PKCS#8 X25519 private key for an encrypted MJDB envelope",
|
|
2570
|
+
"name": "private-key-file",
|
|
2293
2571
|
"hasDynamicHelp": false,
|
|
2294
2572
|
"multiple": false,
|
|
2295
2573
|
"type": "option"
|
|
@@ -2297,7 +2575,7 @@
|
|
|
2297
2575
|
},
|
|
2298
2576
|
"hasDynamicHelp": false,
|
|
2299
2577
|
"hiddenAliases": [],
|
|
2300
|
-
"id": "
|
|
2578
|
+
"id": "diag:export",
|
|
2301
2579
|
"pluginAlias": "@memberjunction/cli",
|
|
2302
2580
|
"pluginName": "@memberjunction/cli",
|
|
2303
2581
|
"pluginType": "core",
|
|
@@ -2307,87 +2585,45 @@
|
|
|
2307
2585
|
"relativePath": [
|
|
2308
2586
|
"dist",
|
|
2309
2587
|
"commands",
|
|
2310
|
-
"
|
|
2588
|
+
"diag",
|
|
2311
2589
|
"export.js"
|
|
2312
2590
|
]
|
|
2313
2591
|
},
|
|
2314
|
-
"
|
|
2592
|
+
"diag:inspect": {
|
|
2315
2593
|
"aliases": [],
|
|
2316
|
-
"args": {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2594
|
+
"args": {
|
|
2595
|
+
"file": {
|
|
2596
|
+
"description": "Path to the .mjdiag bundle archive",
|
|
2597
|
+
"name": "file",
|
|
2598
|
+
"required": true
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
"description": "Verify and inspect a MemberJunction .mjdiag diagnostic bundle",
|
|
2323
2602
|
"flags": {
|
|
2324
|
-
"
|
|
2325
|
-
"description": "
|
|
2326
|
-
"name": "
|
|
2327
|
-
"required": true,
|
|
2328
|
-
"hasDynamicHelp": false,
|
|
2329
|
-
"multiple": false,
|
|
2330
|
-
"type": "option"
|
|
2331
|
-
},
|
|
2332
|
-
"output-dir": {
|
|
2333
|
-
"description": "Output directory for generated queries",
|
|
2334
|
-
"name": "output-dir",
|
|
2335
|
-
"required": false,
|
|
2336
|
-
"hasDynamicHelp": false,
|
|
2337
|
-
"multiple": false,
|
|
2338
|
-
"type": "option"
|
|
2339
|
-
},
|
|
2340
|
-
"config": {
|
|
2341
|
-
"char": "c",
|
|
2342
|
-
"description": "Path to config file (for database connection and AI settings)",
|
|
2343
|
-
"name": "config",
|
|
2344
|
-
"default": "./config.json",
|
|
2603
|
+
"private-key": {
|
|
2604
|
+
"description": "Base64 PKCS#8 X25519 private key for an encrypted MJDB envelope. The value is visible to other processes and stays in shell history; prefer --private-key-file or MJ_DIAG_PRIVATE_KEY",
|
|
2605
|
+
"name": "private-key",
|
|
2345
2606
|
"hasDynamicHelp": false,
|
|
2346
2607
|
"multiple": false,
|
|
2347
2608
|
"type": "option"
|
|
2348
2609
|
},
|
|
2349
|
-
"
|
|
2350
|
-
"description": "
|
|
2351
|
-
"name": "
|
|
2352
|
-
"required": false,
|
|
2610
|
+
"private-key-file": {
|
|
2611
|
+
"description": "Path to a file that holds the base64 PKCS#8 X25519 private key for an encrypted MJDB envelope",
|
|
2612
|
+
"name": "private-key-file",
|
|
2353
2613
|
"hasDynamicHelp": false,
|
|
2354
2614
|
"multiple": false,
|
|
2355
2615
|
"type": "option"
|
|
2356
2616
|
},
|
|
2357
|
-
"
|
|
2358
|
-
"description": "
|
|
2359
|
-
"name": "
|
|
2360
|
-
"
|
|
2361
|
-
"
|
|
2362
|
-
"multiple": false,
|
|
2363
|
-
"type": "option"
|
|
2617
|
+
"json": {
|
|
2618
|
+
"description": "Emit machine-readable JSON output",
|
|
2619
|
+
"name": "json",
|
|
2620
|
+
"allowNo": false,
|
|
2621
|
+
"type": "boolean"
|
|
2364
2622
|
}
|
|
2365
2623
|
},
|
|
2366
2624
|
"hasDynamicHelp": false,
|
|
2367
2625
|
"hiddenAliases": [],
|
|
2368
|
-
"id": "
|
|
2369
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2370
|
-
"pluginName": "@memberjunction/cli",
|
|
2371
|
-
"pluginType": "core",
|
|
2372
|
-
"strict": true,
|
|
2373
|
-
"enableJsonFlag": false,
|
|
2374
|
-
"isESM": true,
|
|
2375
|
-
"relativePath": [
|
|
2376
|
-
"dist",
|
|
2377
|
-
"commands",
|
|
2378
|
-
"dbdoc",
|
|
2379
|
-
"generate-queries.js"
|
|
2380
|
-
]
|
|
2381
|
-
},
|
|
2382
|
-
"dbdoc": {
|
|
2383
|
-
"aliases": [],
|
|
2384
|
-
"args": {},
|
|
2385
|
-
"description": "AI-powered database documentation generator",
|
|
2386
|
-
"flags": {},
|
|
2387
|
-
"hasDynamicHelp": false,
|
|
2388
|
-
"hidden": false,
|
|
2389
|
-
"hiddenAliases": [],
|
|
2390
|
-
"id": "dbdoc",
|
|
2626
|
+
"id": "diag:inspect",
|
|
2391
2627
|
"pluginAlias": "@memberjunction/cli",
|
|
2392
2628
|
"pluginName": "@memberjunction/cli",
|
|
2393
2629
|
"pluginType": "core",
|
|
@@ -2397,21 +2633,39 @@
|
|
|
2397
2633
|
"relativePath": [
|
|
2398
2634
|
"dist",
|
|
2399
2635
|
"commands",
|
|
2400
|
-
"
|
|
2401
|
-
"
|
|
2636
|
+
"diag",
|
|
2637
|
+
"inspect.js"
|
|
2402
2638
|
]
|
|
2403
2639
|
},
|
|
2404
|
-
"
|
|
2640
|
+
"diag:keygen": {
|
|
2405
2641
|
"aliases": [],
|
|
2406
2642
|
"args": {},
|
|
2407
|
-
"description": "
|
|
2408
|
-
"
|
|
2409
|
-
"
|
|
2410
|
-
|
|
2411
|
-
|
|
2643
|
+
"description": "Generate an X25519 collector keypair (and optional Ed25519 signing keypair) for a Diagnostic Bundles Intake server",
|
|
2644
|
+
"flags": {
|
|
2645
|
+
"key-id": {
|
|
2646
|
+
"description": "Key identifier (kid) embedded in MJDB envelope headers",
|
|
2647
|
+
"name": "key-id",
|
|
2648
|
+
"default": "mjc-intake-2026-01",
|
|
2649
|
+
"hasDynamicHelp": false,
|
|
2650
|
+
"multiple": false,
|
|
2651
|
+
"type": "option"
|
|
2652
|
+
},
|
|
2653
|
+
"signing": {
|
|
2654
|
+
"description": "Also generate an Ed25519 keypair for signing public key manifests or sender envelopes",
|
|
2655
|
+
"name": "signing",
|
|
2656
|
+
"allowNo": false,
|
|
2657
|
+
"type": "boolean"
|
|
2658
|
+
},
|
|
2659
|
+
"json": {
|
|
2660
|
+
"description": "Emit JSON output",
|
|
2661
|
+
"name": "json",
|
|
2662
|
+
"allowNo": false,
|
|
2663
|
+
"type": "boolean"
|
|
2664
|
+
}
|
|
2665
|
+
},
|
|
2412
2666
|
"hasDynamicHelp": false,
|
|
2413
2667
|
"hiddenAliases": [],
|
|
2414
|
-
"id": "
|
|
2668
|
+
"id": "diag:keygen",
|
|
2415
2669
|
"pluginAlias": "@memberjunction/cli",
|
|
2416
2670
|
"pluginName": "@memberjunction/cli",
|
|
2417
2671
|
"pluginType": "core",
|
|
@@ -2421,30 +2675,60 @@
|
|
|
2421
2675
|
"relativePath": [
|
|
2422
2676
|
"dist",
|
|
2423
2677
|
"commands",
|
|
2424
|
-
"
|
|
2425
|
-
"
|
|
2678
|
+
"diag",
|
|
2679
|
+
"keygen.js"
|
|
2426
2680
|
]
|
|
2427
2681
|
},
|
|
2428
|
-
"
|
|
2682
|
+
"diag:scrub": {
|
|
2429
2683
|
"aliases": [],
|
|
2430
|
-
"args": {
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
"
|
|
2441
|
-
"
|
|
2442
|
-
"
|
|
2684
|
+
"args": {
|
|
2685
|
+
"file": {
|
|
2686
|
+
"description": "Path to the source .mjdiag bundle archive",
|
|
2687
|
+
"name": "file",
|
|
2688
|
+
"required": true
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
"description": "Re-scrub an existing .mjdiag bundle archive at Standard or FullRaw profile",
|
|
2692
|
+
"flags": {
|
|
2693
|
+
"output": {
|
|
2694
|
+
"char": "o",
|
|
2695
|
+
"description": "Output path for the scrubbed .mjdiag archive",
|
|
2696
|
+
"name": "output",
|
|
2697
|
+
"required": true,
|
|
2698
|
+
"hasDynamicHelp": false,
|
|
2699
|
+
"multiple": false,
|
|
2700
|
+
"type": "option"
|
|
2701
|
+
},
|
|
2702
|
+
"profile": {
|
|
2703
|
+
"description": "Scrubber profile to apply (Standard or FullRaw)",
|
|
2704
|
+
"name": "profile",
|
|
2705
|
+
"default": "Standard",
|
|
2706
|
+
"hasDynamicHelp": false,
|
|
2707
|
+
"multiple": false,
|
|
2708
|
+
"options": [
|
|
2709
|
+
"Standard",
|
|
2710
|
+
"FullRaw"
|
|
2711
|
+
],
|
|
2712
|
+
"type": "option"
|
|
2713
|
+
},
|
|
2714
|
+
"private-key": {
|
|
2715
|
+
"description": "Base64 PKCS#8 X25519 private key for an encrypted MJDB envelope. The value is visible to other processes and stays in shell history; prefer --private-key-file or MJ_DIAG_PRIVATE_KEY",
|
|
2716
|
+
"name": "private-key",
|
|
2717
|
+
"hasDynamicHelp": false,
|
|
2718
|
+
"multiple": false,
|
|
2719
|
+
"type": "option"
|
|
2720
|
+
},
|
|
2721
|
+
"private-key-file": {
|
|
2722
|
+
"description": "Path to a file that holds the base64 PKCS#8 X25519 private key for an encrypted MJDB envelope",
|
|
2723
|
+
"name": "private-key-file",
|
|
2724
|
+
"hasDynamicHelp": false,
|
|
2725
|
+
"multiple": false,
|
|
2726
|
+
"type": "option"
|
|
2443
2727
|
}
|
|
2444
2728
|
},
|
|
2445
2729
|
"hasDynamicHelp": false,
|
|
2446
2730
|
"hiddenAliases": [],
|
|
2447
|
-
"id": "
|
|
2731
|
+
"id": "diag:scrub",
|
|
2448
2732
|
"pluginAlias": "@memberjunction/cli",
|
|
2449
2733
|
"pluginName": "@memberjunction/cli",
|
|
2450
2734
|
"pluginType": "core",
|
|
@@ -2454,23 +2738,40 @@
|
|
|
2454
2738
|
"relativePath": [
|
|
2455
2739
|
"dist",
|
|
2456
2740
|
"commands",
|
|
2457
|
-
"
|
|
2458
|
-
"
|
|
2741
|
+
"diag",
|
|
2742
|
+
"scrub.js"
|
|
2459
2743
|
]
|
|
2460
2744
|
},
|
|
2461
|
-
"
|
|
2745
|
+
"diag:slow": {
|
|
2462
2746
|
"aliases": [],
|
|
2463
|
-
"args": {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2747
|
+
"args": {
|
|
2748
|
+
"file": {
|
|
2749
|
+
"description": "Path to the .mjdiag bundle archive",
|
|
2750
|
+
"name": "file",
|
|
2751
|
+
"required": true
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
"description": "List slow client/server spans and SQL queries from a .mjdiag bundle",
|
|
2469
2755
|
"flags": {
|
|
2470
|
-
"
|
|
2471
|
-
"char": "
|
|
2472
|
-
"description": "
|
|
2473
|
-
"name": "
|
|
2756
|
+
"threshold": {
|
|
2757
|
+
"char": "t",
|
|
2758
|
+
"description": "Minimum duration in milliseconds",
|
|
2759
|
+
"name": "threshold",
|
|
2760
|
+
"default": 500,
|
|
2761
|
+
"hasDynamicHelp": false,
|
|
2762
|
+
"multiple": false,
|
|
2763
|
+
"type": "option"
|
|
2764
|
+
},
|
|
2765
|
+
"private-key": {
|
|
2766
|
+
"description": "Base64 PKCS#8 X25519 private key for an encrypted MJDB envelope. The value is visible to other processes and stays in shell history; prefer --private-key-file or MJ_DIAG_PRIVATE_KEY",
|
|
2767
|
+
"name": "private-key",
|
|
2768
|
+
"hasDynamicHelp": false,
|
|
2769
|
+
"multiple": false,
|
|
2770
|
+
"type": "option"
|
|
2771
|
+
},
|
|
2772
|
+
"private-key-file": {
|
|
2773
|
+
"description": "Path to a file that holds the base64 PKCS#8 X25519 private key for an encrypted MJDB envelope",
|
|
2774
|
+
"name": "private-key-file",
|
|
2474
2775
|
"hasDynamicHelp": false,
|
|
2475
2776
|
"multiple": false,
|
|
2476
2777
|
"type": "option"
|
|
@@ -2478,7 +2779,7 @@
|
|
|
2478
2779
|
},
|
|
2479
2780
|
"hasDynamicHelp": false,
|
|
2480
2781
|
"hiddenAliases": [],
|
|
2481
|
-
"id": "
|
|
2782
|
+
"id": "diag:slow",
|
|
2482
2783
|
"pluginAlias": "@memberjunction/cli",
|
|
2483
2784
|
"pluginName": "@memberjunction/cli",
|
|
2484
2785
|
"pluginType": "core",
|
|
@@ -2488,31 +2789,48 @@
|
|
|
2488
2789
|
"relativePath": [
|
|
2489
2790
|
"dist",
|
|
2490
2791
|
"commands",
|
|
2491
|
-
"
|
|
2492
|
-
"
|
|
2792
|
+
"diag",
|
|
2793
|
+
"slow.js"
|
|
2493
2794
|
]
|
|
2494
2795
|
},
|
|
2495
|
-
"
|
|
2796
|
+
"diag:timeline": {
|
|
2496
2797
|
"aliases": [],
|
|
2497
|
-
"args": {
|
|
2498
|
-
|
|
2798
|
+
"args": {
|
|
2799
|
+
"file": {
|
|
2800
|
+
"description": "Path to the .mjdiag bundle archive",
|
|
2801
|
+
"name": "file",
|
|
2802
|
+
"required": true
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
"description": "Print a merged chronological timeline of client spans, server spans, SQL queries and breadcrumbs",
|
|
2499
2806
|
"flags": {
|
|
2500
|
-
"
|
|
2501
|
-
"
|
|
2502
|
-
"
|
|
2807
|
+
"limit": {
|
|
2808
|
+
"char": "n",
|
|
2809
|
+
"description": "Maximum number of timeline rows to display",
|
|
2810
|
+
"name": "limit",
|
|
2811
|
+
"default": 50,
|
|
2812
|
+
"hasDynamicHelp": false,
|
|
2813
|
+
"multiple": false,
|
|
2814
|
+
"type": "option"
|
|
2815
|
+
},
|
|
2816
|
+
"private-key": {
|
|
2817
|
+
"description": "Base64 PKCS#8 X25519 private key for an encrypted MJDB envelope. The value is visible to other processes and stays in shell history; prefer --private-key-file or MJ_DIAG_PRIVATE_KEY",
|
|
2818
|
+
"name": "private-key",
|
|
2819
|
+
"hasDynamicHelp": false,
|
|
2820
|
+
"multiple": false,
|
|
2821
|
+
"type": "option"
|
|
2822
|
+
},
|
|
2823
|
+
"private-key-file": {
|
|
2824
|
+
"description": "Path to a file that holds the base64 PKCS#8 X25519 private key for an encrypted MJDB envelope",
|
|
2825
|
+
"name": "private-key-file",
|
|
2503
2826
|
"hasDynamicHelp": false,
|
|
2504
2827
|
"multiple": false,
|
|
2505
|
-
"options": [
|
|
2506
|
-
"text",
|
|
2507
|
-
"json",
|
|
2508
|
-
"md"
|
|
2509
|
-
],
|
|
2510
2828
|
"type": "option"
|
|
2511
2829
|
}
|
|
2512
2830
|
},
|
|
2513
2831
|
"hasDynamicHelp": false,
|
|
2514
2832
|
"hiddenAliases": [],
|
|
2515
|
-
"id": "
|
|
2833
|
+
"id": "diag:timeline",
|
|
2516
2834
|
"pluginAlias": "@memberjunction/cli",
|
|
2517
2835
|
"pluginName": "@memberjunction/cli",
|
|
2518
2836
|
"pluginType": "core",
|
|
@@ -2522,8 +2840,8 @@
|
|
|
2522
2840
|
"relativePath": [
|
|
2523
2841
|
"dist",
|
|
2524
2842
|
"commands",
|
|
2525
|
-
"
|
|
2526
|
-
"
|
|
2843
|
+
"diag",
|
|
2844
|
+
"timeline.js"
|
|
2527
2845
|
]
|
|
2528
2846
|
},
|
|
2529
2847
|
"doctor": {
|
|
@@ -2824,7 +3142,7 @@
|
|
|
2824
3142
|
"migrate": {
|
|
2825
3143
|
"aliases": [],
|
|
2826
3144
|
"args": {},
|
|
2827
|
-
"description": "Migrate MemberJunction database to latest version. Open App migrates also run the core metadata-heal procs (same work as R__RefreshMetadata) scoped to the app schema, on SQL Server and PostgreSQL.",
|
|
3145
|
+
"description": "Migrate MemberJunction database to latest version. Open App migrates also run the core metadata-heal procs (same work as R__RefreshMetadata) scoped to the app schema, on SQL Server and PostgreSQL. Each database request may run for up to 30 minutes by default; set MJ_MIGRATION_REQUEST_TIMEOUT (milliseconds) or dbRequestTimeout in mj.config.cjs to change it.",
|
|
2828
3146
|
"examples": [
|
|
2829
3147
|
"<%= config.bin %> <%= command.id %>\n",
|
|
2830
3148
|
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --dir ./migrations/v1\n",
|
|
@@ -2995,84 +3313,6 @@
|
|
|
2995
3313
|
"usage.js"
|
|
2996
3314
|
]
|
|
2997
3315
|
},
|
|
2998
|
-
"plugin:add": {
|
|
2999
|
-
"aliases": [],
|
|
3000
|
-
"args": {
|
|
3001
|
-
"package": {
|
|
3002
|
-
"description": "Plugin entry-point specifier (package name, subpath, or relative path)",
|
|
3003
|
-
"name": "package",
|
|
3004
|
-
"required": true
|
|
3005
|
-
}
|
|
3006
|
-
},
|
|
3007
|
-
"description": "Register a CLI plugin package in mj-cli-plugins.json so `mj` loads it at startup.",
|
|
3008
|
-
"examples": [
|
|
3009
|
-
"<%= config.bin %> <%= command.id %> @my-org/mj-plugin/plugins",
|
|
3010
|
-
"<%= config.bin %> <%= command.id %> ./local-plugins/my-tool"
|
|
3011
|
-
],
|
|
3012
|
-
"flags": {
|
|
3013
|
-
"format": {
|
|
3014
|
-
"description": "Output format",
|
|
3015
|
-
"name": "format",
|
|
3016
|
-
"default": "text",
|
|
3017
|
-
"hasDynamicHelp": false,
|
|
3018
|
-
"multiple": false,
|
|
3019
|
-
"options": [
|
|
3020
|
-
"text",
|
|
3021
|
-
"json"
|
|
3022
|
-
],
|
|
3023
|
-
"type": "option"
|
|
3024
|
-
}
|
|
3025
|
-
},
|
|
3026
|
-
"hasDynamicHelp": false,
|
|
3027
|
-
"hiddenAliases": [],
|
|
3028
|
-
"id": "plugin:add",
|
|
3029
|
-
"pluginAlias": "@memberjunction/cli",
|
|
3030
|
-
"pluginName": "@memberjunction/cli",
|
|
3031
|
-
"pluginType": "core",
|
|
3032
|
-
"strict": true,
|
|
3033
|
-
"enableJsonFlag": false,
|
|
3034
|
-
"isESM": true,
|
|
3035
|
-
"relativePath": [
|
|
3036
|
-
"dist",
|
|
3037
|
-
"commands",
|
|
3038
|
-
"plugin",
|
|
3039
|
-
"add.js"
|
|
3040
|
-
]
|
|
3041
|
-
},
|
|
3042
|
-
"plugin:usage": {
|
|
3043
|
-
"aliases": [],
|
|
3044
|
-
"args": {},
|
|
3045
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj plugin` command.",
|
|
3046
|
-
"flags": {
|
|
3047
|
-
"format": {
|
|
3048
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
3049
|
-
"name": "format",
|
|
3050
|
-
"hasDynamicHelp": false,
|
|
3051
|
-
"multiple": false,
|
|
3052
|
-
"options": [
|
|
3053
|
-
"text",
|
|
3054
|
-
"json",
|
|
3055
|
-
"md"
|
|
3056
|
-
],
|
|
3057
|
-
"type": "option"
|
|
3058
|
-
}
|
|
3059
|
-
},
|
|
3060
|
-
"hasDynamicHelp": false,
|
|
3061
|
-
"hiddenAliases": [],
|
|
3062
|
-
"id": "plugin:usage",
|
|
3063
|
-
"pluginAlias": "@memberjunction/cli",
|
|
3064
|
-
"pluginName": "@memberjunction/cli",
|
|
3065
|
-
"pluginType": "core",
|
|
3066
|
-
"strict": true,
|
|
3067
|
-
"enableJsonFlag": false,
|
|
3068
|
-
"isESM": true,
|
|
3069
|
-
"relativePath": [
|
|
3070
|
-
"dist",
|
|
3071
|
-
"commands",
|
|
3072
|
-
"plugin",
|
|
3073
|
-
"usage.js"
|
|
3074
|
-
]
|
|
3075
|
-
},
|
|
3076
3316
|
"install:claude": {
|
|
3077
3317
|
"aliases": [],
|
|
3078
3318
|
"args": {},
|
|
@@ -3341,6 +3581,84 @@
|
|
|
3341
3581
|
"usage.js"
|
|
3342
3582
|
]
|
|
3343
3583
|
},
|
|
3584
|
+
"plugin:add": {
|
|
3585
|
+
"aliases": [],
|
|
3586
|
+
"args": {
|
|
3587
|
+
"package": {
|
|
3588
|
+
"description": "Plugin entry-point specifier (package name, subpath, or relative path)",
|
|
3589
|
+
"name": "package",
|
|
3590
|
+
"required": true
|
|
3591
|
+
}
|
|
3592
|
+
},
|
|
3593
|
+
"description": "Register a CLI plugin package in mj-cli-plugins.json so `mj` loads it at startup.",
|
|
3594
|
+
"examples": [
|
|
3595
|
+
"<%= config.bin %> <%= command.id %> @my-org/mj-plugin/plugins",
|
|
3596
|
+
"<%= config.bin %> <%= command.id %> ./local-plugins/my-tool"
|
|
3597
|
+
],
|
|
3598
|
+
"flags": {
|
|
3599
|
+
"format": {
|
|
3600
|
+
"description": "Output format",
|
|
3601
|
+
"name": "format",
|
|
3602
|
+
"default": "text",
|
|
3603
|
+
"hasDynamicHelp": false,
|
|
3604
|
+
"multiple": false,
|
|
3605
|
+
"options": [
|
|
3606
|
+
"text",
|
|
3607
|
+
"json"
|
|
3608
|
+
],
|
|
3609
|
+
"type": "option"
|
|
3610
|
+
}
|
|
3611
|
+
},
|
|
3612
|
+
"hasDynamicHelp": false,
|
|
3613
|
+
"hiddenAliases": [],
|
|
3614
|
+
"id": "plugin:add",
|
|
3615
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3616
|
+
"pluginName": "@memberjunction/cli",
|
|
3617
|
+
"pluginType": "core",
|
|
3618
|
+
"strict": true,
|
|
3619
|
+
"enableJsonFlag": false,
|
|
3620
|
+
"isESM": true,
|
|
3621
|
+
"relativePath": [
|
|
3622
|
+
"dist",
|
|
3623
|
+
"commands",
|
|
3624
|
+
"plugin",
|
|
3625
|
+
"add.js"
|
|
3626
|
+
]
|
|
3627
|
+
},
|
|
3628
|
+
"plugin:usage": {
|
|
3629
|
+
"aliases": [],
|
|
3630
|
+
"args": {},
|
|
3631
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj plugin` command.",
|
|
3632
|
+
"flags": {
|
|
3633
|
+
"format": {
|
|
3634
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
3635
|
+
"name": "format",
|
|
3636
|
+
"hasDynamicHelp": false,
|
|
3637
|
+
"multiple": false,
|
|
3638
|
+
"options": [
|
|
3639
|
+
"text",
|
|
3640
|
+
"json",
|
|
3641
|
+
"md"
|
|
3642
|
+
],
|
|
3643
|
+
"type": "option"
|
|
3644
|
+
}
|
|
3645
|
+
},
|
|
3646
|
+
"hasDynamicHelp": false,
|
|
3647
|
+
"hiddenAliases": [],
|
|
3648
|
+
"id": "plugin:usage",
|
|
3649
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3650
|
+
"pluginName": "@memberjunction/cli",
|
|
3651
|
+
"pluginType": "core",
|
|
3652
|
+
"strict": true,
|
|
3653
|
+
"enableJsonFlag": false,
|
|
3654
|
+
"isESM": true,
|
|
3655
|
+
"relativePath": [
|
|
3656
|
+
"dist",
|
|
3657
|
+
"commands",
|
|
3658
|
+
"plugin",
|
|
3659
|
+
"usage.js"
|
|
3660
|
+
]
|
|
3661
|
+
},
|
|
3344
3662
|
"query:refresh": {
|
|
3345
3663
|
"aliases": [],
|
|
3346
3664
|
"args": {},
|
|
@@ -6463,6 +6781,25 @@
|
|
|
6463
6781
|
"hasDynamicHelp": false,
|
|
6464
6782
|
"multiple": false,
|
|
6465
6783
|
"type": "option"
|
|
6784
|
+
},
|
|
6785
|
+
"shard": {
|
|
6786
|
+
"description": "Deterministic shard specification (<index>/<total>, 1-based, e.g. --shard=1/3) for partitioning suite execution across isolated parallel worker processes using duration-aware LPT balancing.",
|
|
6787
|
+
"name": "shard",
|
|
6788
|
+
"hasDynamicHelp": false,
|
|
6789
|
+
"multiple": false,
|
|
6790
|
+
"type": "option"
|
|
6791
|
+
},
|
|
6792
|
+
"transport": {
|
|
6793
|
+
"description": "Filter suite tests by transport layer (server, client, or all).",
|
|
6794
|
+
"name": "transport",
|
|
6795
|
+
"hasDynamicHelp": false,
|
|
6796
|
+
"multiple": false,
|
|
6797
|
+
"options": [
|
|
6798
|
+
"server",
|
|
6799
|
+
"client",
|
|
6800
|
+
"all"
|
|
6801
|
+
],
|
|
6802
|
+
"type": "option"
|
|
6466
6803
|
}
|
|
6467
6804
|
},
|
|
6468
6805
|
"hasDynamicHelp": false,
|
|
@@ -8366,5 +8703,5 @@
|
|
|
8366
8703
|
]
|
|
8367
8704
|
}
|
|
8368
8705
|
},
|
|
8369
|
-
"version": "6.2.0-edge.
|
|
8706
|
+
"version": "6.2.0-edge.8"
|
|
8370
8707
|
}
|