@swell/cli 2.1.0 → 2.2.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/commands/api/delete.d.ts +15 -0
- package/dist/commands/api/delete.js +26 -0
- package/dist/commands/api/get.d.ts +15 -0
- package/dist/commands/api/get.js +31 -0
- package/dist/commands/api/index.d.ts +7 -0
- package/dist/commands/api/index.js +16 -0
- package/dist/commands/api/post.d.ts +16 -0
- package/dist/commands/api/post.js +33 -0
- package/dist/commands/api/put.d.ts +16 -0
- package/dist/commands/api/put.js +33 -0
- package/dist/commands/app/dev.d.ts +9 -9
- package/dist/commands/app/dev.js +163 -139
- package/dist/commands/app/frontend/dev.d.ts +1 -1
- package/dist/commands/app/frontend/dev.js +84 -78
- package/dist/commands/app/install.js +3 -3
- package/dist/commands/app/pull.d.ts +1 -1
- package/dist/commands/app/pull.js +6 -6
- package/dist/commands/app/push.d.ts +3 -3
- package/dist/commands/app/push.js +8 -6
- package/dist/commands/app/release.d.ts +1 -1
- package/dist/commands/app/release.js +1 -1
- package/dist/commands/app/version.d.ts +1 -1
- package/dist/commands/app/version.js +5 -3
- package/dist/commands/create/app.d.ts +10 -2
- package/dist/commands/create/app.js +226 -57
- package/dist/commands/create/content.d.ts +4 -0
- package/dist/commands/create/content.js +83 -15
- package/dist/commands/create/function.js +27 -5
- package/dist/commands/create/index.js +5 -1
- package/dist/commands/create/model.d.ts +4 -0
- package/dist/commands/create/model.js +120 -25
- package/dist/commands/create/tests.d.ts +15 -0
- package/dist/commands/create/tests.js +79 -0
- package/dist/commands/inspect/content.d.ts +25 -0
- package/dist/commands/inspect/content.js +159 -0
- package/dist/commands/inspect/index.d.ts +7 -0
- package/dist/commands/inspect/index.js +16 -0
- package/dist/commands/inspect/models.d.ts +27 -0
- package/dist/commands/inspect/models.js +197 -0
- package/dist/commands/schema.d.ts +27 -0
- package/dist/commands/schema.js +231 -0
- package/dist/commands/theme/dev.d.ts +1 -1
- package/dist/commands/theme/dev.js +2 -2
- package/dist/commands/theme/init.d.ts +1 -1
- package/dist/commands/theme/init.js +1 -1
- package/dist/commands/theme/pull.d.ts +2 -2
- package/dist/commands/theme/pull.js +2 -2
- package/dist/commands/theme/push.d.ts +1 -1
- package/dist/commands/theme/push.js +1 -1
- package/dist/create-app-command.d.ts +12 -2
- package/dist/create-app-command.js +103 -80
- package/dist/create-collection-command.js +4 -1
- package/dist/create-config-command.js +4 -0
- package/dist/env/local.d.ts +1 -0
- package/dist/env/local.js +1 -0
- package/dist/env/production.d.ts +1 -0
- package/dist/env/production.js +1 -0
- package/dist/env/review.d.ts +1 -0
- package/dist/env/review.js +1 -0
- package/dist/env/staging.d.ts +1 -0
- package/dist/env/staging.js +1 -0
- package/dist/lib/api.d.ts +16 -5
- package/dist/lib/api.js +67 -25
- package/dist/lib/app-config.js +1 -0
- package/dist/lib/apps/index.d.ts +2 -0
- package/dist/lib/apps/index.js +20 -14
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.js +1 -0
- package/dist/lib/create/content.d.ts +5 -1
- package/dist/lib/create/content.js +8 -1
- package/dist/lib/create/function.d.ts +2 -1
- package/dist/lib/create/function.js +7 -3
- package/dist/lib/create/model.d.ts +1 -0
- package/dist/lib/create/schemas.d.ts +6 -0
- package/dist/lib/create/schemas.js +6 -0
- package/dist/lib/create/tests/templates/env-dts.d.ts +1 -0
- package/dist/lib/create/tests/templates/env-dts.js +14 -0
- package/dist/lib/create/tests/templates/index.d.ts +8 -0
- package/dist/lib/create/tests/templates/index.js +8 -0
- package/dist/lib/create/tests/templates/integration-test.d.ts +1 -0
- package/dist/lib/create/tests/templates/integration-test.js +19 -0
- package/dist/lib/create/tests/templates/mock-request.d.ts +2 -0
- package/dist/lib/create/tests/templates/mock-request.js +112 -0
- package/dist/lib/create/tests/templates/setup-globals.d.ts +1 -0
- package/dist/lib/create/tests/templates/setup-globals.js +23 -0
- package/dist/lib/create/tests/templates/swell-client.d.ts +1 -0
- package/dist/lib/create/tests/templates/swell-client.js +126 -0
- package/dist/lib/create/tests/templates/tsconfig.d.ts +1 -0
- package/dist/lib/create/tests/templates/tsconfig.js +15 -0
- package/dist/lib/create/tests/templates/unit-test.d.ts +1 -0
- package/dist/lib/create/tests/templates/unit-test.js +42 -0
- package/dist/lib/create/tests/templates/vitest-config.d.ts +2 -0
- package/dist/lib/create/tests/templates/vitest-config.js +121 -0
- package/dist/lib/create/tests/types.d.ts +21 -0
- package/dist/lib/create/tests/types.js +1 -0
- package/dist/lib/create/tests.d.ts +4 -0
- package/dist/lib/create/tests.js +113 -0
- package/dist/lib/sessions.js +4 -3
- package/dist/lib/style.js +0 -1
- package/dist/lib/theme-sync.d.ts +6 -6
- package/dist/lib/theme-sync.js +49 -39
- package/dist/push-app-command.d.ts +7 -7
- package/dist/push-app-command.js +38 -36
- package/dist/remote-app-command.d.ts +1 -1
- package/dist/remote-app-command.js +4 -2
- package/dist/swell-api-command.d.ts +13 -0
- package/dist/swell-api-command.js +75 -0
- package/dist/swell-command.d.ts +1 -1
- package/dist/swell-command.js +9 -9
- package/oclif.manifest.json +639 -46
- package/package.json +8 -1
package/oclif.manifest.json
CHANGED
|
@@ -238,6 +238,83 @@
|
|
|
238
238
|
"logs.js"
|
|
239
239
|
]
|
|
240
240
|
},
|
|
241
|
+
"schema": {
|
|
242
|
+
"aliases": [],
|
|
243
|
+
"args": {
|
|
244
|
+
"type": {
|
|
245
|
+
"description": "Schema type (e.g. model, content, setting, notification, webhook)",
|
|
246
|
+
"name": "type",
|
|
247
|
+
"required": false
|
|
248
|
+
},
|
|
249
|
+
"file": {
|
|
250
|
+
"description": "Path to JSON file to validate (or use \"-\" for stdin)",
|
|
251
|
+
"name": "file",
|
|
252
|
+
"required": false
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"examples": [
|
|
256
|
+
{
|
|
257
|
+
"description": "List available schema types",
|
|
258
|
+
"command": "<%= config.bin %> <%= command.id %>"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"description": "Output JSON Schema",
|
|
262
|
+
"command": "<%= config.bin %> <%= command.id %> content --format=json-schema"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"description": "Output bundled JSON Schema (all $refs resolved)",
|
|
266
|
+
"command": "<%= config.bin %> <%= command.id %> content --format=json-schema-bundle"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"description": "Output TypeScript declarations",
|
|
270
|
+
"command": "<%= config.bin %> <%= command.id %> content --format=dts"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"description": "Validate a file",
|
|
274
|
+
"command": "<%= config.bin %> <%= command.id %> content myfile.json"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"description": "Validate from stdin",
|
|
278
|
+
"command": "cat myfile.json | <%= config.bin %> <%= command.id %> content -"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"flags": {
|
|
282
|
+
"format": {
|
|
283
|
+
"description": "Output format: json-schema (with $ref pointers), json-schema-bundle (all $refs resolved), or dts (TypeScript declarations)",
|
|
284
|
+
"name": "format",
|
|
285
|
+
"hasDynamicHelp": false,
|
|
286
|
+
"multiple": false,
|
|
287
|
+
"options": [
|
|
288
|
+
"json-schema",
|
|
289
|
+
"json-schema-bundle",
|
|
290
|
+
"dts"
|
|
291
|
+
],
|
|
292
|
+
"type": "option"
|
|
293
|
+
},
|
|
294
|
+
"yes": {
|
|
295
|
+
"char": "y",
|
|
296
|
+
"description": "Skip informational output and print schema directly (equivalent to --format=json-schema).",
|
|
297
|
+
"name": "yes",
|
|
298
|
+
"allowNo": false,
|
|
299
|
+
"type": "boolean"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"hasDynamicHelp": false,
|
|
303
|
+
"hiddenAliases": [],
|
|
304
|
+
"id": "schema",
|
|
305
|
+
"pluginAlias": "@swell/cli",
|
|
306
|
+
"pluginName": "@swell/cli",
|
|
307
|
+
"pluginType": "core",
|
|
308
|
+
"strict": true,
|
|
309
|
+
"summary": "View or validate Swell config JSON Schemas.",
|
|
310
|
+
"enableJsonFlag": false,
|
|
311
|
+
"isESM": true,
|
|
312
|
+
"relativePath": [
|
|
313
|
+
"dist",
|
|
314
|
+
"commands",
|
|
315
|
+
"schema.js"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
241
318
|
"switch": {
|
|
242
319
|
"aliases": [],
|
|
243
320
|
"args": {
|
|
@@ -291,6 +368,200 @@
|
|
|
291
368
|
"whoami.js"
|
|
292
369
|
]
|
|
293
370
|
},
|
|
371
|
+
"api:delete": {
|
|
372
|
+
"aliases": [],
|
|
373
|
+
"args": {
|
|
374
|
+
"path": {
|
|
375
|
+
"description": "API endpoint path (must start with /)",
|
|
376
|
+
"name": "path",
|
|
377
|
+
"required": true
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"description": "Remove existing resources from the Swell Backend API.",
|
|
381
|
+
"examples": [
|
|
382
|
+
"swell api delete /products/abc123"
|
|
383
|
+
],
|
|
384
|
+
"flags": {
|
|
385
|
+
"live": {
|
|
386
|
+
"description": "Use live environment instead of test",
|
|
387
|
+
"name": "live",
|
|
388
|
+
"allowNo": false,
|
|
389
|
+
"type": "boolean"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"hasDynamicHelp": false,
|
|
393
|
+
"hiddenAliases": [],
|
|
394
|
+
"id": "api:delete",
|
|
395
|
+
"pluginAlias": "@swell/cli",
|
|
396
|
+
"pluginName": "@swell/cli",
|
|
397
|
+
"pluginType": "core",
|
|
398
|
+
"strict": true,
|
|
399
|
+
"summary": "Send a DELETE request to the Swell API.",
|
|
400
|
+
"isESM": true,
|
|
401
|
+
"relativePath": [
|
|
402
|
+
"dist",
|
|
403
|
+
"commands",
|
|
404
|
+
"api",
|
|
405
|
+
"delete.js"
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
"api:get": {
|
|
409
|
+
"aliases": [],
|
|
410
|
+
"args": {
|
|
411
|
+
"path": {
|
|
412
|
+
"description": "API endpoint path (must start with /)",
|
|
413
|
+
"name": "path",
|
|
414
|
+
"required": true
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"description": "Retrieve data from the Swell Backend API.\n The command performs a GET request to the specified endpoint path.",
|
|
418
|
+
"examples": [
|
|
419
|
+
"swell api get /products",
|
|
420
|
+
"swell api get \"/products?limit=10&category=shoes\"",
|
|
421
|
+
"swell api get /products/abc123"
|
|
422
|
+
],
|
|
423
|
+
"flags": {
|
|
424
|
+
"live": {
|
|
425
|
+
"description": "Use live environment instead of test",
|
|
426
|
+
"name": "live",
|
|
427
|
+
"allowNo": false,
|
|
428
|
+
"type": "boolean"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"hasDynamicHelp": false,
|
|
432
|
+
"hiddenAliases": [],
|
|
433
|
+
"id": "api:get",
|
|
434
|
+
"pluginAlias": "@swell/cli",
|
|
435
|
+
"pluginName": "@swell/cli",
|
|
436
|
+
"pluginType": "core",
|
|
437
|
+
"strict": true,
|
|
438
|
+
"summary": "Send a GET request to the Swell API.",
|
|
439
|
+
"isESM": true,
|
|
440
|
+
"relativePath": [
|
|
441
|
+
"dist",
|
|
442
|
+
"commands",
|
|
443
|
+
"api",
|
|
444
|
+
"get.js"
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
"api": {
|
|
448
|
+
"aliases": [],
|
|
449
|
+
"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.",
|
|
451
|
+
"examples": [
|
|
452
|
+
"swell api get /products",
|
|
453
|
+
"swell api post /products --body '{\"name\":\"New product\"}'",
|
|
454
|
+
"swell api put /products/abc123 --body ./update.json",
|
|
455
|
+
"swell api delete /products/abc123"
|
|
456
|
+
],
|
|
457
|
+
"flags": {},
|
|
458
|
+
"hasDynamicHelp": false,
|
|
459
|
+
"hiddenAliases": [],
|
|
460
|
+
"id": "api",
|
|
461
|
+
"pluginAlias": "@swell/cli",
|
|
462
|
+
"pluginName": "@swell/cli",
|
|
463
|
+
"pluginType": "core",
|
|
464
|
+
"strict": true,
|
|
465
|
+
"summary": "Send requests directly to the Swell Backend API.",
|
|
466
|
+
"enableJsonFlag": false,
|
|
467
|
+
"isESM": true,
|
|
468
|
+
"relativePath": [
|
|
469
|
+
"dist",
|
|
470
|
+
"commands",
|
|
471
|
+
"api",
|
|
472
|
+
"index.js"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"api:post": {
|
|
476
|
+
"aliases": [],
|
|
477
|
+
"args": {
|
|
478
|
+
"path": {
|
|
479
|
+
"description": "API endpoint path (must start with /)",
|
|
480
|
+
"name": "path",
|
|
481
|
+
"required": true
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"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
|
+
"examples": [
|
|
486
|
+
"swell api post /products --body '{\"name\": \"Product\", \"price\": 100}'",
|
|
487
|
+
"swell api post /products --body ./product.json"
|
|
488
|
+
],
|
|
489
|
+
"flags": {
|
|
490
|
+
"body": {
|
|
491
|
+
"description": "Request body (inline JSON or file path)",
|
|
492
|
+
"name": "body",
|
|
493
|
+
"hasDynamicHelp": false,
|
|
494
|
+
"multiple": false,
|
|
495
|
+
"type": "option"
|
|
496
|
+
},
|
|
497
|
+
"live": {
|
|
498
|
+
"description": "Use live environment instead of test",
|
|
499
|
+
"name": "live",
|
|
500
|
+
"allowNo": false,
|
|
501
|
+
"type": "boolean"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"hasDynamicHelp": false,
|
|
505
|
+
"hiddenAliases": [],
|
|
506
|
+
"id": "api:post",
|
|
507
|
+
"pluginAlias": "@swell/cli",
|
|
508
|
+
"pluginName": "@swell/cli",
|
|
509
|
+
"pluginType": "core",
|
|
510
|
+
"strict": true,
|
|
511
|
+
"summary": "Send a POST request to the Swell API.",
|
|
512
|
+
"isESM": true,
|
|
513
|
+
"relativePath": [
|
|
514
|
+
"dist",
|
|
515
|
+
"commands",
|
|
516
|
+
"api",
|
|
517
|
+
"post.js"
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
"api:put": {
|
|
521
|
+
"aliases": [],
|
|
522
|
+
"args": {
|
|
523
|
+
"path": {
|
|
524
|
+
"description": "API endpoint path (must start with /)",
|
|
525
|
+
"name": "path",
|
|
526
|
+
"required": true
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"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
|
+
"examples": [
|
|
531
|
+
"swell api put /products/{id} --body '{\"id\": \"abc123\", \"name\": \"Updated\"}'",
|
|
532
|
+
"swell api put /products/abc123 --body ./product.json"
|
|
533
|
+
],
|
|
534
|
+
"flags": {
|
|
535
|
+
"body": {
|
|
536
|
+
"description": "Request body (inline JSON or file path)",
|
|
537
|
+
"name": "body",
|
|
538
|
+
"hasDynamicHelp": false,
|
|
539
|
+
"multiple": false,
|
|
540
|
+
"type": "option"
|
|
541
|
+
},
|
|
542
|
+
"live": {
|
|
543
|
+
"description": "Use live environment instead of test",
|
|
544
|
+
"name": "live",
|
|
545
|
+
"allowNo": false,
|
|
546
|
+
"type": "boolean"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"hasDynamicHelp": false,
|
|
550
|
+
"hiddenAliases": [],
|
|
551
|
+
"id": "api:put",
|
|
552
|
+
"pluginAlias": "@swell/cli",
|
|
553
|
+
"pluginName": "@swell/cli",
|
|
554
|
+
"pluginType": "core",
|
|
555
|
+
"strict": true,
|
|
556
|
+
"summary": "Send a PUT request to the Swell API.",
|
|
557
|
+
"isESM": true,
|
|
558
|
+
"relativePath": [
|
|
559
|
+
"dist",
|
|
560
|
+
"commands",
|
|
561
|
+
"api",
|
|
562
|
+
"put.js"
|
|
563
|
+
]
|
|
564
|
+
},
|
|
294
565
|
"app:_uninstall": {
|
|
295
566
|
"aliases": [],
|
|
296
567
|
"args": {},
|
|
@@ -466,7 +737,7 @@
|
|
|
466
737
|
"args": {
|
|
467
738
|
"id": {
|
|
468
739
|
"default": "",
|
|
469
|
-
"description": "id of the app to create",
|
|
740
|
+
"description": "id of the app to create (required in -y)",
|
|
470
741
|
"name": "id"
|
|
471
742
|
}
|
|
472
743
|
},
|
|
@@ -483,7 +754,7 @@
|
|
|
483
754
|
],
|
|
484
755
|
"flags": {
|
|
485
756
|
"frontend": {
|
|
486
|
-
"description": "create a starter framework for a hosted frontend",
|
|
757
|
+
"description": "create a starter framework for a hosted frontend (default in -y: none)",
|
|
487
758
|
"name": "frontend",
|
|
488
759
|
"hasDynamicHelp": false,
|
|
489
760
|
"multiple": false,
|
|
@@ -492,7 +763,8 @@
|
|
|
492
763
|
"angular",
|
|
493
764
|
"hono",
|
|
494
765
|
"nuxt",
|
|
495
|
-
"nextjs"
|
|
766
|
+
"nextjs",
|
|
767
|
+
"none"
|
|
496
768
|
],
|
|
497
769
|
"type": "option"
|
|
498
770
|
},
|
|
@@ -503,6 +775,26 @@
|
|
|
503
775
|
"multiple": false,
|
|
504
776
|
"type": "option"
|
|
505
777
|
},
|
|
778
|
+
"integration-type": {
|
|
779
|
+
"description": "integration type for integration app, if applicable",
|
|
780
|
+
"name": "integration-type",
|
|
781
|
+
"hasDynamicHelp": false,
|
|
782
|
+
"multiple": false,
|
|
783
|
+
"options": [
|
|
784
|
+
"generic",
|
|
785
|
+
"payment",
|
|
786
|
+
"shipping",
|
|
787
|
+
"tax"
|
|
788
|
+
],
|
|
789
|
+
"type": "option"
|
|
790
|
+
},
|
|
791
|
+
"integration-id": {
|
|
792
|
+
"description": "unique identifier for the integration service (required for payment/shipping/tax; use 'card' for credit cards)",
|
|
793
|
+
"name": "integration-id",
|
|
794
|
+
"hasDynamicHelp": false,
|
|
795
|
+
"multiple": false,
|
|
796
|
+
"type": "option"
|
|
797
|
+
},
|
|
506
798
|
"yes": {
|
|
507
799
|
"char": "y",
|
|
508
800
|
"description": "accept all default values",
|
|
@@ -902,7 +1194,7 @@
|
|
|
902
1194
|
"args": {
|
|
903
1195
|
"id": {
|
|
904
1196
|
"default": "",
|
|
905
|
-
"description": "id of the app to create",
|
|
1197
|
+
"description": "id of the app to create (required in -y)",
|
|
906
1198
|
"name": "id"
|
|
907
1199
|
}
|
|
908
1200
|
},
|
|
@@ -910,24 +1202,44 @@
|
|
|
910
1202
|
"examples": [
|
|
911
1203
|
{
|
|
912
1204
|
"command": "swell create app",
|
|
913
|
-
"description": "
|
|
1205
|
+
"description": "Interactive: follow prompts to create an app."
|
|
914
1206
|
},
|
|
915
1207
|
{
|
|
916
|
-
"command": "swell create app my_app -y",
|
|
917
|
-
"description": "
|
|
1208
|
+
"command": "swell create app my_app -t admin -y",
|
|
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."
|
|
918
1230
|
},
|
|
919
1231
|
{
|
|
920
1232
|
"command": "swell create app -p yarn",
|
|
921
|
-
"description": "
|
|
1233
|
+
"description": "Package manager: use Yarn instead of npm."
|
|
922
1234
|
},
|
|
923
1235
|
{
|
|
924
1236
|
"command": "swell create app -p none",
|
|
925
|
-
"description": "
|
|
1237
|
+
"description": "Package manager: skip installing default dependencies."
|
|
926
1238
|
}
|
|
927
1239
|
],
|
|
928
1240
|
"flags": {
|
|
929
1241
|
"frontend": {
|
|
930
|
-
"description": "create a starter framework for a hosted frontend",
|
|
1242
|
+
"description": "create a starter framework for a hosted frontend (default in -y: none)",
|
|
931
1243
|
"name": "frontend",
|
|
932
1244
|
"hasDynamicHelp": false,
|
|
933
1245
|
"multiple": false,
|
|
@@ -936,7 +1248,8 @@
|
|
|
936
1248
|
"angular",
|
|
937
1249
|
"hono",
|
|
938
1250
|
"nuxt",
|
|
939
|
-
"nextjs"
|
|
1251
|
+
"nextjs",
|
|
1252
|
+
"none"
|
|
940
1253
|
],
|
|
941
1254
|
"type": "option"
|
|
942
1255
|
},
|
|
@@ -947,9 +1260,29 @@
|
|
|
947
1260
|
"multiple": false,
|
|
948
1261
|
"type": "option"
|
|
949
1262
|
},
|
|
1263
|
+
"integration-type": {
|
|
1264
|
+
"description": "integration type for integration app, if applicable",
|
|
1265
|
+
"name": "integration-type",
|
|
1266
|
+
"hasDynamicHelp": false,
|
|
1267
|
+
"multiple": false,
|
|
1268
|
+
"options": [
|
|
1269
|
+
"generic",
|
|
1270
|
+
"payment",
|
|
1271
|
+
"shipping",
|
|
1272
|
+
"tax"
|
|
1273
|
+
],
|
|
1274
|
+
"type": "option"
|
|
1275
|
+
},
|
|
1276
|
+
"integration-id": {
|
|
1277
|
+
"description": "unique identifier for the integration service (required for payment/shipping/tax; use 'card' for credit cards)",
|
|
1278
|
+
"name": "integration-id",
|
|
1279
|
+
"hasDynamicHelp": false,
|
|
1280
|
+
"multiple": false,
|
|
1281
|
+
"type": "option"
|
|
1282
|
+
},
|
|
950
1283
|
"yes": {
|
|
951
1284
|
"char": "y",
|
|
952
|
-
"description": "accept all default values",
|
|
1285
|
+
"description": "accept all default values; non-interactive, never prompts; errors if required values are missing",
|
|
953
1286
|
"name": "yes",
|
|
954
1287
|
"allowNo": false,
|
|
955
1288
|
"type": "boolean"
|
|
@@ -970,7 +1303,7 @@
|
|
|
970
1303
|
},
|
|
971
1304
|
"type": {
|
|
972
1305
|
"char": "t",
|
|
973
|
-
"description": "create a specific app type",
|
|
1306
|
+
"description": "create a specific app type (required in -y)",
|
|
974
1307
|
"name": "type",
|
|
975
1308
|
"hasDynamicHelp": false,
|
|
976
1309
|
"multiple": false,
|
|
@@ -981,6 +1314,30 @@
|
|
|
981
1314
|
"theme"
|
|
982
1315
|
],
|
|
983
1316
|
"type": "option"
|
|
1317
|
+
},
|
|
1318
|
+
"name": {
|
|
1319
|
+
"char": "n",
|
|
1320
|
+
"description": "application name (default: capitalized ID)",
|
|
1321
|
+
"name": "name",
|
|
1322
|
+
"hasDynamicHelp": false,
|
|
1323
|
+
"multiple": false,
|
|
1324
|
+
"type": "option"
|
|
1325
|
+
},
|
|
1326
|
+
"version": {
|
|
1327
|
+
"char": "v",
|
|
1328
|
+
"description": "application version (default: 1.0.0)",
|
|
1329
|
+
"name": "version",
|
|
1330
|
+
"hasDynamicHelp": false,
|
|
1331
|
+
"multiple": false,
|
|
1332
|
+
"type": "option"
|
|
1333
|
+
},
|
|
1334
|
+
"description": {
|
|
1335
|
+
"char": "d",
|
|
1336
|
+
"description": "application description",
|
|
1337
|
+
"name": "description",
|
|
1338
|
+
"hasDynamicHelp": false,
|
|
1339
|
+
"multiple": false,
|
|
1340
|
+
"type": "option"
|
|
984
1341
|
}
|
|
985
1342
|
},
|
|
986
1343
|
"hasDynamicHelp": false,
|
|
@@ -1004,27 +1361,31 @@
|
|
|
1004
1361
|
"args": {
|
|
1005
1362
|
"collection": {
|
|
1006
1363
|
"default": "",
|
|
1007
|
-
"description": "collection to create or apply to,
|
|
1364
|
+
"description": "collection ID to create or apply to, e.g., products (required with -y)",
|
|
1008
1365
|
"name": "collection"
|
|
1009
1366
|
}
|
|
1010
1367
|
},
|
|
1011
|
-
"description": "
|
|
1368
|
+
"description": "Interactive mode: choose to create a new collection or extend an existing standard collection. The CLI will propose a list of standard collections you can extend.\n\nNon-interactive (-y): provide COLLECTION explicitly. To discover standard collections first, run: swell models.",
|
|
1012
1369
|
"examples": [
|
|
1013
1370
|
{
|
|
1014
1371
|
"command": "swell create content",
|
|
1015
1372
|
"description": "Create content model interactively."
|
|
1016
1373
|
},
|
|
1017
1374
|
{
|
|
1018
|
-
"command": "swell create content
|
|
1019
|
-
"description": "
|
|
1375
|
+
"command": "swell create content products -y",
|
|
1376
|
+
"description": "Apply configuration to a standard collection (non-interactive)"
|
|
1020
1377
|
},
|
|
1021
1378
|
{
|
|
1022
|
-
"command": "swell create content visitors -f name:short_text,
|
|
1023
|
-
"description": "
|
|
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"
|
|
1024
1385
|
},
|
|
1025
1386
|
{
|
|
1026
|
-
"command": "swell create content visitors -
|
|
1027
|
-
"description": "Specify fields
|
|
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)"
|
|
1028
1389
|
}
|
|
1029
1390
|
],
|
|
1030
1391
|
"flags": {
|
|
@@ -1046,7 +1407,7 @@
|
|
|
1046
1407
|
},
|
|
1047
1408
|
"fields": {
|
|
1048
1409
|
"char": "f",
|
|
1049
|
-
"description": "
|
|
1410
|
+
"description": "comma-separated id:type pairs (e.g., name:short_text, verified:boolean)",
|
|
1050
1411
|
"name": "fields",
|
|
1051
1412
|
"default": "",
|
|
1052
1413
|
"hasDynamicHelp": false,
|
|
@@ -1055,7 +1416,7 @@
|
|
|
1055
1416
|
},
|
|
1056
1417
|
"label": {
|
|
1057
1418
|
"char": "l",
|
|
1058
|
-
"description": "content model
|
|
1419
|
+
"description": "display label for the content model (defaults to capitalized collection name)",
|
|
1059
1420
|
"name": "label",
|
|
1060
1421
|
"default": "",
|
|
1061
1422
|
"hasDynamicHelp": false,
|
|
@@ -1063,19 +1424,26 @@
|
|
|
1063
1424
|
"type": "option"
|
|
1064
1425
|
},
|
|
1065
1426
|
"overwrite": {
|
|
1066
|
-
"description": "overwrite existing content model configuration file",
|
|
1427
|
+
"description": "overwrite existing content model configuration file (use with -y to force overwrite)",
|
|
1067
1428
|
"name": "overwrite",
|
|
1068
1429
|
"allowNo": false,
|
|
1069
1430
|
"type": "boolean"
|
|
1070
1431
|
},
|
|
1071
1432
|
"views": {
|
|
1072
1433
|
"char": "v",
|
|
1073
|
-
"description": "
|
|
1434
|
+
"description": "comma-separated views - valid: list, edit, new",
|
|
1074
1435
|
"name": "views",
|
|
1075
1436
|
"default": "",
|
|
1076
1437
|
"hasDynamicHelp": false,
|
|
1077
1438
|
"multiple": false,
|
|
1078
1439
|
"type": "option"
|
|
1440
|
+
},
|
|
1441
|
+
"yes": {
|
|
1442
|
+
"char": "y",
|
|
1443
|
+
"description": "accept all default values; non-interactive, never prompts; errors if required values are missing",
|
|
1444
|
+
"name": "yes",
|
|
1445
|
+
"allowNo": false,
|
|
1446
|
+
"type": "boolean"
|
|
1079
1447
|
}
|
|
1080
1448
|
},
|
|
1081
1449
|
"hasDynamicHelp": false,
|
|
@@ -1109,7 +1477,7 @@
|
|
|
1109
1477
|
],
|
|
1110
1478
|
"flags": {
|
|
1111
1479
|
"frontend": {
|
|
1112
|
-
"description": "create a starter framework for a hosted frontend",
|
|
1480
|
+
"description": "create a starter framework for a hosted frontend (default in -y: none)",
|
|
1113
1481
|
"name": "frontend",
|
|
1114
1482
|
"hasDynamicHelp": false,
|
|
1115
1483
|
"multiple": false,
|
|
@@ -1118,7 +1486,8 @@
|
|
|
1118
1486
|
"angular",
|
|
1119
1487
|
"hono",
|
|
1120
1488
|
"nuxt",
|
|
1121
|
-
"nextjs"
|
|
1489
|
+
"nextjs",
|
|
1490
|
+
"none"
|
|
1122
1491
|
],
|
|
1123
1492
|
"type": "option"
|
|
1124
1493
|
},
|
|
@@ -1129,9 +1498,29 @@
|
|
|
1129
1498
|
"multiple": false,
|
|
1130
1499
|
"type": "option"
|
|
1131
1500
|
},
|
|
1501
|
+
"integration-type": {
|
|
1502
|
+
"description": "integration type for integration app, if applicable",
|
|
1503
|
+
"name": "integration-type",
|
|
1504
|
+
"hasDynamicHelp": false,
|
|
1505
|
+
"multiple": false,
|
|
1506
|
+
"options": [
|
|
1507
|
+
"generic",
|
|
1508
|
+
"payment",
|
|
1509
|
+
"shipping",
|
|
1510
|
+
"tax"
|
|
1511
|
+
],
|
|
1512
|
+
"type": "option"
|
|
1513
|
+
},
|
|
1514
|
+
"integration-id": {
|
|
1515
|
+
"description": "unique identifier for the integration service (required for payment/shipping/tax; use 'card' for credit cards)",
|
|
1516
|
+
"name": "integration-id",
|
|
1517
|
+
"hasDynamicHelp": false,
|
|
1518
|
+
"multiple": false,
|
|
1519
|
+
"type": "option"
|
|
1520
|
+
},
|
|
1132
1521
|
"yes": {
|
|
1133
1522
|
"char": "y",
|
|
1134
|
-
"description": "accept all default values",
|
|
1523
|
+
"description": "accept all default values; non-interactive, never prompts; errors if required values are missing",
|
|
1135
1524
|
"name": "yes",
|
|
1136
1525
|
"allowNo": false,
|
|
1137
1526
|
"type": "boolean"
|
|
@@ -1303,27 +1692,27 @@
|
|
|
1303
1692
|
"args": {
|
|
1304
1693
|
"collection": {
|
|
1305
1694
|
"default": "",
|
|
1306
|
-
"description": "collection to create or apply to,
|
|
1695
|
+
"description": "collection ID to create or apply to, e.g., products (required with -y)",
|
|
1307
1696
|
"name": "collection"
|
|
1308
1697
|
}
|
|
1309
1698
|
},
|
|
1310
|
-
"description": "
|
|
1699
|
+
"description": "Interactive mode: choose to create a new collection or extend an existing standard collection. The CLI will propose a list of standard collections you can extend.\n\nNon-interactive (-y): provide COLLECTION explicitly. To discover standard collections first, run: swell inspect models.",
|
|
1311
1700
|
"examples": [
|
|
1312
1701
|
{
|
|
1313
1702
|
"command": "swell create model",
|
|
1314
|
-
"description": "Create data model configuration interactively
|
|
1703
|
+
"description": "Create data model configuration interactively"
|
|
1315
1704
|
},
|
|
1316
1705
|
{
|
|
1317
|
-
"command": "swell create model
|
|
1318
|
-
"description": "
|
|
1706
|
+
"command": "swell create model products -y",
|
|
1707
|
+
"description": "Apply configuration to a standard collection (non-interactive)"
|
|
1319
1708
|
},
|
|
1320
1709
|
{
|
|
1321
|
-
"command": "swell create model visitors -f
|
|
1322
|
-
"description": "
|
|
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)"
|
|
1323
1712
|
},
|
|
1324
1713
|
{
|
|
1325
|
-
"command": "swell
|
|
1326
|
-
"description": "
|
|
1714
|
+
"command": "swell inspect models",
|
|
1715
|
+
"description": "List standard collections available for extending"
|
|
1327
1716
|
}
|
|
1328
1717
|
],
|
|
1329
1718
|
"flags": {
|
|
@@ -1345,7 +1734,7 @@
|
|
|
1345
1734
|
},
|
|
1346
1735
|
"events": {
|
|
1347
1736
|
"char": "e",
|
|
1348
|
-
"description": "
|
|
1737
|
+
"description": "comma-separated events - valid: created, updated, deleted",
|
|
1349
1738
|
"name": "events",
|
|
1350
1739
|
"default": "created,updated,deleted",
|
|
1351
1740
|
"hasDynamicHelp": false,
|
|
@@ -1354,7 +1743,7 @@
|
|
|
1354
1743
|
},
|
|
1355
1744
|
"fields": {
|
|
1356
1745
|
"char": "f",
|
|
1357
|
-
"description": "
|
|
1746
|
+
"description": "comma-separated id:type pairs (e.g., title:string, price:currency). Types: collection, currency, image, int, link, string",
|
|
1358
1747
|
"name": "fields",
|
|
1359
1748
|
"default": "",
|
|
1360
1749
|
"hasDynamicHelp": false,
|
|
@@ -1363,7 +1752,7 @@
|
|
|
1363
1752
|
},
|
|
1364
1753
|
"label": {
|
|
1365
1754
|
"char": "l",
|
|
1366
|
-
"description": "
|
|
1755
|
+
"description": "display label for the model (defaults to capitalized collection name)",
|
|
1367
1756
|
"name": "label",
|
|
1368
1757
|
"default": "",
|
|
1369
1758
|
"hasDynamicHelp": false,
|
|
@@ -1371,10 +1760,17 @@
|
|
|
1371
1760
|
"type": "option"
|
|
1372
1761
|
},
|
|
1373
1762
|
"overwrite": {
|
|
1374
|
-
"description": "
|
|
1763
|
+
"description": "overwrite existing data model configuration file (use with -y to force overwrite)",
|
|
1375
1764
|
"name": "overwrite",
|
|
1376
1765
|
"allowNo": false,
|
|
1377
1766
|
"type": "boolean"
|
|
1767
|
+
},
|
|
1768
|
+
"yes": {
|
|
1769
|
+
"char": "y",
|
|
1770
|
+
"description": "accept all default values; non-interactive, never prompts; errors if required values are missing",
|
|
1771
|
+
"name": "yes",
|
|
1772
|
+
"allowNo": false,
|
|
1773
|
+
"type": "boolean"
|
|
1378
1774
|
}
|
|
1379
1775
|
},
|
|
1380
1776
|
"hasDynamicHelp": false,
|
|
@@ -1383,7 +1779,7 @@
|
|
|
1383
1779
|
"pluginAlias": "@swell/cli",
|
|
1384
1780
|
"pluginName": "@swell/cli",
|
|
1385
1781
|
"pluginType": "core",
|
|
1386
|
-
"summary": "
|
|
1782
|
+
"summary": "Create or extend a data model configuration in the models folder.",
|
|
1387
1783
|
"isESM": true,
|
|
1388
1784
|
"relativePath": [
|
|
1389
1785
|
"dist",
|
|
@@ -1491,6 +1887,182 @@
|
|
|
1491
1887
|
"notification.js"
|
|
1492
1888
|
]
|
|
1493
1889
|
},
|
|
1890
|
+
"create:tests": {
|
|
1891
|
+
"aliases": [],
|
|
1892
|
+
"args": {},
|
|
1893
|
+
"description": "Initialize a vitest + Cloudflare Workers test setup that reuses swell-cli authentication.",
|
|
1894
|
+
"examples": [
|
|
1895
|
+
{
|
|
1896
|
+
"command": "swell create tests",
|
|
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
|
+
}
|
|
1903
|
+
],
|
|
1904
|
+
"flags": {
|
|
1905
|
+
"app-path": {
|
|
1906
|
+
"description": "path to your app directory",
|
|
1907
|
+
"name": "app-path",
|
|
1908
|
+
"hasDynamicHelp": false,
|
|
1909
|
+
"multiple": false,
|
|
1910
|
+
"type": "option"
|
|
1911
|
+
},
|
|
1912
|
+
"overwrite": {
|
|
1913
|
+
"description": "overwrite existing test files if they already exist",
|
|
1914
|
+
"name": "overwrite",
|
|
1915
|
+
"allowNo": false,
|
|
1916
|
+
"type": "boolean"
|
|
1917
|
+
},
|
|
1918
|
+
"yes": {
|
|
1919
|
+
"char": "y",
|
|
1920
|
+
"description": "accept defaults, skip prompts (no prompts currently, included for consistency)",
|
|
1921
|
+
"name": "yes",
|
|
1922
|
+
"allowNo": false,
|
|
1923
|
+
"type": "boolean"
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
"hasDynamicHelp": false,
|
|
1927
|
+
"hiddenAliases": [],
|
|
1928
|
+
"id": "create:tests",
|
|
1929
|
+
"pluginAlias": "@swell/cli",
|
|
1930
|
+
"pluginName": "@swell/cli",
|
|
1931
|
+
"pluginType": "core",
|
|
1932
|
+
"strict": true,
|
|
1933
|
+
"summary": "Create test scaffolding for your Swell app.",
|
|
1934
|
+
"enableJsonFlag": false,
|
|
1935
|
+
"isESM": true,
|
|
1936
|
+
"relativePath": [
|
|
1937
|
+
"dist",
|
|
1938
|
+
"commands",
|
|
1939
|
+
"create",
|
|
1940
|
+
"tests.js"
|
|
1941
|
+
]
|
|
1942
|
+
},
|
|
1943
|
+
"inspect:content": {
|
|
1944
|
+
"aliases": [],
|
|
1945
|
+
"args": {
|
|
1946
|
+
"content-id": {
|
|
1947
|
+
"description": "Optional content view ID. Example: custom.admin.products, app.myapp.products",
|
|
1948
|
+
"name": "content-id",
|
|
1949
|
+
"required": false
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
"description": "\nView content view extensions available in your Swell store.\n\nWithout a content ID, this command lists all available content views.\nWith a content ID, it retrieves the configuration for that specific content view in JSON format.\n",
|
|
1953
|
+
"examples": [
|
|
1954
|
+
"swell inspect content",
|
|
1955
|
+
"swell inspect content custom.admin.products",
|
|
1956
|
+
"swell inspect content app.honest_reviews.reviews",
|
|
1957
|
+
"swell inspect content app.myapp.products --live"
|
|
1958
|
+
],
|
|
1959
|
+
"flags": {
|
|
1960
|
+
"live": {
|
|
1961
|
+
"description": "Use the live environment instead of test (default: test).",
|
|
1962
|
+
"name": "live",
|
|
1963
|
+
"allowNo": false,
|
|
1964
|
+
"type": "boolean"
|
|
1965
|
+
},
|
|
1966
|
+
"yes": {
|
|
1967
|
+
"char": "y",
|
|
1968
|
+
"description": "Accept all prompts automatically (for agent compatibility; no functional effect).",
|
|
1969
|
+
"name": "yes",
|
|
1970
|
+
"allowNo": false,
|
|
1971
|
+
"type": "boolean"
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"hasDynamicHelp": false,
|
|
1975
|
+
"hiddenAliases": [],
|
|
1976
|
+
"id": "inspect:content",
|
|
1977
|
+
"pluginAlias": "@swell/cli",
|
|
1978
|
+
"pluginName": "@swell/cli",
|
|
1979
|
+
"pluginType": "core",
|
|
1980
|
+
"strict": true,
|
|
1981
|
+
"summary": "Inspect content view extensions deployed in your store.",
|
|
1982
|
+
"enableJsonFlag": false,
|
|
1983
|
+
"isESM": true,
|
|
1984
|
+
"relativePath": [
|
|
1985
|
+
"dist",
|
|
1986
|
+
"commands",
|
|
1987
|
+
"inspect",
|
|
1988
|
+
"content.js"
|
|
1989
|
+
]
|
|
1990
|
+
},
|
|
1991
|
+
"inspect": {
|
|
1992
|
+
"aliases": [],
|
|
1993
|
+
"args": {},
|
|
1994
|
+
"description": "View configuration and data for deployed resources.\n\nInspect models, content views, and other deployed artifacts in your Swell store.",
|
|
1995
|
+
"examples": [
|
|
1996
|
+
"swell inspect models",
|
|
1997
|
+
"swell inspect models /products",
|
|
1998
|
+
"swell inspect models /apps/myapp/orders"
|
|
1999
|
+
],
|
|
2000
|
+
"flags": {},
|
|
2001
|
+
"hasDynamicHelp": false,
|
|
2002
|
+
"hiddenAliases": [],
|
|
2003
|
+
"id": "inspect",
|
|
2004
|
+
"pluginAlias": "@swell/cli",
|
|
2005
|
+
"pluginName": "@swell/cli",
|
|
2006
|
+
"pluginType": "core",
|
|
2007
|
+
"strict": true,
|
|
2008
|
+
"summary": "Inspect deployed artifacts in your store.",
|
|
2009
|
+
"enableJsonFlag": false,
|
|
2010
|
+
"isESM": true,
|
|
2011
|
+
"relativePath": [
|
|
2012
|
+
"dist",
|
|
2013
|
+
"commands",
|
|
2014
|
+
"inspect",
|
|
2015
|
+
"index.js"
|
|
2016
|
+
]
|
|
2017
|
+
},
|
|
2018
|
+
"inspect:models": {
|
|
2019
|
+
"aliases": [],
|
|
2020
|
+
"args": {
|
|
2021
|
+
"collection-path": {
|
|
2022
|
+
"description": "Optional collection path (must start with '/'). Example: /products, /apps/myapp/orders",
|
|
2023
|
+
"name": "collection-path",
|
|
2024
|
+
"required": false
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
"description": "\nView models for collections available in your Swell store.\n\nWithout a collection path, this command lists all available collections grouped by type.\nWith a collection path, it retrieves the model for that specific collection in JSON format.\n",
|
|
2028
|
+
"examples": [
|
|
2029
|
+
"swell inspect models",
|
|
2030
|
+
"swell inspect models /products",
|
|
2031
|
+
"swell inspect models /apps/myapp/orders",
|
|
2032
|
+
"swell inspect models /orders --live"
|
|
2033
|
+
],
|
|
2034
|
+
"flags": {
|
|
2035
|
+
"live": {
|
|
2036
|
+
"description": "Use the live environment instead of test (default: test).",
|
|
2037
|
+
"name": "live",
|
|
2038
|
+
"allowNo": false,
|
|
2039
|
+
"type": "boolean"
|
|
2040
|
+
},
|
|
2041
|
+
"yes": {
|
|
2042
|
+
"char": "y",
|
|
2043
|
+
"description": "Accept all prompts automatically (for agent compatibility; no functional effect).",
|
|
2044
|
+
"name": "yes",
|
|
2045
|
+
"allowNo": false,
|
|
2046
|
+
"type": "boolean"
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
"hasDynamicHelp": false,
|
|
2050
|
+
"hiddenAliases": [],
|
|
2051
|
+
"id": "inspect:models",
|
|
2052
|
+
"pluginAlias": "@swell/cli",
|
|
2053
|
+
"pluginName": "@swell/cli",
|
|
2054
|
+
"pluginType": "core",
|
|
2055
|
+
"strict": true,
|
|
2056
|
+
"summary": "Inspect models for collections deployed in your store.",
|
|
2057
|
+
"enableJsonFlag": false,
|
|
2058
|
+
"isESM": true,
|
|
2059
|
+
"relativePath": [
|
|
2060
|
+
"dist",
|
|
2061
|
+
"commands",
|
|
2062
|
+
"inspect",
|
|
2063
|
+
"models.js"
|
|
2064
|
+
]
|
|
2065
|
+
},
|
|
1494
2066
|
"theme:dev": {
|
|
1495
2067
|
"aliases": [],
|
|
1496
2068
|
"args": {},
|
|
@@ -1576,7 +2148,7 @@
|
|
|
1576
2148
|
"args": {
|
|
1577
2149
|
"id": {
|
|
1578
2150
|
"default": "",
|
|
1579
|
-
"description": "id of the app to create",
|
|
2151
|
+
"description": "id of the app to create (required in -y)",
|
|
1580
2152
|
"name": "id"
|
|
1581
2153
|
}
|
|
1582
2154
|
},
|
|
@@ -1593,7 +2165,7 @@
|
|
|
1593
2165
|
],
|
|
1594
2166
|
"flags": {
|
|
1595
2167
|
"frontend": {
|
|
1596
|
-
"description": "create a starter framework for a hosted frontend",
|
|
2168
|
+
"description": "create a starter framework for a hosted frontend (default in -y: none)",
|
|
1597
2169
|
"name": "frontend",
|
|
1598
2170
|
"hasDynamicHelp": false,
|
|
1599
2171
|
"multiple": false,
|
|
@@ -1602,7 +2174,8 @@
|
|
|
1602
2174
|
"angular",
|
|
1603
2175
|
"hono",
|
|
1604
2176
|
"nuxt",
|
|
1605
|
-
"nextjs"
|
|
2177
|
+
"nextjs",
|
|
2178
|
+
"none"
|
|
1606
2179
|
],
|
|
1607
2180
|
"type": "option"
|
|
1608
2181
|
},
|
|
@@ -1613,6 +2186,26 @@
|
|
|
1613
2186
|
"multiple": false,
|
|
1614
2187
|
"type": "option"
|
|
1615
2188
|
},
|
|
2189
|
+
"integration-type": {
|
|
2190
|
+
"description": "integration type for integration app, if applicable",
|
|
2191
|
+
"name": "integration-type",
|
|
2192
|
+
"hasDynamicHelp": false,
|
|
2193
|
+
"multiple": false,
|
|
2194
|
+
"options": [
|
|
2195
|
+
"generic",
|
|
2196
|
+
"payment",
|
|
2197
|
+
"shipping",
|
|
2198
|
+
"tax"
|
|
2199
|
+
],
|
|
2200
|
+
"type": "option"
|
|
2201
|
+
},
|
|
2202
|
+
"integration-id": {
|
|
2203
|
+
"description": "unique identifier for the integration service (required for payment/shipping/tax; use 'card' for credit cards)",
|
|
2204
|
+
"name": "integration-id",
|
|
2205
|
+
"hasDynamicHelp": false,
|
|
2206
|
+
"multiple": false,
|
|
2207
|
+
"type": "option"
|
|
2208
|
+
},
|
|
1616
2209
|
"yes": {
|
|
1617
2210
|
"char": "y",
|
|
1618
2211
|
"description": "accept all default values",
|
|
@@ -1932,5 +2525,5 @@
|
|
|
1932
2525
|
]
|
|
1933
2526
|
}
|
|
1934
2527
|
},
|
|
1935
|
-
"version": "2.1
|
|
2528
|
+
"version": "2.2.1"
|
|
1936
2529
|
}
|