@swell/cli 2.5.8 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/api/delete.d.ts +1 -0
- package/dist/commands/api/delete.js +3 -1
- package/dist/commands/api/get.d.ts +1 -0
- package/dist/commands/api/get.js +3 -1
- package/dist/commands/api/post.d.ts +1 -0
- package/dist/commands/api/post.js +3 -1
- package/dist/commands/api/put.d.ts +1 -0
- package/dist/commands/api/put.js +3 -1
- package/dist/commands/app/dev.js +2 -5
- package/dist/commands/app/frontend/dev.js +18 -0
- package/dist/commands/inspect/content.d.ts +25 -14
- package/dist/commands/inspect/content.js +34 -144
- package/dist/commands/inspect/functions.d.ts +48 -0
- package/dist/commands/inspect/functions.js +83 -0
- package/dist/commands/inspect/index.js +8 -7
- package/dist/commands/inspect/models.d.ts +17 -2
- package/dist/commands/inspect/models.js +114 -47
- package/dist/commands/inspect/notifications.d.ts +31 -0
- package/dist/commands/inspect/notifications.js +125 -0
- package/dist/commands/inspect/settings.d.ts +28 -0
- package/dist/commands/inspect/settings.js +82 -0
- package/dist/commands/inspect/webhooks.d.ts +34 -0
- package/dist/commands/inspect/webhooks.js +61 -0
- package/dist/create-app-command.d.ts +7 -0
- package/dist/create-app-command.js +66 -3
- package/dist/inspect-resource-command.d.ts +91 -0
- package/dist/inspect-resource-command.js +232 -0
- package/dist/lib/apps/index.d.ts +2 -1
- package/dist/lib/apps/index.js +43 -6
- package/dist/lib/apps/inspect-scope.d.ts +58 -0
- package/dist/lib/apps/inspect-scope.js +60 -0
- package/dist/lib/apps/object-id.d.ts +7 -0
- package/dist/lib/apps/object-id.js +9 -0
- package/dist/lib/apps/paths.js +8 -1
- package/dist/lib/apps/resolve.d.ts +16 -0
- package/dist/lib/apps/resolve.js +39 -0
- package/dist/lib/apps/slug.d.ts +29 -0
- package/dist/lib/apps/slug.js +12 -0
- package/dist/lib/create/tests/templates/mock-request.js +12 -1
- package/dist/lib/create/tests/templates/setup-globals.js +2 -0
- package/dist/lib/inspect/content.d.ts +39 -0
- package/dist/lib/inspect/content.js +76 -0
- package/dist/lib/inspect/notifications.d.ts +115 -0
- package/dist/lib/inspect/notifications.js +173 -0
- package/dist/lib/inspect/settings.d.ts +61 -0
- package/dist/lib/inspect/settings.js +56 -0
- package/dist/lib/inspect/table.d.ts +29 -0
- package/dist/lib/inspect/table.js +61 -0
- package/dist/lib/swell-function-wrapper.d.ts +7 -3
- package/dist/lib/swell-function-wrapper.js +53 -15
- package/dist/push-app-command.js +3 -2
- package/dist/swell-api-command.d.ts +2 -4
- package/dist/swell-api-command.js +58 -35
- package/oclif.manifest.json +364 -35
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -385,6 +385,7 @@
|
|
|
385
385
|
"examples": [
|
|
386
386
|
"swell api delete /products/abc123",
|
|
387
387
|
"swell api delete /functions/my-app/clear-cache",
|
|
388
|
+
"swell api delete /functions/my-app/clear-cache -H 'Authorization: Bearer xxx'",
|
|
388
389
|
"swell api delete /products/abc123 --api frontend"
|
|
389
390
|
],
|
|
390
391
|
"flags": {
|
|
@@ -405,6 +406,14 @@
|
|
|
405
406
|
"frontend"
|
|
406
407
|
],
|
|
407
408
|
"type": "option"
|
|
409
|
+
},
|
|
410
|
+
"header": {
|
|
411
|
+
"char": "H",
|
|
412
|
+
"description": "HTTP header to forward to a function (format: 'Name: value'). Repeat for multiple. Only applies to /functions/* paths.",
|
|
413
|
+
"name": "header",
|
|
414
|
+
"hasDynamicHelp": false,
|
|
415
|
+
"multiple": true,
|
|
416
|
+
"type": "option"
|
|
408
417
|
}
|
|
409
418
|
},
|
|
410
419
|
"hasDynamicHelp": false,
|
|
@@ -438,6 +447,7 @@
|
|
|
438
447
|
"swell api get \"/products?limit=10&category=shoes\"",
|
|
439
448
|
"swell api get /products/abc123",
|
|
440
449
|
"swell api get /functions/my-app/get-inventory",
|
|
450
|
+
"swell api get /functions/my-app/get-inventory -H 'Authorization: Bearer xxx'",
|
|
441
451
|
"swell api get /products --api frontend"
|
|
442
452
|
],
|
|
443
453
|
"flags": {
|
|
@@ -458,6 +468,14 @@
|
|
|
458
468
|
"frontend"
|
|
459
469
|
],
|
|
460
470
|
"type": "option"
|
|
471
|
+
},
|
|
472
|
+
"header": {
|
|
473
|
+
"char": "H",
|
|
474
|
+
"description": "HTTP header to forward to a function (format: 'Name: value'). Repeat for multiple. Only applies to /functions/* paths.",
|
|
475
|
+
"name": "header",
|
|
476
|
+
"hasDynamicHelp": false,
|
|
477
|
+
"multiple": true,
|
|
478
|
+
"type": "option"
|
|
461
479
|
}
|
|
462
480
|
},
|
|
463
481
|
"hasDynamicHelp": false,
|
|
@@ -521,6 +539,7 @@
|
|
|
521
539
|
"swell api post /products --body '{\"name\": \"Product\", \"price\": 100}'",
|
|
522
540
|
"swell api post /products --body ./product.json",
|
|
523
541
|
"swell api post /functions/my-app/create-order --body '{\"items\":[\"sku-1\"]}'",
|
|
542
|
+
"swell api post /functions/my-app/webhook --body @./payload.json -H 'Stripe-Signature: t=123,v1=abc'",
|
|
524
543
|
"swell api post /products --body '{\"name\": \"Product\"}' --api frontend"
|
|
525
544
|
],
|
|
526
545
|
"flags": {
|
|
@@ -548,6 +567,14 @@
|
|
|
548
567
|
"frontend"
|
|
549
568
|
],
|
|
550
569
|
"type": "option"
|
|
570
|
+
},
|
|
571
|
+
"header": {
|
|
572
|
+
"char": "H",
|
|
573
|
+
"description": "HTTP header to forward to a function (format: 'Name: value'). Repeat for multiple. Only applies to /functions/* paths.",
|
|
574
|
+
"name": "header",
|
|
575
|
+
"hasDynamicHelp": false,
|
|
576
|
+
"multiple": true,
|
|
577
|
+
"type": "option"
|
|
551
578
|
}
|
|
552
579
|
},
|
|
553
580
|
"hasDynamicHelp": false,
|
|
@@ -580,6 +607,7 @@
|
|
|
580
607
|
"swell api put /products/{id} --body '{\"id\": \"abc123\", \"name\": \"Updated\"}'",
|
|
581
608
|
"swell api put /products/abc123 --body ./product.json",
|
|
582
609
|
"swell api put /functions/my-app/update-stock --body '{\"sku\":\"abc\",\"qty\":10}'",
|
|
610
|
+
"swell api put /functions/my-app/update-stock --body '{\"sku\":\"abc\"}' -H 'X-Idempotency-Key: 42'",
|
|
583
611
|
"swell api put /products/abc123 --body '{\"name\": \"Updated\"}' --api frontend"
|
|
584
612
|
],
|
|
585
613
|
"flags": {
|
|
@@ -607,6 +635,14 @@
|
|
|
607
635
|
"frontend"
|
|
608
636
|
],
|
|
609
637
|
"type": "option"
|
|
638
|
+
},
|
|
639
|
+
"header": {
|
|
640
|
+
"char": "H",
|
|
641
|
+
"description": "HTTP header to forward to a function (format: 'Name: value'). Repeat for multiple. Only applies to /functions/* paths.",
|
|
642
|
+
"name": "header",
|
|
643
|
+
"hasDynamicHelp": false,
|
|
644
|
+
"multiple": true,
|
|
645
|
+
"type": "option"
|
|
610
646
|
}
|
|
611
647
|
},
|
|
612
648
|
"hasDynamicHelp": false,
|
|
@@ -822,16 +858,18 @@
|
|
|
822
858
|
],
|
|
823
859
|
"flags": {
|
|
824
860
|
"frontend": {
|
|
825
|
-
"description": "Framework: astro |
|
|
861
|
+
"description": "Framework: nextjs | astro | nuxt | react | hono | angular | react-storefront | none",
|
|
826
862
|
"name": "frontend",
|
|
827
863
|
"hasDynamicHelp": false,
|
|
828
864
|
"multiple": false,
|
|
829
865
|
"options": [
|
|
866
|
+
"nextjs",
|
|
830
867
|
"astro",
|
|
831
|
-
"angular",
|
|
832
|
-
"hono",
|
|
833
868
|
"nuxt",
|
|
834
|
-
"
|
|
869
|
+
"react",
|
|
870
|
+
"hono",
|
|
871
|
+
"angular",
|
|
872
|
+
"react-storefront",
|
|
835
873
|
"none"
|
|
836
874
|
],
|
|
837
875
|
"type": "option"
|
|
@@ -1380,16 +1418,18 @@
|
|
|
1380
1418
|
],
|
|
1381
1419
|
"flags": {
|
|
1382
1420
|
"frontend": {
|
|
1383
|
-
"description": "Framework: astro |
|
|
1421
|
+
"description": "Framework: nextjs | astro | nuxt | react | hono | angular | react-storefront | none",
|
|
1384
1422
|
"name": "frontend",
|
|
1385
1423
|
"hasDynamicHelp": false,
|
|
1386
1424
|
"multiple": false,
|
|
1387
1425
|
"options": [
|
|
1426
|
+
"nextjs",
|
|
1388
1427
|
"astro",
|
|
1389
|
-
"angular",
|
|
1390
|
-
"hono",
|
|
1391
1428
|
"nuxt",
|
|
1392
|
-
"
|
|
1429
|
+
"react",
|
|
1430
|
+
"hono",
|
|
1431
|
+
"angular",
|
|
1432
|
+
"react-storefront",
|
|
1393
1433
|
"none"
|
|
1394
1434
|
],
|
|
1395
1435
|
"type": "option"
|
|
@@ -1649,16 +1689,18 @@
|
|
|
1649
1689
|
],
|
|
1650
1690
|
"flags": {
|
|
1651
1691
|
"frontend": {
|
|
1652
|
-
"description": "Framework: astro |
|
|
1692
|
+
"description": "Framework: nextjs | astro | nuxt | react | hono | angular | react-storefront | none",
|
|
1653
1693
|
"name": "frontend",
|
|
1654
1694
|
"hasDynamicHelp": false,
|
|
1655
1695
|
"multiple": false,
|
|
1656
1696
|
"options": [
|
|
1697
|
+
"nextjs",
|
|
1657
1698
|
"astro",
|
|
1658
|
-
"angular",
|
|
1659
|
-
"hono",
|
|
1660
1699
|
"nuxt",
|
|
1661
|
-
"
|
|
1700
|
+
"react",
|
|
1701
|
+
"hono",
|
|
1702
|
+
"angular",
|
|
1703
|
+
"react-storefront",
|
|
1662
1704
|
"none"
|
|
1663
1705
|
],
|
|
1664
1706
|
"type": "option"
|
|
@@ -2307,29 +2349,45 @@
|
|
|
2307
2349
|
"inspect:content": {
|
|
2308
2350
|
"aliases": [],
|
|
2309
2351
|
"args": {
|
|
2310
|
-
"
|
|
2311
|
-
"description": "
|
|
2312
|
-
"name": "
|
|
2352
|
+
"identifier": {
|
|
2353
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2354
|
+
"name": "identifier",
|
|
2313
2355
|
"required": false
|
|
2314
2356
|
}
|
|
2315
2357
|
},
|
|
2316
|
-
"description": "
|
|
2358
|
+
"description": "Lists content view extensions across all apps plus platform 'custom' sources, grouped by owner. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n app.<app>.<name> — app-owned view (list column 1)\n custom.<source>.<name> — platform custom view (e.g. custom.admin.products)\n <name> — requires --app= scope\n",
|
|
2317
2359
|
"examples": [
|
|
2318
2360
|
"swell inspect content",
|
|
2319
|
-
"swell inspect content
|
|
2361
|
+
"swell inspect content --app=my-app",
|
|
2320
2362
|
"swell inspect content app.honest_reviews.reviews",
|
|
2321
|
-
"swell inspect content
|
|
2363
|
+
"swell inspect content custom.admin.products",
|
|
2364
|
+
"swell inspect content reviews --app=honest_reviews",
|
|
2365
|
+
"swell inspect content --live"
|
|
2322
2366
|
],
|
|
2323
2367
|
"flags": {
|
|
2368
|
+
"app": {
|
|
2369
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2370
|
+
"name": "app",
|
|
2371
|
+
"hasDynamicHelp": false,
|
|
2372
|
+
"multiple": false,
|
|
2373
|
+
"type": "option"
|
|
2374
|
+
},
|
|
2324
2375
|
"live": {
|
|
2325
|
-
"description": "Use
|
|
2376
|
+
"description": "Use live environment (default: test).",
|
|
2326
2377
|
"name": "live",
|
|
2327
2378
|
"allowNo": false,
|
|
2328
2379
|
"type": "boolean"
|
|
2329
2380
|
},
|
|
2381
|
+
"json": {
|
|
2382
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2383
|
+
"name": "json",
|
|
2384
|
+
"allowNo": false,
|
|
2385
|
+
"type": "boolean"
|
|
2386
|
+
},
|
|
2330
2387
|
"yes": {
|
|
2331
2388
|
"char": "y",
|
|
2332
|
-
"description": "
|
|
2389
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2390
|
+
"hidden": true,
|
|
2333
2391
|
"name": "yes",
|
|
2334
2392
|
"allowNo": false,
|
|
2335
2393
|
"type": "boolean"
|
|
@@ -2342,8 +2400,7 @@
|
|
|
2342
2400
|
"pluginName": "@swell/cli",
|
|
2343
2401
|
"pluginType": "core",
|
|
2344
2402
|
"strict": true,
|
|
2345
|
-
"summary": "
|
|
2346
|
-
"enableJsonFlag": false,
|
|
2403
|
+
"summary": "App and platform content views.",
|
|
2347
2404
|
"isESM": true,
|
|
2348
2405
|
"relativePath": [
|
|
2349
2406
|
"dist",
|
|
@@ -2352,14 +2409,79 @@
|
|
|
2352
2409
|
"content.js"
|
|
2353
2410
|
]
|
|
2354
2411
|
},
|
|
2412
|
+
"inspect:functions": {
|
|
2413
|
+
"aliases": [],
|
|
2414
|
+
"args": {
|
|
2415
|
+
"identifier": {
|
|
2416
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2417
|
+
"name": "identifier",
|
|
2418
|
+
"required": false
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
"description": "Lists functions across all apps, grouped by app. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + status (disabled, trigger, next cron run, last failure).\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n app.<app>.<name> — full paste-back key (list column 1)\n <name> — requires --app= scope\n <24-char id> — any scope\n",
|
|
2422
|
+
"examples": [
|
|
2423
|
+
"swell inspect functions",
|
|
2424
|
+
"swell inspect functions --app=my-app",
|
|
2425
|
+
"swell inspect functions app.my-app.payment-sync",
|
|
2426
|
+
"swell inspect functions payment-sync --app=my-app",
|
|
2427
|
+
"swell inspect functions --live"
|
|
2428
|
+
],
|
|
2429
|
+
"flags": {
|
|
2430
|
+
"app": {
|
|
2431
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2432
|
+
"name": "app",
|
|
2433
|
+
"hasDynamicHelp": false,
|
|
2434
|
+
"multiple": false,
|
|
2435
|
+
"type": "option"
|
|
2436
|
+
},
|
|
2437
|
+
"live": {
|
|
2438
|
+
"description": "Use live environment (default: test).",
|
|
2439
|
+
"name": "live",
|
|
2440
|
+
"allowNo": false,
|
|
2441
|
+
"type": "boolean"
|
|
2442
|
+
},
|
|
2443
|
+
"json": {
|
|
2444
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2445
|
+
"name": "json",
|
|
2446
|
+
"allowNo": false,
|
|
2447
|
+
"type": "boolean"
|
|
2448
|
+
},
|
|
2449
|
+
"yes": {
|
|
2450
|
+
"char": "y",
|
|
2451
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2452
|
+
"hidden": true,
|
|
2453
|
+
"name": "yes",
|
|
2454
|
+
"allowNo": false,
|
|
2455
|
+
"type": "boolean"
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"hasDynamicHelp": false,
|
|
2459
|
+
"hiddenAliases": [],
|
|
2460
|
+
"id": "inspect:functions",
|
|
2461
|
+
"pluginAlias": "@swell/cli",
|
|
2462
|
+
"pluginName": "@swell/cli",
|
|
2463
|
+
"pluginType": "core",
|
|
2464
|
+
"strict": true,
|
|
2465
|
+
"summary": "Functions with scheduling and trigger state.",
|
|
2466
|
+
"isESM": true,
|
|
2467
|
+
"relativePath": [
|
|
2468
|
+
"dist",
|
|
2469
|
+
"commands",
|
|
2470
|
+
"inspect",
|
|
2471
|
+
"functions.js"
|
|
2472
|
+
]
|
|
2473
|
+
},
|
|
2355
2474
|
"inspect": {
|
|
2356
2475
|
"aliases": [],
|
|
2357
2476
|
"args": {},
|
|
2358
|
-
"description": "
|
|
2477
|
+
"description": "Subcommands list globally and group by app. Pass --app=<slug> or --app=. (current swell.json) to scope. Pass an identifier to print the full record as JSON, followed by a \"Next steps\" footer of related commands. Use --json to omit the footer for piping.\n",
|
|
2359
2478
|
"examples": [
|
|
2360
|
-
"swell inspect models",
|
|
2361
2479
|
"swell inspect models /products",
|
|
2362
|
-
"swell inspect
|
|
2480
|
+
"swell inspect content app.honest_reviews.reviews",
|
|
2481
|
+
"swell inspect webhooks --app=my-app",
|
|
2482
|
+
"swell inspect functions app.my-app.payment-sync",
|
|
2483
|
+
"swell inspect notifications com.orders.receipt.v2",
|
|
2484
|
+
"swell inspect settings app.my-app"
|
|
2363
2485
|
],
|
|
2364
2486
|
"flags": {},
|
|
2365
2487
|
"hasDynamicHelp": false,
|
|
@@ -2388,24 +2510,40 @@
|
|
|
2388
2510
|
"required": false
|
|
2389
2511
|
}
|
|
2390
2512
|
},
|
|
2391
|
-
"description": "
|
|
2513
|
+
"description": "Lists all collections grouped by type. Pass --app=<slug> or --app=. (current swell.json) to filter to one app's models.\n\nPass a collection path to view a single model as JSON. Paths are fully qualified, so --app is ignored in detail mode.\n",
|
|
2392
2514
|
"examples": [
|
|
2393
2515
|
"swell inspect models",
|
|
2516
|
+
"swell inspect models --app=my-app",
|
|
2517
|
+
"swell inspect models --live",
|
|
2394
2518
|
"swell inspect models /products",
|
|
2395
2519
|
"swell inspect models /content/blogs",
|
|
2396
2520
|
"swell inspect models /apps/myapp/orders",
|
|
2397
|
-
"swell inspect models /
|
|
2521
|
+
"swell inspect models /products --json"
|
|
2398
2522
|
],
|
|
2399
2523
|
"flags": {
|
|
2524
|
+
"app": {
|
|
2525
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2526
|
+
"name": "app",
|
|
2527
|
+
"hasDynamicHelp": false,
|
|
2528
|
+
"multiple": false,
|
|
2529
|
+
"type": "option"
|
|
2530
|
+
},
|
|
2400
2531
|
"live": {
|
|
2401
|
-
"description": "Use
|
|
2532
|
+
"description": "Use live environment (default: test).",
|
|
2402
2533
|
"name": "live",
|
|
2403
2534
|
"allowNo": false,
|
|
2404
2535
|
"type": "boolean"
|
|
2405
2536
|
},
|
|
2537
|
+
"json": {
|
|
2538
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2539
|
+
"name": "json",
|
|
2540
|
+
"allowNo": false,
|
|
2541
|
+
"type": "boolean"
|
|
2542
|
+
},
|
|
2406
2543
|
"yes": {
|
|
2407
2544
|
"char": "y",
|
|
2408
|
-
"description": "
|
|
2545
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2546
|
+
"hidden": true,
|
|
2409
2547
|
"name": "yes",
|
|
2410
2548
|
"allowNo": false,
|
|
2411
2549
|
"type": "boolean"
|
|
@@ -2418,7 +2556,7 @@
|
|
|
2418
2556
|
"pluginName": "@swell/cli",
|
|
2419
2557
|
"pluginType": "core",
|
|
2420
2558
|
"strict": true,
|
|
2421
|
-
"summary": "
|
|
2559
|
+
"summary": "Collection models and fields (hierarchical).",
|
|
2422
2560
|
"enableJsonFlag": false,
|
|
2423
2561
|
"isESM": true,
|
|
2424
2562
|
"relativePath": [
|
|
@@ -2428,6 +2566,195 @@
|
|
|
2428
2566
|
"models.js"
|
|
2429
2567
|
]
|
|
2430
2568
|
},
|
|
2569
|
+
"inspect:notifications": {
|
|
2570
|
+
"aliases": [],
|
|
2571
|
+
"args": {
|
|
2572
|
+
"identifier": {
|
|
2573
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2574
|
+
"name": "identifier",
|
|
2575
|
+
"required": false
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
"description": "Lists notifications across all apps plus platform 'com.*' system records, grouped by owner. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nApp keys include the model (app.<slug>.<model>.<name>) since identity is (api, model, name, app_id?) — two notifications in one app can share a name on different models. Own-app prefix apps/<own>/... is stripped in display.\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n com.<model>.<name> — platform record\n app.<app>.<model>.<name> — app record (full key)\n app.<app>.<name> — legacy; ambiguous → errors with candidates\n <name> — requires --app= scope\n <24-char id> — any scope\n",
|
|
2579
|
+
"examples": [
|
|
2580
|
+
"swell inspect notifications",
|
|
2581
|
+
"swell inspect notifications --app=my-app",
|
|
2582
|
+
"swell inspect notifications com.orders.receipt.v2",
|
|
2583
|
+
"swell inspect notifications app.notify_me.subscriptions.back-in-stock",
|
|
2584
|
+
"swell inspect notifications back-in-stock --app=notify_me",
|
|
2585
|
+
"swell inspect notifications --live"
|
|
2586
|
+
],
|
|
2587
|
+
"flags": {
|
|
2588
|
+
"app": {
|
|
2589
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2590
|
+
"name": "app",
|
|
2591
|
+
"hasDynamicHelp": false,
|
|
2592
|
+
"multiple": false,
|
|
2593
|
+
"type": "option"
|
|
2594
|
+
},
|
|
2595
|
+
"live": {
|
|
2596
|
+
"description": "Use live environment (default: test).",
|
|
2597
|
+
"name": "live",
|
|
2598
|
+
"allowNo": false,
|
|
2599
|
+
"type": "boolean"
|
|
2600
|
+
},
|
|
2601
|
+
"json": {
|
|
2602
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2603
|
+
"name": "json",
|
|
2604
|
+
"allowNo": false,
|
|
2605
|
+
"type": "boolean"
|
|
2606
|
+
},
|
|
2607
|
+
"yes": {
|
|
2608
|
+
"char": "y",
|
|
2609
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2610
|
+
"hidden": true,
|
|
2611
|
+
"name": "yes",
|
|
2612
|
+
"allowNo": false,
|
|
2613
|
+
"type": "boolean"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
"hasDynamicHelp": false,
|
|
2617
|
+
"hiddenAliases": [],
|
|
2618
|
+
"id": "inspect:notifications",
|
|
2619
|
+
"pluginAlias": "@swell/cli",
|
|
2620
|
+
"pluginName": "@swell/cli",
|
|
2621
|
+
"pluginType": "core",
|
|
2622
|
+
"strict": true,
|
|
2623
|
+
"summary": "Notifications across apps and platform.",
|
|
2624
|
+
"isESM": true,
|
|
2625
|
+
"relativePath": [
|
|
2626
|
+
"dist",
|
|
2627
|
+
"commands",
|
|
2628
|
+
"inspect",
|
|
2629
|
+
"notifications.js"
|
|
2630
|
+
]
|
|
2631
|
+
},
|
|
2632
|
+
"inspect:settings": {
|
|
2633
|
+
"aliases": [],
|
|
2634
|
+
"args": {
|
|
2635
|
+
"identifier": {
|
|
2636
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2637
|
+
"name": "identifier",
|
|
2638
|
+
"required": false
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2641
|
+
"description": "Lists app settings records plus platform 'com.*' system records, grouped by owner. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nEach app collapses to one settings record at push time, so the list shows one row per app.\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n <name> — system record (e.g. taxes, payments)\n app.<slug> — app record\n com.<name> — full system id\n <24-char id> — direct fetch\n\nDeprecated records (general, admin) are filtered from the list but remain reachable by name.\n",
|
|
2642
|
+
"examples": [
|
|
2643
|
+
"swell inspect settings",
|
|
2644
|
+
"swell inspect settings --app=my-app",
|
|
2645
|
+
"swell inspect settings taxes",
|
|
2646
|
+
"swell inspect settings app.notify_me",
|
|
2647
|
+
"swell inspect settings com.payments",
|
|
2648
|
+
"swell inspect settings --live",
|
|
2649
|
+
"swell inspect settings taxes --json"
|
|
2650
|
+
],
|
|
2651
|
+
"flags": {
|
|
2652
|
+
"app": {
|
|
2653
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2654
|
+
"name": "app",
|
|
2655
|
+
"hasDynamicHelp": false,
|
|
2656
|
+
"multiple": false,
|
|
2657
|
+
"type": "option"
|
|
2658
|
+
},
|
|
2659
|
+
"live": {
|
|
2660
|
+
"description": "Use live environment (default: test).",
|
|
2661
|
+
"name": "live",
|
|
2662
|
+
"allowNo": false,
|
|
2663
|
+
"type": "boolean"
|
|
2664
|
+
},
|
|
2665
|
+
"json": {
|
|
2666
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2667
|
+
"name": "json",
|
|
2668
|
+
"allowNo": false,
|
|
2669
|
+
"type": "boolean"
|
|
2670
|
+
},
|
|
2671
|
+
"yes": {
|
|
2672
|
+
"char": "y",
|
|
2673
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2674
|
+
"hidden": true,
|
|
2675
|
+
"name": "yes",
|
|
2676
|
+
"allowNo": false,
|
|
2677
|
+
"type": "boolean"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"hasDynamicHelp": false,
|
|
2681
|
+
"hiddenAliases": [],
|
|
2682
|
+
"id": "inspect:settings",
|
|
2683
|
+
"pluginAlias": "@swell/cli",
|
|
2684
|
+
"pluginName": "@swell/cli",
|
|
2685
|
+
"pluginType": "core",
|
|
2686
|
+
"strict": true,
|
|
2687
|
+
"summary": "App and platform settings records.",
|
|
2688
|
+
"isESM": true,
|
|
2689
|
+
"relativePath": [
|
|
2690
|
+
"dist",
|
|
2691
|
+
"commands",
|
|
2692
|
+
"inspect",
|
|
2693
|
+
"settings.js"
|
|
2694
|
+
]
|
|
2695
|
+
},
|
|
2696
|
+
"inspect:webhooks": {
|
|
2697
|
+
"aliases": [],
|
|
2698
|
+
"args": {
|
|
2699
|
+
"identifier": {
|
|
2700
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2701
|
+
"name": "identifier",
|
|
2702
|
+
"required": false
|
|
2703
|
+
}
|
|
2704
|
+
},
|
|
2705
|
+
"description": "Lists webhooks across all apps, grouped by app. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + status (disabled, events, failures since date).\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n app.<app>.<alias> — full paste-back key (list column 1)\n <alias> — requires --app= scope\n <24-char id> — any scope\n",
|
|
2706
|
+
"examples": [
|
|
2707
|
+
"swell inspect webhooks",
|
|
2708
|
+
"swell inspect webhooks --app=my-app",
|
|
2709
|
+
"swell inspect webhooks app.my-app.order-sync",
|
|
2710
|
+
"swell inspect webhooks order-sync --app=my-app",
|
|
2711
|
+
"swell inspect webhooks --live"
|
|
2712
|
+
],
|
|
2713
|
+
"flags": {
|
|
2714
|
+
"app": {
|
|
2715
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2716
|
+
"name": "app",
|
|
2717
|
+
"hasDynamicHelp": false,
|
|
2718
|
+
"multiple": false,
|
|
2719
|
+
"type": "option"
|
|
2720
|
+
},
|
|
2721
|
+
"live": {
|
|
2722
|
+
"description": "Use live environment (default: test).",
|
|
2723
|
+
"name": "live",
|
|
2724
|
+
"allowNo": false,
|
|
2725
|
+
"type": "boolean"
|
|
2726
|
+
},
|
|
2727
|
+
"json": {
|
|
2728
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2729
|
+
"name": "json",
|
|
2730
|
+
"allowNo": false,
|
|
2731
|
+
"type": "boolean"
|
|
2732
|
+
},
|
|
2733
|
+
"yes": {
|
|
2734
|
+
"char": "y",
|
|
2735
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2736
|
+
"hidden": true,
|
|
2737
|
+
"name": "yes",
|
|
2738
|
+
"allowNo": false,
|
|
2739
|
+
"type": "boolean"
|
|
2740
|
+
}
|
|
2741
|
+
},
|
|
2742
|
+
"hasDynamicHelp": false,
|
|
2743
|
+
"hiddenAliases": [],
|
|
2744
|
+
"id": "inspect:webhooks",
|
|
2745
|
+
"pluginAlias": "@swell/cli",
|
|
2746
|
+
"pluginName": "@swell/cli",
|
|
2747
|
+
"pluginType": "core",
|
|
2748
|
+
"strict": true,
|
|
2749
|
+
"summary": "Webhooks with delivery state.",
|
|
2750
|
+
"isESM": true,
|
|
2751
|
+
"relativePath": [
|
|
2752
|
+
"dist",
|
|
2753
|
+
"commands",
|
|
2754
|
+
"inspect",
|
|
2755
|
+
"webhooks.js"
|
|
2756
|
+
]
|
|
2757
|
+
},
|
|
2431
2758
|
"theme:dev": {
|
|
2432
2759
|
"aliases": [],
|
|
2433
2760
|
"args": {},
|
|
@@ -2534,16 +2861,18 @@
|
|
|
2534
2861
|
],
|
|
2535
2862
|
"flags": {
|
|
2536
2863
|
"frontend": {
|
|
2537
|
-
"description": "Framework: astro |
|
|
2864
|
+
"description": "Framework: nextjs | astro | nuxt | react | hono | angular | react-storefront | none",
|
|
2538
2865
|
"name": "frontend",
|
|
2539
2866
|
"hasDynamicHelp": false,
|
|
2540
2867
|
"multiple": false,
|
|
2541
2868
|
"options": [
|
|
2869
|
+
"nextjs",
|
|
2542
2870
|
"astro",
|
|
2543
|
-
"angular",
|
|
2544
|
-
"hono",
|
|
2545
2871
|
"nuxt",
|
|
2546
|
-
"
|
|
2872
|
+
"react",
|
|
2873
|
+
"hono",
|
|
2874
|
+
"angular",
|
|
2875
|
+
"react-storefront",
|
|
2547
2876
|
"none"
|
|
2548
2877
|
],
|
|
2549
2878
|
"type": "option"
|
|
@@ -2969,5 +3298,5 @@
|
|
|
2969
3298
|
]
|
|
2970
3299
|
}
|
|
2971
3300
|
},
|
|
2972
|
-
"version": "2.
|
|
3301
|
+
"version": "2.7.0"
|
|
2973
3302
|
}
|