@adobe/aio-cli-plugin-app-storage 1.5.0 → 1.6.1
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 +1 -1
- package/oclif.manifest.json +409 -409
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -925,7 +925,7 @@ DESCRIPTION
|
|
|
925
925
|
Display help for aio.
|
|
926
926
|
```
|
|
927
927
|
|
|
928
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.
|
|
928
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.46/src/commands/help.ts)_
|
|
929
929
|
<!-- commandsstop -->
|
|
930
930
|
|
|
931
931
|
## Contributing
|
package/oclif.manifest.json
CHANGED
|
@@ -53,6 +53,260 @@
|
|
|
53
53
|
"db.js"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
+
"app:db:delete": {
|
|
57
|
+
"aliases": [],
|
|
58
|
+
"args": {},
|
|
59
|
+
"description": "Delete the database for your App Builder application (non-production only)",
|
|
60
|
+
"examples": [
|
|
61
|
+
"$ aio app db delete",
|
|
62
|
+
"$ aio app db delete --force",
|
|
63
|
+
"$ aio app db delete --json"
|
|
64
|
+
],
|
|
65
|
+
"flags": {
|
|
66
|
+
"json": {
|
|
67
|
+
"description": "Format output as json.",
|
|
68
|
+
"helpGroup": "GLOBAL",
|
|
69
|
+
"name": "json",
|
|
70
|
+
"required": false,
|
|
71
|
+
"allowNo": false,
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
"region": {
|
|
75
|
+
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
76
|
+
"helpGroup": "GLOBAL",
|
|
77
|
+
"name": "region",
|
|
78
|
+
"required": false,
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"type": "option"
|
|
82
|
+
},
|
|
83
|
+
"force": {
|
|
84
|
+
"description": "[use with caution!] force delete, skips confirmation safety prompt",
|
|
85
|
+
"name": "force",
|
|
86
|
+
"allowNo": false,
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"hasDynamicHelp": false,
|
|
91
|
+
"hiddenAliases": [],
|
|
92
|
+
"id": "app:db:delete",
|
|
93
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
94
|
+
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
95
|
+
"pluginType": "core",
|
|
96
|
+
"strict": true,
|
|
97
|
+
"enableJsonFlag": true,
|
|
98
|
+
"isESM": true,
|
|
99
|
+
"relativePath": [
|
|
100
|
+
"src",
|
|
101
|
+
"commands",
|
|
102
|
+
"app",
|
|
103
|
+
"db",
|
|
104
|
+
"delete.js"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"app:db:ping": {
|
|
108
|
+
"aliases": [],
|
|
109
|
+
"args": {},
|
|
110
|
+
"description": "Test connectivity to your App Builder database",
|
|
111
|
+
"examples": [
|
|
112
|
+
"$ aio app db ping",
|
|
113
|
+
"$ aio app db ping --json"
|
|
114
|
+
],
|
|
115
|
+
"flags": {
|
|
116
|
+
"json": {
|
|
117
|
+
"description": "Format output as json.",
|
|
118
|
+
"helpGroup": "GLOBAL",
|
|
119
|
+
"name": "json",
|
|
120
|
+
"required": false,
|
|
121
|
+
"allowNo": false,
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"region": {
|
|
125
|
+
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
126
|
+
"helpGroup": "GLOBAL",
|
|
127
|
+
"name": "region",
|
|
128
|
+
"required": false,
|
|
129
|
+
"hasDynamicHelp": false,
|
|
130
|
+
"multiple": false,
|
|
131
|
+
"type": "option"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"hasDynamicHelp": false,
|
|
135
|
+
"hiddenAliases": [],
|
|
136
|
+
"id": "app:db:ping",
|
|
137
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
138
|
+
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
139
|
+
"pluginType": "core",
|
|
140
|
+
"strict": true,
|
|
141
|
+
"enableJsonFlag": true,
|
|
142
|
+
"isESM": true,
|
|
143
|
+
"relativePath": [
|
|
144
|
+
"src",
|
|
145
|
+
"commands",
|
|
146
|
+
"app",
|
|
147
|
+
"db",
|
|
148
|
+
"ping.js"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"app:db:provision": {
|
|
152
|
+
"aliases": [],
|
|
153
|
+
"args": {},
|
|
154
|
+
"description": "Provision a new database for your App Builder application",
|
|
155
|
+
"examples": [
|
|
156
|
+
"$ aio app db provision",
|
|
157
|
+
"$ aio app db provision --region amer",
|
|
158
|
+
"$ aio app db provision --json",
|
|
159
|
+
"$ aio app db provision --yes"
|
|
160
|
+
],
|
|
161
|
+
"flags": {
|
|
162
|
+
"json": {
|
|
163
|
+
"description": "Format output as json.",
|
|
164
|
+
"helpGroup": "GLOBAL",
|
|
165
|
+
"name": "json",
|
|
166
|
+
"required": false,
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"region": {
|
|
171
|
+
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
172
|
+
"helpGroup": "GLOBAL",
|
|
173
|
+
"name": "region",
|
|
174
|
+
"required": false,
|
|
175
|
+
"hasDynamicHelp": false,
|
|
176
|
+
"multiple": false,
|
|
177
|
+
"type": "option"
|
|
178
|
+
},
|
|
179
|
+
"yes": {
|
|
180
|
+
"char": "y",
|
|
181
|
+
"description": "Skip confirmation prompt and provision automatically",
|
|
182
|
+
"name": "yes",
|
|
183
|
+
"allowNo": false,
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"hasDynamicHelp": false,
|
|
188
|
+
"hiddenAliases": [],
|
|
189
|
+
"id": "app:db:provision",
|
|
190
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
191
|
+
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
192
|
+
"pluginType": "core",
|
|
193
|
+
"strict": true,
|
|
194
|
+
"enableJsonFlag": true,
|
|
195
|
+
"isESM": true,
|
|
196
|
+
"relativePath": [
|
|
197
|
+
"src",
|
|
198
|
+
"commands",
|
|
199
|
+
"app",
|
|
200
|
+
"db",
|
|
201
|
+
"provision.js"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"app:db:stats": {
|
|
205
|
+
"aliases": [],
|
|
206
|
+
"args": {},
|
|
207
|
+
"description": "Get statistics about your App Builder database",
|
|
208
|
+
"examples": [
|
|
209
|
+
"$ aio app db stats",
|
|
210
|
+
"$ aio app db stats --scale 1024",
|
|
211
|
+
"$ aio app db stats --json"
|
|
212
|
+
],
|
|
213
|
+
"flags": {
|
|
214
|
+
"json": {
|
|
215
|
+
"description": "Format output as json.",
|
|
216
|
+
"helpGroup": "GLOBAL",
|
|
217
|
+
"name": "json",
|
|
218
|
+
"required": false,
|
|
219
|
+
"allowNo": false,
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
"region": {
|
|
223
|
+
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
224
|
+
"helpGroup": "GLOBAL",
|
|
225
|
+
"name": "region",
|
|
226
|
+
"required": false,
|
|
227
|
+
"hasDynamicHelp": false,
|
|
228
|
+
"multiple": false,
|
|
229
|
+
"type": "option"
|
|
230
|
+
},
|
|
231
|
+
"scale": {
|
|
232
|
+
"char": "s",
|
|
233
|
+
"description": "Scale factor for size-related statistics (e.g. 1024 for KB, 1048576 for MB).",
|
|
234
|
+
"name": "scale",
|
|
235
|
+
"required": false,
|
|
236
|
+
"default": 1,
|
|
237
|
+
"hasDynamicHelp": false,
|
|
238
|
+
"multiple": false,
|
|
239
|
+
"type": "option"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"hasDynamicHelp": false,
|
|
243
|
+
"hiddenAliases": [],
|
|
244
|
+
"id": "app:db:stats",
|
|
245
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
246
|
+
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
247
|
+
"pluginType": "core",
|
|
248
|
+
"strict": true,
|
|
249
|
+
"enableJsonFlag": true,
|
|
250
|
+
"isESM": true,
|
|
251
|
+
"relativePath": [
|
|
252
|
+
"src",
|
|
253
|
+
"commands",
|
|
254
|
+
"app",
|
|
255
|
+
"db",
|
|
256
|
+
"stats.js"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
"app:db:status": {
|
|
260
|
+
"aliases": [],
|
|
261
|
+
"args": {},
|
|
262
|
+
"description": "Check the provisioning status of your App Builder database",
|
|
263
|
+
"examples": [
|
|
264
|
+
"$ aio app db status",
|
|
265
|
+
"$ aio app db status --watch",
|
|
266
|
+
"$ aio app db status --json"
|
|
267
|
+
],
|
|
268
|
+
"flags": {
|
|
269
|
+
"json": {
|
|
270
|
+
"description": "Format output as json.",
|
|
271
|
+
"helpGroup": "GLOBAL",
|
|
272
|
+
"name": "json",
|
|
273
|
+
"required": false,
|
|
274
|
+
"allowNo": false,
|
|
275
|
+
"type": "boolean"
|
|
276
|
+
},
|
|
277
|
+
"region": {
|
|
278
|
+
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
279
|
+
"helpGroup": "GLOBAL",
|
|
280
|
+
"name": "region",
|
|
281
|
+
"required": false,
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"type": "option"
|
|
285
|
+
},
|
|
286
|
+
"watch": {
|
|
287
|
+
"description": "Watch for status changes (press Ctrl+C to stop)",
|
|
288
|
+
"name": "watch",
|
|
289
|
+
"allowNo": false,
|
|
290
|
+
"type": "boolean"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"hasDynamicHelp": false,
|
|
294
|
+
"hiddenAliases": [],
|
|
295
|
+
"id": "app:db:status",
|
|
296
|
+
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
297
|
+
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
298
|
+
"pluginType": "core",
|
|
299
|
+
"strict": true,
|
|
300
|
+
"enableJsonFlag": true,
|
|
301
|
+
"isESM": true,
|
|
302
|
+
"relativePath": [
|
|
303
|
+
"src",
|
|
304
|
+
"commands",
|
|
305
|
+
"app",
|
|
306
|
+
"db",
|
|
307
|
+
"status.js"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
56
310
|
"app:state:delete": {
|
|
57
311
|
"aliases": [
|
|
58
312
|
"app:state:del",
|
|
@@ -364,14 +618,23 @@
|
|
|
364
618
|
"stats.js"
|
|
365
619
|
]
|
|
366
620
|
},
|
|
367
|
-
"app:db:
|
|
368
|
-
"aliases": [
|
|
369
|
-
|
|
370
|
-
|
|
621
|
+
"app:db:collection:create": {
|
|
622
|
+
"aliases": [
|
|
623
|
+
"app:db:col:create"
|
|
624
|
+
],
|
|
625
|
+
"args": {
|
|
626
|
+
"collection": {
|
|
627
|
+
"description": "The name of the collection to create",
|
|
628
|
+
"name": "collection",
|
|
629
|
+
"required": true
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"description": "Create a new collection in the database",
|
|
371
633
|
"examples": [
|
|
372
|
-
"$ aio app db
|
|
373
|
-
"$ aio app db
|
|
374
|
-
"$ aio app db
|
|
634
|
+
"$ aio app db collection create users",
|
|
635
|
+
"$ aio app db collection create inventory --validator '{\"type\": \"object\", \"required\": [\"id\", \"quantity\"]}' --json",
|
|
636
|
+
"$ aio app db col create products --json",
|
|
637
|
+
"$ aio app db col create products --validator '{\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\"}, \"price\": {\"type\": \"number\", \"minimum\": 0}}, \"required\": [\"name\", \"price\"]}'"
|
|
375
638
|
],
|
|
376
639
|
"flags": {
|
|
377
640
|
"json": {
|
|
@@ -391,16 +654,18 @@
|
|
|
391
654
|
"multiple": false,
|
|
392
655
|
"type": "option"
|
|
393
656
|
},
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"
|
|
657
|
+
"validator": {
|
|
658
|
+
"char": "v",
|
|
659
|
+
"description": "JSON schema validator for document validation (JSON string)",
|
|
660
|
+
"name": "validator",
|
|
661
|
+
"hasDynamicHelp": false,
|
|
662
|
+
"multiple": false,
|
|
663
|
+
"type": "option"
|
|
399
664
|
}
|
|
400
665
|
},
|
|
401
666
|
"hasDynamicHelp": false,
|
|
402
667
|
"hiddenAliases": [],
|
|
403
|
-
"id": "app:db:
|
|
668
|
+
"id": "app:db:collection:create",
|
|
404
669
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
405
670
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
406
671
|
"pluginType": "core",
|
|
@@ -412,16 +677,26 @@
|
|
|
412
677
|
"commands",
|
|
413
678
|
"app",
|
|
414
679
|
"db",
|
|
415
|
-
"
|
|
680
|
+
"collection",
|
|
681
|
+
"create.js"
|
|
416
682
|
]
|
|
417
683
|
},
|
|
418
|
-
"app:db:
|
|
419
|
-
"aliases": [
|
|
420
|
-
|
|
421
|
-
|
|
684
|
+
"app:db:collection:drop": {
|
|
685
|
+
"aliases": [
|
|
686
|
+
"app:db:col:drop"
|
|
687
|
+
],
|
|
688
|
+
"args": {
|
|
689
|
+
"collection": {
|
|
690
|
+
"description": "The name of the collection to drop",
|
|
691
|
+
"name": "collection",
|
|
692
|
+
"required": true
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"description": "Drop a collection from the database",
|
|
422
696
|
"examples": [
|
|
423
|
-
"$ aio app db
|
|
424
|
-
"$ aio app db
|
|
697
|
+
"$ aio app db collection drop users",
|
|
698
|
+
"$ aio app db collection drop products --json",
|
|
699
|
+
"$ aio app db col drop inventory"
|
|
425
700
|
],
|
|
426
701
|
"flags": {
|
|
427
702
|
"json": {
|
|
@@ -444,7 +719,7 @@
|
|
|
444
719
|
},
|
|
445
720
|
"hasDynamicHelp": false,
|
|
446
721
|
"hiddenAliases": [],
|
|
447
|
-
"id": "app:db:
|
|
722
|
+
"id": "app:db:collection:drop",
|
|
448
723
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
449
724
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
450
725
|
"pluginType": "core",
|
|
@@ -456,18 +731,22 @@
|
|
|
456
731
|
"commands",
|
|
457
732
|
"app",
|
|
458
733
|
"db",
|
|
459
|
-
"
|
|
734
|
+
"collection",
|
|
735
|
+
"drop.js"
|
|
460
736
|
]
|
|
461
737
|
},
|
|
462
|
-
"app:db:
|
|
463
|
-
"aliases": [
|
|
738
|
+
"app:db:collection:list": {
|
|
739
|
+
"aliases": [
|
|
740
|
+
"app:db:col:list",
|
|
741
|
+
"app:db:show:collections"
|
|
742
|
+
],
|
|
464
743
|
"args": {},
|
|
465
|
-
"description": "
|
|
744
|
+
"description": "Get the list of collections in your App Builder database",
|
|
466
745
|
"examples": [
|
|
467
|
-
"$ aio app db
|
|
468
|
-
"$ aio app db
|
|
469
|
-
"$ aio app db
|
|
470
|
-
"$ aio app db
|
|
746
|
+
"$ aio app db collection list",
|
|
747
|
+
"$ aio app db collection list --info",
|
|
748
|
+
"$ aio app db collection list --json",
|
|
749
|
+
"$ aio app db col list --info --json"
|
|
471
750
|
],
|
|
472
751
|
"flags": {
|
|
473
752
|
"json": {
|
|
@@ -487,17 +766,17 @@
|
|
|
487
766
|
"multiple": false,
|
|
488
767
|
"type": "option"
|
|
489
768
|
},
|
|
490
|
-
"
|
|
491
|
-
"char": "
|
|
492
|
-
"description": "
|
|
493
|
-
"name": "
|
|
769
|
+
"info": {
|
|
770
|
+
"char": "i",
|
|
771
|
+
"description": "Show detailed collection information instead of just names",
|
|
772
|
+
"name": "info",
|
|
494
773
|
"allowNo": false,
|
|
495
774
|
"type": "boolean"
|
|
496
775
|
}
|
|
497
776
|
},
|
|
498
777
|
"hasDynamicHelp": false,
|
|
499
778
|
"hiddenAliases": [],
|
|
500
|
-
"id": "app:db:
|
|
779
|
+
"id": "app:db:collection:list",
|
|
501
780
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
502
781
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
503
782
|
"pluginType": "core",
|
|
@@ -509,72 +788,31 @@
|
|
|
509
788
|
"commands",
|
|
510
789
|
"app",
|
|
511
790
|
"db",
|
|
512
|
-
"
|
|
791
|
+
"collection",
|
|
792
|
+
"list.js"
|
|
513
793
|
]
|
|
514
794
|
},
|
|
515
|
-
"app:db:
|
|
516
|
-
"aliases": [
|
|
517
|
-
|
|
518
|
-
"description": "Get statistics about your App Builder database",
|
|
519
|
-
"examples": [
|
|
520
|
-
"$ aio app db stats",
|
|
521
|
-
"$ aio app db stats --scale 1024",
|
|
522
|
-
"$ aio app db stats --json"
|
|
795
|
+
"app:db:collection:rename": {
|
|
796
|
+
"aliases": [
|
|
797
|
+
"app:db:col:rename"
|
|
523
798
|
],
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"description": "
|
|
527
|
-
"
|
|
528
|
-
"
|
|
529
|
-
"required": false,
|
|
530
|
-
"allowNo": false,
|
|
531
|
-
"type": "boolean"
|
|
532
|
-
},
|
|
533
|
-
"region": {
|
|
534
|
-
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
535
|
-
"helpGroup": "GLOBAL",
|
|
536
|
-
"name": "region",
|
|
537
|
-
"required": false,
|
|
538
|
-
"hasDynamicHelp": false,
|
|
539
|
-
"multiple": false,
|
|
540
|
-
"type": "option"
|
|
799
|
+
"args": {
|
|
800
|
+
"currentName": {
|
|
801
|
+
"description": "The current name of the collection to rename",
|
|
802
|
+
"name": "currentName",
|
|
803
|
+
"required": true
|
|
541
804
|
},
|
|
542
|
-
"
|
|
543
|
-
"
|
|
544
|
-
"
|
|
545
|
-
"
|
|
546
|
-
"required": false,
|
|
547
|
-
"default": 1,
|
|
548
|
-
"hasDynamicHelp": false,
|
|
549
|
-
"multiple": false,
|
|
550
|
-
"type": "option"
|
|
805
|
+
"newName": {
|
|
806
|
+
"description": "The new name for the collection",
|
|
807
|
+
"name": "newName",
|
|
808
|
+
"required": true
|
|
551
809
|
}
|
|
552
810
|
},
|
|
553
|
-
"
|
|
554
|
-
"hiddenAliases": [],
|
|
555
|
-
"id": "app:db:stats",
|
|
556
|
-
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
557
|
-
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
558
|
-
"pluginType": "core",
|
|
559
|
-
"strict": true,
|
|
560
|
-
"enableJsonFlag": true,
|
|
561
|
-
"isESM": true,
|
|
562
|
-
"relativePath": [
|
|
563
|
-
"src",
|
|
564
|
-
"commands",
|
|
565
|
-
"app",
|
|
566
|
-
"db",
|
|
567
|
-
"stats.js"
|
|
568
|
-
]
|
|
569
|
-
},
|
|
570
|
-
"app:db:status": {
|
|
571
|
-
"aliases": [],
|
|
572
|
-
"args": {},
|
|
573
|
-
"description": "Check the provisioning status of your App Builder database",
|
|
811
|
+
"description": "Rename a collection in the database",
|
|
574
812
|
"examples": [
|
|
575
|
-
"$ aio app db
|
|
576
|
-
"$ aio app db
|
|
577
|
-
"$ aio app db
|
|
813
|
+
"$ aio app db collection rename users customers",
|
|
814
|
+
"$ aio app db collection rename old_products new_products --json",
|
|
815
|
+
"$ aio app db col rename inventory stock"
|
|
578
816
|
],
|
|
579
817
|
"flags": {
|
|
580
818
|
"json": {
|
|
@@ -593,17 +831,11 @@
|
|
|
593
831
|
"hasDynamicHelp": false,
|
|
594
832
|
"multiple": false,
|
|
595
833
|
"type": "option"
|
|
596
|
-
},
|
|
597
|
-
"watch": {
|
|
598
|
-
"description": "Watch for status changes (press Ctrl+C to stop)",
|
|
599
|
-
"name": "watch",
|
|
600
|
-
"allowNo": false,
|
|
601
|
-
"type": "boolean"
|
|
602
834
|
}
|
|
603
835
|
},
|
|
604
836
|
"hasDynamicHelp": false,
|
|
605
837
|
"hiddenAliases": [],
|
|
606
|
-
"id": "app:db:
|
|
838
|
+
"id": "app:db:collection:rename",
|
|
607
839
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
608
840
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
609
841
|
"pluginType": "core",
|
|
@@ -615,26 +847,26 @@
|
|
|
615
847
|
"commands",
|
|
616
848
|
"app",
|
|
617
849
|
"db",
|
|
618
|
-
"
|
|
850
|
+
"collection",
|
|
851
|
+
"rename.js"
|
|
619
852
|
]
|
|
620
853
|
},
|
|
621
|
-
"app:db:collection:
|
|
854
|
+
"app:db:collection:stats": {
|
|
622
855
|
"aliases": [
|
|
623
|
-
"app:db:col:
|
|
856
|
+
"app:db:col:stats"
|
|
624
857
|
],
|
|
625
858
|
"args": {
|
|
626
859
|
"collection": {
|
|
627
|
-
"description": "The name of the collection to
|
|
860
|
+
"description": "The name of the collection to get stats for",
|
|
628
861
|
"name": "collection",
|
|
629
862
|
"required": true
|
|
630
863
|
}
|
|
631
864
|
},
|
|
632
|
-
"description": "
|
|
865
|
+
"description": "Get statistics for a collection in the database",
|
|
633
866
|
"examples": [
|
|
634
|
-
"$ aio app db collection
|
|
635
|
-
"$ aio app db collection
|
|
636
|
-
"$ aio app db col
|
|
637
|
-
"$ aio app db col create products --validator '{\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\"}, \"price\": {\"type\": \"number\", \"minimum\": 0}}, \"required\": [\"name\", \"price\"]}'"
|
|
867
|
+
"$ aio app db collection stats users",
|
|
868
|
+
"$ aio app db collection stats products --json",
|
|
869
|
+
"$ aio app db col stats inventory"
|
|
638
870
|
],
|
|
639
871
|
"flags": {
|
|
640
872
|
"json": {
|
|
@@ -653,19 +885,11 @@
|
|
|
653
885
|
"hasDynamicHelp": false,
|
|
654
886
|
"multiple": false,
|
|
655
887
|
"type": "option"
|
|
656
|
-
},
|
|
657
|
-
"validator": {
|
|
658
|
-
"char": "v",
|
|
659
|
-
"description": "JSON schema validator for document validation (JSON string)",
|
|
660
|
-
"name": "validator",
|
|
661
|
-
"hasDynamicHelp": false,
|
|
662
|
-
"multiple": false,
|
|
663
|
-
"type": "option"
|
|
664
888
|
}
|
|
665
889
|
},
|
|
666
890
|
"hasDynamicHelp": false,
|
|
667
891
|
"hiddenAliases": [],
|
|
668
|
-
"id": "app:db:collection:
|
|
892
|
+
"id": "app:db:collection:stats",
|
|
669
893
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
670
894
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
671
895
|
"pluginType": "core",
|
|
@@ -678,25 +902,29 @@
|
|
|
678
902
|
"app",
|
|
679
903
|
"db",
|
|
680
904
|
"collection",
|
|
681
|
-
"
|
|
905
|
+
"stats.js"
|
|
682
906
|
]
|
|
683
907
|
},
|
|
684
|
-
"app:db:
|
|
908
|
+
"app:db:index:create": {
|
|
685
909
|
"aliases": [
|
|
686
|
-
"app:db:
|
|
910
|
+
"app:db:idx:create"
|
|
687
911
|
],
|
|
688
912
|
"args": {
|
|
689
913
|
"collection": {
|
|
690
|
-
"description": "The name of the collection to
|
|
914
|
+
"description": "The name of the collection to create the index on",
|
|
691
915
|
"name": "collection",
|
|
692
916
|
"required": true
|
|
693
917
|
}
|
|
694
918
|
},
|
|
695
|
-
"description": "
|
|
919
|
+
"description": "Create a new index on a collection in the database",
|
|
696
920
|
"examples": [
|
|
697
|
-
"$ aio app db
|
|
698
|
-
"$ aio app db
|
|
699
|
-
"$ aio app db
|
|
921
|
+
"$ aio app db index create users --spec '{\"name\":1, \"age\":-1}'",
|
|
922
|
+
"$ aio app db index create users -s '{\"name\":1, \"age\":-1}' --name \"name_age_index\"",
|
|
923
|
+
"$ aio app db index create students -s '{\"name\":1}' --key grade --unique",
|
|
924
|
+
"$ aio app db index create reviews -k sku -k rating",
|
|
925
|
+
"$ aio app db index create products -s '{\"name\":\"text\", \"category\":\"text\"}' --json",
|
|
926
|
+
"$ aio app db index create books -s '{\"author\":1}' -k year",
|
|
927
|
+
"$ aio app db idx create orders --spec '{\"customerId\":1}' --spec '{\"orderDate\":-1}' --name \"customer_order_index\" --unique"
|
|
700
928
|
],
|
|
701
929
|
"flags": {
|
|
702
930
|
"json": {
|
|
@@ -715,68 +943,44 @@
|
|
|
715
943
|
"hasDynamicHelp": false,
|
|
716
944
|
"multiple": false,
|
|
717
945
|
"type": "option"
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
"hasDynamicHelp": false,
|
|
721
|
-
"hiddenAliases": [],
|
|
722
|
-
"id": "app:db:collection:drop",
|
|
723
|
-
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
724
|
-
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
725
|
-
"pluginType": "core",
|
|
726
|
-
"strict": true,
|
|
727
|
-
"enableJsonFlag": true,
|
|
728
|
-
"isESM": true,
|
|
729
|
-
"relativePath": [
|
|
730
|
-
"src",
|
|
731
|
-
"commands",
|
|
732
|
-
"app",
|
|
733
|
-
"db",
|
|
734
|
-
"collection",
|
|
735
|
-
"drop.js"
|
|
736
|
-
]
|
|
737
|
-
},
|
|
738
|
-
"app:db:collection:list": {
|
|
739
|
-
"aliases": [
|
|
740
|
-
"app:db:col:list",
|
|
741
|
-
"app:db:show:collections"
|
|
742
|
-
],
|
|
743
|
-
"args": {},
|
|
744
|
-
"description": "Get the list of collections in your App Builder database",
|
|
745
|
-
"examples": [
|
|
746
|
-
"$ aio app db collection list",
|
|
747
|
-
"$ aio app db collection list --info",
|
|
748
|
-
"$ aio app db collection list --json",
|
|
749
|
-
"$ aio app db col list --info --json"
|
|
750
|
-
],
|
|
751
|
-
"flags": {
|
|
752
|
-
"json": {
|
|
753
|
-
"description": "Format output as json.",
|
|
754
|
-
"helpGroup": "GLOBAL",
|
|
755
|
-
"name": "json",
|
|
756
|
-
"required": false,
|
|
757
|
-
"allowNo": false,
|
|
758
|
-
"type": "boolean"
|
|
759
946
|
},
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"
|
|
947
|
+
"spec": {
|
|
948
|
+
"char": "s",
|
|
949
|
+
"description": "Index specification as a JSON object (e.g., '{\"name\":1, \"age\":-1}')",
|
|
950
|
+
"helpGroup": "Requires at least one of the index definition",
|
|
951
|
+
"name": "spec",
|
|
952
|
+
"hasDynamicHelp": false,
|
|
953
|
+
"multiple": true,
|
|
954
|
+
"type": "option"
|
|
955
|
+
},
|
|
956
|
+
"key": {
|
|
957
|
+
"char": "k",
|
|
958
|
+
"description": "Index key to use with default specification",
|
|
959
|
+
"helpGroup": "Requires at least one of the index definition",
|
|
960
|
+
"name": "key",
|
|
961
|
+
"hasDynamicHelp": false,
|
|
962
|
+
"multiple": true,
|
|
963
|
+
"type": "option"
|
|
964
|
+
},
|
|
965
|
+
"name": {
|
|
966
|
+
"char": "n",
|
|
967
|
+
"description": "A name that uniquely identifies the index",
|
|
968
|
+
"name": "name",
|
|
765
969
|
"hasDynamicHelp": false,
|
|
766
970
|
"multiple": false,
|
|
767
971
|
"type": "option"
|
|
768
972
|
},
|
|
769
|
-
"
|
|
770
|
-
"char": "
|
|
771
|
-
"description": "
|
|
772
|
-
"name": "
|
|
973
|
+
"unique": {
|
|
974
|
+
"char": "u",
|
|
975
|
+
"description": "Creates a unique index so that the collection will not accept insertion or update of documents where the index key value matches an existing value in the index",
|
|
976
|
+
"name": "unique",
|
|
773
977
|
"allowNo": false,
|
|
774
978
|
"type": "boolean"
|
|
775
979
|
}
|
|
776
980
|
},
|
|
777
981
|
"hasDynamicHelp": false,
|
|
778
982
|
"hiddenAliases": [],
|
|
779
|
-
"id": "app:db:
|
|
983
|
+
"id": "app:db:index:create",
|
|
780
984
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
781
985
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
782
986
|
"pluginType": "core",
|
|
@@ -788,31 +992,31 @@
|
|
|
788
992
|
"commands",
|
|
789
993
|
"app",
|
|
790
994
|
"db",
|
|
791
|
-
"
|
|
792
|
-
"
|
|
995
|
+
"index",
|
|
996
|
+
"create.js"
|
|
793
997
|
]
|
|
794
998
|
},
|
|
795
|
-
"app:db:
|
|
999
|
+
"app:db:index:drop": {
|
|
796
1000
|
"aliases": [
|
|
797
|
-
"app:db:
|
|
1001
|
+
"app:db:idx:drop"
|
|
798
1002
|
],
|
|
799
1003
|
"args": {
|
|
800
|
-
"
|
|
801
|
-
"description": "The
|
|
802
|
-
"name": "
|
|
1004
|
+
"collection": {
|
|
1005
|
+
"description": "The name of the collection to drop the index from",
|
|
1006
|
+
"name": "collection",
|
|
803
1007
|
"required": true
|
|
804
1008
|
},
|
|
805
|
-
"
|
|
806
|
-
"description": "The
|
|
807
|
-
"name": "
|
|
1009
|
+
"indexName": {
|
|
1010
|
+
"description": "The name of the index to drop",
|
|
1011
|
+
"name": "indexName",
|
|
808
1012
|
"required": true
|
|
809
1013
|
}
|
|
810
1014
|
},
|
|
811
|
-
"description": "
|
|
1015
|
+
"description": "Drop an index from a collection in the database",
|
|
812
1016
|
"examples": [
|
|
813
|
-
"$ aio app db
|
|
814
|
-
"$ aio app db
|
|
815
|
-
"$ aio app db
|
|
1017
|
+
"$ aio app db index drop users name_age_index",
|
|
1018
|
+
"$ aio app db index drop products category_1 --json",
|
|
1019
|
+
"$ aio app db idx drop orders orderDate_index"
|
|
816
1020
|
],
|
|
817
1021
|
"flags": {
|
|
818
1022
|
"json": {
|
|
@@ -835,7 +1039,7 @@
|
|
|
835
1039
|
},
|
|
836
1040
|
"hasDynamicHelp": false,
|
|
837
1041
|
"hiddenAliases": [],
|
|
838
|
-
"id": "app:db:
|
|
1042
|
+
"id": "app:db:index:drop",
|
|
839
1043
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
840
1044
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
841
1045
|
"pluginType": "core",
|
|
@@ -847,26 +1051,26 @@
|
|
|
847
1051
|
"commands",
|
|
848
1052
|
"app",
|
|
849
1053
|
"db",
|
|
850
|
-
"
|
|
851
|
-
"
|
|
1054
|
+
"index",
|
|
1055
|
+
"drop.js"
|
|
852
1056
|
]
|
|
853
1057
|
},
|
|
854
|
-
"app:db:
|
|
1058
|
+
"app:db:index:list": {
|
|
855
1059
|
"aliases": [
|
|
856
|
-
"app:db:
|
|
1060
|
+
"app:db:idx:list"
|
|
857
1061
|
],
|
|
858
1062
|
"args": {
|
|
859
1063
|
"collection": {
|
|
860
|
-
"description": "The name of the collection to
|
|
1064
|
+
"description": "The name of the collection to retrieve indexes from",
|
|
861
1065
|
"name": "collection",
|
|
862
1066
|
"required": true
|
|
863
1067
|
}
|
|
864
1068
|
},
|
|
865
|
-
"description": "Get
|
|
1069
|
+
"description": "Get the list of indexes from a collection in the database",
|
|
866
1070
|
"examples": [
|
|
867
|
-
"$ aio app db
|
|
868
|
-
"$ aio app db
|
|
869
|
-
"$ aio app db
|
|
1071
|
+
"$ aio app db index list users",
|
|
1072
|
+
"$ aio app db index list products --json",
|
|
1073
|
+
"$ aio app db idx list orders"
|
|
870
1074
|
],
|
|
871
1075
|
"flags": {
|
|
872
1076
|
"json": {
|
|
@@ -889,7 +1093,7 @@
|
|
|
889
1093
|
},
|
|
890
1094
|
"hasDynamicHelp": false,
|
|
891
1095
|
"hiddenAliases": [],
|
|
892
|
-
"id": "app:db:
|
|
1096
|
+
"id": "app:db:index:list",
|
|
893
1097
|
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
894
1098
|
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
895
1099
|
"pluginType": "core",
|
|
@@ -901,8 +1105,8 @@
|
|
|
901
1105
|
"commands",
|
|
902
1106
|
"app",
|
|
903
1107
|
"db",
|
|
904
|
-
"
|
|
905
|
-
"
|
|
1108
|
+
"index",
|
|
1109
|
+
"list.js"
|
|
906
1110
|
]
|
|
907
1111
|
},
|
|
908
1112
|
"app:db:document:count": {
|
|
@@ -1335,210 +1539,6 @@
|
|
|
1335
1539
|
"update.js"
|
|
1336
1540
|
]
|
|
1337
1541
|
},
|
|
1338
|
-
"app:db:index:create": {
|
|
1339
|
-
"aliases": [
|
|
1340
|
-
"app:db:idx:create"
|
|
1341
|
-
],
|
|
1342
|
-
"args": {
|
|
1343
|
-
"collection": {
|
|
1344
|
-
"description": "The name of the collection to create the index on",
|
|
1345
|
-
"name": "collection",
|
|
1346
|
-
"required": true
|
|
1347
|
-
}
|
|
1348
|
-
},
|
|
1349
|
-
"description": "Create a new index on a collection in the database",
|
|
1350
|
-
"examples": [
|
|
1351
|
-
"$ aio app db index create users --spec '{\"name\":1, \"age\":-1}'",
|
|
1352
|
-
"$ aio app db index create users -s '{\"name\":1, \"age\":-1}' --name \"name_age_index\"",
|
|
1353
|
-
"$ aio app db index create students -s '{\"name\":1}' --key grade --unique",
|
|
1354
|
-
"$ aio app db index create reviews -k sku -k rating",
|
|
1355
|
-
"$ aio app db index create products -s '{\"name\":\"text\", \"category\":\"text\"}' --json",
|
|
1356
|
-
"$ aio app db index create books -s '{\"author\":1}' -k year",
|
|
1357
|
-
"$ aio app db idx create orders --spec '{\"customerId\":1}' --spec '{\"orderDate\":-1}' --name \"customer_order_index\" --unique"
|
|
1358
|
-
],
|
|
1359
|
-
"flags": {
|
|
1360
|
-
"json": {
|
|
1361
|
-
"description": "Format output as json.",
|
|
1362
|
-
"helpGroup": "GLOBAL",
|
|
1363
|
-
"name": "json",
|
|
1364
|
-
"required": false,
|
|
1365
|
-
"allowNo": false,
|
|
1366
|
-
"type": "boolean"
|
|
1367
|
-
},
|
|
1368
|
-
"region": {
|
|
1369
|
-
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
1370
|
-
"helpGroup": "GLOBAL",
|
|
1371
|
-
"name": "region",
|
|
1372
|
-
"required": false,
|
|
1373
|
-
"hasDynamicHelp": false,
|
|
1374
|
-
"multiple": false,
|
|
1375
|
-
"type": "option"
|
|
1376
|
-
},
|
|
1377
|
-
"spec": {
|
|
1378
|
-
"char": "s",
|
|
1379
|
-
"description": "Index specification as a JSON object (e.g., '{\"name\":1, \"age\":-1}')",
|
|
1380
|
-
"helpGroup": "Requires at least one of the index definition",
|
|
1381
|
-
"name": "spec",
|
|
1382
|
-
"hasDynamicHelp": false,
|
|
1383
|
-
"multiple": true,
|
|
1384
|
-
"type": "option"
|
|
1385
|
-
},
|
|
1386
|
-
"key": {
|
|
1387
|
-
"char": "k",
|
|
1388
|
-
"description": "Index key to use with default specification",
|
|
1389
|
-
"helpGroup": "Requires at least one of the index definition",
|
|
1390
|
-
"name": "key",
|
|
1391
|
-
"hasDynamicHelp": false,
|
|
1392
|
-
"multiple": true,
|
|
1393
|
-
"type": "option"
|
|
1394
|
-
},
|
|
1395
|
-
"name": {
|
|
1396
|
-
"char": "n",
|
|
1397
|
-
"description": "A name that uniquely identifies the index",
|
|
1398
|
-
"name": "name",
|
|
1399
|
-
"hasDynamicHelp": false,
|
|
1400
|
-
"multiple": false,
|
|
1401
|
-
"type": "option"
|
|
1402
|
-
},
|
|
1403
|
-
"unique": {
|
|
1404
|
-
"char": "u",
|
|
1405
|
-
"description": "Creates a unique index so that the collection will not accept insertion or update of documents where the index key value matches an existing value in the index",
|
|
1406
|
-
"name": "unique",
|
|
1407
|
-
"allowNo": false,
|
|
1408
|
-
"type": "boolean"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
"hasDynamicHelp": false,
|
|
1412
|
-
"hiddenAliases": [],
|
|
1413
|
-
"id": "app:db:index:create",
|
|
1414
|
-
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
1415
|
-
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
1416
|
-
"pluginType": "core",
|
|
1417
|
-
"strict": true,
|
|
1418
|
-
"enableJsonFlag": true,
|
|
1419
|
-
"isESM": true,
|
|
1420
|
-
"relativePath": [
|
|
1421
|
-
"src",
|
|
1422
|
-
"commands",
|
|
1423
|
-
"app",
|
|
1424
|
-
"db",
|
|
1425
|
-
"index",
|
|
1426
|
-
"create.js"
|
|
1427
|
-
]
|
|
1428
|
-
},
|
|
1429
|
-
"app:db:index:drop": {
|
|
1430
|
-
"aliases": [
|
|
1431
|
-
"app:db:idx:drop"
|
|
1432
|
-
],
|
|
1433
|
-
"args": {
|
|
1434
|
-
"collection": {
|
|
1435
|
-
"description": "The name of the collection to drop the index from",
|
|
1436
|
-
"name": "collection",
|
|
1437
|
-
"required": true
|
|
1438
|
-
},
|
|
1439
|
-
"indexName": {
|
|
1440
|
-
"description": "The name of the index to drop",
|
|
1441
|
-
"name": "indexName",
|
|
1442
|
-
"required": true
|
|
1443
|
-
}
|
|
1444
|
-
},
|
|
1445
|
-
"description": "Drop an index from a collection in the database",
|
|
1446
|
-
"examples": [
|
|
1447
|
-
"$ aio app db index drop users name_age_index",
|
|
1448
|
-
"$ aio app db index drop products category_1 --json",
|
|
1449
|
-
"$ aio app db idx drop orders orderDate_index"
|
|
1450
|
-
],
|
|
1451
|
-
"flags": {
|
|
1452
|
-
"json": {
|
|
1453
|
-
"description": "Format output as json.",
|
|
1454
|
-
"helpGroup": "GLOBAL",
|
|
1455
|
-
"name": "json",
|
|
1456
|
-
"required": false,
|
|
1457
|
-
"allowNo": false,
|
|
1458
|
-
"type": "boolean"
|
|
1459
|
-
},
|
|
1460
|
-
"region": {
|
|
1461
|
-
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
1462
|
-
"helpGroup": "GLOBAL",
|
|
1463
|
-
"name": "region",
|
|
1464
|
-
"required": false,
|
|
1465
|
-
"hasDynamicHelp": false,
|
|
1466
|
-
"multiple": false,
|
|
1467
|
-
"type": "option"
|
|
1468
|
-
}
|
|
1469
|
-
},
|
|
1470
|
-
"hasDynamicHelp": false,
|
|
1471
|
-
"hiddenAliases": [],
|
|
1472
|
-
"id": "app:db:index:drop",
|
|
1473
|
-
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
1474
|
-
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
1475
|
-
"pluginType": "core",
|
|
1476
|
-
"strict": true,
|
|
1477
|
-
"enableJsonFlag": true,
|
|
1478
|
-
"isESM": true,
|
|
1479
|
-
"relativePath": [
|
|
1480
|
-
"src",
|
|
1481
|
-
"commands",
|
|
1482
|
-
"app",
|
|
1483
|
-
"db",
|
|
1484
|
-
"index",
|
|
1485
|
-
"drop.js"
|
|
1486
|
-
]
|
|
1487
|
-
},
|
|
1488
|
-
"app:db:index:list": {
|
|
1489
|
-
"aliases": [
|
|
1490
|
-
"app:db:idx:list"
|
|
1491
|
-
],
|
|
1492
|
-
"args": {
|
|
1493
|
-
"collection": {
|
|
1494
|
-
"description": "The name of the collection to retrieve indexes from",
|
|
1495
|
-
"name": "collection",
|
|
1496
|
-
"required": true
|
|
1497
|
-
}
|
|
1498
|
-
},
|
|
1499
|
-
"description": "Get the list of indexes from a collection in the database",
|
|
1500
|
-
"examples": [
|
|
1501
|
-
"$ aio app db index list users",
|
|
1502
|
-
"$ aio app db index list products --json",
|
|
1503
|
-
"$ aio app db idx list orders"
|
|
1504
|
-
],
|
|
1505
|
-
"flags": {
|
|
1506
|
-
"json": {
|
|
1507
|
-
"description": "Format output as json.",
|
|
1508
|
-
"helpGroup": "GLOBAL",
|
|
1509
|
-
"name": "json",
|
|
1510
|
-
"required": false,
|
|
1511
|
-
"allowNo": false,
|
|
1512
|
-
"type": "boolean"
|
|
1513
|
-
},
|
|
1514
|
-
"region": {
|
|
1515
|
-
"description": "Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any database region set in 'app.config.yaml' takes precedence over all of these.\n<options: amer|emea|apac|aus>",
|
|
1516
|
-
"helpGroup": "GLOBAL",
|
|
1517
|
-
"name": "region",
|
|
1518
|
-
"required": false,
|
|
1519
|
-
"hasDynamicHelp": false,
|
|
1520
|
-
"multiple": false,
|
|
1521
|
-
"type": "option"
|
|
1522
|
-
}
|
|
1523
|
-
},
|
|
1524
|
-
"hasDynamicHelp": false,
|
|
1525
|
-
"hiddenAliases": [],
|
|
1526
|
-
"id": "app:db:index:list",
|
|
1527
|
-
"pluginAlias": "@adobe/aio-cli-plugin-app-storage",
|
|
1528
|
-
"pluginName": "@adobe/aio-cli-plugin-app-storage",
|
|
1529
|
-
"pluginType": "core",
|
|
1530
|
-
"strict": true,
|
|
1531
|
-
"enableJsonFlag": true,
|
|
1532
|
-
"isESM": true,
|
|
1533
|
-
"relativePath": [
|
|
1534
|
-
"src",
|
|
1535
|
-
"commands",
|
|
1536
|
-
"app",
|
|
1537
|
-
"db",
|
|
1538
|
-
"index",
|
|
1539
|
-
"list.js"
|
|
1540
|
-
]
|
|
1541
|
-
},
|
|
1542
1542
|
"app:db:org:stats": {
|
|
1543
1543
|
"aliases": [],
|
|
1544
1544
|
"args": {},
|
|
@@ -1596,5 +1596,5 @@
|
|
|
1596
1596
|
]
|
|
1597
1597
|
}
|
|
1598
1598
|
},
|
|
1599
|
-
"version": "1.
|
|
1599
|
+
"version": "1.6.1"
|
|
1600
1600
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-app-storage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@adobe/aio-lib-core-config": "^5",
|
|
6
6
|
"@adobe/aio-lib-core-logging": "^3",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
37
37
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
38
|
+
"node": ">=20.0.0"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"bin/run.js",
|
|
@@ -87,6 +87,14 @@
|
|
|
87
87
|
},
|
|
88
88
|
"jest": {
|
|
89
89
|
"collectCoverage": true,
|
|
90
|
+
"coverageThreshold": {
|
|
91
|
+
"global": {
|
|
92
|
+
"branches": 100,
|
|
93
|
+
"functions": 100,
|
|
94
|
+
"lines": 100,
|
|
95
|
+
"statements": 100
|
|
96
|
+
}
|
|
97
|
+
},
|
|
90
98
|
"testEnvironment": "node",
|
|
91
99
|
"transform": {},
|
|
92
100
|
"setupFiles": [
|