@swell/cli 2.2.1 → 2.3.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/dist/app-command.js +1 -1
- package/dist/commands/api/delete.js +4 -1
- package/dist/commands/api/get.js +1 -0
- package/dist/commands/api/index.js +4 -1
- package/dist/commands/api/post.js +1 -0
- package/dist/commands/api/put.js +1 -0
- package/dist/commands/app/frontend/dev.js +1 -1
- package/dist/commands/app/init.d.ts +8 -7
- package/dist/commands/app/init.js +36 -18
- package/dist/commands/app/pull.js +2 -2
- package/dist/commands/app/push.js +2 -2
- package/dist/commands/app/version.d.ts +1 -0
- package/dist/commands/app/version.js +15 -5
- package/dist/commands/create/app.d.ts +8 -4
- package/dist/commands/create/app.js +68 -51
- package/dist/commands/create/content.d.ts +5 -6
- package/dist/commands/create/content.js +21 -37
- package/dist/commands/create/function.d.ts +6 -7
- package/dist/commands/create/function.js +94 -31
- package/dist/commands/create/index.js +8 -0
- package/dist/commands/create/model.d.ts +5 -6
- package/dist/commands/create/model.js +21 -33
- package/dist/commands/create/notification.d.ts +9 -9
- package/dist/commands/create/notification.js +117 -95
- package/dist/commands/create/setting.d.ts +21 -0
- package/dist/commands/create/setting.js +120 -0
- package/dist/commands/create/tests.d.ts +4 -5
- package/dist/commands/create/tests.js +8 -11
- package/dist/commands/create/webhook.d.ts +22 -0
- package/dist/commands/create/webhook.js +176 -0
- package/dist/commands/schema.d.ts +1 -0
- package/dist/commands/schema.js +51 -5
- package/dist/commands/theme/init.d.ts +8 -4
- package/dist/commands/theme/init.js +21 -8
- package/dist/create-app-command.d.ts +1 -0
- package/dist/create-app-command.js +15 -10
- package/dist/create-config-command.js +2 -2
- package/dist/help/custom-help.d.ts +89 -0
- package/dist/help/custom-help.js +337 -0
- package/dist/help/types.d.ts +75 -0
- package/dist/help/types.js +1 -0
- package/dist/lib/apps/app-config.js +2 -2
- package/dist/lib/apps/index.d.ts +2 -1
- package/dist/lib/apps/index.js +21 -5
- package/dist/lib/apps/paths.js +7 -6
- package/dist/lib/create/notification.d.ts +1 -0
- package/dist/lib/create/schemas.d.ts +1 -0
- package/dist/lib/create/schemas.js +1 -0
- package/dist/lib/create/setting.d.ts +15 -0
- package/dist/lib/create/setting.js +27 -0
- package/dist/lib/create/tests/templates/env-dts.js +1 -0
- package/dist/lib/create/tests/templates/swell-client.js +2 -0
- package/dist/lib/create/tests/templates/tsconfig.js +2 -0
- package/dist/lib/create/tests/templates/vitest-config.js +1 -0
- package/dist/lib/create/webhook.d.ts +32 -0
- package/dist/lib/create/webhook.js +52 -0
- package/dist/lib/proxy.js +62 -5
- package/dist/swell-api-command.d.ts +14 -0
- package/dist/swell-api-command.js +113 -7
- package/oclif.manifest.json +609 -259
- package/package.json +3 -1
package/oclif.manifest.json
CHANGED
|
@@ -242,12 +242,12 @@
|
|
|
242
242
|
"aliases": [],
|
|
243
243
|
"args": {
|
|
244
244
|
"type": {
|
|
245
|
-
"description": "Schema type (e.g. model, content, setting, notification, webhook)",
|
|
245
|
+
"description": "Schema type (e.g. model, content, setting, notification, webhook, function)",
|
|
246
246
|
"name": "type",
|
|
247
247
|
"required": false
|
|
248
248
|
},
|
|
249
249
|
"file": {
|
|
250
|
-
"description": "Path to
|
|
250
|
+
"description": "Path to file to validate (or use \"-\" for stdin)",
|
|
251
251
|
"name": "file",
|
|
252
252
|
"required": false
|
|
253
253
|
}
|
|
@@ -270,12 +270,16 @@
|
|
|
270
270
|
"command": "<%= config.bin %> <%= command.id %> content --format=dts"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
"description": "Validate a file",
|
|
273
|
+
"description": "Validate a JSON config file",
|
|
274
274
|
"command": "<%= config.bin %> <%= command.id %> content myfile.json"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"description": "Validate from stdin",
|
|
278
278
|
"command": "cat myfile.json | <%= config.bin %> <%= command.id %> content -"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"description": "Validate a function file",
|
|
282
|
+
"command": "<%= config.bin %> <%= command.id %> function myfunction.ts"
|
|
279
283
|
}
|
|
280
284
|
],
|
|
281
285
|
"flags": {
|
|
@@ -306,7 +310,7 @@
|
|
|
306
310
|
"pluginName": "@swell/cli",
|
|
307
311
|
"pluginType": "core",
|
|
308
312
|
"strict": true,
|
|
309
|
-
"summary": "View or validate Swell config
|
|
313
|
+
"summary": "View or validate Swell config schemas.",
|
|
310
314
|
"enableJsonFlag": false,
|
|
311
315
|
"isESM": true,
|
|
312
316
|
"relativePath": [
|
|
@@ -379,7 +383,8 @@
|
|
|
379
383
|
},
|
|
380
384
|
"description": "Remove existing resources from the Swell Backend API.",
|
|
381
385
|
"examples": [
|
|
382
|
-
"swell api delete /products/abc123"
|
|
386
|
+
"swell api delete /products/abc123",
|
|
387
|
+
"swell api delete /functions/my-app/clear-cache"
|
|
383
388
|
],
|
|
384
389
|
"flags": {
|
|
385
390
|
"live": {
|
|
@@ -418,7 +423,8 @@
|
|
|
418
423
|
"examples": [
|
|
419
424
|
"swell api get /products",
|
|
420
425
|
"swell api get \"/products?limit=10&category=shoes\"",
|
|
421
|
-
"swell api get /products/abc123"
|
|
426
|
+
"swell api get /products/abc123",
|
|
427
|
+
"swell api get /functions/my-app/get-inventory"
|
|
422
428
|
],
|
|
423
429
|
"flags": {
|
|
424
430
|
"live": {
|
|
@@ -447,12 +453,14 @@
|
|
|
447
453
|
"api": {
|
|
448
454
|
"aliases": [],
|
|
449
455
|
"args": {},
|
|
450
|
-
"description": "Run Swell API requests directly from the command line.\n Supports GET, POST, PUT, and DELETE methods with optional test/live environments.",
|
|
456
|
+
"description": "Run Swell API requests directly from the command line.\n Supports GET, POST, PUT, and DELETE methods with optional test/live environments.\n Call app functions via /functions/<app_id>/<function_name> paths.",
|
|
451
457
|
"examples": [
|
|
452
458
|
"swell api get /products",
|
|
453
459
|
"swell api post /products --body '{\"name\":\"New product\"}'",
|
|
454
460
|
"swell api put /products/abc123 --body ./update.json",
|
|
455
|
-
"swell api delete /products/abc123"
|
|
461
|
+
"swell api delete /products/abc123",
|
|
462
|
+
"swell api get /functions/my-app/get-inventory",
|
|
463
|
+
"swell api post /functions/my-app/create-order --body '{\"items\":[\"sku-1\"]}'"
|
|
456
464
|
],
|
|
457
465
|
"flags": {},
|
|
458
466
|
"hasDynamicHelp": false,
|
|
@@ -484,7 +492,8 @@
|
|
|
484
492
|
"description": "Create new resources in the Swell Backend API.\n You can provide a JSON body directly or specify a file path containing JSON data.",
|
|
485
493
|
"examples": [
|
|
486
494
|
"swell api post /products --body '{\"name\": \"Product\", \"price\": 100}'",
|
|
487
|
-
"swell api post /products --body ./product.json"
|
|
495
|
+
"swell api post /products --body ./product.json",
|
|
496
|
+
"swell api post /functions/my-app/create-order --body '{\"items\":[\"sku-1\"]}'"
|
|
488
497
|
],
|
|
489
498
|
"flags": {
|
|
490
499
|
"body": {
|
|
@@ -529,7 +538,8 @@
|
|
|
529
538
|
"description": "Update existing resources in the Swell Backend API.\n You can provide a JSON body directly or specify a file path containing JSON data.",
|
|
530
539
|
"examples": [
|
|
531
540
|
"swell api put /products/{id} --body '{\"id\": \"abc123\", \"name\": \"Updated\"}'",
|
|
532
|
-
"swell api put /products/abc123 --body ./product.json"
|
|
541
|
+
"swell api put /products/abc123 --body ./product.json",
|
|
542
|
+
"swell api put /functions/my-app/update-stock --body '{\"sku\":\"abc\",\"qty\":10}'"
|
|
533
543
|
],
|
|
534
544
|
"flags": {
|
|
535
545
|
"body": {
|
|
@@ -571,7 +581,7 @@
|
|
|
571
581
|
],
|
|
572
582
|
"flags": {
|
|
573
583
|
"app-path": {
|
|
574
|
-
"description": "
|
|
584
|
+
"description": "Path to your app directory",
|
|
575
585
|
"name": "app-path",
|
|
576
586
|
"hasDynamicHelp": false,
|
|
577
587
|
"multiple": false,
|
|
@@ -625,7 +635,7 @@
|
|
|
625
635
|
],
|
|
626
636
|
"flags": {
|
|
627
637
|
"app-path": {
|
|
628
|
-
"description": "
|
|
638
|
+
"description": "Path to your app directory",
|
|
629
639
|
"name": "app-path",
|
|
630
640
|
"hasDynamicHelp": false,
|
|
631
641
|
"multiple": false,
|
|
@@ -707,7 +717,7 @@
|
|
|
707
717
|
],
|
|
708
718
|
"flags": {
|
|
709
719
|
"app-path": {
|
|
710
|
-
"description": "
|
|
720
|
+
"description": "Path to your app directory",
|
|
711
721
|
"name": "app-path",
|
|
712
722
|
"hasDynamicHelp": false,
|
|
713
723
|
"multiple": false,
|
|
@@ -737,24 +747,22 @@
|
|
|
737
747
|
"args": {
|
|
738
748
|
"id": {
|
|
739
749
|
"default": "",
|
|
740
|
-
"description": "
|
|
750
|
+
"description": "App identifier (defaults to current directory name)",
|
|
741
751
|
"name": "id"
|
|
742
752
|
}
|
|
743
753
|
},
|
|
744
754
|
"description": "Initialize app swell.json in the current directory.",
|
|
745
755
|
"examples": [
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
"description": "Initialize app and accept all default values."
|
|
753
|
-
}
|
|
756
|
+
"$ swell app init",
|
|
757
|
+
"$ swell app init my-app",
|
|
758
|
+
"$ swell app init -t admin -y",
|
|
759
|
+
"$ swell app init my-app -t admin -y",
|
|
760
|
+
"$ swell app init my-app -t admin --frontend astro -y",
|
|
761
|
+
"$ swell app init my_theme -t theme --storefront-app proxima -y"
|
|
754
762
|
],
|
|
755
763
|
"flags": {
|
|
756
764
|
"frontend": {
|
|
757
|
-
"description": "
|
|
765
|
+
"description": "Framework: astro | angular | hono | nuxt | nextjs | none",
|
|
758
766
|
"name": "frontend",
|
|
759
767
|
"hasDynamicHelp": false,
|
|
760
768
|
"multiple": false,
|
|
@@ -769,14 +777,14 @@
|
|
|
769
777
|
"type": "option"
|
|
770
778
|
},
|
|
771
779
|
"storefront-app": {
|
|
772
|
-
"description": "
|
|
780
|
+
"description": "Target storefront app ID",
|
|
773
781
|
"name": "storefront-app",
|
|
774
782
|
"hasDynamicHelp": false,
|
|
775
783
|
"multiple": false,
|
|
776
784
|
"type": "option"
|
|
777
785
|
},
|
|
778
786
|
"integration-type": {
|
|
779
|
-
"description": "
|
|
787
|
+
"description": "Integration: generic | payment | shipping | tax",
|
|
780
788
|
"name": "integration-type",
|
|
781
789
|
"hasDynamicHelp": false,
|
|
782
790
|
"multiple": false,
|
|
@@ -789,7 +797,7 @@
|
|
|
789
797
|
"type": "option"
|
|
790
798
|
},
|
|
791
799
|
"integration-id": {
|
|
792
|
-
"description": "
|
|
800
|
+
"description": "Service ID (e.g., card, fedex)",
|
|
793
801
|
"name": "integration-id",
|
|
794
802
|
"hasDynamicHelp": false,
|
|
795
803
|
"multiple": false,
|
|
@@ -797,10 +805,62 @@
|
|
|
797
805
|
},
|
|
798
806
|
"yes": {
|
|
799
807
|
"char": "y",
|
|
800
|
-
"description": "
|
|
808
|
+
"description": "Skip prompts, require all arguments",
|
|
801
809
|
"name": "yes",
|
|
802
810
|
"allowNo": false,
|
|
803
811
|
"type": "boolean"
|
|
812
|
+
},
|
|
813
|
+
"pkg": {
|
|
814
|
+
"char": "p",
|
|
815
|
+
"description": "Package manager: npm | yarn | none",
|
|
816
|
+
"name": "pkg",
|
|
817
|
+
"default": "npm",
|
|
818
|
+
"hasDynamicHelp": false,
|
|
819
|
+
"multiple": false,
|
|
820
|
+
"options": [
|
|
821
|
+
"npm",
|
|
822
|
+
"yarn",
|
|
823
|
+
"none"
|
|
824
|
+
],
|
|
825
|
+
"type": "option"
|
|
826
|
+
},
|
|
827
|
+
"type": {
|
|
828
|
+
"char": "t",
|
|
829
|
+
"description": "App type: admin | storefront | theme | integration",
|
|
830
|
+
"name": "type",
|
|
831
|
+
"hasDynamicHelp": false,
|
|
832
|
+
"multiple": false,
|
|
833
|
+
"options": [
|
|
834
|
+
"admin",
|
|
835
|
+
"integration",
|
|
836
|
+
"storefront",
|
|
837
|
+
"theme"
|
|
838
|
+
],
|
|
839
|
+
"type": "option"
|
|
840
|
+
},
|
|
841
|
+
"name": {
|
|
842
|
+
"char": "n",
|
|
843
|
+
"description": "Display name (default: capitalized ID)",
|
|
844
|
+
"name": "name",
|
|
845
|
+
"hasDynamicHelp": false,
|
|
846
|
+
"multiple": false,
|
|
847
|
+
"type": "option"
|
|
848
|
+
},
|
|
849
|
+
"version": {
|
|
850
|
+
"char": "v",
|
|
851
|
+
"description": "Version (default: 1.0.0)",
|
|
852
|
+
"name": "version",
|
|
853
|
+
"hasDynamicHelp": false,
|
|
854
|
+
"multiple": false,
|
|
855
|
+
"type": "option"
|
|
856
|
+
},
|
|
857
|
+
"description": {
|
|
858
|
+
"char": "d",
|
|
859
|
+
"description": "Description",
|
|
860
|
+
"name": "description",
|
|
861
|
+
"hasDynamicHelp": false,
|
|
862
|
+
"multiple": false,
|
|
863
|
+
"type": "option"
|
|
804
864
|
}
|
|
805
865
|
},
|
|
806
866
|
"hasDynamicHelp": false,
|
|
@@ -811,6 +871,49 @@
|
|
|
811
871
|
"pluginType": "core",
|
|
812
872
|
"strict": true,
|
|
813
873
|
"enableJsonFlag": false,
|
|
874
|
+
"helpMeta": {
|
|
875
|
+
"typeSection": {
|
|
876
|
+
"title": "APP TYPES",
|
|
877
|
+
"types": [
|
|
878
|
+
{
|
|
879
|
+
"name": "admin",
|
|
880
|
+
"description": "Dashboard extension",
|
|
881
|
+
"optional": [
|
|
882
|
+
"--frontend"
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "storefront",
|
|
887
|
+
"description": "Hosted storefront",
|
|
888
|
+
"optional": [
|
|
889
|
+
"--frontend"
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "theme",
|
|
894
|
+
"description": "Theme for existing storefront",
|
|
895
|
+
"requires": [
|
|
896
|
+
"--storefront-app"
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "integration",
|
|
901
|
+
"description": "Third-party service",
|
|
902
|
+
"requires": [
|
|
903
|
+
"--integration-type",
|
|
904
|
+
"--integration-id (for payment | shipping | tax)"
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
]
|
|
908
|
+
},
|
|
909
|
+
"typeFlags": [
|
|
910
|
+
"frontend",
|
|
911
|
+
"storefront-app",
|
|
912
|
+
"integration-type",
|
|
913
|
+
"integration-id"
|
|
914
|
+
],
|
|
915
|
+
"usageDirect": "[id] -t <type> [...] -y"
|
|
916
|
+
},
|
|
814
917
|
"isESM": true,
|
|
815
918
|
"relativePath": [
|
|
816
919
|
"dist",
|
|
@@ -830,7 +933,7 @@
|
|
|
830
933
|
],
|
|
831
934
|
"flags": {
|
|
832
935
|
"app-path": {
|
|
833
|
-
"description": "
|
|
936
|
+
"description": "Path to your app directory",
|
|
834
937
|
"name": "app-path",
|
|
835
938
|
"hasDynamicHelp": false,
|
|
836
939
|
"multiple": false,
|
|
@@ -905,7 +1008,7 @@
|
|
|
905
1008
|
],
|
|
906
1009
|
"flags": {
|
|
907
1010
|
"app-path": {
|
|
908
|
-
"description": "
|
|
1011
|
+
"description": "Path to your app directory",
|
|
909
1012
|
"name": "app-path",
|
|
910
1013
|
"hasDynamicHelp": false,
|
|
911
1014
|
"multiple": false,
|
|
@@ -953,7 +1056,7 @@
|
|
|
953
1056
|
],
|
|
954
1057
|
"flags": {
|
|
955
1058
|
"app-path": {
|
|
956
|
-
"description": "
|
|
1059
|
+
"description": "Path to your app directory",
|
|
957
1060
|
"name": "app-path",
|
|
958
1061
|
"hasDynamicHelp": false,
|
|
959
1062
|
"multiple": false,
|
|
@@ -1009,7 +1112,7 @@
|
|
|
1009
1112
|
],
|
|
1010
1113
|
"flags": {
|
|
1011
1114
|
"app-path": {
|
|
1012
|
-
"description": "
|
|
1115
|
+
"description": "Path to your app directory",
|
|
1013
1116
|
"name": "app-path",
|
|
1014
1117
|
"hasDynamicHelp": false,
|
|
1015
1118
|
"multiple": false,
|
|
@@ -1092,7 +1195,7 @@
|
|
|
1092
1195
|
],
|
|
1093
1196
|
"flags": {
|
|
1094
1197
|
"app-path": {
|
|
1095
|
-
"description": "
|
|
1198
|
+
"description": "Path to your app directory",
|
|
1096
1199
|
"name": "app-path",
|
|
1097
1200
|
"hasDynamicHelp": false,
|
|
1098
1201
|
"multiple": false,
|
|
@@ -1104,6 +1207,12 @@
|
|
|
1104
1207
|
"allowNo": false,
|
|
1105
1208
|
"type": "boolean"
|
|
1106
1209
|
},
|
|
1210
|
+
"force-create-files": {
|
|
1211
|
+
"description": "do not use files from previous versions",
|
|
1212
|
+
"name": "force-create-files",
|
|
1213
|
+
"allowNo": false,
|
|
1214
|
+
"type": "boolean"
|
|
1215
|
+
},
|
|
1107
1216
|
"message": {
|
|
1108
1217
|
"char": "m",
|
|
1109
1218
|
"description": "description of the changes in this version for internal use",
|
|
@@ -1156,7 +1265,7 @@
|
|
|
1156
1265
|
],
|
|
1157
1266
|
"flags": {
|
|
1158
1267
|
"app-path": {
|
|
1159
|
-
"description": "
|
|
1268
|
+
"description": "Path to your app directory",
|
|
1160
1269
|
"name": "app-path",
|
|
1161
1270
|
"hasDynamicHelp": false,
|
|
1162
1271
|
"multiple": false,
|
|
@@ -1194,52 +1303,22 @@
|
|
|
1194
1303
|
"args": {
|
|
1195
1304
|
"id": {
|
|
1196
1305
|
"default": "",
|
|
1197
|
-
"description": "
|
|
1306
|
+
"description": "App identifier (e.g., my-app)",
|
|
1198
1307
|
"name": "id"
|
|
1199
1308
|
}
|
|
1200
1309
|
},
|
|
1201
1310
|
"description": "Create an app.",
|
|
1202
1311
|
"examples": [
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
"description": "Non-interactive: minimal with defaults."
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
"command": "swell create app my_app --type admin --name \"My App\" --version 1.0.1 --description \"\" -y",
|
|
1213
|
-
"description": "Non-interactive: explicit name, version, description."
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
"command": "swell create app my_app --type admin --frontend astro -y",
|
|
1217
|
-
"description": "Non-interactive: initialize an Astro frontend."
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"command": "swell create app my_theme --type theme --storefront-app proxima -y",
|
|
1221
|
-
"description": "Non-interactive: theme targeting a specific storefront app."
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"command": "swell create app my_payment --type integration --integration-type payment --integration-id card -y",
|
|
1225
|
-
"description": "Non-interactive: payment integration for credit cards."
|
|
1226
|
-
},
|
|
1227
|
-
{
|
|
1228
|
-
"command": "swell create app my_shipping --type integration --integration-type shipping --integration-id fedex -y",
|
|
1229
|
-
"description": "Non-interactive: shipping integration for FedEx."
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"command": "swell create app -p yarn",
|
|
1233
|
-
"description": "Package manager: use Yarn instead of npm."
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"command": "swell create app -p none",
|
|
1237
|
-
"description": "Package manager: skip installing default dependencies."
|
|
1238
|
-
}
|
|
1312
|
+
"$ swell create app",
|
|
1313
|
+
"$ swell create app my_app -t admin -y",
|
|
1314
|
+
"$ swell create app my_app -t admin --frontend astro -y",
|
|
1315
|
+
"$ swell create app my_theme -t theme --storefront-app proxima -y",
|
|
1316
|
+
"$ swell create app my_payment -t integration --integration-type payment --integration-id card -y",
|
|
1317
|
+
"$ swell create app my_shipping -t integration --integration-type shipping --integration-id fedex -y"
|
|
1239
1318
|
],
|
|
1240
1319
|
"flags": {
|
|
1241
1320
|
"frontend": {
|
|
1242
|
-
"description": "
|
|
1321
|
+
"description": "Framework: astro | angular | hono | nuxt | nextjs | none",
|
|
1243
1322
|
"name": "frontend",
|
|
1244
1323
|
"hasDynamicHelp": false,
|
|
1245
1324
|
"multiple": false,
|
|
@@ -1254,14 +1333,14 @@
|
|
|
1254
1333
|
"type": "option"
|
|
1255
1334
|
},
|
|
1256
1335
|
"storefront-app": {
|
|
1257
|
-
"description": "
|
|
1336
|
+
"description": "Target storefront app ID",
|
|
1258
1337
|
"name": "storefront-app",
|
|
1259
1338
|
"hasDynamicHelp": false,
|
|
1260
1339
|
"multiple": false,
|
|
1261
1340
|
"type": "option"
|
|
1262
1341
|
},
|
|
1263
1342
|
"integration-type": {
|
|
1264
|
-
"description": "
|
|
1343
|
+
"description": "Integration: generic | payment | shipping | tax",
|
|
1265
1344
|
"name": "integration-type",
|
|
1266
1345
|
"hasDynamicHelp": false,
|
|
1267
1346
|
"multiple": false,
|
|
@@ -1274,7 +1353,7 @@
|
|
|
1274
1353
|
"type": "option"
|
|
1275
1354
|
},
|
|
1276
1355
|
"integration-id": {
|
|
1277
|
-
"description": "
|
|
1356
|
+
"description": "Service ID (e.g., card, fedex)",
|
|
1278
1357
|
"name": "integration-id",
|
|
1279
1358
|
"hasDynamicHelp": false,
|
|
1280
1359
|
"multiple": false,
|
|
@@ -1282,14 +1361,14 @@
|
|
|
1282
1361
|
},
|
|
1283
1362
|
"yes": {
|
|
1284
1363
|
"char": "y",
|
|
1285
|
-
"description": "
|
|
1364
|
+
"description": "Skip prompts, require all arguments",
|
|
1286
1365
|
"name": "yes",
|
|
1287
1366
|
"allowNo": false,
|
|
1288
1367
|
"type": "boolean"
|
|
1289
1368
|
},
|
|
1290
1369
|
"pkg": {
|
|
1291
1370
|
"char": "p",
|
|
1292
|
-
"description": "
|
|
1371
|
+
"description": "Package manager: npm | yarn | none",
|
|
1293
1372
|
"name": "pkg",
|
|
1294
1373
|
"default": "npm",
|
|
1295
1374
|
"hasDynamicHelp": false,
|
|
@@ -1303,7 +1382,7 @@
|
|
|
1303
1382
|
},
|
|
1304
1383
|
"type": {
|
|
1305
1384
|
"char": "t",
|
|
1306
|
-
"description": "
|
|
1385
|
+
"description": "App type: admin | storefront | theme | integration",
|
|
1307
1386
|
"name": "type",
|
|
1308
1387
|
"hasDynamicHelp": false,
|
|
1309
1388
|
"multiple": false,
|
|
@@ -1317,7 +1396,7 @@
|
|
|
1317
1396
|
},
|
|
1318
1397
|
"name": {
|
|
1319
1398
|
"char": "n",
|
|
1320
|
-
"description": "
|
|
1399
|
+
"description": "Display name (default: capitalized ID)",
|
|
1321
1400
|
"name": "name",
|
|
1322
1401
|
"hasDynamicHelp": false,
|
|
1323
1402
|
"multiple": false,
|
|
@@ -1325,7 +1404,7 @@
|
|
|
1325
1404
|
},
|
|
1326
1405
|
"version": {
|
|
1327
1406
|
"char": "v",
|
|
1328
|
-
"description": "
|
|
1407
|
+
"description": "Version (default: 1.0.0)",
|
|
1329
1408
|
"name": "version",
|
|
1330
1409
|
"hasDynamicHelp": false,
|
|
1331
1410
|
"multiple": false,
|
|
@@ -1333,7 +1412,7 @@
|
|
|
1333
1412
|
},
|
|
1334
1413
|
"description": {
|
|
1335
1414
|
"char": "d",
|
|
1336
|
-
"description": "
|
|
1415
|
+
"description": "Description",
|
|
1337
1416
|
"name": "description",
|
|
1338
1417
|
"hasDynamicHelp": false,
|
|
1339
1418
|
"multiple": false,
|
|
@@ -1348,6 +1427,49 @@
|
|
|
1348
1427
|
"pluginType": "core",
|
|
1349
1428
|
"strict": true,
|
|
1350
1429
|
"enableJsonFlag": false,
|
|
1430
|
+
"helpMeta": {
|
|
1431
|
+
"typeSection": {
|
|
1432
|
+
"title": "APP TYPES",
|
|
1433
|
+
"types": [
|
|
1434
|
+
{
|
|
1435
|
+
"name": "admin",
|
|
1436
|
+
"description": "Dashboard extension",
|
|
1437
|
+
"optional": [
|
|
1438
|
+
"--frontend"
|
|
1439
|
+
]
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"name": "storefront",
|
|
1443
|
+
"description": "Hosted storefront",
|
|
1444
|
+
"optional": [
|
|
1445
|
+
"--frontend"
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "theme",
|
|
1450
|
+
"description": "Theme for existing storefront",
|
|
1451
|
+
"requires": [
|
|
1452
|
+
"--storefront-app"
|
|
1453
|
+
]
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "integration",
|
|
1457
|
+
"description": "Third-party service",
|
|
1458
|
+
"requires": [
|
|
1459
|
+
"--integration-type",
|
|
1460
|
+
"--integration-id (for payment | shipping | tax)"
|
|
1461
|
+
]
|
|
1462
|
+
}
|
|
1463
|
+
]
|
|
1464
|
+
},
|
|
1465
|
+
"typeFlags": [
|
|
1466
|
+
"frontend",
|
|
1467
|
+
"storefront-app",
|
|
1468
|
+
"integration-type",
|
|
1469
|
+
"integration-id"
|
|
1470
|
+
],
|
|
1471
|
+
"usageDirect": "<id> -t <type> [...] -y"
|
|
1472
|
+
},
|
|
1351
1473
|
"isESM": true,
|
|
1352
1474
|
"relativePath": [
|
|
1353
1475
|
"dist",
|
|
@@ -1361,32 +1483,15 @@
|
|
|
1361
1483
|
"args": {
|
|
1362
1484
|
"collection": {
|
|
1363
1485
|
"default": "",
|
|
1364
|
-
"description": "
|
|
1486
|
+
"description": "Collection ID to create or extend (e.g., products)",
|
|
1365
1487
|
"name": "collection"
|
|
1366
1488
|
}
|
|
1367
1489
|
},
|
|
1368
|
-
"description": "Interactive mode
|
|
1490
|
+
"description": "Interactive mode lets you choose to create a new collection or extend a standard one.\nTo discover standard collections: swell inspect models",
|
|
1369
1491
|
"examples": [
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
},
|
|
1374
|
-
{
|
|
1375
|
-
"command": "swell create content products -y",
|
|
1376
|
-
"description": "Apply configuration to a standard collection (non-interactive)"
|
|
1377
|
-
},
|
|
1378
|
-
{
|
|
1379
|
-
"command": "swell create content visitors -v list,edit,new -f name:short_text,verified:boolean -l \"Visitors\" -d \"\" -y",
|
|
1380
|
-
"description": "Create custom collection with explicit fields and views (non-interactive)"
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
"command": "swell create content visitors --overwrite -y",
|
|
1384
|
-
"description": "Non-interactive: force overwrite existing config file"
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
"command": "swell create content visitors -f name:short_text,description:long_text,verified:boolean,visitor_count:integer,photo:image,orders:collection",
|
|
1388
|
-
"description": "Specify fields with types delimited by commas (interactive mode)"
|
|
1389
|
-
}
|
|
1492
|
+
"$ swell create content",
|
|
1493
|
+
"$ swell create content products -y",
|
|
1494
|
+
"$ swell create content visitors -v list,edit,new -f name:short_text,verified:boolean -y"
|
|
1390
1495
|
],
|
|
1391
1496
|
"flags": {
|
|
1392
1497
|
"app-path": {
|
|
@@ -1396,9 +1501,18 @@
|
|
|
1396
1501
|
"multiple": false,
|
|
1397
1502
|
"type": "option"
|
|
1398
1503
|
},
|
|
1504
|
+
"label": {
|
|
1505
|
+
"char": "l",
|
|
1506
|
+
"description": "Display label (default: capitalized collection)",
|
|
1507
|
+
"name": "label",
|
|
1508
|
+
"default": "",
|
|
1509
|
+
"hasDynamicHelp": false,
|
|
1510
|
+
"multiple": false,
|
|
1511
|
+
"type": "option"
|
|
1512
|
+
},
|
|
1399
1513
|
"description": {
|
|
1400
1514
|
"char": "d",
|
|
1401
|
-
"description": "
|
|
1515
|
+
"description": "Description",
|
|
1402
1516
|
"name": "description",
|
|
1403
1517
|
"default": "",
|
|
1404
1518
|
"hasDynamicHelp": false,
|
|
@@ -1407,40 +1521,31 @@
|
|
|
1407
1521
|
},
|
|
1408
1522
|
"fields": {
|
|
1409
1523
|
"char": "f",
|
|
1410
|
-
"description": "
|
|
1524
|
+
"description": "Fields as id:type pairs (e.g., name:short_text,verified:boolean)",
|
|
1411
1525
|
"name": "fields",
|
|
1412
1526
|
"default": "",
|
|
1413
1527
|
"hasDynamicHelp": false,
|
|
1414
1528
|
"multiple": false,
|
|
1415
1529
|
"type": "option"
|
|
1416
1530
|
},
|
|
1417
|
-
"
|
|
1418
|
-
"char": "
|
|
1419
|
-
"description": "
|
|
1420
|
-
"name": "
|
|
1531
|
+
"views": {
|
|
1532
|
+
"char": "v",
|
|
1533
|
+
"description": "Views to enable: list | edit | new",
|
|
1534
|
+
"name": "views",
|
|
1421
1535
|
"default": "",
|
|
1422
1536
|
"hasDynamicHelp": false,
|
|
1423
1537
|
"multiple": false,
|
|
1424
1538
|
"type": "option"
|
|
1425
1539
|
},
|
|
1426
1540
|
"overwrite": {
|
|
1427
|
-
"description": "
|
|
1541
|
+
"description": "Overwrite existing file",
|
|
1428
1542
|
"name": "overwrite",
|
|
1429
1543
|
"allowNo": false,
|
|
1430
1544
|
"type": "boolean"
|
|
1431
1545
|
},
|
|
1432
|
-
"views": {
|
|
1433
|
-
"char": "v",
|
|
1434
|
-
"description": "comma-separated views - valid: list, edit, new",
|
|
1435
|
-
"name": "views",
|
|
1436
|
-
"default": "",
|
|
1437
|
-
"hasDynamicHelp": false,
|
|
1438
|
-
"multiple": false,
|
|
1439
|
-
"type": "option"
|
|
1440
|
-
},
|
|
1441
1546
|
"yes": {
|
|
1442
1547
|
"char": "y",
|
|
1443
|
-
"description": "
|
|
1548
|
+
"description": "Skip prompts, require all arguments",
|
|
1444
1549
|
"name": "yes",
|
|
1445
1550
|
"allowNo": false,
|
|
1446
1551
|
"type": "boolean"
|
|
@@ -1452,7 +1557,10 @@
|
|
|
1452
1557
|
"pluginAlias": "@swell/cli",
|
|
1453
1558
|
"pluginName": "@swell/cli",
|
|
1454
1559
|
"pluginType": "core",
|
|
1455
|
-
"summary": "
|
|
1560
|
+
"summary": "Create a content UI model configuration in the content folder.",
|
|
1561
|
+
"helpMeta": {
|
|
1562
|
+
"usageDirect": "<collection> [...] -y"
|
|
1563
|
+
},
|
|
1456
1564
|
"isESM": true,
|
|
1457
1565
|
"relativePath": [
|
|
1458
1566
|
"dist",
|
|
@@ -1477,7 +1585,7 @@
|
|
|
1477
1585
|
],
|
|
1478
1586
|
"flags": {
|
|
1479
1587
|
"frontend": {
|
|
1480
|
-
"description": "
|
|
1588
|
+
"description": "Framework: astro | angular | hono | nuxt | nextjs | none",
|
|
1481
1589
|
"name": "frontend",
|
|
1482
1590
|
"hasDynamicHelp": false,
|
|
1483
1591
|
"multiple": false,
|
|
@@ -1492,14 +1600,14 @@
|
|
|
1492
1600
|
"type": "option"
|
|
1493
1601
|
},
|
|
1494
1602
|
"storefront-app": {
|
|
1495
|
-
"description": "
|
|
1603
|
+
"description": "Target storefront app ID",
|
|
1496
1604
|
"name": "storefront-app",
|
|
1497
1605
|
"hasDynamicHelp": false,
|
|
1498
1606
|
"multiple": false,
|
|
1499
1607
|
"type": "option"
|
|
1500
1608
|
},
|
|
1501
1609
|
"integration-type": {
|
|
1502
|
-
"description": "
|
|
1610
|
+
"description": "Integration: generic | payment | shipping | tax",
|
|
1503
1611
|
"name": "integration-type",
|
|
1504
1612
|
"hasDynamicHelp": false,
|
|
1505
1613
|
"multiple": false,
|
|
@@ -1512,7 +1620,7 @@
|
|
|
1512
1620
|
"type": "option"
|
|
1513
1621
|
},
|
|
1514
1622
|
"integration-id": {
|
|
1515
|
-
"description": "
|
|
1623
|
+
"description": "Service ID (e.g., card, fedex)",
|
|
1516
1624
|
"name": "integration-id",
|
|
1517
1625
|
"hasDynamicHelp": false,
|
|
1518
1626
|
"multiple": false,
|
|
@@ -1520,7 +1628,7 @@
|
|
|
1520
1628
|
},
|
|
1521
1629
|
"yes": {
|
|
1522
1630
|
"char": "y",
|
|
1523
|
-
"description": "
|
|
1631
|
+
"description": "Skip prompts, require all arguments",
|
|
1524
1632
|
"name": "yes",
|
|
1525
1633
|
"allowNo": false,
|
|
1526
1634
|
"type": "boolean"
|
|
@@ -1559,12 +1667,14 @@
|
|
|
1559
1667
|
"create:function": {
|
|
1560
1668
|
"aliases": [],
|
|
1561
1669
|
"args": {
|
|
1562
|
-
"
|
|
1563
|
-
"
|
|
1564
|
-
"
|
|
1670
|
+
"name": {
|
|
1671
|
+
"default": "",
|
|
1672
|
+
"description": "Filename with extension (e.g., my-func.ts)",
|
|
1673
|
+
"name": "name"
|
|
1565
1674
|
},
|
|
1566
1675
|
"trigger": {
|
|
1567
|
-
"
|
|
1676
|
+
"default": "",
|
|
1677
|
+
"description": "cron | model | route",
|
|
1568
1678
|
"name": "trigger",
|
|
1569
1679
|
"options": [
|
|
1570
1680
|
"cron",
|
|
@@ -1573,28 +1683,15 @@
|
|
|
1573
1683
|
]
|
|
1574
1684
|
}
|
|
1575
1685
|
},
|
|
1576
|
-
"description": "This command assists in generating functions scripts. CLI will prompt for values when flags are not present.",
|
|
1577
1686
|
"examples": [
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
{
|
|
1583
|
-
"command": "swell create function orders-subscriptions-created.ts model --events order.created,subscription.created",
|
|
1584
|
-
"description": "Specify model event trigger of the function."
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
"command": "swell create function get-frontend-data.ts route --route public",
|
|
1588
|
-
"description": "Specify public API access."
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"command": "swell create function process-metrics.ts cron --schedule \"0 0 * * *\"",
|
|
1592
|
-
"description": "Specify schedule of the cron function."
|
|
1593
|
-
}
|
|
1687
|
+
"$ swell create function",
|
|
1688
|
+
"$ swell create function order-handler.ts model -e order.created,order.updated -y",
|
|
1689
|
+
"$ swell create function cleanup.ts cron -s \"0 0 * * *\" -y",
|
|
1690
|
+
"$ swell create function api-endpoint.ts route -r public -y"
|
|
1594
1691
|
],
|
|
1595
1692
|
"flags": {
|
|
1596
1693
|
"app-path": {
|
|
1597
|
-
"description": "
|
|
1694
|
+
"description": "Path to your app directory",
|
|
1598
1695
|
"name": "app-path",
|
|
1599
1696
|
"hasDynamicHelp": false,
|
|
1600
1697
|
"multiple": false,
|
|
@@ -1602,7 +1699,7 @@
|
|
|
1602
1699
|
},
|
|
1603
1700
|
"description": {
|
|
1604
1701
|
"char": "d",
|
|
1605
|
-
"description": "
|
|
1702
|
+
"description": "Description",
|
|
1606
1703
|
"name": "description",
|
|
1607
1704
|
"default": "",
|
|
1608
1705
|
"hasDynamicHelp": false,
|
|
@@ -1611,7 +1708,7 @@
|
|
|
1611
1708
|
},
|
|
1612
1709
|
"events": {
|
|
1613
1710
|
"char": "e",
|
|
1614
|
-
"description": "
|
|
1711
|
+
"description": "Model events (e.g., order.created,order.updated)",
|
|
1615
1712
|
"name": "events",
|
|
1616
1713
|
"default": "",
|
|
1617
1714
|
"hasDynamicHelp": false,
|
|
@@ -1619,16 +1716,16 @@
|
|
|
1619
1716
|
"type": "option"
|
|
1620
1717
|
},
|
|
1621
1718
|
"overwrite": {
|
|
1622
|
-
"description": "
|
|
1719
|
+
"description": "Overwrite existing file",
|
|
1623
1720
|
"name": "overwrite",
|
|
1624
1721
|
"allowNo": false,
|
|
1625
1722
|
"type": "boolean"
|
|
1626
1723
|
},
|
|
1627
1724
|
"route": {
|
|
1628
1725
|
"char": "r",
|
|
1629
|
-
"description": "
|
|
1726
|
+
"description": "Access: public | private",
|
|
1630
1727
|
"name": "route",
|
|
1631
|
-
"default": "
|
|
1728
|
+
"default": "",
|
|
1632
1729
|
"hasDynamicHelp": false,
|
|
1633
1730
|
"multiple": false,
|
|
1634
1731
|
"options": [
|
|
@@ -1639,12 +1736,19 @@
|
|
|
1639
1736
|
},
|
|
1640
1737
|
"schedule": {
|
|
1641
1738
|
"char": "s",
|
|
1642
|
-
"description": "
|
|
1739
|
+
"description": "Cron expression (e.g., \"0 0 * * *\")",
|
|
1643
1740
|
"name": "schedule",
|
|
1644
1741
|
"default": "",
|
|
1645
1742
|
"hasDynamicHelp": false,
|
|
1646
1743
|
"multiple": false,
|
|
1647
1744
|
"type": "option"
|
|
1745
|
+
},
|
|
1746
|
+
"yes": {
|
|
1747
|
+
"char": "y",
|
|
1748
|
+
"description": "Skip prompts, require all arguments",
|
|
1749
|
+
"name": "yes",
|
|
1750
|
+
"allowNo": false,
|
|
1751
|
+
"type": "boolean"
|
|
1648
1752
|
}
|
|
1649
1753
|
},
|
|
1650
1754
|
"hasDynamicHelp": false,
|
|
@@ -1654,7 +1758,35 @@
|
|
|
1654
1758
|
"pluginName": "@swell/cli",
|
|
1655
1759
|
"pluginType": "core",
|
|
1656
1760
|
"strict": true,
|
|
1657
|
-
"summary": "
|
|
1761
|
+
"summary": "Create a serverless function in JavaScript or TypeScript.",
|
|
1762
|
+
"helpMeta": {
|
|
1763
|
+
"usageDirect": "<name> <trigger> [...] -y",
|
|
1764
|
+
"variantSection": {
|
|
1765
|
+
"title": "TRIGGER OPTIONS",
|
|
1766
|
+
"variants": [
|
|
1767
|
+
{
|
|
1768
|
+
"name": "model",
|
|
1769
|
+
"flag": "-e, --events=<value>",
|
|
1770
|
+
"description": "Model events (e.g., order.created,order.updated)"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"name": "cron",
|
|
1774
|
+
"flag": "-s, --schedule=<value>",
|
|
1775
|
+
"description": "Cron expression (e.g., \"0 0 * * *\")"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"name": "route",
|
|
1779
|
+
"flag": "-r, --route=<option>",
|
|
1780
|
+
"description": "Access: public (default) | private"
|
|
1781
|
+
}
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"variantFlags": [
|
|
1785
|
+
"events",
|
|
1786
|
+
"schedule",
|
|
1787
|
+
"route"
|
|
1788
|
+
]
|
|
1789
|
+
},
|
|
1658
1790
|
"isESM": true,
|
|
1659
1791
|
"relativePath": [
|
|
1660
1792
|
"dist",
|
|
@@ -1692,28 +1824,15 @@
|
|
|
1692
1824
|
"args": {
|
|
1693
1825
|
"collection": {
|
|
1694
1826
|
"default": "",
|
|
1695
|
-
"description": "
|
|
1827
|
+
"description": "Collection ID to create or extend (e.g., products)",
|
|
1696
1828
|
"name": "collection"
|
|
1697
1829
|
}
|
|
1698
1830
|
},
|
|
1699
|
-
"description": "Interactive mode
|
|
1831
|
+
"description": "Interactive mode lets you choose to create a new collection or extend a standard one.\nTo discover standard collections: swell inspect models",
|
|
1700
1832
|
"examples": [
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
"command": "swell create model products -y",
|
|
1707
|
-
"description": "Apply configuration to a standard collection (non-interactive)"
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"command": "swell create model visitors -e created,updated -f title:string,photo:image -l \"Visitors\" -d \"\" -y",
|
|
1711
|
-
"description": "Create custom collection with explicit fields (non-interactive)"
|
|
1712
|
-
},
|
|
1713
|
-
{
|
|
1714
|
-
"command": "swell inspect models",
|
|
1715
|
-
"description": "List standard collections available for extending"
|
|
1716
|
-
}
|
|
1833
|
+
"$ swell create model",
|
|
1834
|
+
"$ swell create model products -y",
|
|
1835
|
+
"$ swell create model visitors -f title:string,photo:string -l \"Visitors\" -y"
|
|
1717
1836
|
],
|
|
1718
1837
|
"flags": {
|
|
1719
1838
|
"app-path": {
|
|
@@ -1723,51 +1842,51 @@
|
|
|
1723
1842
|
"multiple": false,
|
|
1724
1843
|
"type": "option"
|
|
1725
1844
|
},
|
|
1726
|
-
"
|
|
1727
|
-
"char": "
|
|
1728
|
-
"description": "
|
|
1729
|
-
"name": "
|
|
1845
|
+
"label": {
|
|
1846
|
+
"char": "l",
|
|
1847
|
+
"description": "Display label (default: capitalized collection)",
|
|
1848
|
+
"name": "label",
|
|
1730
1849
|
"default": "",
|
|
1731
1850
|
"hasDynamicHelp": false,
|
|
1732
1851
|
"multiple": false,
|
|
1733
1852
|
"type": "option"
|
|
1734
1853
|
},
|
|
1735
|
-
"
|
|
1736
|
-
"char": "
|
|
1737
|
-
"description": "
|
|
1738
|
-
"name": "
|
|
1739
|
-
"default": "
|
|
1854
|
+
"description": {
|
|
1855
|
+
"char": "d",
|
|
1856
|
+
"description": "Description",
|
|
1857
|
+
"name": "description",
|
|
1858
|
+
"default": "",
|
|
1740
1859
|
"hasDynamicHelp": false,
|
|
1741
1860
|
"multiple": false,
|
|
1742
1861
|
"type": "option"
|
|
1743
1862
|
},
|
|
1744
1863
|
"fields": {
|
|
1745
1864
|
"char": "f",
|
|
1746
|
-
"description": "
|
|
1865
|
+
"description": "Fields as id:type pairs (e.g., title:string,price:currency)",
|
|
1747
1866
|
"name": "fields",
|
|
1748
1867
|
"default": "",
|
|
1749
1868
|
"hasDynamicHelp": false,
|
|
1750
1869
|
"multiple": false,
|
|
1751
1870
|
"type": "option"
|
|
1752
1871
|
},
|
|
1753
|
-
"
|
|
1754
|
-
"char": "
|
|
1755
|
-
"description": "
|
|
1756
|
-
"name": "
|
|
1757
|
-
"default": "",
|
|
1872
|
+
"events": {
|
|
1873
|
+
"char": "e",
|
|
1874
|
+
"description": "Events to track (default: created,updated,deleted)",
|
|
1875
|
+
"name": "events",
|
|
1876
|
+
"default": "created,updated,deleted",
|
|
1758
1877
|
"hasDynamicHelp": false,
|
|
1759
1878
|
"multiple": false,
|
|
1760
1879
|
"type": "option"
|
|
1761
1880
|
},
|
|
1762
1881
|
"overwrite": {
|
|
1763
|
-
"description": "
|
|
1882
|
+
"description": "Overwrite existing file",
|
|
1764
1883
|
"name": "overwrite",
|
|
1765
1884
|
"allowNo": false,
|
|
1766
1885
|
"type": "boolean"
|
|
1767
1886
|
},
|
|
1768
1887
|
"yes": {
|
|
1769
1888
|
"char": "y",
|
|
1770
|
-
"description": "
|
|
1889
|
+
"description": "Skip prompts, require all arguments",
|
|
1771
1890
|
"name": "yes",
|
|
1772
1891
|
"allowNo": false,
|
|
1773
1892
|
"type": "boolean"
|
|
@@ -1780,6 +1899,9 @@
|
|
|
1780
1899
|
"pluginName": "@swell/cli",
|
|
1781
1900
|
"pluginType": "core",
|
|
1782
1901
|
"summary": "Create or extend a data model configuration in the models folder.",
|
|
1902
|
+
"helpMeta": {
|
|
1903
|
+
"usageDirect": "<collection> [...] -y"
|
|
1904
|
+
},
|
|
1783
1905
|
"isESM": true,
|
|
1784
1906
|
"relativePath": [
|
|
1785
1907
|
"dist",
|
|
@@ -1791,49 +1913,30 @@
|
|
|
1791
1913
|
"create:notification": {
|
|
1792
1914
|
"aliases": [],
|
|
1793
1915
|
"args": {
|
|
1794
|
-
"model": {
|
|
1795
|
-
"description": "data model to trigger the notification by",
|
|
1796
|
-
"name": "model"
|
|
1797
|
-
},
|
|
1798
1916
|
"name": {
|
|
1799
|
-
"
|
|
1917
|
+
"default": "",
|
|
1918
|
+
"description": "Notification name (e.g., order-paid)",
|
|
1800
1919
|
"name": "name"
|
|
1801
1920
|
}
|
|
1802
1921
|
},
|
|
1803
|
-
"description": "
|
|
1922
|
+
"description": "Create notification files and configuration in the notifications folder.",
|
|
1804
1923
|
"examples": [
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
},
|
|
1809
|
-
{
|
|
1810
|
-
"command": "swell create notification subscriptions confirmed --event subscription.created --once --s \"Your subscription has been confirmed\" -d \"Send a confirmation email when subscription is created\"",
|
|
1811
|
-
"description": "Specify the model, name, event, subject, and description."
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"command": "swell create notification orders paid --event paid\"",
|
|
1815
|
-
"description": "Specify the event to trigger the notification."
|
|
1816
|
-
}
|
|
1924
|
+
"$ swell create notification",
|
|
1925
|
+
"$ swell create notification order-paid -m orders -y",
|
|
1926
|
+
"$ swell create notification order-paid -m orders -e created -s \"Order Paid\" --admin --once -y"
|
|
1817
1927
|
],
|
|
1818
1928
|
"flags": {
|
|
1819
1929
|
"app-path": {
|
|
1820
|
-
"description": "
|
|
1930
|
+
"description": "Path to your app directory",
|
|
1821
1931
|
"name": "app-path",
|
|
1822
1932
|
"hasDynamicHelp": false,
|
|
1823
1933
|
"multiple": false,
|
|
1824
1934
|
"type": "option"
|
|
1825
1935
|
},
|
|
1826
|
-
"
|
|
1827
|
-
"char": "
|
|
1828
|
-
"description": "
|
|
1829
|
-
"name": "
|
|
1830
|
-
"allowNo": false,
|
|
1831
|
-
"type": "boolean"
|
|
1832
|
-
},
|
|
1833
|
-
"description": {
|
|
1834
|
-
"char": "d",
|
|
1835
|
-
"description": "notification description",
|
|
1836
|
-
"name": "description",
|
|
1936
|
+
"model": {
|
|
1937
|
+
"char": "m",
|
|
1938
|
+
"description": "Triggering model (required with -y)",
|
|
1939
|
+
"name": "model",
|
|
1837
1940
|
"default": "",
|
|
1838
1941
|
"hasDynamicHelp": false,
|
|
1839
1942
|
"multiple": false,
|
|
@@ -1841,50 +1944,159 @@
|
|
|
1841
1944
|
},
|
|
1842
1945
|
"event": {
|
|
1843
1946
|
"char": "e",
|
|
1844
|
-
"description": "
|
|
1947
|
+
"description": "Triggering event (default: created)",
|
|
1845
1948
|
"name": "event",
|
|
1846
1949
|
"default": "",
|
|
1847
1950
|
"hasDynamicHelp": false,
|
|
1848
1951
|
"multiple": false,
|
|
1849
1952
|
"type": "option"
|
|
1850
1953
|
},
|
|
1954
|
+
"subject": {
|
|
1955
|
+
"char": "s",
|
|
1956
|
+
"description": "Email subject",
|
|
1957
|
+
"name": "subject",
|
|
1958
|
+
"default": "",
|
|
1959
|
+
"hasDynamicHelp": false,
|
|
1960
|
+
"multiple": false,
|
|
1961
|
+
"type": "option"
|
|
1962
|
+
},
|
|
1963
|
+
"description": {
|
|
1964
|
+
"char": "d",
|
|
1965
|
+
"description": "Description",
|
|
1966
|
+
"name": "description",
|
|
1967
|
+
"default": "",
|
|
1968
|
+
"hasDynamicHelp": false,
|
|
1969
|
+
"multiple": false,
|
|
1970
|
+
"type": "option"
|
|
1971
|
+
},
|
|
1972
|
+
"admin": {
|
|
1973
|
+
"char": "a",
|
|
1974
|
+
"description": "Send to store admins only",
|
|
1975
|
+
"name": "admin",
|
|
1976
|
+
"allowNo": false,
|
|
1977
|
+
"type": "boolean"
|
|
1978
|
+
},
|
|
1851
1979
|
"once": {
|
|
1852
1980
|
"char": "o",
|
|
1853
|
-
"description": "
|
|
1981
|
+
"description": "Send only once when conditions met",
|
|
1854
1982
|
"name": "once",
|
|
1855
1983
|
"allowNo": false,
|
|
1856
1984
|
"type": "boolean"
|
|
1857
1985
|
},
|
|
1858
1986
|
"overwrite": {
|
|
1859
|
-
"description": "
|
|
1987
|
+
"description": "Overwrite existing file",
|
|
1860
1988
|
"name": "overwrite",
|
|
1861
1989
|
"allowNo": false,
|
|
1862
1990
|
"type": "boolean"
|
|
1863
1991
|
},
|
|
1864
|
-
"
|
|
1865
|
-
"char": "
|
|
1866
|
-
"description": "
|
|
1867
|
-
"name": "
|
|
1992
|
+
"yes": {
|
|
1993
|
+
"char": "y",
|
|
1994
|
+
"description": "Skip prompts, require all arguments",
|
|
1995
|
+
"name": "yes",
|
|
1996
|
+
"allowNo": false,
|
|
1997
|
+
"type": "boolean"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"hasDynamicHelp": false,
|
|
2001
|
+
"hiddenAliases": [],
|
|
2002
|
+
"id": "create:notification",
|
|
2003
|
+
"pluginAlias": "@swell/cli",
|
|
2004
|
+
"pluginName": "@swell/cli",
|
|
2005
|
+
"pluginType": "core",
|
|
2006
|
+
"strict": true,
|
|
2007
|
+
"summary": "Create notification files and configuration in the notifications folder.",
|
|
2008
|
+
"helpMeta": {
|
|
2009
|
+
"usageDirect": "<name> -m <model> [...] -y"
|
|
2010
|
+
},
|
|
2011
|
+
"isESM": true,
|
|
2012
|
+
"relativePath": [
|
|
2013
|
+
"dist",
|
|
2014
|
+
"commands",
|
|
2015
|
+
"create",
|
|
2016
|
+
"notification.js"
|
|
2017
|
+
]
|
|
2018
|
+
},
|
|
2019
|
+
"create:setting": {
|
|
2020
|
+
"aliases": [],
|
|
2021
|
+
"args": {
|
|
2022
|
+
"name": {
|
|
2023
|
+
"default": "",
|
|
2024
|
+
"description": "Setting name (e.g., api-config)",
|
|
2025
|
+
"name": "name"
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
"description": "Create a setting configuration in the settings folder.",
|
|
2029
|
+
"examples": [
|
|
2030
|
+
"$ swell create setting",
|
|
2031
|
+
"$ swell create setting api-config -y",
|
|
2032
|
+
"$ swell create setting api-config -f api_key:short_text,enabled:boolean -l \"API Config\" -y"
|
|
2033
|
+
],
|
|
2034
|
+
"flags": {
|
|
2035
|
+
"app-path": {
|
|
2036
|
+
"description": "Path to your app directory",
|
|
2037
|
+
"name": "app-path",
|
|
2038
|
+
"hasDynamicHelp": false,
|
|
2039
|
+
"multiple": false,
|
|
2040
|
+
"type": "option"
|
|
2041
|
+
},
|
|
2042
|
+
"label": {
|
|
2043
|
+
"char": "l",
|
|
2044
|
+
"description": "Display label (default: titleized name)",
|
|
2045
|
+
"name": "label",
|
|
2046
|
+
"default": "",
|
|
2047
|
+
"hasDynamicHelp": false,
|
|
2048
|
+
"multiple": false,
|
|
2049
|
+
"type": "option"
|
|
2050
|
+
},
|
|
2051
|
+
"description": {
|
|
2052
|
+
"char": "d",
|
|
2053
|
+
"description": "Description",
|
|
2054
|
+
"name": "description",
|
|
1868
2055
|
"default": "",
|
|
1869
2056
|
"hasDynamicHelp": false,
|
|
1870
2057
|
"multiple": false,
|
|
1871
2058
|
"type": "option"
|
|
2059
|
+
},
|
|
2060
|
+
"fields": {
|
|
2061
|
+
"char": "f",
|
|
2062
|
+
"description": "Fields as id:type pairs (e.g., api_key:short_text,enabled:boolean)",
|
|
2063
|
+
"name": "fields",
|
|
2064
|
+
"default": "",
|
|
2065
|
+
"hasDynamicHelp": false,
|
|
2066
|
+
"multiple": false,
|
|
2067
|
+
"type": "option"
|
|
2068
|
+
},
|
|
2069
|
+
"overwrite": {
|
|
2070
|
+
"description": "Overwrite existing file",
|
|
2071
|
+
"name": "overwrite",
|
|
2072
|
+
"allowNo": false,
|
|
2073
|
+
"type": "boolean"
|
|
2074
|
+
},
|
|
2075
|
+
"yes": {
|
|
2076
|
+
"char": "y",
|
|
2077
|
+
"description": "Skip prompts, require all arguments",
|
|
2078
|
+
"name": "yes",
|
|
2079
|
+
"allowNo": false,
|
|
2080
|
+
"type": "boolean"
|
|
1872
2081
|
}
|
|
1873
2082
|
},
|
|
1874
2083
|
"hasDynamicHelp": false,
|
|
1875
2084
|
"hiddenAliases": [],
|
|
1876
|
-
"id": "create:
|
|
2085
|
+
"id": "create:setting",
|
|
1877
2086
|
"pluginAlias": "@swell/cli",
|
|
1878
2087
|
"pluginName": "@swell/cli",
|
|
1879
2088
|
"pluginType": "core",
|
|
1880
2089
|
"strict": true,
|
|
1881
|
-
"summary": "
|
|
2090
|
+
"summary": "Create a setting configuration in the settings folder.",
|
|
2091
|
+
"helpMeta": {
|
|
2092
|
+
"usageDirect": "<name> [...] -y"
|
|
2093
|
+
},
|
|
1882
2094
|
"isESM": true,
|
|
1883
2095
|
"relativePath": [
|
|
1884
2096
|
"dist",
|
|
1885
2097
|
"commands",
|
|
1886
2098
|
"create",
|
|
1887
|
-
"
|
|
2099
|
+
"setting.js"
|
|
1888
2100
|
]
|
|
1889
2101
|
},
|
|
1890
2102
|
"create:tests": {
|
|
@@ -1892,32 +2104,26 @@
|
|
|
1892
2104
|
"args": {},
|
|
1893
2105
|
"description": "Initialize a vitest + Cloudflare Workers test setup that reuses swell-cli authentication.",
|
|
1894
2106
|
"examples": [
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
"description": "Create a basic test setup using TypeScript."
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
"command": "swell create tests --overwrite",
|
|
1901
|
-
"description": "Regenerate test files, overwriting existing ones."
|
|
1902
|
-
}
|
|
2107
|
+
"$ swell create tests",
|
|
2108
|
+
"$ swell create tests --overwrite"
|
|
1903
2109
|
],
|
|
1904
2110
|
"flags": {
|
|
1905
2111
|
"app-path": {
|
|
1906
|
-
"description": "
|
|
2112
|
+
"description": "Path to your app directory",
|
|
1907
2113
|
"name": "app-path",
|
|
1908
2114
|
"hasDynamicHelp": false,
|
|
1909
2115
|
"multiple": false,
|
|
1910
2116
|
"type": "option"
|
|
1911
2117
|
},
|
|
1912
2118
|
"overwrite": {
|
|
1913
|
-
"description": "
|
|
2119
|
+
"description": "Overwrite existing test files",
|
|
1914
2120
|
"name": "overwrite",
|
|
1915
2121
|
"allowNo": false,
|
|
1916
2122
|
"type": "boolean"
|
|
1917
2123
|
},
|
|
1918
2124
|
"yes": {
|
|
1919
2125
|
"char": "y",
|
|
1920
|
-
"description": "
|
|
2126
|
+
"description": "Skip prompts, require all arguments",
|
|
1921
2127
|
"name": "yes",
|
|
1922
2128
|
"allowNo": false,
|
|
1923
2129
|
"type": "boolean"
|
|
@@ -1930,8 +2136,11 @@
|
|
|
1930
2136
|
"pluginName": "@swell/cli",
|
|
1931
2137
|
"pluginType": "core",
|
|
1932
2138
|
"strict": true,
|
|
1933
|
-
"summary": "Create
|
|
2139
|
+
"summary": "Create tests scaffolding for your Swell app.",
|
|
1934
2140
|
"enableJsonFlag": false,
|
|
2141
|
+
"helpMeta": {
|
|
2142
|
+
"usageDirect": "[-y]"
|
|
2143
|
+
},
|
|
1935
2144
|
"isESM": true,
|
|
1936
2145
|
"relativePath": [
|
|
1937
2146
|
"dist",
|
|
@@ -1940,6 +2149,95 @@
|
|
|
1940
2149
|
"tests.js"
|
|
1941
2150
|
]
|
|
1942
2151
|
},
|
|
2152
|
+
"create:webhook": {
|
|
2153
|
+
"aliases": [],
|
|
2154
|
+
"args": {
|
|
2155
|
+
"name": {
|
|
2156
|
+
"default": "",
|
|
2157
|
+
"description": "Webhook name (e.g., order-sync)",
|
|
2158
|
+
"name": "name"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"description": "Create a webhook configuration in the webhooks folder.",
|
|
2162
|
+
"examples": [
|
|
2163
|
+
"$ swell create webhook",
|
|
2164
|
+
"$ swell create webhook order-sync -u https://example.com/hook -e order.created -y",
|
|
2165
|
+
"$ swell create webhook payment-handler -u https://api.example.com/payments -e payment.succeeded,payment.failed --enabled -y"
|
|
2166
|
+
],
|
|
2167
|
+
"flags": {
|
|
2168
|
+
"app-path": {
|
|
2169
|
+
"description": "Path to your app directory",
|
|
2170
|
+
"name": "app-path",
|
|
2171
|
+
"hasDynamicHelp": false,
|
|
2172
|
+
"multiple": false,
|
|
2173
|
+
"type": "option"
|
|
2174
|
+
},
|
|
2175
|
+
"url": {
|
|
2176
|
+
"char": "u",
|
|
2177
|
+
"description": "Endpoint URL (required with -y)",
|
|
2178
|
+
"name": "url",
|
|
2179
|
+
"default": "",
|
|
2180
|
+
"hasDynamicHelp": false,
|
|
2181
|
+
"multiple": false,
|
|
2182
|
+
"type": "option"
|
|
2183
|
+
},
|
|
2184
|
+
"events": {
|
|
2185
|
+
"char": "e",
|
|
2186
|
+
"description": "Events to listen for (e.g., order.created,payment.succeeded)",
|
|
2187
|
+
"name": "events",
|
|
2188
|
+
"default": "",
|
|
2189
|
+
"hasDynamicHelp": false,
|
|
2190
|
+
"multiple": false,
|
|
2191
|
+
"type": "option"
|
|
2192
|
+
},
|
|
2193
|
+
"description": {
|
|
2194
|
+
"char": "d",
|
|
2195
|
+
"description": "Description",
|
|
2196
|
+
"name": "description",
|
|
2197
|
+
"default": "",
|
|
2198
|
+
"hasDynamicHelp": false,
|
|
2199
|
+
"multiple": false,
|
|
2200
|
+
"type": "option"
|
|
2201
|
+
},
|
|
2202
|
+
"enabled": {
|
|
2203
|
+
"description": "Enable webhook (default: false)",
|
|
2204
|
+
"name": "enabled",
|
|
2205
|
+
"allowNo": false,
|
|
2206
|
+
"type": "boolean"
|
|
2207
|
+
},
|
|
2208
|
+
"overwrite": {
|
|
2209
|
+
"description": "Overwrite existing file",
|
|
2210
|
+
"name": "overwrite",
|
|
2211
|
+
"allowNo": false,
|
|
2212
|
+
"type": "boolean"
|
|
2213
|
+
},
|
|
2214
|
+
"yes": {
|
|
2215
|
+
"char": "y",
|
|
2216
|
+
"description": "Skip prompts, require all arguments",
|
|
2217
|
+
"name": "yes",
|
|
2218
|
+
"allowNo": false,
|
|
2219
|
+
"type": "boolean"
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
"hasDynamicHelp": false,
|
|
2223
|
+
"hiddenAliases": [],
|
|
2224
|
+
"id": "create:webhook",
|
|
2225
|
+
"pluginAlias": "@swell/cli",
|
|
2226
|
+
"pluginName": "@swell/cli",
|
|
2227
|
+
"pluginType": "core",
|
|
2228
|
+
"strict": true,
|
|
2229
|
+
"summary": "Create a webhook configuration in the webhooks folder.",
|
|
2230
|
+
"helpMeta": {
|
|
2231
|
+
"usageDirect": "<name> -u <url> -e <events> [...] -y"
|
|
2232
|
+
},
|
|
2233
|
+
"isESM": true,
|
|
2234
|
+
"relativePath": [
|
|
2235
|
+
"dist",
|
|
2236
|
+
"commands",
|
|
2237
|
+
"create",
|
|
2238
|
+
"webhook.js"
|
|
2239
|
+
]
|
|
2240
|
+
},
|
|
1943
2241
|
"inspect:content": {
|
|
1944
2242
|
"aliases": [],
|
|
1945
2243
|
"args": {
|
|
@@ -2075,7 +2373,7 @@
|
|
|
2075
2373
|
],
|
|
2076
2374
|
"flags": {
|
|
2077
2375
|
"app-path": {
|
|
2078
|
-
"description": "
|
|
2376
|
+
"description": "Path to your app directory",
|
|
2079
2377
|
"name": "app-path",
|
|
2080
2378
|
"hasDynamicHelp": false,
|
|
2081
2379
|
"multiple": false,
|
|
@@ -2148,24 +2446,21 @@
|
|
|
2148
2446
|
"args": {
|
|
2149
2447
|
"id": {
|
|
2150
2448
|
"default": "",
|
|
2151
|
-
"description": "
|
|
2449
|
+
"description": "Theme identifier (defaults to current directory name)",
|
|
2152
2450
|
"name": "id"
|
|
2153
2451
|
}
|
|
2154
2452
|
},
|
|
2155
2453
|
"description": "Initialize theme swell.json in the current directory.",
|
|
2156
2454
|
"examples": [
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
"command": "swell theme init -y",
|
|
2163
|
-
"description": "Initialize theme and accept all default values."
|
|
2164
|
-
}
|
|
2455
|
+
"$ swell theme init",
|
|
2456
|
+
"$ swell theme init my-theme",
|
|
2457
|
+
"$ swell theme init -y",
|
|
2458
|
+
"$ swell theme init my-theme -y",
|
|
2459
|
+
"$ swell theme init my-theme --storefront-app proxima -y"
|
|
2165
2460
|
],
|
|
2166
2461
|
"flags": {
|
|
2167
2462
|
"frontend": {
|
|
2168
|
-
"description": "
|
|
2463
|
+
"description": "Framework: astro | angular | hono | nuxt | nextjs | none",
|
|
2169
2464
|
"name": "frontend",
|
|
2170
2465
|
"hasDynamicHelp": false,
|
|
2171
2466
|
"multiple": false,
|
|
@@ -2180,14 +2475,14 @@
|
|
|
2180
2475
|
"type": "option"
|
|
2181
2476
|
},
|
|
2182
2477
|
"storefront-app": {
|
|
2183
|
-
"description": "
|
|
2478
|
+
"description": "Target storefront app ID",
|
|
2184
2479
|
"name": "storefront-app",
|
|
2185
2480
|
"hasDynamicHelp": false,
|
|
2186
2481
|
"multiple": false,
|
|
2187
2482
|
"type": "option"
|
|
2188
2483
|
},
|
|
2189
2484
|
"integration-type": {
|
|
2190
|
-
"description": "
|
|
2485
|
+
"description": "Integration: generic | payment | shipping | tax",
|
|
2191
2486
|
"name": "integration-type",
|
|
2192
2487
|
"hasDynamicHelp": false,
|
|
2193
2488
|
"multiple": false,
|
|
@@ -2200,7 +2495,7 @@
|
|
|
2200
2495
|
"type": "option"
|
|
2201
2496
|
},
|
|
2202
2497
|
"integration-id": {
|
|
2203
|
-
"description": "
|
|
2498
|
+
"description": "Service ID (e.g., card, fedex)",
|
|
2204
2499
|
"name": "integration-id",
|
|
2205
2500
|
"hasDynamicHelp": false,
|
|
2206
2501
|
"multiple": false,
|
|
@@ -2208,10 +2503,62 @@
|
|
|
2208
2503
|
},
|
|
2209
2504
|
"yes": {
|
|
2210
2505
|
"char": "y",
|
|
2211
|
-
"description": "
|
|
2506
|
+
"description": "Skip prompts, require all arguments",
|
|
2212
2507
|
"name": "yes",
|
|
2213
2508
|
"allowNo": false,
|
|
2214
2509
|
"type": "boolean"
|
|
2510
|
+
},
|
|
2511
|
+
"pkg": {
|
|
2512
|
+
"char": "p",
|
|
2513
|
+
"description": "Package manager: npm | yarn | none",
|
|
2514
|
+
"name": "pkg",
|
|
2515
|
+
"default": "npm",
|
|
2516
|
+
"hasDynamicHelp": false,
|
|
2517
|
+
"multiple": false,
|
|
2518
|
+
"options": [
|
|
2519
|
+
"npm",
|
|
2520
|
+
"yarn",
|
|
2521
|
+
"none"
|
|
2522
|
+
],
|
|
2523
|
+
"type": "option"
|
|
2524
|
+
},
|
|
2525
|
+
"type": {
|
|
2526
|
+
"char": "t",
|
|
2527
|
+
"description": "App type: admin | storefront | theme | integration",
|
|
2528
|
+
"name": "type",
|
|
2529
|
+
"hasDynamicHelp": false,
|
|
2530
|
+
"multiple": false,
|
|
2531
|
+
"options": [
|
|
2532
|
+
"admin",
|
|
2533
|
+
"integration",
|
|
2534
|
+
"storefront",
|
|
2535
|
+
"theme"
|
|
2536
|
+
],
|
|
2537
|
+
"type": "option"
|
|
2538
|
+
},
|
|
2539
|
+
"name": {
|
|
2540
|
+
"char": "n",
|
|
2541
|
+
"description": "Display name (default: capitalized ID)",
|
|
2542
|
+
"name": "name",
|
|
2543
|
+
"hasDynamicHelp": false,
|
|
2544
|
+
"multiple": false,
|
|
2545
|
+
"type": "option"
|
|
2546
|
+
},
|
|
2547
|
+
"version": {
|
|
2548
|
+
"char": "v",
|
|
2549
|
+
"description": "Version (default: 1.0.0)",
|
|
2550
|
+
"name": "version",
|
|
2551
|
+
"hasDynamicHelp": false,
|
|
2552
|
+
"multiple": false,
|
|
2553
|
+
"type": "option"
|
|
2554
|
+
},
|
|
2555
|
+
"description": {
|
|
2556
|
+
"char": "d",
|
|
2557
|
+
"description": "Description",
|
|
2558
|
+
"name": "description",
|
|
2559
|
+
"hasDynamicHelp": false,
|
|
2560
|
+
"multiple": false,
|
|
2561
|
+
"type": "option"
|
|
2215
2562
|
}
|
|
2216
2563
|
},
|
|
2217
2564
|
"hasDynamicHelp": false,
|
|
@@ -2222,6 +2569,9 @@
|
|
|
2222
2569
|
"pluginType": "core",
|
|
2223
2570
|
"strict": true,
|
|
2224
2571
|
"enableJsonFlag": false,
|
|
2572
|
+
"helpMeta": {
|
|
2573
|
+
"usageDirect": "[id] --storefront-app <app> [...] -y"
|
|
2574
|
+
},
|
|
2225
2575
|
"isESM": true,
|
|
2226
2576
|
"relativePath": [
|
|
2227
2577
|
"dist",
|
|
@@ -2391,7 +2741,7 @@
|
|
|
2391
2741
|
],
|
|
2392
2742
|
"flags": {
|
|
2393
2743
|
"app-path": {
|
|
2394
|
-
"description": "
|
|
2744
|
+
"description": "Path to your app directory",
|
|
2395
2745
|
"name": "app-path",
|
|
2396
2746
|
"hasDynamicHelp": false,
|
|
2397
2747
|
"multiple": false,
|
|
@@ -2449,7 +2799,7 @@
|
|
|
2449
2799
|
],
|
|
2450
2800
|
"flags": {
|
|
2451
2801
|
"app-path": {
|
|
2452
|
-
"description": "
|
|
2802
|
+
"description": "Path to your app directory",
|
|
2453
2803
|
"name": "app-path",
|
|
2454
2804
|
"hasDynamicHelp": false,
|
|
2455
2805
|
"multiple": false,
|
|
@@ -2525,5 +2875,5 @@
|
|
|
2525
2875
|
]
|
|
2526
2876
|
}
|
|
2527
2877
|
},
|
|
2528
|
-
"version": "2.
|
|
2878
|
+
"version": "2.3.1"
|
|
2529
2879
|
}
|