@memberjunction/cli 2.120.0 → 2.122.0
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/README.md +41 -0
- package/bin/dev.cmd +2 -2
- package/bin/run.cmd +3 -3
- package/dist/commands/dbdoc/export-sample-queries.d.ts +18 -0
- package/dist/commands/dbdoc/export-sample-queries.js +120 -0
- package/dist/commands/sync/push.js +1 -0
- package/oclif.manifest.json +610 -502
- package/package.json +8 -8
package/oclif.manifest.json
CHANGED
|
@@ -22,38 +22,6 @@
|
|
|
22
22
|
"index.js"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
-
"clean": {
|
|
26
|
-
"aliases": [],
|
|
27
|
-
"args": {},
|
|
28
|
-
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
29
|
-
"examples": [
|
|
30
|
-
"<%= config.bin %> <%= command.id %>\n"
|
|
31
|
-
],
|
|
32
|
-
"flags": {
|
|
33
|
-
"verbose": {
|
|
34
|
-
"char": "v",
|
|
35
|
-
"description": "Enable additional logging",
|
|
36
|
-
"name": "verbose",
|
|
37
|
-
"allowNo": false,
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"hasDynamicHelp": false,
|
|
42
|
-
"hiddenAliases": [],
|
|
43
|
-
"id": "clean",
|
|
44
|
-
"pluginAlias": "@memberjunction/cli",
|
|
45
|
-
"pluginName": "@memberjunction/cli",
|
|
46
|
-
"pluginType": "core",
|
|
47
|
-
"strict": true,
|
|
48
|
-
"enableJsonFlag": false,
|
|
49
|
-
"isESM": false,
|
|
50
|
-
"relativePath": [
|
|
51
|
-
"dist",
|
|
52
|
-
"commands",
|
|
53
|
-
"clean",
|
|
54
|
-
"index.js"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
25
|
"bump": {
|
|
58
26
|
"aliases": [],
|
|
59
27
|
"args": {},
|
|
@@ -126,6 +94,38 @@
|
|
|
126
94
|
"index.js"
|
|
127
95
|
]
|
|
128
96
|
},
|
|
97
|
+
"clean": {
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"args": {},
|
|
100
|
+
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
101
|
+
"examples": [
|
|
102
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
103
|
+
],
|
|
104
|
+
"flags": {
|
|
105
|
+
"verbose": {
|
|
106
|
+
"char": "v",
|
|
107
|
+
"description": "Enable additional logging",
|
|
108
|
+
"name": "verbose",
|
|
109
|
+
"allowNo": false,
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"hasDynamicHelp": false,
|
|
114
|
+
"hiddenAliases": [],
|
|
115
|
+
"id": "clean",
|
|
116
|
+
"pluginAlias": "@memberjunction/cli",
|
|
117
|
+
"pluginName": "@memberjunction/cli",
|
|
118
|
+
"pluginType": "core",
|
|
119
|
+
"strict": true,
|
|
120
|
+
"enableJsonFlag": false,
|
|
121
|
+
"isESM": false,
|
|
122
|
+
"relativePath": [
|
|
123
|
+
"dist",
|
|
124
|
+
"commands",
|
|
125
|
+
"clean",
|
|
126
|
+
"index.js"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
129
|
"codegen": {
|
|
130
130
|
"aliases": [],
|
|
131
131
|
"args": {},
|
|
@@ -157,30 +157,57 @@
|
|
|
157
157
|
"index.js"
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
|
-
"
|
|
160
|
+
"install": {
|
|
161
161
|
"aliases": [],
|
|
162
162
|
"args": {},
|
|
163
|
-
"description": "
|
|
163
|
+
"description": "Install MemberJunction",
|
|
164
164
|
"examples": [
|
|
165
|
-
"<%= config.bin %> <%= command.id
|
|
166
|
-
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
167
|
-
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
165
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
168
166
|
],
|
|
169
167
|
"flags": {
|
|
170
|
-
"
|
|
171
|
-
"char": "
|
|
172
|
-
"description": "
|
|
173
|
-
"name": "
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
168
|
+
"verbose": {
|
|
169
|
+
"char": "v",
|
|
170
|
+
"description": "Enable additional logging",
|
|
171
|
+
"name": "verbose",
|
|
172
|
+
"allowNo": false,
|
|
173
|
+
"type": "boolean"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"hasDynamicHelp": false,
|
|
177
|
+
"hiddenAliases": [],
|
|
178
|
+
"id": "install",
|
|
179
|
+
"pluginAlias": "@memberjunction/cli",
|
|
180
|
+
"pluginName": "@memberjunction/cli",
|
|
181
|
+
"pluginType": "core",
|
|
182
|
+
"strict": true,
|
|
183
|
+
"enableJsonFlag": false,
|
|
184
|
+
"isESM": false,
|
|
185
|
+
"relativePath": [
|
|
186
|
+
"dist",
|
|
187
|
+
"commands",
|
|
188
|
+
"install",
|
|
189
|
+
"index.js"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"migrate": {
|
|
193
|
+
"aliases": [],
|
|
194
|
+
"args": {},
|
|
195
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
196
|
+
"examples": [
|
|
197
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
198
|
+
],
|
|
199
|
+
"flags": {
|
|
200
|
+
"verbose": {
|
|
201
|
+
"char": "v",
|
|
202
|
+
"description": "Enable additional logging",
|
|
203
|
+
"name": "verbose",
|
|
204
|
+
"allowNo": false,
|
|
205
|
+
"type": "boolean"
|
|
178
206
|
},
|
|
179
|
-
"
|
|
180
|
-
"char": "
|
|
181
|
-
"description": "
|
|
182
|
-
"name": "
|
|
183
|
-
"default": "./config.json",
|
|
207
|
+
"tag": {
|
|
208
|
+
"char": "t",
|
|
209
|
+
"description": "Version tag to use for running remote migrations",
|
|
210
|
+
"name": "tag",
|
|
184
211
|
"hasDynamicHelp": false,
|
|
185
212
|
"multiple": false,
|
|
186
213
|
"type": "option"
|
|
@@ -188,7 +215,7 @@
|
|
|
188
215
|
},
|
|
189
216
|
"hasDynamicHelp": false,
|
|
190
217
|
"hiddenAliases": [],
|
|
191
|
-
"id": "
|
|
218
|
+
"id": "migrate",
|
|
192
219
|
"pluginAlias": "@memberjunction/cli",
|
|
193
220
|
"pluginName": "@memberjunction/cli",
|
|
194
221
|
"pluginType": "core",
|
|
@@ -198,100 +225,64 @@
|
|
|
198
225
|
"relativePath": [
|
|
199
226
|
"dist",
|
|
200
227
|
"commands",
|
|
201
|
-
"
|
|
202
|
-
"
|
|
228
|
+
"migrate",
|
|
229
|
+
"index.js"
|
|
203
230
|
]
|
|
204
231
|
},
|
|
205
|
-
"
|
|
232
|
+
"sync:file-reset": {
|
|
206
233
|
"aliases": [],
|
|
207
234
|
"args": {},
|
|
208
|
-
"description": "
|
|
235
|
+
"description": "Reset file metadata sections",
|
|
209
236
|
"examples": [
|
|
210
|
-
"<%= config.bin %> <%= command.id %>
|
|
211
|
-
"<%= config.bin %> <%= command.id %> --
|
|
212
|
-
"<%= config.bin %> <%= command.id %> --
|
|
213
|
-
"<%= config.bin %> <%= command.id %> --
|
|
214
|
-
"<%= config.bin %> <%= command.id %> --csv",
|
|
215
|
-
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
216
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
237
|
+
"<%= config.bin %> <%= command.id %>",
|
|
238
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
239
|
+
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
240
|
+
"<%= config.bin %> <%= command.id %> --all"
|
|
217
241
|
],
|
|
218
242
|
"flags": {
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"name": "state-file",
|
|
243
|
+
"dir": {
|
|
244
|
+
"description": "Specific entity directory to reset",
|
|
245
|
+
"name": "dir",
|
|
223
246
|
"hasDynamicHelp": false,
|
|
224
247
|
"multiple": false,
|
|
225
248
|
"type": "option"
|
|
226
249
|
},
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"name": "output-dir",
|
|
250
|
+
"sections": {
|
|
251
|
+
"description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
|
|
252
|
+
"name": "sections",
|
|
231
253
|
"hasDynamicHelp": false,
|
|
232
254
|
"multiple": false,
|
|
233
255
|
"type": "option"
|
|
234
256
|
},
|
|
235
|
-
"
|
|
236
|
-
"description": "
|
|
237
|
-
"name": "
|
|
238
|
-
"allowNo": false,
|
|
239
|
-
"type": "boolean"
|
|
240
|
-
},
|
|
241
|
-
"markdown": {
|
|
242
|
-
"description": "Generate Markdown documentation",
|
|
243
|
-
"name": "markdown",
|
|
244
|
-
"allowNo": false,
|
|
245
|
-
"type": "boolean"
|
|
246
|
-
},
|
|
247
|
-
"html": {
|
|
248
|
-
"description": "Generate interactive HTML documentation",
|
|
249
|
-
"name": "html",
|
|
250
|
-
"allowNo": false,
|
|
251
|
-
"type": "boolean"
|
|
252
|
-
},
|
|
253
|
-
"csv": {
|
|
254
|
-
"description": "Generate CSV exports (tables and columns)",
|
|
255
|
-
"name": "csv",
|
|
256
|
-
"allowNo": false,
|
|
257
|
-
"type": "boolean"
|
|
258
|
-
},
|
|
259
|
-
"mermaid": {
|
|
260
|
-
"description": "Generate Mermaid ERD diagram files",
|
|
261
|
-
"name": "mermaid",
|
|
257
|
+
"all": {
|
|
258
|
+
"description": "Reset all metadata sections",
|
|
259
|
+
"name": "all",
|
|
262
260
|
"allowNo": false,
|
|
263
261
|
"type": "boolean"
|
|
264
262
|
},
|
|
265
|
-
"
|
|
266
|
-
"description": "
|
|
267
|
-
"name": "
|
|
263
|
+
"dry-run": {
|
|
264
|
+
"description": "Show what would be reset without actually resetting",
|
|
265
|
+
"name": "dry-run",
|
|
268
266
|
"allowNo": false,
|
|
269
267
|
"type": "boolean"
|
|
270
268
|
},
|
|
271
|
-
"
|
|
272
|
-
"description": "
|
|
273
|
-
"name": "
|
|
269
|
+
"force": {
|
|
270
|
+
"description": "Skip confirmation prompts",
|
|
271
|
+
"name": "force",
|
|
274
272
|
"allowNo": false,
|
|
275
273
|
"type": "boolean"
|
|
276
274
|
},
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
275
|
+
"verbose": {
|
|
276
|
+
"char": "v",
|
|
277
|
+
"description": "Show detailed output",
|
|
278
|
+
"name": "verbose",
|
|
280
279
|
"allowNo": false,
|
|
281
280
|
"type": "boolean"
|
|
282
|
-
},
|
|
283
|
-
"confidence-threshold": {
|
|
284
|
-
"description": "Minimum confidence threshold",
|
|
285
|
-
"name": "confidence-threshold",
|
|
286
|
-
"default": "0",
|
|
287
|
-
"hasDynamicHelp": false,
|
|
288
|
-
"multiple": false,
|
|
289
|
-
"type": "option"
|
|
290
281
|
}
|
|
291
282
|
},
|
|
292
283
|
"hasDynamicHelp": false,
|
|
293
284
|
"hiddenAliases": [],
|
|
294
|
-
"id": "
|
|
285
|
+
"id": "sync:file-reset",
|
|
295
286
|
"pluginAlias": "@memberjunction/cli",
|
|
296
287
|
"pluginName": "@memberjunction/cli",
|
|
297
288
|
"pluginType": "core",
|
|
@@ -301,111 +292,21 @@
|
|
|
301
292
|
"relativePath": [
|
|
302
293
|
"dist",
|
|
303
294
|
"commands",
|
|
304
|
-
"
|
|
305
|
-
"
|
|
295
|
+
"sync",
|
|
296
|
+
"file-reset.js"
|
|
306
297
|
]
|
|
307
298
|
},
|
|
308
|
-
"
|
|
299
|
+
"sync:init": {
|
|
309
300
|
"aliases": [],
|
|
310
301
|
"args": {},
|
|
311
|
-
"description": "
|
|
302
|
+
"description": "Initialize a directory for metadata synchronization",
|
|
312
303
|
"examples": [
|
|
313
|
-
"<%= config.bin %> <%= command.id %>
|
|
314
|
-
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
315
|
-
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
316
|
-
],
|
|
317
|
-
"flags": {
|
|
318
|
-
"from-state": {
|
|
319
|
-
"description": "Path to existing state.json file from previous analysis",
|
|
320
|
-
"name": "from-state",
|
|
321
|
-
"required": true,
|
|
322
|
-
"hasDynamicHelp": false,
|
|
323
|
-
"multiple": false,
|
|
324
|
-
"type": "option"
|
|
325
|
-
},
|
|
326
|
-
"output-dir": {
|
|
327
|
-
"description": "Output directory for generated queries",
|
|
328
|
-
"name": "output-dir",
|
|
329
|
-
"required": false,
|
|
330
|
-
"hasDynamicHelp": false,
|
|
331
|
-
"multiple": false,
|
|
332
|
-
"type": "option"
|
|
333
|
-
},
|
|
334
|
-
"config": {
|
|
335
|
-
"char": "c",
|
|
336
|
-
"description": "Path to config file (for database connection and AI settings)",
|
|
337
|
-
"name": "config",
|
|
338
|
-
"default": "./config.json",
|
|
339
|
-
"hasDynamicHelp": false,
|
|
340
|
-
"multiple": false,
|
|
341
|
-
"type": "option"
|
|
342
|
-
},
|
|
343
|
-
"queries-per-table": {
|
|
344
|
-
"description": "Number of queries to generate per table",
|
|
345
|
-
"name": "queries-per-table",
|
|
346
|
-
"required": false,
|
|
347
|
-
"hasDynamicHelp": false,
|
|
348
|
-
"multiple": false,
|
|
349
|
-
"type": "option"
|
|
350
|
-
},
|
|
351
|
-
"max-execution-time": {
|
|
352
|
-
"description": "Maximum execution time for query validation (ms)",
|
|
353
|
-
"name": "max-execution-time",
|
|
354
|
-
"required": false,
|
|
355
|
-
"hasDynamicHelp": false,
|
|
356
|
-
"multiple": false,
|
|
357
|
-
"type": "option"
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
"hasDynamicHelp": false,
|
|
361
|
-
"hiddenAliases": [],
|
|
362
|
-
"id": "dbdoc:generate-queries",
|
|
363
|
-
"pluginAlias": "@memberjunction/cli",
|
|
364
|
-
"pluginName": "@memberjunction/cli",
|
|
365
|
-
"pluginType": "core",
|
|
366
|
-
"strict": true,
|
|
367
|
-
"enableJsonFlag": false,
|
|
368
|
-
"isESM": false,
|
|
369
|
-
"relativePath": [
|
|
370
|
-
"dist",
|
|
371
|
-
"commands",
|
|
372
|
-
"dbdoc",
|
|
373
|
-
"generate-queries.js"
|
|
374
|
-
]
|
|
375
|
-
},
|
|
376
|
-
"dbdoc": {
|
|
377
|
-
"aliases": [],
|
|
378
|
-
"args": {},
|
|
379
|
-
"description": "AI-powered database documentation generator",
|
|
380
|
-
"flags": {},
|
|
381
|
-
"hasDynamicHelp": false,
|
|
382
|
-
"hidden": false,
|
|
383
|
-
"hiddenAliases": [],
|
|
384
|
-
"id": "dbdoc",
|
|
385
|
-
"pluginAlias": "@memberjunction/cli",
|
|
386
|
-
"pluginName": "@memberjunction/cli",
|
|
387
|
-
"pluginType": "core",
|
|
388
|
-
"strict": true,
|
|
389
|
-
"enableJsonFlag": false,
|
|
390
|
-
"isESM": false,
|
|
391
|
-
"relativePath": [
|
|
392
|
-
"dist",
|
|
393
|
-
"commands",
|
|
394
|
-
"dbdoc",
|
|
395
|
-
"index.js"
|
|
396
|
-
]
|
|
397
|
-
},
|
|
398
|
-
"dbdoc:init": {
|
|
399
|
-
"aliases": [],
|
|
400
|
-
"args": {},
|
|
401
|
-
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
402
|
-
"examples": [
|
|
403
|
-
"<%= config.bin %> <%= command.id %>"
|
|
304
|
+
"<%= config.bin %> <%= command.id %>"
|
|
404
305
|
],
|
|
405
306
|
"flags": {},
|
|
406
307
|
"hasDynamicHelp": false,
|
|
407
308
|
"hiddenAliases": [],
|
|
408
|
-
"id": "
|
|
309
|
+
"id": "sync:init",
|
|
409
310
|
"pluginAlias": "@memberjunction/cli",
|
|
410
311
|
"pluginName": "@memberjunction/cli",
|
|
411
312
|
"pluginType": "core",
|
|
@@ -415,30 +316,127 @@
|
|
|
415
316
|
"relativePath": [
|
|
416
317
|
"dist",
|
|
417
318
|
"commands",
|
|
418
|
-
"
|
|
319
|
+
"sync",
|
|
419
320
|
"init.js"
|
|
420
321
|
]
|
|
421
322
|
},
|
|
422
|
-
"
|
|
323
|
+
"sync:pull": {
|
|
423
324
|
"aliases": [],
|
|
424
325
|
"args": {},
|
|
425
|
-
"description": "
|
|
326
|
+
"description": "Pull metadata from database to local files",
|
|
426
327
|
"examples": [
|
|
427
|
-
"<%= config.bin %> <%= command.id %>",
|
|
428
|
-
"<%= config.bin %> <%= command.id %> --
|
|
328
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
|
|
329
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
|
|
330
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Agents\" --merge-strategy=overwrite",
|
|
331
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
|
|
332
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
333
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
429
334
|
],
|
|
430
335
|
"flags": {
|
|
431
|
-
"
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
"
|
|
336
|
+
"entity": {
|
|
337
|
+
"description": "Entity name to pull",
|
|
338
|
+
"name": "entity",
|
|
339
|
+
"required": true,
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"type": "option"
|
|
343
|
+
},
|
|
344
|
+
"filter": {
|
|
345
|
+
"description": "Additional filter for pulling specific records",
|
|
346
|
+
"name": "filter",
|
|
347
|
+
"hasDynamicHelp": false,
|
|
348
|
+
"multiple": false,
|
|
349
|
+
"type": "option"
|
|
350
|
+
},
|
|
351
|
+
"dry-run": {
|
|
352
|
+
"description": "Show what would be pulled without actually pulling",
|
|
353
|
+
"name": "dry-run",
|
|
435
354
|
"allowNo": false,
|
|
436
355
|
"type": "boolean"
|
|
356
|
+
},
|
|
357
|
+
"multi-file": {
|
|
358
|
+
"description": "Create a single file with multiple records (provide filename)",
|
|
359
|
+
"name": "multi-file",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"type": "option"
|
|
363
|
+
},
|
|
364
|
+
"verbose": {
|
|
365
|
+
"char": "v",
|
|
366
|
+
"description": "Show detailed output",
|
|
367
|
+
"name": "verbose",
|
|
368
|
+
"allowNo": false,
|
|
369
|
+
"type": "boolean"
|
|
370
|
+
},
|
|
371
|
+
"no-validate": {
|
|
372
|
+
"description": "Skip validation before pull",
|
|
373
|
+
"name": "no-validate",
|
|
374
|
+
"allowNo": false,
|
|
375
|
+
"type": "boolean"
|
|
376
|
+
},
|
|
377
|
+
"update-existing": {
|
|
378
|
+
"description": "Update existing records during pull",
|
|
379
|
+
"name": "update-existing",
|
|
380
|
+
"allowNo": false,
|
|
381
|
+
"type": "boolean"
|
|
382
|
+
},
|
|
383
|
+
"create-new": {
|
|
384
|
+
"description": "Create new files for records not found locally",
|
|
385
|
+
"name": "create-new",
|
|
386
|
+
"allowNo": false,
|
|
387
|
+
"type": "boolean"
|
|
388
|
+
},
|
|
389
|
+
"backup-before-update": {
|
|
390
|
+
"description": "Create backups before updating files",
|
|
391
|
+
"name": "backup-before-update",
|
|
392
|
+
"allowNo": false,
|
|
393
|
+
"type": "boolean"
|
|
394
|
+
},
|
|
395
|
+
"merge-strategy": {
|
|
396
|
+
"description": "Merge strategy for updates",
|
|
397
|
+
"name": "merge-strategy",
|
|
398
|
+
"default": "merge",
|
|
399
|
+
"hasDynamicHelp": false,
|
|
400
|
+
"multiple": false,
|
|
401
|
+
"options": [
|
|
402
|
+
"merge",
|
|
403
|
+
"overwrite",
|
|
404
|
+
"skip"
|
|
405
|
+
],
|
|
406
|
+
"type": "option"
|
|
407
|
+
},
|
|
408
|
+
"backup-directory": {
|
|
409
|
+
"description": "Custom backup directory (default: .backups)",
|
|
410
|
+
"name": "backup-directory",
|
|
411
|
+
"hasDynamicHelp": false,
|
|
412
|
+
"multiple": false,
|
|
413
|
+
"type": "option"
|
|
414
|
+
},
|
|
415
|
+
"preserve-fields": {
|
|
416
|
+
"description": "Comma-separated list of fields to preserve during updates",
|
|
417
|
+
"name": "preserve-fields",
|
|
418
|
+
"hasDynamicHelp": false,
|
|
419
|
+
"multiple": true,
|
|
420
|
+
"type": "option"
|
|
421
|
+
},
|
|
422
|
+
"exclude-fields": {
|
|
423
|
+
"description": "Comma-separated list of fields to exclude from pull",
|
|
424
|
+
"name": "exclude-fields",
|
|
425
|
+
"hasDynamicHelp": false,
|
|
426
|
+
"multiple": true,
|
|
427
|
+
"type": "option"
|
|
428
|
+
},
|
|
429
|
+
"target-dir": {
|
|
430
|
+
"description": "Specific target directory (overrides auto-discovery)",
|
|
431
|
+
"name": "target-dir",
|
|
432
|
+
"hasDynamicHelp": false,
|
|
433
|
+
"multiple": false,
|
|
434
|
+
"type": "option"
|
|
437
435
|
}
|
|
438
436
|
},
|
|
439
437
|
"hasDynamicHelp": false,
|
|
440
438
|
"hiddenAliases": [],
|
|
441
|
-
"id": "
|
|
439
|
+
"id": "sync:pull",
|
|
442
440
|
"pluginAlias": "@memberjunction/cli",
|
|
443
441
|
"pluginName": "@memberjunction/cli",
|
|
444
442
|
"pluginType": "core",
|
|
@@ -448,23 +446,71 @@
|
|
|
448
446
|
"relativePath": [
|
|
449
447
|
"dist",
|
|
450
448
|
"commands",
|
|
451
|
-
"
|
|
452
|
-
"
|
|
449
|
+
"sync",
|
|
450
|
+
"pull.js"
|
|
453
451
|
]
|
|
454
452
|
},
|
|
455
|
-
"
|
|
453
|
+
"sync:push": {
|
|
456
454
|
"aliases": [],
|
|
457
455
|
"args": {},
|
|
458
|
-
"description": "
|
|
456
|
+
"description": "Push local file changes to the database",
|
|
459
457
|
"examples": [
|
|
460
458
|
"<%= config.bin %> <%= command.id %>",
|
|
461
|
-
"<%= config.bin %> <%= command.id %> --
|
|
459
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
460
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
461
|
+
"<%= config.bin %> <%= command.id %> --ci"
|
|
462
462
|
],
|
|
463
463
|
"flags": {
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
464
|
+
"dir": {
|
|
465
|
+
"description": "Specific entity directory to push",
|
|
466
|
+
"name": "dir",
|
|
467
|
+
"hasDynamicHelp": false,
|
|
468
|
+
"multiple": false,
|
|
469
|
+
"type": "option"
|
|
470
|
+
},
|
|
471
|
+
"dry-run": {
|
|
472
|
+
"description": "Show what would be pushed without actually pushing",
|
|
473
|
+
"name": "dry-run",
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"ci": {
|
|
478
|
+
"description": "CI mode - no prompts, fail on issues",
|
|
479
|
+
"name": "ci",
|
|
480
|
+
"allowNo": false,
|
|
481
|
+
"type": "boolean"
|
|
482
|
+
},
|
|
483
|
+
"verbose": {
|
|
484
|
+
"char": "v",
|
|
485
|
+
"description": "Show detailed field-level output",
|
|
486
|
+
"name": "verbose",
|
|
487
|
+
"allowNo": false,
|
|
488
|
+
"type": "boolean"
|
|
489
|
+
},
|
|
490
|
+
"no-validate": {
|
|
491
|
+
"description": "Skip validation before push",
|
|
492
|
+
"name": "no-validate",
|
|
493
|
+
"allowNo": false,
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
"parallel-batch-size": {
|
|
497
|
+
"description": "Number of records to process in parallel (default: 10)",
|
|
498
|
+
"name": "parallel-batch-size",
|
|
499
|
+
"default": 10,
|
|
500
|
+
"hasDynamicHelp": false,
|
|
501
|
+
"multiple": false,
|
|
502
|
+
"type": "option"
|
|
503
|
+
},
|
|
504
|
+
"include": {
|
|
505
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
506
|
+
"name": "include",
|
|
507
|
+
"hasDynamicHelp": false,
|
|
508
|
+
"multiple": false,
|
|
509
|
+
"type": "option"
|
|
510
|
+
},
|
|
511
|
+
"exclude": {
|
|
512
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
513
|
+
"name": "exclude",
|
|
468
514
|
"hasDynamicHelp": false,
|
|
469
515
|
"multiple": false,
|
|
470
516
|
"type": "option"
|
|
@@ -472,7 +518,7 @@
|
|
|
472
518
|
},
|
|
473
519
|
"hasDynamicHelp": false,
|
|
474
520
|
"hiddenAliases": [],
|
|
475
|
-
"id": "
|
|
521
|
+
"id": "sync:push",
|
|
476
522
|
"pluginAlias": "@memberjunction/cli",
|
|
477
523
|
"pluginName": "@memberjunction/cli",
|
|
478
524
|
"pluginType": "core",
|
|
@@ -482,29 +528,52 @@
|
|
|
482
528
|
"relativePath": [
|
|
483
529
|
"dist",
|
|
484
530
|
"commands",
|
|
485
|
-
"
|
|
486
|
-
"
|
|
531
|
+
"sync",
|
|
532
|
+
"push.js"
|
|
487
533
|
]
|
|
488
534
|
},
|
|
489
|
-
"
|
|
535
|
+
"sync:status": {
|
|
490
536
|
"aliases": [],
|
|
491
537
|
"args": {},
|
|
492
|
-
"description": "
|
|
538
|
+
"description": "Show status of local files vs database",
|
|
493
539
|
"examples": [
|
|
494
|
-
"<%= config.bin %> <%= command.id
|
|
540
|
+
"<%= config.bin %> <%= command.id %>",
|
|
541
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
542
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
495
543
|
],
|
|
496
544
|
"flags": {
|
|
545
|
+
"dir": {
|
|
546
|
+
"description": "Specific entity directory to check status",
|
|
547
|
+
"name": "dir",
|
|
548
|
+
"hasDynamicHelp": false,
|
|
549
|
+
"multiple": false,
|
|
550
|
+
"type": "option"
|
|
551
|
+
},
|
|
497
552
|
"verbose": {
|
|
498
553
|
"char": "v",
|
|
499
|
-
"description": "
|
|
554
|
+
"description": "Show detailed field-level differences",
|
|
500
555
|
"name": "verbose",
|
|
501
556
|
"allowNo": false,
|
|
502
557
|
"type": "boolean"
|
|
558
|
+
},
|
|
559
|
+
"include": {
|
|
560
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
561
|
+
"name": "include",
|
|
562
|
+
"hasDynamicHelp": false,
|
|
563
|
+
"multiple": false,
|
|
564
|
+
"type": "option"
|
|
565
|
+
},
|
|
566
|
+
"exclude": {
|
|
567
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
568
|
+
"name": "exclude",
|
|
569
|
+
"hasDynamicHelp": false,
|
|
570
|
+
"multiple": false,
|
|
571
|
+
"type": "option"
|
|
503
572
|
}
|
|
504
573
|
},
|
|
505
574
|
"hasDynamicHelp": false,
|
|
506
575
|
"hiddenAliases": [],
|
|
507
|
-
"id": "
|
|
576
|
+
"id": "sync:status",
|
|
508
577
|
"pluginAlias": "@memberjunction/cli",
|
|
509
578
|
"pluginName": "@memberjunction/cli",
|
|
510
579
|
"pluginType": "core",
|
|
@@ -514,29 +583,44 @@
|
|
|
514
583
|
"relativePath": [
|
|
515
584
|
"dist",
|
|
516
585
|
"commands",
|
|
517
|
-
"
|
|
518
|
-
"
|
|
586
|
+
"sync",
|
|
587
|
+
"status.js"
|
|
519
588
|
]
|
|
520
589
|
},
|
|
521
|
-
"
|
|
590
|
+
"sync:validate": {
|
|
522
591
|
"aliases": [],
|
|
523
592
|
"args": {},
|
|
524
|
-
"description": "
|
|
593
|
+
"description": "Validate metadata files",
|
|
525
594
|
"examples": [
|
|
526
|
-
"<%= config.bin %> <%= command.id
|
|
595
|
+
"<%= config.bin %> <%= command.id %>",
|
|
596
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
597
|
+
"<%= config.bin %> <%= command.id %> --save-report",
|
|
598
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
527
599
|
],
|
|
528
600
|
"flags": {
|
|
601
|
+
"dir": {
|
|
602
|
+
"description": "Specific entity directory to validate",
|
|
603
|
+
"name": "dir",
|
|
604
|
+
"hasDynamicHelp": false,
|
|
605
|
+
"multiple": false,
|
|
606
|
+
"type": "option"
|
|
607
|
+
},
|
|
529
608
|
"verbose": {
|
|
530
609
|
"char": "v",
|
|
531
|
-
"description": "
|
|
610
|
+
"description": "Show detailed validation output",
|
|
532
611
|
"name": "verbose",
|
|
533
612
|
"allowNo": false,
|
|
534
613
|
"type": "boolean"
|
|
535
614
|
},
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"
|
|
539
|
-
"
|
|
615
|
+
"save-report": {
|
|
616
|
+
"description": "Save validation report as markdown file",
|
|
617
|
+
"name": "save-report",
|
|
618
|
+
"allowNo": false,
|
|
619
|
+
"type": "boolean"
|
|
620
|
+
},
|
|
621
|
+
"output": {
|
|
622
|
+
"description": "Output file path for validation report (default: validation-report.md)",
|
|
623
|
+
"name": "output",
|
|
540
624
|
"hasDynamicHelp": false,
|
|
541
625
|
"multiple": false,
|
|
542
626
|
"type": "option"
|
|
@@ -544,7 +628,7 @@
|
|
|
544
628
|
},
|
|
545
629
|
"hasDynamicHelp": false,
|
|
546
630
|
"hiddenAliases": [],
|
|
547
|
-
"id": "
|
|
631
|
+
"id": "sync:validate",
|
|
548
632
|
"pluginAlias": "@memberjunction/cli",
|
|
549
633
|
"pluginName": "@memberjunction/cli",
|
|
550
634
|
"pluginType": "core",
|
|
@@ -554,50 +638,38 @@
|
|
|
554
638
|
"relativePath": [
|
|
555
639
|
"dist",
|
|
556
640
|
"commands",
|
|
557
|
-
"
|
|
558
|
-
"
|
|
641
|
+
"sync",
|
|
642
|
+
"validate.js"
|
|
559
643
|
]
|
|
560
644
|
},
|
|
561
|
-
"sync:
|
|
645
|
+
"sync:watch": {
|
|
562
646
|
"aliases": [],
|
|
563
647
|
"args": {},
|
|
564
|
-
"description": "
|
|
648
|
+
"description": "Watch for file changes and sync automatically",
|
|
565
649
|
"examples": [
|
|
566
650
|
"<%= config.bin %> <%= command.id %>",
|
|
567
651
|
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
568
|
-
"<%= config.bin %> <%= command.id %> --
|
|
569
|
-
"<%= config.bin %> <%= command.id %> --
|
|
652
|
+
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
653
|
+
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
570
654
|
],
|
|
571
655
|
"flags": {
|
|
572
656
|
"dir": {
|
|
573
|
-
"description": "Specific entity directory to
|
|
657
|
+
"description": "Specific entity directory to watch",
|
|
574
658
|
"name": "dir",
|
|
575
659
|
"hasDynamicHelp": false,
|
|
576
660
|
"multiple": false,
|
|
577
661
|
"type": "option"
|
|
578
662
|
},
|
|
579
|
-
"
|
|
580
|
-
"description": "
|
|
581
|
-
"name": "
|
|
663
|
+
"debounce": {
|
|
664
|
+
"description": "Debounce delay in milliseconds (default: 500)",
|
|
665
|
+
"name": "debounce",
|
|
582
666
|
"hasDynamicHelp": false,
|
|
583
667
|
"multiple": false,
|
|
584
668
|
"type": "option"
|
|
585
669
|
},
|
|
586
|
-
"
|
|
587
|
-
"description": "
|
|
588
|
-
"name": "
|
|
589
|
-
"allowNo": false,
|
|
590
|
-
"type": "boolean"
|
|
591
|
-
},
|
|
592
|
-
"dry-run": {
|
|
593
|
-
"description": "Show what would be reset without actually resetting",
|
|
594
|
-
"name": "dry-run",
|
|
595
|
-
"allowNo": false,
|
|
596
|
-
"type": "boolean"
|
|
597
|
-
},
|
|
598
|
-
"force": {
|
|
599
|
-
"description": "Skip confirmation prompts",
|
|
600
|
-
"name": "force",
|
|
670
|
+
"no-validate": {
|
|
671
|
+
"description": "Skip validation before sync",
|
|
672
|
+
"name": "no-validate",
|
|
601
673
|
"allowNo": false,
|
|
602
674
|
"type": "boolean"
|
|
603
675
|
},
|
|
@@ -611,7 +683,7 @@
|
|
|
611
683
|
},
|
|
612
684
|
"hasDynamicHelp": false,
|
|
613
685
|
"hiddenAliases": [],
|
|
614
|
-
"id": "sync:
|
|
686
|
+
"id": "sync:watch",
|
|
615
687
|
"pluginAlias": "@memberjunction/cli",
|
|
616
688
|
"pluginName": "@memberjunction/cli",
|
|
617
689
|
"pluginType": "core",
|
|
@@ -622,20 +694,41 @@
|
|
|
622
694
|
"dist",
|
|
623
695
|
"commands",
|
|
624
696
|
"sync",
|
|
625
|
-
"
|
|
697
|
+
"watch.js"
|
|
626
698
|
]
|
|
627
699
|
},
|
|
628
|
-
"
|
|
700
|
+
"dbdoc:analyze": {
|
|
629
701
|
"aliases": [],
|
|
630
702
|
"args": {},
|
|
631
|
-
"description": "
|
|
703
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
632
704
|
"examples": [
|
|
633
|
-
"<%= config.bin %> <%= command.id %>"
|
|
705
|
+
"<%= config.bin %> <%= command.id %>",
|
|
706
|
+
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
707
|
+
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
634
708
|
],
|
|
635
|
-
"flags": {
|
|
709
|
+
"flags": {
|
|
710
|
+
"resume": {
|
|
711
|
+
"char": "r",
|
|
712
|
+
"description": "Resume from an existing state file",
|
|
713
|
+
"name": "resume",
|
|
714
|
+
"required": false,
|
|
715
|
+
"hasDynamicHelp": false,
|
|
716
|
+
"multiple": false,
|
|
717
|
+
"type": "option"
|
|
718
|
+
},
|
|
719
|
+
"config": {
|
|
720
|
+
"char": "c",
|
|
721
|
+
"description": "Path to config file",
|
|
722
|
+
"name": "config",
|
|
723
|
+
"default": "./config.json",
|
|
724
|
+
"hasDynamicHelp": false,
|
|
725
|
+
"multiple": false,
|
|
726
|
+
"type": "option"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
636
729
|
"hasDynamicHelp": false,
|
|
637
730
|
"hiddenAliases": [],
|
|
638
|
-
"id": "
|
|
731
|
+
"id": "dbdoc:analyze",
|
|
639
732
|
"pluginAlias": "@memberjunction/cli",
|
|
640
733
|
"pluginName": "@memberjunction/cli",
|
|
641
734
|
"pluginType": "core",
|
|
@@ -645,119 +738,200 @@
|
|
|
645
738
|
"relativePath": [
|
|
646
739
|
"dist",
|
|
647
740
|
"commands",
|
|
648
|
-
"
|
|
649
|
-
"
|
|
741
|
+
"dbdoc",
|
|
742
|
+
"analyze.js"
|
|
650
743
|
]
|
|
651
744
|
},
|
|
652
|
-
"
|
|
745
|
+
"dbdoc:export-sample-queries": {
|
|
653
746
|
"aliases": [],
|
|
654
747
|
"args": {},
|
|
655
|
-
"description": "
|
|
748
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
656
749
|
"examples": [
|
|
657
|
-
"<%= config.bin %> <%= command.id %> --
|
|
658
|
-
"<%= config.bin %> <%= command.id %> --
|
|
659
|
-
"<%= config.bin %> <%= command.id %> --
|
|
660
|
-
"<%= config.bin %> <%= command.id %> --
|
|
661
|
-
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
662
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
750
|
+
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
751
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
752
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
753
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
663
754
|
],
|
|
664
755
|
"flags": {
|
|
665
|
-
"
|
|
666
|
-
"
|
|
667
|
-
"
|
|
756
|
+
"input": {
|
|
757
|
+
"char": "i",
|
|
758
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
759
|
+
"name": "input",
|
|
668
760
|
"required": true,
|
|
669
761
|
"hasDynamicHelp": false,
|
|
670
762
|
"multiple": false,
|
|
671
763
|
"type": "option"
|
|
672
764
|
},
|
|
673
|
-
"
|
|
674
|
-
"
|
|
675
|
-
"
|
|
765
|
+
"output": {
|
|
766
|
+
"char": "o",
|
|
767
|
+
"description": "Output path for the .queries.json metadata file",
|
|
768
|
+
"name": "output",
|
|
769
|
+
"required": true,
|
|
676
770
|
"hasDynamicHelp": false,
|
|
677
771
|
"multiple": false,
|
|
678
772
|
"type": "option"
|
|
679
773
|
},
|
|
680
|
-
"
|
|
681
|
-
"description": "
|
|
682
|
-
"name": "
|
|
774
|
+
"separate-sql-files": {
|
|
775
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
776
|
+
"name": "separate-sql-files",
|
|
683
777
|
"allowNo": false,
|
|
684
778
|
"type": "boolean"
|
|
685
779
|
},
|
|
686
|
-
"
|
|
687
|
-
"description": "
|
|
688
|
-
"name": "
|
|
780
|
+
"sql-dir": {
|
|
781
|
+
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
782
|
+
"name": "sql-dir",
|
|
783
|
+
"default": "SQL",
|
|
689
784
|
"hasDynamicHelp": false,
|
|
690
785
|
"multiple": false,
|
|
691
786
|
"type": "option"
|
|
692
787
|
},
|
|
693
|
-
"
|
|
694
|
-
"
|
|
695
|
-
"
|
|
696
|
-
"
|
|
697
|
-
"
|
|
698
|
-
"
|
|
788
|
+
"category": {
|
|
789
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
790
|
+
"name": "category",
|
|
791
|
+
"required": false,
|
|
792
|
+
"hasDynamicHelp": false,
|
|
793
|
+
"multiple": false,
|
|
794
|
+
"type": "option"
|
|
699
795
|
},
|
|
700
|
-
"
|
|
701
|
-
"description": "
|
|
702
|
-
"name": "
|
|
703
|
-
"
|
|
704
|
-
"
|
|
796
|
+
"status": {
|
|
797
|
+
"description": "Status to assign to exported queries",
|
|
798
|
+
"name": "status",
|
|
799
|
+
"default": "Pending",
|
|
800
|
+
"hasDynamicHelp": false,
|
|
801
|
+
"multiple": false,
|
|
802
|
+
"options": [
|
|
803
|
+
"Approved",
|
|
804
|
+
"Pending",
|
|
805
|
+
"Rejected",
|
|
806
|
+
"Expired"
|
|
807
|
+
],
|
|
808
|
+
"type": "option"
|
|
705
809
|
},
|
|
706
|
-
"
|
|
707
|
-
"description": "
|
|
708
|
-
"name": "
|
|
810
|
+
"min-confidence": {
|
|
811
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
812
|
+
"name": "min-confidence",
|
|
813
|
+
"default": "0",
|
|
814
|
+
"hasDynamicHelp": false,
|
|
815
|
+
"multiple": false,
|
|
816
|
+
"type": "option"
|
|
817
|
+
},
|
|
818
|
+
"validated-only": {
|
|
819
|
+
"description": "Only export queries that were successfully validated",
|
|
820
|
+
"name": "validated-only",
|
|
709
821
|
"allowNo": false,
|
|
710
822
|
"type": "boolean"
|
|
711
823
|
},
|
|
712
|
-
"
|
|
713
|
-
"description": "
|
|
714
|
-
"name": "
|
|
824
|
+
"append": {
|
|
825
|
+
"description": "Append to existing metadata file instead of overwriting",
|
|
826
|
+
"name": "append",
|
|
715
827
|
"allowNo": false,
|
|
716
828
|
"type": "boolean"
|
|
717
829
|
},
|
|
718
|
-
"
|
|
719
|
-
"description": "
|
|
720
|
-
"name": "
|
|
830
|
+
"include-primary-key": {
|
|
831
|
+
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
832
|
+
"name": "include-primary-key",
|
|
721
833
|
"allowNo": false,
|
|
722
834
|
"type": "boolean"
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"hasDynamicHelp": false,
|
|
838
|
+
"hiddenAliases": [],
|
|
839
|
+
"id": "dbdoc:export-sample-queries",
|
|
840
|
+
"pluginAlias": "@memberjunction/cli",
|
|
841
|
+
"pluginName": "@memberjunction/cli",
|
|
842
|
+
"pluginType": "core",
|
|
843
|
+
"strict": true,
|
|
844
|
+
"enableJsonFlag": false,
|
|
845
|
+
"isESM": false,
|
|
846
|
+
"relativePath": [
|
|
847
|
+
"dist",
|
|
848
|
+
"commands",
|
|
849
|
+
"dbdoc",
|
|
850
|
+
"export-sample-queries.js"
|
|
851
|
+
]
|
|
852
|
+
},
|
|
853
|
+
"dbdoc:export": {
|
|
854
|
+
"aliases": [],
|
|
855
|
+
"args": {},
|
|
856
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
857
|
+
"examples": [
|
|
858
|
+
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
859
|
+
"<%= config.bin %> <%= command.id %> --sql",
|
|
860
|
+
"<%= config.bin %> <%= command.id %> --markdown",
|
|
861
|
+
"<%= config.bin %> <%= command.id %> --html",
|
|
862
|
+
"<%= config.bin %> <%= command.id %> --csv",
|
|
863
|
+
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
864
|
+
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
865
|
+
],
|
|
866
|
+
"flags": {
|
|
867
|
+
"state-file": {
|
|
868
|
+
"char": "s",
|
|
869
|
+
"description": "Path to state JSON file",
|
|
870
|
+
"name": "state-file",
|
|
728
871
|
"hasDynamicHelp": false,
|
|
729
872
|
"multiple": false,
|
|
730
|
-
"options": [
|
|
731
|
-
"merge",
|
|
732
|
-
"overwrite",
|
|
733
|
-
"skip"
|
|
734
|
-
],
|
|
735
873
|
"type": "option"
|
|
736
874
|
},
|
|
737
|
-
"
|
|
738
|
-
"
|
|
739
|
-
"
|
|
875
|
+
"output-dir": {
|
|
876
|
+
"char": "o",
|
|
877
|
+
"description": "Output directory for generated files",
|
|
878
|
+
"name": "output-dir",
|
|
740
879
|
"hasDynamicHelp": false,
|
|
741
880
|
"multiple": false,
|
|
742
881
|
"type": "option"
|
|
743
882
|
},
|
|
744
|
-
"
|
|
745
|
-
"description": "
|
|
746
|
-
"name": "
|
|
747
|
-
"
|
|
748
|
-
"
|
|
749
|
-
|
|
883
|
+
"sql": {
|
|
884
|
+
"description": "Generate SQL script",
|
|
885
|
+
"name": "sql",
|
|
886
|
+
"allowNo": false,
|
|
887
|
+
"type": "boolean"
|
|
888
|
+
},
|
|
889
|
+
"markdown": {
|
|
890
|
+
"description": "Generate Markdown documentation",
|
|
891
|
+
"name": "markdown",
|
|
892
|
+
"allowNo": false,
|
|
893
|
+
"type": "boolean"
|
|
894
|
+
},
|
|
895
|
+
"html": {
|
|
896
|
+
"description": "Generate interactive HTML documentation",
|
|
897
|
+
"name": "html",
|
|
898
|
+
"allowNo": false,
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"csv": {
|
|
902
|
+
"description": "Generate CSV exports (tables and columns)",
|
|
903
|
+
"name": "csv",
|
|
904
|
+
"allowNo": false,
|
|
905
|
+
"type": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"mermaid": {
|
|
908
|
+
"description": "Generate Mermaid ERD diagram files",
|
|
909
|
+
"name": "mermaid",
|
|
910
|
+
"allowNo": false,
|
|
911
|
+
"type": "boolean"
|
|
912
|
+
},
|
|
913
|
+
"report": {
|
|
914
|
+
"description": "Generate analysis report",
|
|
915
|
+
"name": "report",
|
|
916
|
+
"allowNo": false,
|
|
917
|
+
"type": "boolean"
|
|
918
|
+
},
|
|
919
|
+
"apply": {
|
|
920
|
+
"description": "Apply SQL to database",
|
|
921
|
+
"name": "apply",
|
|
922
|
+
"allowNo": false,
|
|
923
|
+
"type": "boolean"
|
|
750
924
|
},
|
|
751
|
-
"
|
|
752
|
-
"description": "
|
|
753
|
-
"name": "
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"type": "option"
|
|
925
|
+
"approved-only": {
|
|
926
|
+
"description": "Only export approved items",
|
|
927
|
+
"name": "approved-only",
|
|
928
|
+
"allowNo": false,
|
|
929
|
+
"type": "boolean"
|
|
757
930
|
},
|
|
758
|
-
"
|
|
759
|
-
"description": "
|
|
760
|
-
"name": "
|
|
931
|
+
"confidence-threshold": {
|
|
932
|
+
"description": "Minimum confidence threshold",
|
|
933
|
+
"name": "confidence-threshold",
|
|
934
|
+
"default": "0",
|
|
761
935
|
"hasDynamicHelp": false,
|
|
762
936
|
"multiple": false,
|
|
763
937
|
"type": "option"
|
|
@@ -765,7 +939,7 @@
|
|
|
765
939
|
},
|
|
766
940
|
"hasDynamicHelp": false,
|
|
767
941
|
"hiddenAliases": [],
|
|
768
|
-
"id": "
|
|
942
|
+
"id": "dbdoc:export",
|
|
769
943
|
"pluginAlias": "@memberjunction/cli",
|
|
770
944
|
"pluginName": "@memberjunction/cli",
|
|
771
945
|
"pluginType": "core",
|
|
@@ -775,71 +949,57 @@
|
|
|
775
949
|
"relativePath": [
|
|
776
950
|
"dist",
|
|
777
951
|
"commands",
|
|
778
|
-
"
|
|
779
|
-
"
|
|
952
|
+
"dbdoc",
|
|
953
|
+
"export.js"
|
|
780
954
|
]
|
|
781
955
|
},
|
|
782
|
-
"
|
|
956
|
+
"dbdoc:generate-queries": {
|
|
783
957
|
"aliases": [],
|
|
784
958
|
"args": {},
|
|
785
|
-
"description": "
|
|
959
|
+
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
786
960
|
"examples": [
|
|
787
|
-
"<%= config.bin %> <%= command.id %>",
|
|
788
|
-
"<%= config.bin %> <%= command.id %> --
|
|
789
|
-
"<%= config.bin %> <%= command.id %> --
|
|
790
|
-
"<%= config.bin %> <%= command.id %> --ci"
|
|
961
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
962
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
963
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
791
964
|
],
|
|
792
965
|
"flags": {
|
|
793
|
-
"
|
|
794
|
-
"description": "
|
|
795
|
-
"name": "
|
|
966
|
+
"from-state": {
|
|
967
|
+
"description": "Path to existing state.json file from previous analysis",
|
|
968
|
+
"name": "from-state",
|
|
969
|
+
"required": true,
|
|
796
970
|
"hasDynamicHelp": false,
|
|
797
971
|
"multiple": false,
|
|
798
972
|
"type": "option"
|
|
799
973
|
},
|
|
800
|
-
"
|
|
801
|
-
"description": "
|
|
802
|
-
"name": "
|
|
803
|
-
"
|
|
804
|
-
"
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
"description": "CI mode - no prompts, fail on issues",
|
|
808
|
-
"name": "ci",
|
|
809
|
-
"allowNo": false,
|
|
810
|
-
"type": "boolean"
|
|
811
|
-
},
|
|
812
|
-
"verbose": {
|
|
813
|
-
"char": "v",
|
|
814
|
-
"description": "Show detailed field-level output",
|
|
815
|
-
"name": "verbose",
|
|
816
|
-
"allowNo": false,
|
|
817
|
-
"type": "boolean"
|
|
818
|
-
},
|
|
819
|
-
"no-validate": {
|
|
820
|
-
"description": "Skip validation before push",
|
|
821
|
-
"name": "no-validate",
|
|
822
|
-
"allowNo": false,
|
|
823
|
-
"type": "boolean"
|
|
974
|
+
"output-dir": {
|
|
975
|
+
"description": "Output directory for generated queries",
|
|
976
|
+
"name": "output-dir",
|
|
977
|
+
"required": false,
|
|
978
|
+
"hasDynamicHelp": false,
|
|
979
|
+
"multiple": false,
|
|
980
|
+
"type": "option"
|
|
824
981
|
},
|
|
825
|
-
"
|
|
826
|
-
"
|
|
827
|
-
"
|
|
828
|
-
"
|
|
982
|
+
"config": {
|
|
983
|
+
"char": "c",
|
|
984
|
+
"description": "Path to config file (for database connection and AI settings)",
|
|
985
|
+
"name": "config",
|
|
986
|
+
"default": "./config.json",
|
|
829
987
|
"hasDynamicHelp": false,
|
|
830
988
|
"multiple": false,
|
|
831
989
|
"type": "option"
|
|
832
990
|
},
|
|
833
|
-
"
|
|
834
|
-
"description": "
|
|
835
|
-
"name": "
|
|
991
|
+
"queries-per-table": {
|
|
992
|
+
"description": "Number of queries to generate per table",
|
|
993
|
+
"name": "queries-per-table",
|
|
994
|
+
"required": false,
|
|
836
995
|
"hasDynamicHelp": false,
|
|
837
996
|
"multiple": false,
|
|
838
997
|
"type": "option"
|
|
839
998
|
},
|
|
840
|
-
"
|
|
841
|
-
"description": "
|
|
842
|
-
"name": "
|
|
999
|
+
"max-execution-time": {
|
|
1000
|
+
"description": "Maximum execution time for query validation (ms)",
|
|
1001
|
+
"name": "max-execution-time",
|
|
1002
|
+
"required": false,
|
|
843
1003
|
"hasDynamicHelp": false,
|
|
844
1004
|
"multiple": false,
|
|
845
1005
|
"type": "option"
|
|
@@ -847,7 +1007,7 @@
|
|
|
847
1007
|
},
|
|
848
1008
|
"hasDynamicHelp": false,
|
|
849
1009
|
"hiddenAliases": [],
|
|
850
|
-
"id": "
|
|
1010
|
+
"id": "dbdoc:generate-queries",
|
|
851
1011
|
"pluginAlias": "@memberjunction/cli",
|
|
852
1012
|
"pluginName": "@memberjunction/cli",
|
|
853
1013
|
"pluginType": "core",
|
|
@@ -857,52 +1017,43 @@
|
|
|
857
1017
|
"relativePath": [
|
|
858
1018
|
"dist",
|
|
859
1019
|
"commands",
|
|
860
|
-
"
|
|
861
|
-
"
|
|
1020
|
+
"dbdoc",
|
|
1021
|
+
"generate-queries.js"
|
|
862
1022
|
]
|
|
863
1023
|
},
|
|
864
|
-
"
|
|
1024
|
+
"dbdoc": {
|
|
865
1025
|
"aliases": [],
|
|
866
1026
|
"args": {},
|
|
867
|
-
"description": "
|
|
1027
|
+
"description": "AI-powered database documentation generator",
|
|
1028
|
+
"flags": {},
|
|
1029
|
+
"hasDynamicHelp": false,
|
|
1030
|
+
"hidden": false,
|
|
1031
|
+
"hiddenAliases": [],
|
|
1032
|
+
"id": "dbdoc",
|
|
1033
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1034
|
+
"pluginName": "@memberjunction/cli",
|
|
1035
|
+
"pluginType": "core",
|
|
1036
|
+
"strict": true,
|
|
1037
|
+
"enableJsonFlag": false,
|
|
1038
|
+
"isESM": false,
|
|
1039
|
+
"relativePath": [
|
|
1040
|
+
"dist",
|
|
1041
|
+
"commands",
|
|
1042
|
+
"dbdoc",
|
|
1043
|
+
"index.js"
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
"dbdoc:init": {
|
|
1047
|
+
"aliases": [],
|
|
1048
|
+
"args": {},
|
|
1049
|
+
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
868
1050
|
"examples": [
|
|
869
|
-
"<%= config.bin %> <%= command.id %>"
|
|
870
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
871
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1051
|
+
"<%= config.bin %> <%= command.id %>"
|
|
872
1052
|
],
|
|
873
|
-
"flags": {
|
|
874
|
-
"dir": {
|
|
875
|
-
"description": "Specific entity directory to check status",
|
|
876
|
-
"name": "dir",
|
|
877
|
-
"hasDynamicHelp": false,
|
|
878
|
-
"multiple": false,
|
|
879
|
-
"type": "option"
|
|
880
|
-
},
|
|
881
|
-
"verbose": {
|
|
882
|
-
"char": "v",
|
|
883
|
-
"description": "Show detailed field-level differences",
|
|
884
|
-
"name": "verbose",
|
|
885
|
-
"allowNo": false,
|
|
886
|
-
"type": "boolean"
|
|
887
|
-
},
|
|
888
|
-
"include": {
|
|
889
|
-
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
890
|
-
"name": "include",
|
|
891
|
-
"hasDynamicHelp": false,
|
|
892
|
-
"multiple": false,
|
|
893
|
-
"type": "option"
|
|
894
|
-
},
|
|
895
|
-
"exclude": {
|
|
896
|
-
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
897
|
-
"name": "exclude",
|
|
898
|
-
"hasDynamicHelp": false,
|
|
899
|
-
"multiple": false,
|
|
900
|
-
"type": "option"
|
|
901
|
-
}
|
|
902
|
-
},
|
|
1053
|
+
"flags": {},
|
|
903
1054
|
"hasDynamicHelp": false,
|
|
904
1055
|
"hiddenAliases": [],
|
|
905
|
-
"id": "
|
|
1056
|
+
"id": "dbdoc:init",
|
|
906
1057
|
"pluginAlias": "@memberjunction/cli",
|
|
907
1058
|
"pluginName": "@memberjunction/cli",
|
|
908
1059
|
"pluginType": "core",
|
|
@@ -912,52 +1063,30 @@
|
|
|
912
1063
|
"relativePath": [
|
|
913
1064
|
"dist",
|
|
914
1065
|
"commands",
|
|
915
|
-
"
|
|
916
|
-
"
|
|
1066
|
+
"dbdoc",
|
|
1067
|
+
"init.js"
|
|
917
1068
|
]
|
|
918
1069
|
},
|
|
919
|
-
"
|
|
1070
|
+
"dbdoc:reset": {
|
|
920
1071
|
"aliases": [],
|
|
921
1072
|
"args": {},
|
|
922
|
-
"description": "
|
|
1073
|
+
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
923
1074
|
"examples": [
|
|
924
1075
|
"<%= config.bin %> <%= command.id %>",
|
|
925
|
-
"<%= config.bin %> <%= command.id %> --
|
|
926
|
-
"<%= config.bin %> <%= command.id %> --save-report",
|
|
927
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1076
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
928
1077
|
],
|
|
929
1078
|
"flags": {
|
|
930
|
-
"
|
|
931
|
-
"
|
|
932
|
-
"
|
|
933
|
-
"
|
|
934
|
-
"multiple": false,
|
|
935
|
-
"type": "option"
|
|
936
|
-
},
|
|
937
|
-
"verbose": {
|
|
938
|
-
"char": "v",
|
|
939
|
-
"description": "Show detailed validation output",
|
|
940
|
-
"name": "verbose",
|
|
941
|
-
"allowNo": false,
|
|
942
|
-
"type": "boolean"
|
|
943
|
-
},
|
|
944
|
-
"save-report": {
|
|
945
|
-
"description": "Save validation report as markdown file",
|
|
946
|
-
"name": "save-report",
|
|
1079
|
+
"force": {
|
|
1080
|
+
"char": "f",
|
|
1081
|
+
"description": "Force reset without confirmation",
|
|
1082
|
+
"name": "force",
|
|
947
1083
|
"allowNo": false,
|
|
948
1084
|
"type": "boolean"
|
|
949
|
-
},
|
|
950
|
-
"output": {
|
|
951
|
-
"description": "Output file path for validation report (default: validation-report.md)",
|
|
952
|
-
"name": "output",
|
|
953
|
-
"hasDynamicHelp": false,
|
|
954
|
-
"multiple": false,
|
|
955
|
-
"type": "option"
|
|
956
1085
|
}
|
|
957
1086
|
},
|
|
958
1087
|
"hasDynamicHelp": false,
|
|
959
1088
|
"hiddenAliases": [],
|
|
960
|
-
"id": "
|
|
1089
|
+
"id": "dbdoc:reset",
|
|
961
1090
|
"pluginAlias": "@memberjunction/cli",
|
|
962
1091
|
"pluginName": "@memberjunction/cli",
|
|
963
1092
|
"pluginType": "core",
|
|
@@ -967,52 +1096,31 @@
|
|
|
967
1096
|
"relativePath": [
|
|
968
1097
|
"dist",
|
|
969
1098
|
"commands",
|
|
970
|
-
"
|
|
971
|
-
"
|
|
1099
|
+
"dbdoc",
|
|
1100
|
+
"reset.js"
|
|
972
1101
|
]
|
|
973
1102
|
},
|
|
974
|
-
"
|
|
1103
|
+
"dbdoc:status": {
|
|
975
1104
|
"aliases": [],
|
|
976
1105
|
"args": {},
|
|
977
|
-
"description": "
|
|
1106
|
+
"description": "Show analysis status and progress (delegates to db-auto-doc status)",
|
|
978
1107
|
"examples": [
|
|
979
1108
|
"<%= config.bin %> <%= command.id %>",
|
|
980
|
-
"<%= config.bin %> <%= command.id %> --
|
|
981
|
-
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
982
|
-
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
1109
|
+
"<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
|
|
983
1110
|
],
|
|
984
1111
|
"flags": {
|
|
985
|
-
"
|
|
986
|
-
"
|
|
987
|
-
"
|
|
988
|
-
"
|
|
989
|
-
"multiple": false,
|
|
990
|
-
"type": "option"
|
|
991
|
-
},
|
|
992
|
-
"debounce": {
|
|
993
|
-
"description": "Debounce delay in milliseconds (default: 500)",
|
|
994
|
-
"name": "debounce",
|
|
1112
|
+
"state-file": {
|
|
1113
|
+
"char": "s",
|
|
1114
|
+
"description": "Path to state JSON file",
|
|
1115
|
+
"name": "state-file",
|
|
995
1116
|
"hasDynamicHelp": false,
|
|
996
1117
|
"multiple": false,
|
|
997
1118
|
"type": "option"
|
|
998
|
-
},
|
|
999
|
-
"no-validate": {
|
|
1000
|
-
"description": "Skip validation before sync",
|
|
1001
|
-
"name": "no-validate",
|
|
1002
|
-
"allowNo": false,
|
|
1003
|
-
"type": "boolean"
|
|
1004
|
-
},
|
|
1005
|
-
"verbose": {
|
|
1006
|
-
"char": "v",
|
|
1007
|
-
"description": "Show detailed output",
|
|
1008
|
-
"name": "verbose",
|
|
1009
|
-
"allowNo": false,
|
|
1010
|
-
"type": "boolean"
|
|
1011
1119
|
}
|
|
1012
1120
|
},
|
|
1013
1121
|
"hasDynamicHelp": false,
|
|
1014
1122
|
"hiddenAliases": [],
|
|
1015
|
-
"id": "
|
|
1123
|
+
"id": "dbdoc:status",
|
|
1016
1124
|
"pluginAlias": "@memberjunction/cli",
|
|
1017
1125
|
"pluginName": "@memberjunction/cli",
|
|
1018
1126
|
"pluginType": "core",
|
|
@@ -1022,8 +1130,8 @@
|
|
|
1022
1130
|
"relativePath": [
|
|
1023
1131
|
"dist",
|
|
1024
1132
|
"commands",
|
|
1025
|
-
"
|
|
1026
|
-
"
|
|
1133
|
+
"dbdoc",
|
|
1134
|
+
"status.js"
|
|
1027
1135
|
]
|
|
1028
1136
|
},
|
|
1029
1137
|
"test:compare": {
|
|
@@ -2177,5 +2285,5 @@
|
|
|
2177
2285
|
]
|
|
2178
2286
|
}
|
|
2179
2287
|
},
|
|
2180
|
-
"version": "2.
|
|
2288
|
+
"version": "2.122.0"
|
|
2181
2289
|
}
|