@swell/cli 2.0.1-alpha.16 → 2.0.1-alpha.17
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.d.ts +1 -1
- package/dist/app-command.js +8 -8
- package/dist/commands/app/dev.d.ts +18 -0
- package/dist/commands/app/dev.js +31 -0
- package/dist/commands/app/frontend/deploy.d.ts +17 -0
- package/dist/commands/app/frontend/deploy.js +44 -0
- package/dist/commands/app/frontend/dev.d.ts +21 -0
- package/dist/commands/app/frontend/dev.js +111 -0
- package/dist/commands/app/info.js +15 -8
- package/dist/commands/app/init.d.ts +12 -0
- package/dist/commands/app/init.js +34 -0
- package/dist/commands/app/install.d.ts +0 -3
- package/dist/commands/app/install.js +12 -20
- package/dist/commands/app/pull.d.ts +15 -0
- package/dist/commands/app/pull.js +50 -0
- package/dist/commands/app/push.d.ts +10 -13
- package/dist/commands/app/push.js +64 -135
- package/dist/commands/app/release.d.ts +13 -0
- package/dist/commands/app/release.js +150 -0
- package/dist/commands/app/version.d.ts +7 -6
- package/dist/commands/app/version.js +61 -40
- package/dist/commands/app/watch.d.ts +2 -4
- package/dist/commands/app/watch.js +3 -83
- package/dist/commands/create/app.d.ts +35 -11
- package/dist/commands/create/app.js +141 -138
- package/dist/commands/create/frontend.d.ts +12 -0
- package/dist/commands/create/frontend.js +41 -0
- package/dist/commands/create/function.d.ts +2 -2
- package/dist/commands/create/function.js +2 -2
- package/dist/commands/create/notification.d.ts +2 -2
- package/dist/commands/create/notification.js +2 -2
- package/dist/commands/login.js +6 -4
- package/dist/commands/logs.js +0 -1
- package/dist/commands/theme/dev.d.ts +23 -0
- package/dist/commands/theme/dev.js +167 -0
- package/dist/commands/theme/init.d.ts +9 -0
- package/dist/commands/theme/init.js +15 -0
- package/dist/commands/theme/pull.d.ts +20 -0
- package/dist/commands/theme/pull.js +65 -0
- package/dist/commands/theme/push.d.ts +19 -0
- package/dist/commands/theme/push.js +92 -0
- package/dist/create-app-command.d.ts +20 -0
- package/dist/create-app-command.js +254 -0
- package/dist/create-collection-command.d.ts +3 -3
- package/dist/create-collection-command.js +4 -4
- package/dist/{create-command.d.ts → create-config-command.d.ts} +1 -1
- package/dist/{create-command.js → create-config-command.js} +3 -3
- package/dist/lib/api.d.ts +3 -2
- package/dist/lib/api.js +47 -21
- package/dist/lib/app-config.d.ts +12 -5
- package/dist/lib/app-config.js +59 -24
- package/dist/lib/apps/app-config.d.ts +22 -8
- package/dist/lib/apps/app-config.js +202 -68
- package/dist/lib/apps/index.d.ts +93 -13
- package/dist/lib/apps/index.js +150 -50
- package/dist/lib/apps/paths.d.ts +14 -7
- package/dist/lib/apps/paths.js +73 -28
- package/dist/lib/config.d.ts +5 -1
- package/dist/lib/config.js +14 -0
- package/dist/lib/constants.d.ts +5 -0
- package/dist/lib/constants.js +20 -0
- package/dist/lib/create/content.d.ts +1 -1
- package/dist/lib/create/index.js +5 -1
- package/dist/lib/info.js +2 -2
- package/dist/lib/stores.d.ts +1 -1
- package/dist/lib/stores.js +3 -3
- package/dist/lib/style.d.ts +2 -0
- package/dist/lib/style.js +2 -0
- package/dist/push-app-command.d.ts +73 -0
- package/dist/push-app-command.js +765 -0
- package/dist/remote-app-command.d.ts +33 -7
- package/dist/remote-app-command.js +423 -151
- package/oclif.manifest.json +794 -81
- package/package.json +13 -2
- package/dist/commands/app/_pull.d.ts +0 -8
- package/dist/commands/app/_pull.js +0 -45
package/oclif.manifest.json
CHANGED
|
@@ -258,92 +258,120 @@
|
|
|
258
258
|
"whoami.js"
|
|
259
259
|
]
|
|
260
260
|
},
|
|
261
|
-
"app:
|
|
261
|
+
"app:_uninstall": {
|
|
262
262
|
"aliases": [],
|
|
263
|
-
"args": {
|
|
264
|
-
|
|
265
|
-
"description": "app id to pull",
|
|
266
|
-
"name": "appId"
|
|
267
|
-
}
|
|
268
|
-
},
|
|
263
|
+
"args": {},
|
|
264
|
+
"description": "Uninstalls an existing App",
|
|
269
265
|
"examples": [
|
|
270
266
|
"<%= config.bin %> <%= command.id %>"
|
|
271
267
|
],
|
|
272
268
|
"flags": {
|
|
273
269
|
"app-path": {
|
|
274
|
-
"description": "path to
|
|
270
|
+
"description": "path to your app directory",
|
|
275
271
|
"name": "app-path",
|
|
276
272
|
"hasDynamicHelp": false,
|
|
277
273
|
"multiple": false,
|
|
278
274
|
"type": "option"
|
|
275
|
+
},
|
|
276
|
+
"env": {
|
|
277
|
+
"description": "environment to uninstall the app from",
|
|
278
|
+
"name": "env",
|
|
279
|
+
"default": "test",
|
|
280
|
+
"hasDynamicHelp": false,
|
|
281
|
+
"multiple": false,
|
|
282
|
+
"type": "option"
|
|
283
|
+
},
|
|
284
|
+
"store": {
|
|
285
|
+
"char": "s",
|
|
286
|
+
"description": "store id to uninstall the app from",
|
|
287
|
+
"name": "store",
|
|
288
|
+
"hasDynamicHelp": false,
|
|
289
|
+
"multiple": false,
|
|
290
|
+
"type": "option"
|
|
279
291
|
}
|
|
280
292
|
},
|
|
281
293
|
"hasDynamicHelp": false,
|
|
282
294
|
"hiddenAliases": [],
|
|
283
|
-
"id": "app:
|
|
295
|
+
"id": "app:_uninstall",
|
|
284
296
|
"pluginAlias": "@swell/cli",
|
|
285
297
|
"pluginName": "@swell/cli",
|
|
286
298
|
"pluginType": "core",
|
|
287
299
|
"strict": true,
|
|
288
|
-
"summary": "Pull app configuration from remote.",
|
|
289
300
|
"enableJsonFlag": false,
|
|
301
|
+
"delayOrientation": false,
|
|
302
|
+
"orientation": {
|
|
303
|
+
"env": "test"
|
|
304
|
+
},
|
|
290
305
|
"isESM": true,
|
|
291
306
|
"relativePath": [
|
|
292
307
|
"dist",
|
|
293
308
|
"commands",
|
|
294
309
|
"app",
|
|
295
|
-
"
|
|
310
|
+
"_uninstall.js"
|
|
296
311
|
]
|
|
297
312
|
},
|
|
298
|
-
"app:
|
|
313
|
+
"app:dev": {
|
|
299
314
|
"aliases": [],
|
|
300
315
|
"args": {},
|
|
301
|
-
"description": "Uninstalls an existing App",
|
|
302
316
|
"examples": [
|
|
303
|
-
"
|
|
317
|
+
"swell app dev",
|
|
318
|
+
"swell app dev --storefront-id <id>",
|
|
319
|
+
"swell app dev --port 3000"
|
|
304
320
|
],
|
|
305
321
|
"flags": {
|
|
306
322
|
"app-path": {
|
|
307
|
-
"description": "path to
|
|
323
|
+
"description": "path to your app directory",
|
|
308
324
|
"name": "app-path",
|
|
309
325
|
"hasDynamicHelp": false,
|
|
310
326
|
"multiple": false,
|
|
311
327
|
"type": "option"
|
|
312
328
|
},
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
"
|
|
329
|
+
"port": {
|
|
330
|
+
"char": "p",
|
|
331
|
+
"description": "override the default port to run the app locally",
|
|
332
|
+
"name": "port",
|
|
317
333
|
"hasDynamicHelp": false,
|
|
318
334
|
"multiple": false,
|
|
319
335
|
"type": "option"
|
|
320
336
|
},
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
337
|
+
"no-push": {
|
|
338
|
+
"description": "skip pushing app files initially",
|
|
339
|
+
"name": "no-push",
|
|
340
|
+
"allowNo": false,
|
|
341
|
+
"type": "boolean"
|
|
342
|
+
},
|
|
343
|
+
"storefront-id": {
|
|
344
|
+
"description": "for storefront apps, identify a storefront to preview and push theme files to",
|
|
345
|
+
"name": "storefront-id",
|
|
325
346
|
"hasDynamicHelp": false,
|
|
326
347
|
"multiple": false,
|
|
327
348
|
"type": "option"
|
|
349
|
+
},
|
|
350
|
+
"storefront-select": {
|
|
351
|
+
"description": "for storefront apps, prompt to select a storefront to preview",
|
|
352
|
+
"name": "storefront-select",
|
|
353
|
+
"allowNo": false,
|
|
354
|
+
"type": "boolean"
|
|
328
355
|
}
|
|
329
356
|
},
|
|
330
357
|
"hasDynamicHelp": false,
|
|
331
358
|
"hiddenAliases": [],
|
|
332
|
-
"id": "app:
|
|
359
|
+
"id": "app:dev",
|
|
333
360
|
"pluginAlias": "@swell/cli",
|
|
334
361
|
"pluginName": "@swell/cli",
|
|
335
362
|
"pluginType": "core",
|
|
336
363
|
"strict": true,
|
|
337
|
-
"
|
|
364
|
+
"summary": "Run an app in dev mode from your local machine.",
|
|
338
365
|
"orientation": {
|
|
339
366
|
"env": "test"
|
|
340
367
|
},
|
|
368
|
+
"delayOrientation": true,
|
|
341
369
|
"isESM": true,
|
|
342
370
|
"relativePath": [
|
|
343
371
|
"dist",
|
|
344
372
|
"commands",
|
|
345
373
|
"app",
|
|
346
|
-
"
|
|
374
|
+
"dev.js"
|
|
347
375
|
]
|
|
348
376
|
},
|
|
349
377
|
"app:info": {
|
|
@@ -367,7 +395,7 @@
|
|
|
367
395
|
],
|
|
368
396
|
"flags": {
|
|
369
397
|
"app-path": {
|
|
370
|
-
"description": "path to
|
|
398
|
+
"description": "path to your app directory",
|
|
371
399
|
"name": "app-path",
|
|
372
400
|
"hasDynamicHelp": false,
|
|
373
401
|
"multiple": false,
|
|
@@ -383,6 +411,7 @@
|
|
|
383
411
|
"strict": true,
|
|
384
412
|
"summary": "Show information about your Swell app.",
|
|
385
413
|
"enableJsonFlag": false,
|
|
414
|
+
"delayOrientation": false,
|
|
386
415
|
"isESM": true,
|
|
387
416
|
"relativePath": [
|
|
388
417
|
"dist",
|
|
@@ -391,18 +420,81 @@
|
|
|
391
420
|
"info.js"
|
|
392
421
|
]
|
|
393
422
|
},
|
|
423
|
+
"app:init": {
|
|
424
|
+
"aliases": [],
|
|
425
|
+
"args": {
|
|
426
|
+
"id": {
|
|
427
|
+
"default": "",
|
|
428
|
+
"description": "id of the app to create",
|
|
429
|
+
"name": "id"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"description": "Initialize app swell.json in the current directory.",
|
|
433
|
+
"examples": [
|
|
434
|
+
{
|
|
435
|
+
"command": "swell app init",
|
|
436
|
+
"description": "Initialize app following command prompts."
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"command": "swell app init -y",
|
|
440
|
+
"description": "Initialize app and accept all default values."
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"flags": {
|
|
444
|
+
"yes": {
|
|
445
|
+
"char": "y",
|
|
446
|
+
"description": "accept all default values",
|
|
447
|
+
"name": "yes",
|
|
448
|
+
"allowNo": false,
|
|
449
|
+
"type": "boolean"
|
|
450
|
+
},
|
|
451
|
+
"frontend": {
|
|
452
|
+
"description": "create a starter framework for a hosted frontend",
|
|
453
|
+
"name": "frontend",
|
|
454
|
+
"hasDynamicHelp": false,
|
|
455
|
+
"multiple": false,
|
|
456
|
+
"options": [
|
|
457
|
+
"nextjs",
|
|
458
|
+
"astro"
|
|
459
|
+
],
|
|
460
|
+
"type": "option"
|
|
461
|
+
},
|
|
462
|
+
"storefront-app": {
|
|
463
|
+
"description": "id of an installed storefront app to create a theme for, if applicable",
|
|
464
|
+
"name": "storefront-app",
|
|
465
|
+
"hasDynamicHelp": false,
|
|
466
|
+
"multiple": false,
|
|
467
|
+
"type": "option"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"hasDynamicHelp": false,
|
|
471
|
+
"hiddenAliases": [],
|
|
472
|
+
"id": "app:init",
|
|
473
|
+
"pluginAlias": "@swell/cli",
|
|
474
|
+
"pluginName": "@swell/cli",
|
|
475
|
+
"pluginType": "core",
|
|
476
|
+
"strict": true,
|
|
477
|
+
"enableJsonFlag": false,
|
|
478
|
+
"isESM": true,
|
|
479
|
+
"relativePath": [
|
|
480
|
+
"dist",
|
|
481
|
+
"commands",
|
|
482
|
+
"app",
|
|
483
|
+
"init.js"
|
|
484
|
+
]
|
|
485
|
+
},
|
|
394
486
|
"app:install": {
|
|
395
487
|
"aliases": [],
|
|
396
488
|
"args": {},
|
|
397
489
|
"description": "Without a version specified, install the latest version of the app.\n\nWithout a store specified, install the app in the Live environment of the current store.",
|
|
398
490
|
"examples": [
|
|
399
|
-
"swell install",
|
|
400
|
-
"swell install -v 3.2.7",
|
|
401
|
-
"swell install -v 1.0.0 -s my-store-id"
|
|
491
|
+
"swell app install",
|
|
492
|
+
"swell app install -v 3.2.7",
|
|
493
|
+
"swell app install -v 1.0.0 -s my-store-id"
|
|
402
494
|
],
|
|
403
495
|
"flags": {
|
|
404
496
|
"app-path": {
|
|
405
|
-
"description": "path to
|
|
497
|
+
"description": "path to your app directory",
|
|
406
498
|
"name": "app-path",
|
|
407
499
|
"hasDynamicHelp": false,
|
|
408
500
|
"multiple": false,
|
|
@@ -442,6 +534,7 @@
|
|
|
442
534
|
"strict": true,
|
|
443
535
|
"summary": "Install an existing app in another store environment.",
|
|
444
536
|
"enableJsonFlag": false,
|
|
537
|
+
"delayOrientation": false,
|
|
445
538
|
"orientation": {
|
|
446
539
|
"env": "test"
|
|
447
540
|
},
|
|
@@ -453,35 +546,91 @@
|
|
|
453
546
|
"install.js"
|
|
454
547
|
]
|
|
455
548
|
},
|
|
456
|
-
"app:
|
|
549
|
+
"app:pull": {
|
|
457
550
|
"aliases": [],
|
|
458
551
|
"args": {
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
552
|
+
"appId": {
|
|
553
|
+
"default": "",
|
|
554
|
+
"description": "app id to pull",
|
|
555
|
+
"name": "appId"
|
|
556
|
+
},
|
|
557
|
+
"targetPath": {
|
|
558
|
+
"default": "",
|
|
559
|
+
"description": "path to download app files into",
|
|
560
|
+
"name": "targetPath"
|
|
462
561
|
}
|
|
463
562
|
},
|
|
464
|
-
"description": "
|
|
563
|
+
"description": "Pull all app files, a specific file, or a specific configuration\ntype from an app in your store's test environment to your local machine.\n\nIf APPID is not specified, you will be prompted with a list of apps to choose from.\n\nApp file directories:\nassets/\ncontent/\nfunctions/\nmodels/\nnotifications/\nsettings/\nwebhooks/\nfrontend/\ntheme/\nfrontend/",
|
|
465
564
|
"examples": [
|
|
466
|
-
"swell app
|
|
467
|
-
"swell app
|
|
468
|
-
"swell app
|
|
565
|
+
"swell app pull",
|
|
566
|
+
"swell app pull example_app",
|
|
567
|
+
"swell app pull example_app example-folder",
|
|
568
|
+
"swell app pull --force"
|
|
469
569
|
],
|
|
470
570
|
"flags": {
|
|
471
571
|
"app-path": {
|
|
472
|
-
"description": "path to
|
|
572
|
+
"description": "path to your app directory",
|
|
473
573
|
"name": "app-path",
|
|
474
574
|
"hasDynamicHelp": false,
|
|
475
575
|
"multiple": false,
|
|
476
576
|
"type": "option"
|
|
477
577
|
},
|
|
578
|
+
"force": {
|
|
579
|
+
"description": "force pull all files",
|
|
580
|
+
"name": "force",
|
|
581
|
+
"allowNo": false,
|
|
582
|
+
"type": "boolean"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"hasDynamicHelp": false,
|
|
586
|
+
"hiddenAliases": [],
|
|
587
|
+
"id": "app:pull",
|
|
588
|
+
"pluginAlias": "@swell/cli",
|
|
589
|
+
"pluginName": "@swell/cli",
|
|
590
|
+
"pluginType": "core",
|
|
591
|
+
"strict": true,
|
|
592
|
+
"summary": "Pull app files from Swell to your local machine.",
|
|
593
|
+
"isESM": true,
|
|
594
|
+
"relativePath": [
|
|
595
|
+
"dist",
|
|
596
|
+
"commands",
|
|
597
|
+
"app",
|
|
598
|
+
"pull.js"
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"app:push": {
|
|
602
|
+
"aliases": [],
|
|
603
|
+
"args": {
|
|
478
604
|
"file": {
|
|
479
|
-
"char": "f",
|
|
480
605
|
"description": "relative path to a configuration file or directory to push",
|
|
481
|
-
"name": "file"
|
|
606
|
+
"name": "file"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"description": "Push all app files, a specific file, or a specific configuration\ntype to an app in your store's test environment.\n\nIf the app does not exist, it will be created and its global ID saved to a .swellrc file.\n\n- If no file is specified, all configuration files will be pushed to the store.\n This includes the app icon (assets/icon.png) and swell.json.\n- If a file is specified, only that file will be pushed to the store.\n- If a directory is specified, only files in that directory will be pushed.\n\nApp file directories:\nassets/\ncontent/\nfunctions/\nmodels/\nnotifications/\nsettings/\nwebhooks/\nfrontend/\ntheme/",
|
|
610
|
+
"examples": [
|
|
611
|
+
"swell app push",
|
|
612
|
+
"swell app push content",
|
|
613
|
+
"swell app push models/products.json"
|
|
614
|
+
],
|
|
615
|
+
"flags": {
|
|
616
|
+
"app-path": {
|
|
617
|
+
"description": "path to your app directory",
|
|
618
|
+
"name": "app-path",
|
|
482
619
|
"hasDynamicHelp": false,
|
|
483
620
|
"multiple": false,
|
|
484
621
|
"type": "option"
|
|
622
|
+
},
|
|
623
|
+
"force": {
|
|
624
|
+
"description": "force push all configurations",
|
|
625
|
+
"name": "force",
|
|
626
|
+
"allowNo": false,
|
|
627
|
+
"type": "boolean"
|
|
628
|
+
},
|
|
629
|
+
"no-deploy": {
|
|
630
|
+
"description": "skip deploying app frontend",
|
|
631
|
+
"name": "no-deploy",
|
|
632
|
+
"allowNo": false,
|
|
633
|
+
"type": "boolean"
|
|
485
634
|
}
|
|
486
635
|
},
|
|
487
636
|
"hasDynamicHelp": false,
|
|
@@ -491,11 +640,11 @@
|
|
|
491
640
|
"pluginName": "@swell/cli",
|
|
492
641
|
"pluginType": "core",
|
|
493
642
|
"strict": true,
|
|
494
|
-
"summary": "Push
|
|
495
|
-
"enableJsonFlag": false,
|
|
643
|
+
"summary": "Push local files to your Swell app.",
|
|
496
644
|
"orientation": {
|
|
497
645
|
"env": "test"
|
|
498
646
|
},
|
|
647
|
+
"delayOrientation": true,
|
|
499
648
|
"isESM": true,
|
|
500
649
|
"relativePath": [
|
|
501
650
|
"dist",
|
|
@@ -504,6 +653,78 @@
|
|
|
504
653
|
"push.js"
|
|
505
654
|
]
|
|
506
655
|
},
|
|
656
|
+
"app:release": {
|
|
657
|
+
"aliases": [],
|
|
658
|
+
"args": {
|
|
659
|
+
"version": {
|
|
660
|
+
"description": "semver version to release",
|
|
661
|
+
"name": "version"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"description": "App released are reviewed by the Swell team for quality and functionality before publishing.\n\nIf the version does not exist, you will be prompted to create it.\n\nUse the --amend flag to update the description or release notes of an existing release version.\n\nUse the --supported=false flag to indicate the version is not officially supported by the developer.\n \nThe app must be connected to a partner account with access to publish.",
|
|
665
|
+
"examples": [
|
|
666
|
+
"swell app release",
|
|
667
|
+
"swell app release 2.0.0",
|
|
668
|
+
"swell app release 2.0.0 --amend --release-notes ./releases/v2.0.0.md"
|
|
669
|
+
],
|
|
670
|
+
"flags": {
|
|
671
|
+
"app-path": {
|
|
672
|
+
"description": "path to your app directory",
|
|
673
|
+
"name": "app-path",
|
|
674
|
+
"hasDynamicHelp": false,
|
|
675
|
+
"multiple": false,
|
|
676
|
+
"type": "option"
|
|
677
|
+
},
|
|
678
|
+
"release-notes": {
|
|
679
|
+
"description": "relative path to a file containing release notes",
|
|
680
|
+
"name": "release-notes",
|
|
681
|
+
"hasDynamicHelp": false,
|
|
682
|
+
"multiple": false,
|
|
683
|
+
"type": "option"
|
|
684
|
+
},
|
|
685
|
+
"message": {
|
|
686
|
+
"char": "m",
|
|
687
|
+
"description": "description of the changes in this version for internal use",
|
|
688
|
+
"name": "message",
|
|
689
|
+
"hasDynamicHelp": false,
|
|
690
|
+
"multiple": false,
|
|
691
|
+
"type": "option"
|
|
692
|
+
},
|
|
693
|
+
"amend": {
|
|
694
|
+
"description": "amend the description or release notes of an existing release",
|
|
695
|
+
"name": "amend",
|
|
696
|
+
"allowNo": false,
|
|
697
|
+
"type": "boolean"
|
|
698
|
+
},
|
|
699
|
+
"not-supported": {
|
|
700
|
+
"description": "indicates the version is not officially supported by the developer",
|
|
701
|
+
"name": "not-supported",
|
|
702
|
+
"allowNo": false,
|
|
703
|
+
"type": "boolean"
|
|
704
|
+
},
|
|
705
|
+
"no-git-tag": {
|
|
706
|
+
"description": "if the version is being created, do not create a git tag",
|
|
707
|
+
"name": "no-git-tag",
|
|
708
|
+
"allowNo": false,
|
|
709
|
+
"type": "boolean"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"hasDynamicHelp": false,
|
|
713
|
+
"hiddenAliases": [],
|
|
714
|
+
"id": "app:release",
|
|
715
|
+
"pluginAlias": "@swell/cli",
|
|
716
|
+
"pluginName": "@swell/cli",
|
|
717
|
+
"pluginType": "core",
|
|
718
|
+
"strict": true,
|
|
719
|
+
"summary": "Release a new version of your an app for publishing to the App Store.",
|
|
720
|
+
"isESM": true,
|
|
721
|
+
"relativePath": [
|
|
722
|
+
"dist",
|
|
723
|
+
"commands",
|
|
724
|
+
"app",
|
|
725
|
+
"release.js"
|
|
726
|
+
]
|
|
727
|
+
},
|
|
507
728
|
"app:version": {
|
|
508
729
|
"aliases": [],
|
|
509
730
|
"args": {
|
|
@@ -512,7 +733,7 @@
|
|
|
512
733
|
"name": "nextVersion"
|
|
513
734
|
}
|
|
514
735
|
},
|
|
515
|
-
"description": "When executed without specifying NEXTVERSION, the command will display the current\nversion of your app.\n\nIf a NEXTVERSION is provided, the command will validate and compute the version\naccording to Semver rules by only allowing incremental updates.\n\nThe version change will be committed to the Git repository using the provided\nmessage or a default similar to the tag, e.g. \"v1.0.1\".\n\nBy default, it creates a Git tag for the specified version. You can disable this\nbehavior by using the --git-tag
|
|
736
|
+
"description": "When executed without specifying NEXTVERSION, the command will display the current\nversion of your app.\n\nIf a NEXTVERSION is provided, the command will validate and compute the version\naccording to Semver rules by only allowing incremental updates.\n\nThe version change will be committed to the Git repository using the provided\nmessage or a default similar to the tag, e.g. \"v1.0.1\".\n\nBy default, it creates a Git tag for the specified version. You can disable this\nbehavior by using the --no-git-tag option.",
|
|
516
737
|
"examples": [
|
|
517
738
|
"swell app version",
|
|
518
739
|
"swell app version minor",
|
|
@@ -520,25 +741,31 @@
|
|
|
520
741
|
],
|
|
521
742
|
"flags": {
|
|
522
743
|
"app-path": {
|
|
523
|
-
"description": "path to
|
|
744
|
+
"description": "path to your app directory",
|
|
524
745
|
"name": "app-path",
|
|
525
746
|
"hasDynamicHelp": false,
|
|
526
747
|
"multiple": false,
|
|
527
748
|
"type": "option"
|
|
528
749
|
},
|
|
529
|
-
"git-tag": {
|
|
530
|
-
"description": "create a git tag for this version (default true)",
|
|
531
|
-
"name": "git-tag",
|
|
532
|
-
"allowNo": false,
|
|
533
|
-
"type": "boolean"
|
|
534
|
-
},
|
|
535
750
|
"message": {
|
|
536
751
|
"char": "m",
|
|
537
|
-
"description": "description of the changes in this version",
|
|
752
|
+
"description": "description of the changes in this version for internal use",
|
|
538
753
|
"name": "message",
|
|
539
754
|
"hasDynamicHelp": false,
|
|
540
755
|
"multiple": false,
|
|
541
756
|
"type": "option"
|
|
757
|
+
},
|
|
758
|
+
"amend": {
|
|
759
|
+
"description": "amend the description an existing version",
|
|
760
|
+
"name": "amend",
|
|
761
|
+
"allowNo": false,
|
|
762
|
+
"type": "boolean"
|
|
763
|
+
},
|
|
764
|
+
"no-git-tag": {
|
|
765
|
+
"description": "do not create a git tag for this version",
|
|
766
|
+
"name": "no-git-tag",
|
|
767
|
+
"allowNo": false,
|
|
768
|
+
"type": "boolean"
|
|
542
769
|
}
|
|
543
770
|
},
|
|
544
771
|
"hasDynamicHelp": false,
|
|
@@ -549,7 +776,6 @@
|
|
|
549
776
|
"pluginType": "core",
|
|
550
777
|
"strict": true,
|
|
551
778
|
"summary": "Increment the version of your Swell app.",
|
|
552
|
-
"enableJsonFlag": false,
|
|
553
779
|
"isESM": true,
|
|
554
780
|
"relativePath": [
|
|
555
781
|
"dist",
|
|
@@ -569,7 +795,7 @@
|
|
|
569
795
|
],
|
|
570
796
|
"flags": {
|
|
571
797
|
"app-path": {
|
|
572
|
-
"description": "path to
|
|
798
|
+
"description": "path to your app directory",
|
|
573
799
|
"name": "app-path",
|
|
574
800
|
"hasDynamicHelp": false,
|
|
575
801
|
"multiple": false,
|
|
@@ -591,7 +817,6 @@
|
|
|
591
817
|
"pluginType": "core",
|
|
592
818
|
"strict": true,
|
|
593
819
|
"summary": "Watch for changes and push app configurations.",
|
|
594
|
-
"enableJsonFlag": false,
|
|
595
820
|
"orientation": {
|
|
596
821
|
"env": "test"
|
|
597
822
|
},
|
|
@@ -612,7 +837,7 @@
|
|
|
612
837
|
"name": "id"
|
|
613
838
|
}
|
|
614
839
|
},
|
|
615
|
-
"description": "
|
|
840
|
+
"description": "Create an app.",
|
|
616
841
|
"examples": [
|
|
617
842
|
{
|
|
618
843
|
"command": "swell create app",
|
|
@@ -632,6 +857,45 @@
|
|
|
632
857
|
}
|
|
633
858
|
],
|
|
634
859
|
"flags": {
|
|
860
|
+
"yes": {
|
|
861
|
+
"char": "y",
|
|
862
|
+
"description": "accept all default values",
|
|
863
|
+
"name": "yes",
|
|
864
|
+
"allowNo": false,
|
|
865
|
+
"type": "boolean"
|
|
866
|
+
},
|
|
867
|
+
"frontend": {
|
|
868
|
+
"description": "create a starter framework for a hosted frontend",
|
|
869
|
+
"name": "frontend",
|
|
870
|
+
"hasDynamicHelp": false,
|
|
871
|
+
"multiple": false,
|
|
872
|
+
"options": [
|
|
873
|
+
"nextjs",
|
|
874
|
+
"astro"
|
|
875
|
+
],
|
|
876
|
+
"type": "option"
|
|
877
|
+
},
|
|
878
|
+
"storefront-app": {
|
|
879
|
+
"description": "id of an installed storefront app to create a theme for, if applicable",
|
|
880
|
+
"name": "storefront-app",
|
|
881
|
+
"hasDynamicHelp": false,
|
|
882
|
+
"multiple": false,
|
|
883
|
+
"type": "option"
|
|
884
|
+
},
|
|
885
|
+
"type": {
|
|
886
|
+
"char": "t",
|
|
887
|
+
"description": "create a specific app type",
|
|
888
|
+
"name": "type",
|
|
889
|
+
"hasDynamicHelp": false,
|
|
890
|
+
"multiple": false,
|
|
891
|
+
"options": [
|
|
892
|
+
"admin",
|
|
893
|
+
"integration",
|
|
894
|
+
"storefront",
|
|
895
|
+
"theme"
|
|
896
|
+
],
|
|
897
|
+
"type": "option"
|
|
898
|
+
},
|
|
635
899
|
"pkg": {
|
|
636
900
|
"char": "p",
|
|
637
901
|
"description": "use npm or yarn to install default dependencies, or none to disable",
|
|
@@ -645,13 +909,6 @@
|
|
|
645
909
|
"none"
|
|
646
910
|
],
|
|
647
911
|
"type": "option"
|
|
648
|
-
},
|
|
649
|
-
"yes": {
|
|
650
|
-
"char": "y",
|
|
651
|
-
"description": "accept all default values",
|
|
652
|
-
"name": "yes",
|
|
653
|
-
"allowNo": false,
|
|
654
|
-
"type": "boolean"
|
|
655
912
|
}
|
|
656
913
|
},
|
|
657
914
|
"hasDynamicHelp": false,
|
|
@@ -700,7 +957,7 @@
|
|
|
700
957
|
],
|
|
701
958
|
"flags": {
|
|
702
959
|
"app-path": {
|
|
703
|
-
"description": "path to
|
|
960
|
+
"description": "path to your app directory",
|
|
704
961
|
"name": "app-path",
|
|
705
962
|
"hasDynamicHelp": false,
|
|
706
963
|
"multiple": false,
|
|
@@ -764,20 +1021,91 @@
|
|
|
764
1021
|
"content.js"
|
|
765
1022
|
]
|
|
766
1023
|
},
|
|
767
|
-
"create:
|
|
1024
|
+
"create:frontend": {
|
|
768
1025
|
"aliases": [],
|
|
769
|
-
"args": {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
1026
|
+
"args": {},
|
|
1027
|
+
"description": "Initialize a frontend app framework and folder structure.",
|
|
1028
|
+
"examples": [
|
|
1029
|
+
{
|
|
1030
|
+
"command": "swell create frontend",
|
|
1031
|
+
"description": "Create frontend app following command prompts."
|
|
773
1032
|
},
|
|
774
|
-
|
|
775
|
-
"
|
|
776
|
-
"
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
1033
|
+
{
|
|
1034
|
+
"command": "swell create frontend -y",
|
|
1035
|
+
"description": "Create frontend app and accept all default values."
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
"flags": {
|
|
1039
|
+
"yes": {
|
|
1040
|
+
"char": "y",
|
|
1041
|
+
"description": "accept all default values",
|
|
1042
|
+
"name": "yes",
|
|
1043
|
+
"allowNo": false,
|
|
1044
|
+
"type": "boolean"
|
|
1045
|
+
},
|
|
1046
|
+
"frontend": {
|
|
1047
|
+
"description": "create a starter framework for a hosted frontend",
|
|
1048
|
+
"name": "frontend",
|
|
1049
|
+
"hasDynamicHelp": false,
|
|
1050
|
+
"multiple": false,
|
|
1051
|
+
"options": [
|
|
1052
|
+
"nextjs",
|
|
1053
|
+
"astro"
|
|
1054
|
+
],
|
|
1055
|
+
"type": "option"
|
|
1056
|
+
},
|
|
1057
|
+
"storefront-app": {
|
|
1058
|
+
"description": "id of an installed storefront app to create a theme for, if applicable",
|
|
1059
|
+
"name": "storefront-app",
|
|
1060
|
+
"hasDynamicHelp": false,
|
|
1061
|
+
"multiple": false,
|
|
1062
|
+
"type": "option"
|
|
1063
|
+
},
|
|
1064
|
+
"pkg": {
|
|
1065
|
+
"char": "p",
|
|
1066
|
+
"description": "use npm or yarn to install default dependencies, or none to disable",
|
|
1067
|
+
"name": "pkg",
|
|
1068
|
+
"default": "npm",
|
|
1069
|
+
"hasDynamicHelp": false,
|
|
1070
|
+
"multiple": false,
|
|
1071
|
+
"options": [
|
|
1072
|
+
"npm",
|
|
1073
|
+
"yarn",
|
|
1074
|
+
"none"
|
|
1075
|
+
],
|
|
1076
|
+
"type": "option"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"hasDynamicHelp": false,
|
|
1080
|
+
"hiddenAliases": [],
|
|
1081
|
+
"id": "create:frontend",
|
|
1082
|
+
"pluginAlias": "@swell/cli",
|
|
1083
|
+
"pluginName": "@swell/cli",
|
|
1084
|
+
"pluginType": "core",
|
|
1085
|
+
"strict": true,
|
|
1086
|
+
"enableJsonFlag": false,
|
|
1087
|
+
"isESM": true,
|
|
1088
|
+
"relativePath": [
|
|
1089
|
+
"dist",
|
|
1090
|
+
"commands",
|
|
1091
|
+
"create",
|
|
1092
|
+
"frontend.js"
|
|
1093
|
+
]
|
|
1094
|
+
},
|
|
1095
|
+
"create:function": {
|
|
1096
|
+
"aliases": [],
|
|
1097
|
+
"args": {
|
|
1098
|
+
"functionName": {
|
|
1099
|
+
"description": "function name, used in an http route if applicable",
|
|
1100
|
+
"name": "functionName"
|
|
1101
|
+
},
|
|
1102
|
+
"trigger": {
|
|
1103
|
+
"description": "function trigger type",
|
|
1104
|
+
"name": "trigger",
|
|
1105
|
+
"options": [
|
|
1106
|
+
"cron",
|
|
1107
|
+
"model",
|
|
1108
|
+
"route"
|
|
781
1109
|
]
|
|
782
1110
|
}
|
|
783
1111
|
},
|
|
@@ -802,7 +1130,7 @@
|
|
|
802
1130
|
],
|
|
803
1131
|
"flags": {
|
|
804
1132
|
"app-path": {
|
|
805
|
-
"description": "path to
|
|
1133
|
+
"description": "path to your app directory",
|
|
806
1134
|
"name": "app-path",
|
|
807
1135
|
"hasDynamicHelp": false,
|
|
808
1136
|
"multiple": false,
|
|
@@ -925,7 +1253,7 @@
|
|
|
925
1253
|
],
|
|
926
1254
|
"flags": {
|
|
927
1255
|
"app-path": {
|
|
928
|
-
"description": "path to
|
|
1256
|
+
"description": "path to your app directory",
|
|
929
1257
|
"name": "app-path",
|
|
930
1258
|
"hasDynamicHelp": false,
|
|
931
1259
|
"multiple": false,
|
|
@@ -1018,7 +1346,7 @@
|
|
|
1018
1346
|
],
|
|
1019
1347
|
"flags": {
|
|
1020
1348
|
"app-path": {
|
|
1021
|
-
"description": "path to
|
|
1349
|
+
"description": "path to your app directory",
|
|
1022
1350
|
"name": "app-path",
|
|
1023
1351
|
"hasDynamicHelp": false,
|
|
1024
1352
|
"multiple": false,
|
|
@@ -1087,7 +1415,392 @@
|
|
|
1087
1415
|
"create",
|
|
1088
1416
|
"notification.js"
|
|
1089
1417
|
]
|
|
1418
|
+
},
|
|
1419
|
+
"theme:dev": {
|
|
1420
|
+
"aliases": [],
|
|
1421
|
+
"args": {},
|
|
1422
|
+
"examples": [
|
|
1423
|
+
"swell theme dev",
|
|
1424
|
+
"swell theme dev --local",
|
|
1425
|
+
"swell theme dev --bundle",
|
|
1426
|
+
"swell theme dev --storefront-select",
|
|
1427
|
+
"swell theme dev --storefront-id <id>"
|
|
1428
|
+
],
|
|
1429
|
+
"flags": {
|
|
1430
|
+
"app-path": {
|
|
1431
|
+
"description": "path to your app directory",
|
|
1432
|
+
"name": "app-path",
|
|
1433
|
+
"hasDynamicHelp": false,
|
|
1434
|
+
"multiple": false,
|
|
1435
|
+
"type": "option"
|
|
1436
|
+
},
|
|
1437
|
+
"storefront-id": {
|
|
1438
|
+
"description": "identify a storefront to preview and push theme files to",
|
|
1439
|
+
"name": "storefront-id",
|
|
1440
|
+
"hasDynamicHelp": false,
|
|
1441
|
+
"multiple": false,
|
|
1442
|
+
"type": "option"
|
|
1443
|
+
},
|
|
1444
|
+
"storefront-select": {
|
|
1445
|
+
"description": "prompt to select a storefront to preview and push theme files to",
|
|
1446
|
+
"name": "storefront-select",
|
|
1447
|
+
"allowNo": false,
|
|
1448
|
+
"type": "boolean"
|
|
1449
|
+
},
|
|
1450
|
+
"local": {
|
|
1451
|
+
"description": "connect to a running local storefront app dev server",
|
|
1452
|
+
"name": "local",
|
|
1453
|
+
"allowNo": false,
|
|
1454
|
+
"type": "boolean"
|
|
1455
|
+
},
|
|
1456
|
+
"bundle": {
|
|
1457
|
+
"description": "bundle assets",
|
|
1458
|
+
"name": "bundle",
|
|
1459
|
+
"allowNo": false,
|
|
1460
|
+
"type": "boolean"
|
|
1461
|
+
},
|
|
1462
|
+
"no-push": {
|
|
1463
|
+
"description": "skip pushing theme files initially",
|
|
1464
|
+
"name": "no-push",
|
|
1465
|
+
"allowNo": false,
|
|
1466
|
+
"type": "boolean"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
"hasDynamicHelp": false,
|
|
1470
|
+
"hiddenAliases": [],
|
|
1471
|
+
"id": "theme:dev",
|
|
1472
|
+
"pluginAlias": "@swell/cli",
|
|
1473
|
+
"pluginName": "@swell/cli",
|
|
1474
|
+
"pluginType": "core",
|
|
1475
|
+
"strict": true,
|
|
1476
|
+
"summary": "Run a theme in dev mode from your local machine.",
|
|
1477
|
+
"orientation": {
|
|
1478
|
+
"env": "test"
|
|
1479
|
+
},
|
|
1480
|
+
"isESM": true,
|
|
1481
|
+
"relativePath": [
|
|
1482
|
+
"dist",
|
|
1483
|
+
"commands",
|
|
1484
|
+
"theme",
|
|
1485
|
+
"dev.js"
|
|
1486
|
+
]
|
|
1487
|
+
},
|
|
1488
|
+
"theme:init": {
|
|
1489
|
+
"aliases": [],
|
|
1490
|
+
"args": {
|
|
1491
|
+
"id": {
|
|
1492
|
+
"default": "",
|
|
1493
|
+
"description": "id of the app to create",
|
|
1494
|
+
"name": "id"
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
"description": "Initialize theme swell.json in the current directory.",
|
|
1498
|
+
"examples": [
|
|
1499
|
+
{
|
|
1500
|
+
"command": "swell theme init",
|
|
1501
|
+
"description": "Initialize theme following command prompts."
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"command": "swell theme init -y",
|
|
1505
|
+
"description": "Initialize theme and accept all default values."
|
|
1506
|
+
}
|
|
1507
|
+
],
|
|
1508
|
+
"flags": {
|
|
1509
|
+
"yes": {
|
|
1510
|
+
"char": "y",
|
|
1511
|
+
"description": "accept all default values",
|
|
1512
|
+
"name": "yes",
|
|
1513
|
+
"allowNo": false,
|
|
1514
|
+
"type": "boolean"
|
|
1515
|
+
},
|
|
1516
|
+
"frontend": {
|
|
1517
|
+
"description": "create a starter framework for a hosted frontend",
|
|
1518
|
+
"name": "frontend",
|
|
1519
|
+
"hasDynamicHelp": false,
|
|
1520
|
+
"multiple": false,
|
|
1521
|
+
"options": [
|
|
1522
|
+
"nextjs",
|
|
1523
|
+
"astro"
|
|
1524
|
+
],
|
|
1525
|
+
"type": "option"
|
|
1526
|
+
},
|
|
1527
|
+
"storefront-app": {
|
|
1528
|
+
"description": "id of an installed storefront app to create a theme for, if applicable",
|
|
1529
|
+
"name": "storefront-app",
|
|
1530
|
+
"hasDynamicHelp": false,
|
|
1531
|
+
"multiple": false,
|
|
1532
|
+
"type": "option"
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
"hasDynamicHelp": false,
|
|
1536
|
+
"hiddenAliases": [],
|
|
1537
|
+
"id": "theme:init",
|
|
1538
|
+
"pluginAlias": "@swell/cli",
|
|
1539
|
+
"pluginName": "@swell/cli",
|
|
1540
|
+
"pluginType": "core",
|
|
1541
|
+
"strict": true,
|
|
1542
|
+
"enableJsonFlag": false,
|
|
1543
|
+
"isESM": true,
|
|
1544
|
+
"relativePath": [
|
|
1545
|
+
"dist",
|
|
1546
|
+
"commands",
|
|
1547
|
+
"theme",
|
|
1548
|
+
"init.js"
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
"theme:pull": {
|
|
1552
|
+
"aliases": [],
|
|
1553
|
+
"args": {
|
|
1554
|
+
"appId": {
|
|
1555
|
+
"default": "",
|
|
1556
|
+
"description": "theme app id to pull",
|
|
1557
|
+
"name": "appId"
|
|
1558
|
+
},
|
|
1559
|
+
"targetPath": {
|
|
1560
|
+
"default": "",
|
|
1561
|
+
"description": "path to download theme files into",
|
|
1562
|
+
"name": "targetPath"
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
"description": "Pull all theme files, a specific file, or a specific configuration\ntype from a theme in your store's test environment to your local machine.\n\nIf APPID is not specified, you will be prompted with a list of themes to choose from.\n\nTheme file directories:\nassets/\ntheme/",
|
|
1566
|
+
"examples": [
|
|
1567
|
+
"swell theme pull",
|
|
1568
|
+
"swell theme pull mytheme",
|
|
1569
|
+
"swell theme pull mytheme mytheme-folder",
|
|
1570
|
+
"swell theme pull --force",
|
|
1571
|
+
"swell theme pull --storefront-select",
|
|
1572
|
+
"swell theme pull --storefront-id <id>"
|
|
1573
|
+
],
|
|
1574
|
+
"flags": {
|
|
1575
|
+
"force": {
|
|
1576
|
+
"description": "force pull all theme files",
|
|
1577
|
+
"name": "force",
|
|
1578
|
+
"allowNo": false,
|
|
1579
|
+
"type": "boolean"
|
|
1580
|
+
},
|
|
1581
|
+
"sync-app": {
|
|
1582
|
+
"description": "pull app files in addition to theme files to",
|
|
1583
|
+
"name": "sync-app",
|
|
1584
|
+
"allowNo": false,
|
|
1585
|
+
"type": "boolean"
|
|
1586
|
+
},
|
|
1587
|
+
"storefront-select": {
|
|
1588
|
+
"description": "prompt to select a storefront to pull theme files to",
|
|
1589
|
+
"name": "storefront-select",
|
|
1590
|
+
"allowNo": false,
|
|
1591
|
+
"type": "boolean"
|
|
1592
|
+
},
|
|
1593
|
+
"storefront-id": {
|
|
1594
|
+
"description": "identify a storefront to pull theme files from",
|
|
1595
|
+
"name": "storefront-id",
|
|
1596
|
+
"hasDynamicHelp": false,
|
|
1597
|
+
"multiple": false,
|
|
1598
|
+
"type": "option"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"hasDynamicHelp": false,
|
|
1602
|
+
"hiddenAliases": [],
|
|
1603
|
+
"id": "theme:pull",
|
|
1604
|
+
"pluginAlias": "@swell/cli",
|
|
1605
|
+
"pluginName": "@swell/cli",
|
|
1606
|
+
"pluginType": "core",
|
|
1607
|
+
"summary": "Pull theme files from Swell to your local machine.",
|
|
1608
|
+
"isESM": true,
|
|
1609
|
+
"relativePath": [
|
|
1610
|
+
"dist",
|
|
1611
|
+
"commands",
|
|
1612
|
+
"theme",
|
|
1613
|
+
"pull.js"
|
|
1614
|
+
],
|
|
1615
|
+
"orientation": {},
|
|
1616
|
+
"delayOrientation": true
|
|
1617
|
+
},
|
|
1618
|
+
"theme:push": {
|
|
1619
|
+
"aliases": [],
|
|
1620
|
+
"args": {
|
|
1621
|
+
"file": {
|
|
1622
|
+
"description": "relative path to a configuration file or directory to push",
|
|
1623
|
+
"name": "file"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
"description": "Push all theme files, a specific file, or a specific configuration\ntype to an theme in your store's test environment.\n\nIf the theme does not exist, it will be created and its global ID saved to a .swellrc file.\n\n- If no file is specified, all configuration files will be pushed to the store.\n This includes the theme icon (assets/icon.png) and swell.json.\n- If a file is specified, only that file will be pushed to the store.\n- If a directory is specified, only files in that directory will be pushed.\n\nTheme file directories:\nassets/\ntheme/",
|
|
1627
|
+
"examples": [
|
|
1628
|
+
"swell theme push",
|
|
1629
|
+
"swell theme push assets",
|
|
1630
|
+
"swell theme push theme/sections",
|
|
1631
|
+
"swell theme push --sync-app",
|
|
1632
|
+
"swell theme push --force",
|
|
1633
|
+
"swell theme push --storefront-select",
|
|
1634
|
+
"swell theme push --storefront-id <id>"
|
|
1635
|
+
],
|
|
1636
|
+
"flags": {
|
|
1637
|
+
"force": {
|
|
1638
|
+
"description": "force push all files",
|
|
1639
|
+
"name": "force",
|
|
1640
|
+
"allowNo": false,
|
|
1641
|
+
"type": "boolean"
|
|
1642
|
+
},
|
|
1643
|
+
"sync-app": {
|
|
1644
|
+
"description": "push app files in addition to theme files",
|
|
1645
|
+
"name": "sync-app",
|
|
1646
|
+
"allowNo": false,
|
|
1647
|
+
"type": "boolean"
|
|
1648
|
+
},
|
|
1649
|
+
"storefront-select": {
|
|
1650
|
+
"description": "prompt to select a storefront to push theme files to",
|
|
1651
|
+
"name": "storefront-select",
|
|
1652
|
+
"allowNo": false,
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1655
|
+
"storefront-id": {
|
|
1656
|
+
"description": "identify a storefront to push theme files to",
|
|
1657
|
+
"name": "storefront-id",
|
|
1658
|
+
"hasDynamicHelp": false,
|
|
1659
|
+
"multiple": false,
|
|
1660
|
+
"type": "option"
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
"hasDynamicHelp": false,
|
|
1664
|
+
"hiddenAliases": [],
|
|
1665
|
+
"id": "theme:push",
|
|
1666
|
+
"pluginAlias": "@swell/cli",
|
|
1667
|
+
"pluginName": "@swell/cli",
|
|
1668
|
+
"pluginType": "core",
|
|
1669
|
+
"summary": "Push local files to your Swell theme.",
|
|
1670
|
+
"orientation": {},
|
|
1671
|
+
"delayOrientation": true,
|
|
1672
|
+
"isESM": true,
|
|
1673
|
+
"relativePath": [
|
|
1674
|
+
"dist",
|
|
1675
|
+
"commands",
|
|
1676
|
+
"theme",
|
|
1677
|
+
"push.js"
|
|
1678
|
+
]
|
|
1679
|
+
},
|
|
1680
|
+
"app:frontend:deploy": {
|
|
1681
|
+
"aliases": [],
|
|
1682
|
+
"args": {},
|
|
1683
|
+
"description": "Creates a new build using the relevant command depending on your frontend framework.\nOnce the build succeeds, this command will invoke Cloudflare Wrangler to upload\nbuild assets using your own Cloudflare account. Once complete, Swell will update\nthe app's deployment URL and push the updated frontend files.",
|
|
1684
|
+
"examples": [
|
|
1685
|
+
"swell app frontend deploy",
|
|
1686
|
+
"swell app frontend deploy --force",
|
|
1687
|
+
"swell app frontend deploy --storefront-select",
|
|
1688
|
+
"swell app frontend deploy --storefront-id <id>"
|
|
1689
|
+
],
|
|
1690
|
+
"flags": {
|
|
1691
|
+
"app-path": {
|
|
1692
|
+
"description": "path to your app directory",
|
|
1693
|
+
"name": "app-path",
|
|
1694
|
+
"hasDynamicHelp": false,
|
|
1695
|
+
"multiple": false,
|
|
1696
|
+
"type": "option"
|
|
1697
|
+
},
|
|
1698
|
+
"force": {
|
|
1699
|
+
"description": "force push and build all frontend files",
|
|
1700
|
+
"name": "force",
|
|
1701
|
+
"allowNo": false,
|
|
1702
|
+
"type": "boolean"
|
|
1703
|
+
},
|
|
1704
|
+
"storefront-id": {
|
|
1705
|
+
"description": "identify a storefront to preview deployment with",
|
|
1706
|
+
"name": "storefront-id",
|
|
1707
|
+
"hasDynamicHelp": false,
|
|
1708
|
+
"multiple": false,
|
|
1709
|
+
"type": "option"
|
|
1710
|
+
},
|
|
1711
|
+
"storefront-select": {
|
|
1712
|
+
"description": "prompt to select a storefront to preview deployment with",
|
|
1713
|
+
"name": "storefront-select",
|
|
1714
|
+
"allowNo": false,
|
|
1715
|
+
"type": "boolean"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"hasDynamicHelp": false,
|
|
1719
|
+
"hiddenAliases": [],
|
|
1720
|
+
"id": "app:frontend:deploy",
|
|
1721
|
+
"pluginAlias": "@swell/cli",
|
|
1722
|
+
"pluginName": "@swell/cli",
|
|
1723
|
+
"pluginType": "core",
|
|
1724
|
+
"strict": true,
|
|
1725
|
+
"summary": "Push frontend files to your Swell app.",
|
|
1726
|
+
"orientation": {
|
|
1727
|
+
"env": "test"
|
|
1728
|
+
},
|
|
1729
|
+
"isESM": true,
|
|
1730
|
+
"relativePath": [
|
|
1731
|
+
"dist",
|
|
1732
|
+
"commands",
|
|
1733
|
+
"app",
|
|
1734
|
+
"frontend",
|
|
1735
|
+
"deploy.js"
|
|
1736
|
+
]
|
|
1737
|
+
},
|
|
1738
|
+
"app:frontend:dev": {
|
|
1739
|
+
"aliases": [],
|
|
1740
|
+
"args": {},
|
|
1741
|
+
"examples": [
|
|
1742
|
+
"swell app frontend dev",
|
|
1743
|
+
"swell app frontend dev --no-push",
|
|
1744
|
+
"swell app frontend dev --port 3000",
|
|
1745
|
+
"swell app frontend dev --storefront-select",
|
|
1746
|
+
"swell app frontend dev --storefront-id <id>"
|
|
1747
|
+
],
|
|
1748
|
+
"flags": {
|
|
1749
|
+
"app-path": {
|
|
1750
|
+
"description": "path to your app directory",
|
|
1751
|
+
"name": "app-path",
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"multiple": false,
|
|
1754
|
+
"type": "option"
|
|
1755
|
+
},
|
|
1756
|
+
"port": {
|
|
1757
|
+
"char": "p",
|
|
1758
|
+
"description": "override the default port to run the app locally",
|
|
1759
|
+
"name": "port",
|
|
1760
|
+
"hasDynamicHelp": false,
|
|
1761
|
+
"multiple": false,
|
|
1762
|
+
"type": "option"
|
|
1763
|
+
},
|
|
1764
|
+
"no-push": {
|
|
1765
|
+
"description": "skip pushing app files initially",
|
|
1766
|
+
"name": "no-push",
|
|
1767
|
+
"allowNo": false,
|
|
1768
|
+
"type": "boolean"
|
|
1769
|
+
},
|
|
1770
|
+
"storefront-id": {
|
|
1771
|
+
"description": "identify a storefront to preview with and push theme files to",
|
|
1772
|
+
"name": "storefront-id",
|
|
1773
|
+
"hasDynamicHelp": false,
|
|
1774
|
+
"multiple": false,
|
|
1775
|
+
"type": "option"
|
|
1776
|
+
},
|
|
1777
|
+
"storefront-select": {
|
|
1778
|
+
"description": "prompt to select a storefront to preview with",
|
|
1779
|
+
"name": "storefront-select",
|
|
1780
|
+
"allowNo": false,
|
|
1781
|
+
"type": "boolean"
|
|
1782
|
+
}
|
|
1783
|
+
},
|
|
1784
|
+
"hasDynamicHelp": false,
|
|
1785
|
+
"hiddenAliases": [],
|
|
1786
|
+
"id": "app:frontend:dev",
|
|
1787
|
+
"pluginAlias": "@swell/cli",
|
|
1788
|
+
"pluginName": "@swell/cli",
|
|
1789
|
+
"pluginType": "core",
|
|
1790
|
+
"strict": true,
|
|
1791
|
+
"summary": "Run a frontend app in dev mode from your local machine.",
|
|
1792
|
+
"orientation": {
|
|
1793
|
+
"env": "test"
|
|
1794
|
+
},
|
|
1795
|
+
"isESM": true,
|
|
1796
|
+
"relativePath": [
|
|
1797
|
+
"dist",
|
|
1798
|
+
"commands",
|
|
1799
|
+
"app",
|
|
1800
|
+
"frontend",
|
|
1801
|
+
"dev.js"
|
|
1802
|
+
]
|
|
1090
1803
|
}
|
|
1091
1804
|
},
|
|
1092
|
-
"version": "2.0.1-alpha.
|
|
1805
|
+
"version": "2.0.1-alpha.17"
|
|
1093
1806
|
}
|