@salesforce/plugin-templates 56.0.25 → 56.1.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/README.md +742 -8
- package/lib/commands/analytics/generate/template.js.map +1 -1
- package/lib/commands/apex/generate/class.js.map +1 -1
- package/lib/commands/lightning/generate/app.js.map +1 -1
- package/lib/commands/lightning/generate/event.js.map +1 -1
- package/lib/commands/lightning/generate/interface.js.map +1 -1
- package/lib/commands/lightning/generate/test.js.map +1 -1
- package/lib/commands/static-resource/generate.js.map +1 -1
- package/lib/commands/visualforce/generate/component.js.map +1 -1
- package/lib/commands/visualforce/generate/page.js.map +1 -1
- package/npm-shrinkwrap.json +32 -15
- package/oclif.lock +16 -15
- package/oclif.manifest.json +471 -375
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -21,6 +21,14 @@
|
|
|
21
21
|
"allowNo": false,
|
|
22
22
|
"type": "boolean"
|
|
23
23
|
},
|
|
24
|
+
"flags-dir": {
|
|
25
|
+
"helpGroup": "GLOBAL",
|
|
26
|
+
"name": "flags-dir",
|
|
27
|
+
"summary": "Import flag values from a directory.",
|
|
28
|
+
"hasDynamicHelp": false,
|
|
29
|
+
"multiple": false,
|
|
30
|
+
"type": "option"
|
|
31
|
+
},
|
|
24
32
|
"name": {
|
|
25
33
|
"aliases": [
|
|
26
34
|
"projectname"
|
|
@@ -178,6 +186,14 @@
|
|
|
178
186
|
"allowNo": false,
|
|
179
187
|
"type": "boolean"
|
|
180
188
|
},
|
|
189
|
+
"flags-dir": {
|
|
190
|
+
"helpGroup": "GLOBAL",
|
|
191
|
+
"name": "flags-dir",
|
|
192
|
+
"summary": "Import flag values from a directory.",
|
|
193
|
+
"hasDynamicHelp": false,
|
|
194
|
+
"multiple": false,
|
|
195
|
+
"type": "option"
|
|
196
|
+
},
|
|
181
197
|
"name": {
|
|
182
198
|
"aliases": [
|
|
183
199
|
"resourcename"
|
|
@@ -288,6 +304,14 @@
|
|
|
288
304
|
"allowNo": false,
|
|
289
305
|
"type": "boolean"
|
|
290
306
|
},
|
|
307
|
+
"flags-dir": {
|
|
308
|
+
"helpGroup": "GLOBAL",
|
|
309
|
+
"name": "flags-dir",
|
|
310
|
+
"summary": "Import flag values from a directory.",
|
|
311
|
+
"hasDynamicHelp": false,
|
|
312
|
+
"multiple": false,
|
|
313
|
+
"type": "option"
|
|
314
|
+
},
|
|
291
315
|
"output-dir": {
|
|
292
316
|
"aliases": [
|
|
293
317
|
"outputdir"
|
|
@@ -389,16 +413,16 @@
|
|
|
389
413
|
"template:generate:analytics"
|
|
390
414
|
]
|
|
391
415
|
},
|
|
392
|
-
"
|
|
416
|
+
"lightning:generate:app": {
|
|
393
417
|
"aliases": [
|
|
394
|
-
"force:
|
|
418
|
+
"force:lightning:app:create"
|
|
395
419
|
],
|
|
396
420
|
"args": {},
|
|
397
421
|
"deprecateAliases": true,
|
|
398
|
-
"description": "Generates
|
|
422
|
+
"description": "Generates a Lightning App bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
|
|
399
423
|
"examples": [
|
|
400
|
-
"Generate
|
|
401
|
-
"Similar to previous example, but
|
|
424
|
+
"Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
|
|
425
|
+
"Similar to the previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name myapp --output-dir force-app/main/default/aura"
|
|
402
426
|
],
|
|
403
427
|
"flags": {
|
|
404
428
|
"json": {
|
|
@@ -408,16 +432,24 @@
|
|
|
408
432
|
"allowNo": false,
|
|
409
433
|
"type": "boolean"
|
|
410
434
|
},
|
|
435
|
+
"flags-dir": {
|
|
436
|
+
"helpGroup": "GLOBAL",
|
|
437
|
+
"name": "flags-dir",
|
|
438
|
+
"summary": "Import flag values from a directory.",
|
|
439
|
+
"hasDynamicHelp": false,
|
|
440
|
+
"multiple": false,
|
|
441
|
+
"type": "option"
|
|
442
|
+
},
|
|
411
443
|
"name": {
|
|
412
444
|
"aliases": [
|
|
413
|
-
"
|
|
445
|
+
"appname"
|
|
414
446
|
],
|
|
415
447
|
"char": "n",
|
|
416
448
|
"deprecateAliases": true,
|
|
417
449
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
418
450
|
"name": "name",
|
|
419
451
|
"required": true,
|
|
420
|
-
"summary": "Name of the generated
|
|
452
|
+
"summary": "Name of the generated Lightning App.",
|
|
421
453
|
"hasDynamicHelp": false,
|
|
422
454
|
"multiple": false,
|
|
423
455
|
"type": "option"
|
|
@@ -427,14 +459,11 @@
|
|
|
427
459
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
428
460
|
"name": "template",
|
|
429
461
|
"summary": "Template to use for file creation.",
|
|
430
|
-
"default": "
|
|
462
|
+
"default": "DefaultLightningApp",
|
|
431
463
|
"hasDynamicHelp": false,
|
|
432
464
|
"multiple": false,
|
|
433
465
|
"options": [
|
|
434
|
-
"
|
|
435
|
-
"ApexUnitTest",
|
|
436
|
-
"DefaultApexClass",
|
|
437
|
-
"InboundEmailService"
|
|
466
|
+
"DefaultLightningApp"
|
|
438
467
|
],
|
|
439
468
|
"type": "option"
|
|
440
469
|
},
|
|
@@ -463,6 +492,14 @@
|
|
|
463
492
|
"multiple": false,
|
|
464
493
|
"type": "option"
|
|
465
494
|
},
|
|
495
|
+
"internal": {
|
|
496
|
+
"char": "i",
|
|
497
|
+
"hidden": true,
|
|
498
|
+
"name": "internal",
|
|
499
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
500
|
+
"allowNo": false,
|
|
501
|
+
"type": "boolean"
|
|
502
|
+
},
|
|
466
503
|
"loglevel": {
|
|
467
504
|
"deprecated": {
|
|
468
505
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
@@ -476,67 +513,68 @@
|
|
|
476
513
|
},
|
|
477
514
|
"hasDynamicHelp": false,
|
|
478
515
|
"hiddenAliases": [],
|
|
479
|
-
"id": "
|
|
516
|
+
"id": "lightning:generate:app",
|
|
480
517
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
481
518
|
"pluginName": "@salesforce/plugin-templates",
|
|
482
519
|
"pluginType": "core",
|
|
483
520
|
"strict": true,
|
|
484
|
-
"summary": "Generate
|
|
521
|
+
"summary": "Generate a Lightning App.",
|
|
485
522
|
"enableJsonFlag": true,
|
|
486
523
|
"isESM": true,
|
|
487
524
|
"relativePath": [
|
|
488
525
|
"lib",
|
|
489
526
|
"commands",
|
|
490
|
-
"
|
|
527
|
+
"lightning",
|
|
491
528
|
"generate",
|
|
492
|
-
"
|
|
529
|
+
"app.js"
|
|
493
530
|
],
|
|
494
531
|
"aliasPermutations": [
|
|
495
|
-
"force:
|
|
496
|
-
"
|
|
497
|
-
"
|
|
498
|
-
"
|
|
499
|
-
"force:
|
|
500
|
-
"
|
|
501
|
-
"
|
|
502
|
-
"
|
|
503
|
-
"force:
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"force:
|
|
508
|
-
"
|
|
509
|
-
"
|
|
510
|
-
"
|
|
511
|
-
"force:create:
|
|
512
|
-
"create:force:
|
|
513
|
-
"create:
|
|
514
|
-
"create:
|
|
515
|
-
"force:create:
|
|
516
|
-
"create:force:
|
|
517
|
-
"create:
|
|
518
|
-
"create:
|
|
532
|
+
"force:lightning:app:create",
|
|
533
|
+
"lightning:force:app:create",
|
|
534
|
+
"lightning:app:force:create",
|
|
535
|
+
"lightning:app:create:force",
|
|
536
|
+
"force:app:lightning:create",
|
|
537
|
+
"app:force:lightning:create",
|
|
538
|
+
"app:lightning:force:create",
|
|
539
|
+
"app:lightning:create:force",
|
|
540
|
+
"force:app:create:lightning",
|
|
541
|
+
"app:force:create:lightning",
|
|
542
|
+
"app:create:force:lightning",
|
|
543
|
+
"app:create:lightning:force",
|
|
544
|
+
"force:lightning:create:app",
|
|
545
|
+
"lightning:force:create:app",
|
|
546
|
+
"lightning:create:force:app",
|
|
547
|
+
"lightning:create:app:force",
|
|
548
|
+
"force:create:lightning:app",
|
|
549
|
+
"create:force:lightning:app",
|
|
550
|
+
"create:lightning:force:app",
|
|
551
|
+
"create:lightning:app:force",
|
|
552
|
+
"force:create:app:lightning",
|
|
553
|
+
"create:force:app:lightning",
|
|
554
|
+
"create:app:force:lightning",
|
|
555
|
+
"create:app:lightning:force"
|
|
519
556
|
],
|
|
520
557
|
"permutations": [
|
|
521
|
-
"
|
|
522
|
-
"generate:
|
|
523
|
-
"generate:
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"
|
|
558
|
+
"lightning:generate:app",
|
|
559
|
+
"generate:lightning:app",
|
|
560
|
+
"generate:app:lightning",
|
|
561
|
+
"lightning:app:generate",
|
|
562
|
+
"app:lightning:generate",
|
|
563
|
+
"app:generate:lightning"
|
|
527
564
|
]
|
|
528
565
|
},
|
|
529
|
-
"
|
|
566
|
+
"lightning:generate:component": {
|
|
530
567
|
"aliases": [
|
|
531
|
-
"force:
|
|
568
|
+
"force:lightning:component:create"
|
|
532
569
|
],
|
|
533
570
|
"args": {},
|
|
534
571
|
"deprecateAliases": true,
|
|
535
|
-
"description": "Generates the
|
|
572
|
+
"description": "Generates the bundle in the specified directory or the current working directory. The bundle consists of multiple files in a directory with the designated name. Lightning web components are contained in the directory with name \"lwc\", Aura components in \"aura\".\n\nTo generate a Lightning web component, pass \"--type lwc\" to the command. If you don’t specify --type, Salesforce CLI generates an Aura component by default.",
|
|
536
573
|
"examples": [
|
|
537
|
-
"Generate
|
|
538
|
-
"
|
|
539
|
-
"Generate
|
|
574
|
+
"Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
|
|
575
|
+
"Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
|
|
576
|
+
"Generate an Aura component bundle in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --output-dir force-app/main/default/aura",
|
|
577
|
+
"Generate a Lightning web component bundle in the \"force-app/main/default/lwc\" directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc --output-dir force-app/main/default/lwc"
|
|
540
578
|
],
|
|
541
579
|
"flags": {
|
|
542
580
|
"json": {
|
|
@@ -546,16 +584,24 @@
|
|
|
546
584
|
"allowNo": false,
|
|
547
585
|
"type": "boolean"
|
|
548
586
|
},
|
|
587
|
+
"flags-dir": {
|
|
588
|
+
"helpGroup": "GLOBAL",
|
|
589
|
+
"name": "flags-dir",
|
|
590
|
+
"summary": "Import flag values from a directory.",
|
|
591
|
+
"hasDynamicHelp": false,
|
|
592
|
+
"multiple": false,
|
|
593
|
+
"type": "option"
|
|
594
|
+
},
|
|
549
595
|
"name": {
|
|
550
596
|
"aliases": [
|
|
551
|
-
"
|
|
597
|
+
"componentname"
|
|
552
598
|
],
|
|
553
599
|
"char": "n",
|
|
554
600
|
"deprecateAliases": true,
|
|
555
601
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
556
602
|
"name": "name",
|
|
557
603
|
"required": true,
|
|
558
|
-
"summary": "Name of the generated
|
|
604
|
+
"summary": "Name of the generated Lightning Component.",
|
|
559
605
|
"hasDynamicHelp": false,
|
|
560
606
|
"multiple": false,
|
|
561
607
|
"type": "option"
|
|
@@ -565,11 +611,13 @@
|
|
|
565
611
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
566
612
|
"name": "template",
|
|
567
613
|
"summary": "Template to use for file creation.",
|
|
568
|
-
"default": "
|
|
614
|
+
"default": "default",
|
|
569
615
|
"hasDynamicHelp": false,
|
|
570
616
|
"multiple": false,
|
|
571
617
|
"options": [
|
|
572
|
-
"
|
|
618
|
+
"default",
|
|
619
|
+
"analyticsDashboard",
|
|
620
|
+
"analyticsDashboardWithStep"
|
|
573
621
|
],
|
|
574
622
|
"type": "option"
|
|
575
623
|
},
|
|
@@ -598,40 +646,26 @@
|
|
|
598
646
|
"multiple": false,
|
|
599
647
|
"type": "option"
|
|
600
648
|
},
|
|
601
|
-
"
|
|
602
|
-
"
|
|
603
|
-
"
|
|
604
|
-
"
|
|
605
|
-
"default": "SOBJECT",
|
|
649
|
+
"type": {
|
|
650
|
+
"name": "type",
|
|
651
|
+
"summary": "Type of the component bundle.",
|
|
652
|
+
"default": "aura",
|
|
606
653
|
"hasDynamicHelp": false,
|
|
607
654
|
"multiple": false,
|
|
608
|
-
"type": "option"
|
|
609
|
-
},
|
|
610
|
-
"event": {
|
|
611
|
-
"aliases": [
|
|
612
|
-
"triggerevents"
|
|
613
|
-
],
|
|
614
|
-
"char": "e",
|
|
615
|
-
"deprecateAliases": true,
|
|
616
|
-
"name": "event",
|
|
617
|
-
"summary": "Events that fire the trigger.",
|
|
618
|
-
"default": [
|
|
619
|
-
"before insert"
|
|
620
|
-
],
|
|
621
|
-
"delimiter": ",",
|
|
622
|
-
"hasDynamicHelp": false,
|
|
623
|
-
"multiple": true,
|
|
624
655
|
"options": [
|
|
625
|
-
"
|
|
626
|
-
"
|
|
627
|
-
"before delete",
|
|
628
|
-
"after insert",
|
|
629
|
-
"after update",
|
|
630
|
-
"after delete",
|
|
631
|
-
"after undelete"
|
|
656
|
+
"aura",
|
|
657
|
+
"lwc"
|
|
632
658
|
],
|
|
633
659
|
"type": "option"
|
|
634
660
|
},
|
|
661
|
+
"internal": {
|
|
662
|
+
"char": "i",
|
|
663
|
+
"hidden": true,
|
|
664
|
+
"name": "internal",
|
|
665
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
666
|
+
"allowNo": false,
|
|
667
|
+
"type": "boolean"
|
|
668
|
+
},
|
|
635
669
|
"loglevel": {
|
|
636
670
|
"deprecated": {
|
|
637
671
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
@@ -645,66 +679,66 @@
|
|
|
645
679
|
},
|
|
646
680
|
"hasDynamicHelp": false,
|
|
647
681
|
"hiddenAliases": [],
|
|
648
|
-
"id": "
|
|
682
|
+
"id": "lightning:generate:component",
|
|
649
683
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
650
684
|
"pluginName": "@salesforce/plugin-templates",
|
|
651
685
|
"pluginType": "core",
|
|
652
686
|
"strict": true,
|
|
653
|
-
"summary": "Generate an
|
|
687
|
+
"summary": "Generate a bundle for an Aura component or a Lightning web component.",
|
|
654
688
|
"enableJsonFlag": true,
|
|
655
689
|
"isESM": true,
|
|
656
690
|
"relativePath": [
|
|
657
691
|
"lib",
|
|
658
692
|
"commands",
|
|
659
|
-
"
|
|
693
|
+
"lightning",
|
|
660
694
|
"generate",
|
|
661
|
-
"
|
|
695
|
+
"component.js"
|
|
662
696
|
],
|
|
663
697
|
"aliasPermutations": [
|
|
664
|
-
"force:
|
|
665
|
-
"
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"force:
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"
|
|
672
|
-
"force:
|
|
673
|
-
"
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"force:
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
"
|
|
680
|
-
"force:create:
|
|
681
|
-
"create:force:
|
|
682
|
-
"create:
|
|
683
|
-
"create:
|
|
684
|
-
"force:create:
|
|
685
|
-
"create:force:
|
|
686
|
-
"create:
|
|
687
|
-
"create:
|
|
698
|
+
"force:lightning:component:create",
|
|
699
|
+
"lightning:force:component:create",
|
|
700
|
+
"lightning:component:force:create",
|
|
701
|
+
"lightning:component:create:force",
|
|
702
|
+
"force:component:lightning:create",
|
|
703
|
+
"component:force:lightning:create",
|
|
704
|
+
"component:lightning:force:create",
|
|
705
|
+
"component:lightning:create:force",
|
|
706
|
+
"force:component:create:lightning",
|
|
707
|
+
"component:force:create:lightning",
|
|
708
|
+
"component:create:force:lightning",
|
|
709
|
+
"component:create:lightning:force",
|
|
710
|
+
"force:lightning:create:component",
|
|
711
|
+
"lightning:force:create:component",
|
|
712
|
+
"lightning:create:force:component",
|
|
713
|
+
"lightning:create:component:force",
|
|
714
|
+
"force:create:lightning:component",
|
|
715
|
+
"create:force:lightning:component",
|
|
716
|
+
"create:lightning:force:component",
|
|
717
|
+
"create:lightning:component:force",
|
|
718
|
+
"force:create:component:lightning",
|
|
719
|
+
"create:force:component:lightning",
|
|
720
|
+
"create:component:force:lightning",
|
|
721
|
+
"create:component:lightning:force"
|
|
688
722
|
],
|
|
689
723
|
"permutations": [
|
|
690
|
-
"
|
|
691
|
-
"generate:
|
|
692
|
-
"generate:
|
|
693
|
-
"
|
|
694
|
-
"
|
|
695
|
-
"
|
|
724
|
+
"lightning:generate:component",
|
|
725
|
+
"generate:lightning:component",
|
|
726
|
+
"generate:component:lightning",
|
|
727
|
+
"lightning:component:generate",
|
|
728
|
+
"component:lightning:generate",
|
|
729
|
+
"component:generate:lightning"
|
|
696
730
|
]
|
|
697
731
|
},
|
|
698
|
-
"lightning:generate:
|
|
732
|
+
"lightning:generate:event": {
|
|
699
733
|
"aliases": [
|
|
700
|
-
"force:lightning:
|
|
734
|
+
"force:lightning:event:create"
|
|
701
735
|
],
|
|
702
736
|
"args": {},
|
|
703
737
|
"deprecateAliases": true,
|
|
704
|
-
"description": "Generates a Lightning
|
|
738
|
+
"description": "Generates a Lightning Event bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
|
|
705
739
|
"examples": [
|
|
706
|
-
"Generate the metadata files for a Lightning
|
|
707
|
-
"Similar to
|
|
740
|
+
"Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
|
|
741
|
+
"Similar to previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name myevent --output-dir force-app/main/default/aura"
|
|
708
742
|
],
|
|
709
743
|
"flags": {
|
|
710
744
|
"json": {
|
|
@@ -714,16 +748,24 @@
|
|
|
714
748
|
"allowNo": false,
|
|
715
749
|
"type": "boolean"
|
|
716
750
|
},
|
|
751
|
+
"flags-dir": {
|
|
752
|
+
"helpGroup": "GLOBAL",
|
|
753
|
+
"name": "flags-dir",
|
|
754
|
+
"summary": "Import flag values from a directory.",
|
|
755
|
+
"hasDynamicHelp": false,
|
|
756
|
+
"multiple": false,
|
|
757
|
+
"type": "option"
|
|
758
|
+
},
|
|
717
759
|
"name": {
|
|
718
760
|
"aliases": [
|
|
719
|
-
"
|
|
761
|
+
"eventname"
|
|
720
762
|
],
|
|
721
763
|
"char": "n",
|
|
722
764
|
"deprecateAliases": true,
|
|
723
765
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
724
766
|
"name": "name",
|
|
725
767
|
"required": true,
|
|
726
|
-
"summary": "Name of the generated Lightning
|
|
768
|
+
"summary": "Name of the generated Lightning Event.",
|
|
727
769
|
"hasDynamicHelp": false,
|
|
728
770
|
"multiple": false,
|
|
729
771
|
"type": "option"
|
|
@@ -733,11 +775,11 @@
|
|
|
733
775
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
734
776
|
"name": "template",
|
|
735
777
|
"summary": "Template to use for file creation.",
|
|
736
|
-
"default": "
|
|
778
|
+
"default": "DefaultLightningEvt",
|
|
737
779
|
"hasDynamicHelp": false,
|
|
738
780
|
"multiple": false,
|
|
739
781
|
"options": [
|
|
740
|
-
"
|
|
782
|
+
"DefaultLightningEvt"
|
|
741
783
|
],
|
|
742
784
|
"type": "option"
|
|
743
785
|
},
|
|
@@ -787,12 +829,12 @@
|
|
|
787
829
|
},
|
|
788
830
|
"hasDynamicHelp": false,
|
|
789
831
|
"hiddenAliases": [],
|
|
790
|
-
"id": "lightning:generate:
|
|
832
|
+
"id": "lightning:generate:event",
|
|
791
833
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
792
834
|
"pluginName": "@salesforce/plugin-templates",
|
|
793
835
|
"pluginType": "core",
|
|
794
836
|
"strict": true,
|
|
795
|
-
"summary": "Generate a Lightning
|
|
837
|
+
"summary": "Generate a Lightning Event.",
|
|
796
838
|
"enableJsonFlag": true,
|
|
797
839
|
"isESM": true,
|
|
798
840
|
"relativePath": [
|
|
@@ -800,55 +842,53 @@
|
|
|
800
842
|
"commands",
|
|
801
843
|
"lightning",
|
|
802
844
|
"generate",
|
|
803
|
-
"
|
|
845
|
+
"event.js"
|
|
804
846
|
],
|
|
805
847
|
"aliasPermutations": [
|
|
806
|
-
"force:lightning:
|
|
807
|
-
"lightning:force:
|
|
808
|
-
"lightning:
|
|
809
|
-
"lightning:
|
|
810
|
-
"force:
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
"force:
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"force:lightning:create:
|
|
819
|
-
"lightning:force:create:
|
|
820
|
-
"lightning:create:force:
|
|
821
|
-
"lightning:create:
|
|
822
|
-
"force:create:lightning:
|
|
823
|
-
"create:force:lightning:
|
|
824
|
-
"create:lightning:force:
|
|
825
|
-
"create:lightning:
|
|
826
|
-
"force:create:
|
|
827
|
-
"create:force:
|
|
828
|
-
"create:
|
|
829
|
-
"create:
|
|
848
|
+
"force:lightning:event:create",
|
|
849
|
+
"lightning:force:event:create",
|
|
850
|
+
"lightning:event:force:create",
|
|
851
|
+
"lightning:event:create:force",
|
|
852
|
+
"force:event:lightning:create",
|
|
853
|
+
"event:force:lightning:create",
|
|
854
|
+
"event:lightning:force:create",
|
|
855
|
+
"event:lightning:create:force",
|
|
856
|
+
"force:event:create:lightning",
|
|
857
|
+
"event:force:create:lightning",
|
|
858
|
+
"event:create:force:lightning",
|
|
859
|
+
"event:create:lightning:force",
|
|
860
|
+
"force:lightning:create:event",
|
|
861
|
+
"lightning:force:create:event",
|
|
862
|
+
"lightning:create:force:event",
|
|
863
|
+
"lightning:create:event:force",
|
|
864
|
+
"force:create:lightning:event",
|
|
865
|
+
"create:force:lightning:event",
|
|
866
|
+
"create:lightning:force:event",
|
|
867
|
+
"create:lightning:event:force",
|
|
868
|
+
"force:create:event:lightning",
|
|
869
|
+
"create:force:event:lightning",
|
|
870
|
+
"create:event:force:lightning",
|
|
871
|
+
"create:event:lightning:force"
|
|
830
872
|
],
|
|
831
873
|
"permutations": [
|
|
832
|
-
"lightning:generate:
|
|
833
|
-
"generate:lightning:
|
|
834
|
-
"generate:
|
|
835
|
-
"lightning:
|
|
836
|
-
"
|
|
837
|
-
"
|
|
874
|
+
"lightning:generate:event",
|
|
875
|
+
"generate:lightning:event",
|
|
876
|
+
"generate:event:lightning",
|
|
877
|
+
"lightning:event:generate",
|
|
878
|
+
"event:lightning:generate",
|
|
879
|
+
"event:generate:lightning"
|
|
838
880
|
]
|
|
839
881
|
},
|
|
840
|
-
"lightning:generate:
|
|
882
|
+
"lightning:generate:interface": {
|
|
841
883
|
"aliases": [
|
|
842
|
-
"force:lightning:
|
|
884
|
+
"force:lightning:interface:create"
|
|
843
885
|
],
|
|
844
886
|
"args": {},
|
|
845
887
|
"deprecateAliases": true,
|
|
846
|
-
"description": "Generates
|
|
888
|
+
"description": "Generates a Lightning Interface bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
|
|
847
889
|
"examples": [
|
|
848
|
-
"Generate the metadata files for
|
|
849
|
-
"
|
|
850
|
-
"Generate an Aura component bundle in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --output-dir force-app/main/default/aura",
|
|
851
|
-
"Generate a Lightning web component bundle in the \"force-app/main/default/lwc\" directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc --output-dir force-app/main/default/lwc"
|
|
890
|
+
"Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
|
|
891
|
+
"Similar to the previous example but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name myinterface --output-dir force-app/main/default/aura"
|
|
852
892
|
],
|
|
853
893
|
"flags": {
|
|
854
894
|
"json": {
|
|
@@ -858,16 +898,24 @@
|
|
|
858
898
|
"allowNo": false,
|
|
859
899
|
"type": "boolean"
|
|
860
900
|
},
|
|
901
|
+
"flags-dir": {
|
|
902
|
+
"helpGroup": "GLOBAL",
|
|
903
|
+
"name": "flags-dir",
|
|
904
|
+
"summary": "Import flag values from a directory.",
|
|
905
|
+
"hasDynamicHelp": false,
|
|
906
|
+
"multiple": false,
|
|
907
|
+
"type": "option"
|
|
908
|
+
},
|
|
861
909
|
"name": {
|
|
862
910
|
"aliases": [
|
|
863
|
-
"
|
|
911
|
+
"interfacename"
|
|
864
912
|
],
|
|
865
913
|
"char": "n",
|
|
866
914
|
"deprecateAliases": true,
|
|
867
915
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
868
916
|
"name": "name",
|
|
869
917
|
"required": true,
|
|
870
|
-
"summary": "Name of the generated Lightning
|
|
918
|
+
"summary": "Name of the generated Lightning Interface.",
|
|
871
919
|
"hasDynamicHelp": false,
|
|
872
920
|
"multiple": false,
|
|
873
921
|
"type": "option"
|
|
@@ -877,13 +925,11 @@
|
|
|
877
925
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
878
926
|
"name": "template",
|
|
879
927
|
"summary": "Template to use for file creation.",
|
|
880
|
-
"default": "
|
|
928
|
+
"default": "DefaultLightningIntf",
|
|
881
929
|
"hasDynamicHelp": false,
|
|
882
930
|
"multiple": false,
|
|
883
931
|
"options": [
|
|
884
|
-
"
|
|
885
|
-
"analyticsDashboard",
|
|
886
|
-
"analyticsDashboardWithStep"
|
|
932
|
+
"DefaultLightningIntf"
|
|
887
933
|
],
|
|
888
934
|
"type": "option"
|
|
889
935
|
},
|
|
@@ -912,18 +958,6 @@
|
|
|
912
958
|
"multiple": false,
|
|
913
959
|
"type": "option"
|
|
914
960
|
},
|
|
915
|
-
"type": {
|
|
916
|
-
"name": "type",
|
|
917
|
-
"summary": "Type of the component bundle.",
|
|
918
|
-
"default": "aura",
|
|
919
|
-
"hasDynamicHelp": false,
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"options": [
|
|
922
|
-
"aura",
|
|
923
|
-
"lwc"
|
|
924
|
-
],
|
|
925
|
-
"type": "option"
|
|
926
|
-
},
|
|
927
961
|
"internal": {
|
|
928
962
|
"char": "i",
|
|
929
963
|
"hidden": true,
|
|
@@ -945,12 +979,12 @@
|
|
|
945
979
|
},
|
|
946
980
|
"hasDynamicHelp": false,
|
|
947
981
|
"hiddenAliases": [],
|
|
948
|
-
"id": "lightning:generate:
|
|
982
|
+
"id": "lightning:generate:interface",
|
|
949
983
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
950
984
|
"pluginName": "@salesforce/plugin-templates",
|
|
951
985
|
"pluginType": "core",
|
|
952
986
|
"strict": true,
|
|
953
|
-
"summary": "Generate a
|
|
987
|
+
"summary": "Generate a Lightning Interface.",
|
|
954
988
|
"enableJsonFlag": true,
|
|
955
989
|
"isESM": true,
|
|
956
990
|
"relativePath": [
|
|
@@ -958,53 +992,53 @@
|
|
|
958
992
|
"commands",
|
|
959
993
|
"lightning",
|
|
960
994
|
"generate",
|
|
961
|
-
"
|
|
995
|
+
"interface.js"
|
|
962
996
|
],
|
|
963
997
|
"aliasPermutations": [
|
|
964
|
-
"force:lightning:
|
|
965
|
-
"lightning:force:
|
|
966
|
-
"lightning:
|
|
967
|
-
"lightning:
|
|
968
|
-
"force:
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"force:
|
|
973
|
-
"
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"force:lightning:create:
|
|
977
|
-
"lightning:force:create:
|
|
978
|
-
"lightning:create:force:
|
|
979
|
-
"lightning:create:
|
|
980
|
-
"force:create:lightning:
|
|
981
|
-
"create:force:lightning:
|
|
982
|
-
"create:lightning:force:
|
|
983
|
-
"create:lightning:
|
|
984
|
-
"force:create:
|
|
985
|
-
"create:force:
|
|
986
|
-
"create:
|
|
987
|
-
"create:
|
|
998
|
+
"force:lightning:interface:create",
|
|
999
|
+
"lightning:force:interface:create",
|
|
1000
|
+
"lightning:interface:force:create",
|
|
1001
|
+
"lightning:interface:create:force",
|
|
1002
|
+
"force:interface:lightning:create",
|
|
1003
|
+
"interface:force:lightning:create",
|
|
1004
|
+
"interface:lightning:force:create",
|
|
1005
|
+
"interface:lightning:create:force",
|
|
1006
|
+
"force:interface:create:lightning",
|
|
1007
|
+
"interface:force:create:lightning",
|
|
1008
|
+
"interface:create:force:lightning",
|
|
1009
|
+
"interface:create:lightning:force",
|
|
1010
|
+
"force:lightning:create:interface",
|
|
1011
|
+
"lightning:force:create:interface",
|
|
1012
|
+
"lightning:create:force:interface",
|
|
1013
|
+
"lightning:create:interface:force",
|
|
1014
|
+
"force:create:lightning:interface",
|
|
1015
|
+
"create:force:lightning:interface",
|
|
1016
|
+
"create:lightning:force:interface",
|
|
1017
|
+
"create:lightning:interface:force",
|
|
1018
|
+
"force:create:interface:lightning",
|
|
1019
|
+
"create:force:interface:lightning",
|
|
1020
|
+
"create:interface:force:lightning",
|
|
1021
|
+
"create:interface:lightning:force"
|
|
988
1022
|
],
|
|
989
1023
|
"permutations": [
|
|
990
|
-
"lightning:generate:
|
|
991
|
-
"generate:lightning:
|
|
992
|
-
"generate:
|
|
993
|
-
"lightning:
|
|
994
|
-
"
|
|
995
|
-
"
|
|
1024
|
+
"lightning:generate:interface",
|
|
1025
|
+
"generate:lightning:interface",
|
|
1026
|
+
"generate:interface:lightning",
|
|
1027
|
+
"lightning:interface:generate",
|
|
1028
|
+
"interface:lightning:generate",
|
|
1029
|
+
"interface:generate:lightning"
|
|
996
1030
|
]
|
|
997
1031
|
},
|
|
998
|
-
"lightning:generate:
|
|
1032
|
+
"lightning:generate:test": {
|
|
999
1033
|
"aliases": [
|
|
1000
|
-
"force:lightning:
|
|
1034
|
+
"force:lightning:test:create"
|
|
1001
1035
|
],
|
|
1002
1036
|
"args": {},
|
|
1003
1037
|
"deprecateAliases": true,
|
|
1004
|
-
"description": "Generates
|
|
1038
|
+
"description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
|
|
1005
1039
|
"examples": [
|
|
1006
|
-
"Generate the metadata files for
|
|
1007
|
-
"Similar to previous example
|
|
1040
|
+
"Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
|
|
1041
|
+
"Similar to the previous example but generate the files in the \"force-app/main/default/lightningTests\" directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest --output-dir force-app/main/default/lightningTests"
|
|
1008
1042
|
],
|
|
1009
1043
|
"flags": {
|
|
1010
1044
|
"json": {
|
|
@@ -1014,16 +1048,24 @@
|
|
|
1014
1048
|
"allowNo": false,
|
|
1015
1049
|
"type": "boolean"
|
|
1016
1050
|
},
|
|
1051
|
+
"flags-dir": {
|
|
1052
|
+
"helpGroup": "GLOBAL",
|
|
1053
|
+
"name": "flags-dir",
|
|
1054
|
+
"summary": "Import flag values from a directory.",
|
|
1055
|
+
"hasDynamicHelp": false,
|
|
1056
|
+
"multiple": false,
|
|
1057
|
+
"type": "option"
|
|
1058
|
+
},
|
|
1017
1059
|
"name": {
|
|
1018
1060
|
"aliases": [
|
|
1019
|
-
"
|
|
1061
|
+
"testname"
|
|
1020
1062
|
],
|
|
1021
1063
|
"char": "n",
|
|
1022
1064
|
"deprecateAliases": true,
|
|
1023
|
-
"description": "
|
|
1065
|
+
"description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
|
|
1024
1066
|
"name": "name",
|
|
1025
1067
|
"required": true,
|
|
1026
|
-
"summary": "Name of the generated Lightning
|
|
1068
|
+
"summary": "Name of the generated Lightning Test.",
|
|
1027
1069
|
"hasDynamicHelp": false,
|
|
1028
1070
|
"multiple": false,
|
|
1029
1071
|
"type": "option"
|
|
@@ -1033,11 +1075,11 @@
|
|
|
1033
1075
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1034
1076
|
"name": "template",
|
|
1035
1077
|
"summary": "Template to use for file creation.",
|
|
1036
|
-
"default": "
|
|
1078
|
+
"default": "DefaultLightningTest",
|
|
1037
1079
|
"hasDynamicHelp": false,
|
|
1038
1080
|
"multiple": false,
|
|
1039
1081
|
"options": [
|
|
1040
|
-
"
|
|
1082
|
+
"DefaultLightningTest"
|
|
1041
1083
|
],
|
|
1042
1084
|
"type": "option"
|
|
1043
1085
|
},
|
|
@@ -1055,6 +1097,14 @@
|
|
|
1055
1097
|
"multiple": false,
|
|
1056
1098
|
"type": "option"
|
|
1057
1099
|
},
|
|
1100
|
+
"internal": {
|
|
1101
|
+
"char": "i",
|
|
1102
|
+
"hidden": true,
|
|
1103
|
+
"name": "internal",
|
|
1104
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1105
|
+
"allowNo": false,
|
|
1106
|
+
"type": "boolean"
|
|
1107
|
+
},
|
|
1058
1108
|
"api-version": {
|
|
1059
1109
|
"aliases": [
|
|
1060
1110
|
"apiversion"
|
|
@@ -1066,14 +1116,6 @@
|
|
|
1066
1116
|
"multiple": false,
|
|
1067
1117
|
"type": "option"
|
|
1068
1118
|
},
|
|
1069
|
-
"internal": {
|
|
1070
|
-
"char": "i",
|
|
1071
|
-
"hidden": true,
|
|
1072
|
-
"name": "internal",
|
|
1073
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1074
|
-
"allowNo": false,
|
|
1075
|
-
"type": "boolean"
|
|
1076
|
-
},
|
|
1077
1119
|
"loglevel": {
|
|
1078
1120
|
"deprecated": {
|
|
1079
1121
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
@@ -1087,12 +1129,12 @@
|
|
|
1087
1129
|
},
|
|
1088
1130
|
"hasDynamicHelp": false,
|
|
1089
1131
|
"hiddenAliases": [],
|
|
1090
|
-
"id": "lightning:generate:
|
|
1132
|
+
"id": "lightning:generate:test",
|
|
1091
1133
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1092
1134
|
"pluginName": "@salesforce/plugin-templates",
|
|
1093
1135
|
"pluginType": "core",
|
|
1094
1136
|
"strict": true,
|
|
1095
|
-
"summary": "Generate a Lightning
|
|
1137
|
+
"summary": "Generate a Lightning test.",
|
|
1096
1138
|
"enableJsonFlag": true,
|
|
1097
1139
|
"isESM": true,
|
|
1098
1140
|
"relativePath": [
|
|
@@ -1100,53 +1142,53 @@
|
|
|
1100
1142
|
"commands",
|
|
1101
1143
|
"lightning",
|
|
1102
1144
|
"generate",
|
|
1103
|
-
"
|
|
1145
|
+
"test.js"
|
|
1104
1146
|
],
|
|
1105
1147
|
"aliasPermutations": [
|
|
1106
|
-
"force:lightning:
|
|
1107
|
-
"lightning:force:
|
|
1108
|
-
"lightning:
|
|
1109
|
-
"lightning:
|
|
1110
|
-
"force:
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
"force:
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"force:lightning:create:
|
|
1119
|
-
"lightning:force:create:
|
|
1120
|
-
"lightning:create:force:
|
|
1121
|
-
"lightning:create:
|
|
1122
|
-
"force:create:lightning:
|
|
1123
|
-
"create:force:lightning:
|
|
1124
|
-
"create:lightning:force:
|
|
1125
|
-
"create:lightning:
|
|
1126
|
-
"force:create:
|
|
1127
|
-
"create:force:
|
|
1128
|
-
"create:
|
|
1129
|
-
"create:
|
|
1130
|
-
],
|
|
1131
|
-
"permutations": [
|
|
1132
|
-
"lightning:generate:
|
|
1133
|
-
"generate:lightning:
|
|
1134
|
-
"generate:
|
|
1135
|
-
"lightning:
|
|
1136
|
-
"
|
|
1137
|
-
"
|
|
1148
|
+
"force:lightning:test:create",
|
|
1149
|
+
"lightning:force:test:create",
|
|
1150
|
+
"lightning:test:force:create",
|
|
1151
|
+
"lightning:test:create:force",
|
|
1152
|
+
"force:test:lightning:create",
|
|
1153
|
+
"test:force:lightning:create",
|
|
1154
|
+
"test:lightning:force:create",
|
|
1155
|
+
"test:lightning:create:force",
|
|
1156
|
+
"force:test:create:lightning",
|
|
1157
|
+
"test:force:create:lightning",
|
|
1158
|
+
"test:create:force:lightning",
|
|
1159
|
+
"test:create:lightning:force",
|
|
1160
|
+
"force:lightning:create:test",
|
|
1161
|
+
"lightning:force:create:test",
|
|
1162
|
+
"lightning:create:force:test",
|
|
1163
|
+
"lightning:create:test:force",
|
|
1164
|
+
"force:create:lightning:test",
|
|
1165
|
+
"create:force:lightning:test",
|
|
1166
|
+
"create:lightning:force:test",
|
|
1167
|
+
"create:lightning:test:force",
|
|
1168
|
+
"force:create:test:lightning",
|
|
1169
|
+
"create:force:test:lightning",
|
|
1170
|
+
"create:test:force:lightning",
|
|
1171
|
+
"create:test:lightning:force"
|
|
1172
|
+
],
|
|
1173
|
+
"permutations": [
|
|
1174
|
+
"lightning:generate:test",
|
|
1175
|
+
"generate:lightning:test",
|
|
1176
|
+
"generate:test:lightning",
|
|
1177
|
+
"lightning:test:generate",
|
|
1178
|
+
"test:lightning:generate",
|
|
1179
|
+
"test:generate:lightning"
|
|
1138
1180
|
]
|
|
1139
1181
|
},
|
|
1140
|
-
"
|
|
1182
|
+
"apex:generate:class": {
|
|
1141
1183
|
"aliases": [
|
|
1142
|
-
"force:
|
|
1184
|
+
"force:apex:class:create"
|
|
1143
1185
|
],
|
|
1144
1186
|
"args": {},
|
|
1145
1187
|
"deprecateAliases": true,
|
|
1146
|
-
"description": "Generates
|
|
1188
|
+
"description": "Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called \"classes\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
1147
1189
|
"examples": [
|
|
1148
|
-
"Generate
|
|
1149
|
-
"Similar to
|
|
1190
|
+
"Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyClass",
|
|
1191
|
+
"Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n<%= config.bin %> <%= command.id %> --name MyClass --output-dir force-app/main/default/classes"
|
|
1150
1192
|
],
|
|
1151
1193
|
"flags": {
|
|
1152
1194
|
"json": {
|
|
@@ -1156,16 +1198,24 @@
|
|
|
1156
1198
|
"allowNo": false,
|
|
1157
1199
|
"type": "boolean"
|
|
1158
1200
|
},
|
|
1201
|
+
"flags-dir": {
|
|
1202
|
+
"helpGroup": "GLOBAL",
|
|
1203
|
+
"name": "flags-dir",
|
|
1204
|
+
"summary": "Import flag values from a directory.",
|
|
1205
|
+
"hasDynamicHelp": false,
|
|
1206
|
+
"multiple": false,
|
|
1207
|
+
"type": "option"
|
|
1208
|
+
},
|
|
1159
1209
|
"name": {
|
|
1160
1210
|
"aliases": [
|
|
1161
|
-
"
|
|
1211
|
+
"classname"
|
|
1162
1212
|
],
|
|
1163
1213
|
"char": "n",
|
|
1164
1214
|
"deprecateAliases": true,
|
|
1165
1215
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1166
1216
|
"name": "name",
|
|
1167
1217
|
"required": true,
|
|
1168
|
-
"summary": "Name of the generated
|
|
1218
|
+
"summary": "Name of the generated Apex class.",
|
|
1169
1219
|
"hasDynamicHelp": false,
|
|
1170
1220
|
"multiple": false,
|
|
1171
1221
|
"type": "option"
|
|
@@ -1175,11 +1225,14 @@
|
|
|
1175
1225
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1176
1226
|
"name": "template",
|
|
1177
1227
|
"summary": "Template to use for file creation.",
|
|
1178
|
-
"default": "
|
|
1228
|
+
"default": "DefaultApexClass",
|
|
1179
1229
|
"hasDynamicHelp": false,
|
|
1180
1230
|
"multiple": false,
|
|
1181
1231
|
"options": [
|
|
1182
|
-
"
|
|
1232
|
+
"ApexException",
|
|
1233
|
+
"ApexUnitTest",
|
|
1234
|
+
"DefaultApexClass",
|
|
1235
|
+
"InboundEmailService"
|
|
1183
1236
|
],
|
|
1184
1237
|
"type": "option"
|
|
1185
1238
|
},
|
|
@@ -1208,14 +1261,6 @@
|
|
|
1208
1261
|
"multiple": false,
|
|
1209
1262
|
"type": "option"
|
|
1210
1263
|
},
|
|
1211
|
-
"internal": {
|
|
1212
|
-
"char": "i",
|
|
1213
|
-
"hidden": true,
|
|
1214
|
-
"name": "internal",
|
|
1215
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1216
|
-
"allowNo": false,
|
|
1217
|
-
"type": "boolean"
|
|
1218
|
-
},
|
|
1219
1264
|
"loglevel": {
|
|
1220
1265
|
"deprecated": {
|
|
1221
1266
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
@@ -1229,66 +1274,67 @@
|
|
|
1229
1274
|
},
|
|
1230
1275
|
"hasDynamicHelp": false,
|
|
1231
1276
|
"hiddenAliases": [],
|
|
1232
|
-
"id": "
|
|
1277
|
+
"id": "apex:generate:class",
|
|
1233
1278
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1234
1279
|
"pluginName": "@salesforce/plugin-templates",
|
|
1235
1280
|
"pluginType": "core",
|
|
1236
1281
|
"strict": true,
|
|
1237
|
-
"summary": "Generate
|
|
1282
|
+
"summary": "Generate an Apex class.",
|
|
1238
1283
|
"enableJsonFlag": true,
|
|
1239
1284
|
"isESM": true,
|
|
1240
1285
|
"relativePath": [
|
|
1241
1286
|
"lib",
|
|
1242
1287
|
"commands",
|
|
1243
|
-
"
|
|
1288
|
+
"apex",
|
|
1244
1289
|
"generate",
|
|
1245
|
-
"
|
|
1290
|
+
"class.js"
|
|
1246
1291
|
],
|
|
1247
1292
|
"aliasPermutations": [
|
|
1248
|
-
"force:
|
|
1249
|
-
"
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
"force:
|
|
1253
|
-
"
|
|
1254
|
-
"
|
|
1255
|
-
"
|
|
1256
|
-
"force:
|
|
1257
|
-
"
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1260
|
-
"force:
|
|
1261
|
-
"
|
|
1262
|
-
"
|
|
1263
|
-
"
|
|
1264
|
-
"force:create:
|
|
1265
|
-
"create:force:
|
|
1266
|
-
"create:
|
|
1267
|
-
"create:
|
|
1268
|
-
"force:create:
|
|
1269
|
-
"create:force:
|
|
1270
|
-
"create:
|
|
1271
|
-
"create:
|
|
1293
|
+
"force:apex:class:create",
|
|
1294
|
+
"apex:force:class:create",
|
|
1295
|
+
"apex:class:force:create",
|
|
1296
|
+
"apex:class:create:force",
|
|
1297
|
+
"force:class:apex:create",
|
|
1298
|
+
"class:force:apex:create",
|
|
1299
|
+
"class:apex:force:create",
|
|
1300
|
+
"class:apex:create:force",
|
|
1301
|
+
"force:class:create:apex",
|
|
1302
|
+
"class:force:create:apex",
|
|
1303
|
+
"class:create:force:apex",
|
|
1304
|
+
"class:create:apex:force",
|
|
1305
|
+
"force:apex:create:class",
|
|
1306
|
+
"apex:force:create:class",
|
|
1307
|
+
"apex:create:force:class",
|
|
1308
|
+
"apex:create:class:force",
|
|
1309
|
+
"force:create:apex:class",
|
|
1310
|
+
"create:force:apex:class",
|
|
1311
|
+
"create:apex:force:class",
|
|
1312
|
+
"create:apex:class:force",
|
|
1313
|
+
"force:create:class:apex",
|
|
1314
|
+
"create:force:class:apex",
|
|
1315
|
+
"create:class:force:apex",
|
|
1316
|
+
"create:class:apex:force"
|
|
1272
1317
|
],
|
|
1273
1318
|
"permutations": [
|
|
1274
|
-
"
|
|
1275
|
-
"generate:
|
|
1276
|
-
"generate:
|
|
1277
|
-
"
|
|
1278
|
-
"
|
|
1279
|
-
"
|
|
1319
|
+
"apex:generate:class",
|
|
1320
|
+
"generate:apex:class",
|
|
1321
|
+
"generate:class:apex",
|
|
1322
|
+
"apex:class:generate",
|
|
1323
|
+
"class:apex:generate",
|
|
1324
|
+
"class:generate:apex"
|
|
1280
1325
|
]
|
|
1281
1326
|
},
|
|
1282
|
-
"
|
|
1327
|
+
"apex:generate:trigger": {
|
|
1283
1328
|
"aliases": [
|
|
1284
|
-
"force:
|
|
1329
|
+
"force:apex:trigger:create"
|
|
1285
1330
|
],
|
|
1286
1331
|
"args": {},
|
|
1287
1332
|
"deprecateAliases": true,
|
|
1288
|
-
"description": "Generates the
|
|
1333
|
+
"description": "Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called \"triggers\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.\n\nIf you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.",
|
|
1289
1334
|
"examples": [
|
|
1290
|
-
"Generate
|
|
1291
|
-
"Similar to the previous example but generate the files in the \"force-app/main/default/
|
|
1335
|
+
"Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger",
|
|
1336
|
+
"Similar to the previous example, but generate the files in the \"force-app/main/default/triggers\" directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger --output-dir force-app/main/default/triggers",
|
|
1337
|
+
"Generate files for a trigger that fires on the Account object before and after an insert:\n<%= config.bin %> <%= command.id %> --name MyTrigger --sobject Account --event \"before insert,after insert\""
|
|
1292
1338
|
],
|
|
1293
1339
|
"flags": {
|
|
1294
1340
|
"json": {
|
|
@@ -1298,16 +1344,24 @@
|
|
|
1298
1344
|
"allowNo": false,
|
|
1299
1345
|
"type": "boolean"
|
|
1300
1346
|
},
|
|
1347
|
+
"flags-dir": {
|
|
1348
|
+
"helpGroup": "GLOBAL",
|
|
1349
|
+
"name": "flags-dir",
|
|
1350
|
+
"summary": "Import flag values from a directory.",
|
|
1351
|
+
"hasDynamicHelp": false,
|
|
1352
|
+
"multiple": false,
|
|
1353
|
+
"type": "option"
|
|
1354
|
+
},
|
|
1301
1355
|
"name": {
|
|
1302
1356
|
"aliases": [
|
|
1303
|
-
"
|
|
1357
|
+
"triggername"
|
|
1304
1358
|
],
|
|
1305
1359
|
"char": "n",
|
|
1306
1360
|
"deprecateAliases": true,
|
|
1307
|
-
"description": "
|
|
1361
|
+
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1308
1362
|
"name": "name",
|
|
1309
1363
|
"required": true,
|
|
1310
|
-
"summary": "Name of the generated
|
|
1364
|
+
"summary": "Name of the generated Apex trigger",
|
|
1311
1365
|
"hasDynamicHelp": false,
|
|
1312
1366
|
"multiple": false,
|
|
1313
1367
|
"type": "option"
|
|
@@ -1317,11 +1371,11 @@
|
|
|
1317
1371
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1318
1372
|
"name": "template",
|
|
1319
1373
|
"summary": "Template to use for file creation.",
|
|
1320
|
-
"default": "
|
|
1374
|
+
"default": "ApexTrigger",
|
|
1321
1375
|
"hasDynamicHelp": false,
|
|
1322
1376
|
"multiple": false,
|
|
1323
1377
|
"options": [
|
|
1324
|
-
"
|
|
1378
|
+
"ApexTrigger"
|
|
1325
1379
|
],
|
|
1326
1380
|
"type": "option"
|
|
1327
1381
|
},
|
|
@@ -1339,14 +1393,6 @@
|
|
|
1339
1393
|
"multiple": false,
|
|
1340
1394
|
"type": "option"
|
|
1341
1395
|
},
|
|
1342
|
-
"internal": {
|
|
1343
|
-
"char": "i",
|
|
1344
|
-
"hidden": true,
|
|
1345
|
-
"name": "internal",
|
|
1346
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1347
|
-
"allowNo": false,
|
|
1348
|
-
"type": "boolean"
|
|
1349
|
-
},
|
|
1350
1396
|
"api-version": {
|
|
1351
1397
|
"aliases": [
|
|
1352
1398
|
"apiversion"
|
|
@@ -1358,6 +1404,40 @@
|
|
|
1358
1404
|
"multiple": false,
|
|
1359
1405
|
"type": "option"
|
|
1360
1406
|
},
|
|
1407
|
+
"sobject": {
|
|
1408
|
+
"char": "s",
|
|
1409
|
+
"name": "sobject",
|
|
1410
|
+
"summary": "Salesforce object to generate a trigger on.",
|
|
1411
|
+
"default": "SOBJECT",
|
|
1412
|
+
"hasDynamicHelp": false,
|
|
1413
|
+
"multiple": false,
|
|
1414
|
+
"type": "option"
|
|
1415
|
+
},
|
|
1416
|
+
"event": {
|
|
1417
|
+
"aliases": [
|
|
1418
|
+
"triggerevents"
|
|
1419
|
+
],
|
|
1420
|
+
"char": "e",
|
|
1421
|
+
"deprecateAliases": true,
|
|
1422
|
+
"name": "event",
|
|
1423
|
+
"summary": "Events that fire the trigger.",
|
|
1424
|
+
"default": [
|
|
1425
|
+
"before insert"
|
|
1426
|
+
],
|
|
1427
|
+
"delimiter": ",",
|
|
1428
|
+
"hasDynamicHelp": false,
|
|
1429
|
+
"multiple": true,
|
|
1430
|
+
"options": [
|
|
1431
|
+
"before insert",
|
|
1432
|
+
"before update",
|
|
1433
|
+
"before delete",
|
|
1434
|
+
"after insert",
|
|
1435
|
+
"after update",
|
|
1436
|
+
"after delete",
|
|
1437
|
+
"after undelete"
|
|
1438
|
+
],
|
|
1439
|
+
"type": "option"
|
|
1440
|
+
},
|
|
1361
1441
|
"loglevel": {
|
|
1362
1442
|
"deprecated": {
|
|
1363
1443
|
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
@@ -1371,54 +1451,54 @@
|
|
|
1371
1451
|
},
|
|
1372
1452
|
"hasDynamicHelp": false,
|
|
1373
1453
|
"hiddenAliases": [],
|
|
1374
|
-
"id": "
|
|
1454
|
+
"id": "apex:generate:trigger",
|
|
1375
1455
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1376
1456
|
"pluginName": "@salesforce/plugin-templates",
|
|
1377
1457
|
"pluginType": "core",
|
|
1378
1458
|
"strict": true,
|
|
1379
|
-
"summary": "Generate
|
|
1459
|
+
"summary": "Generate an Apex trigger.",
|
|
1380
1460
|
"enableJsonFlag": true,
|
|
1381
1461
|
"isESM": true,
|
|
1382
1462
|
"relativePath": [
|
|
1383
1463
|
"lib",
|
|
1384
1464
|
"commands",
|
|
1385
|
-
"
|
|
1465
|
+
"apex",
|
|
1386
1466
|
"generate",
|
|
1387
|
-
"
|
|
1467
|
+
"trigger.js"
|
|
1388
1468
|
],
|
|
1389
1469
|
"aliasPermutations": [
|
|
1390
|
-
"force:
|
|
1391
|
-
"
|
|
1392
|
-
"
|
|
1393
|
-
"
|
|
1394
|
-
"force:
|
|
1395
|
-
"
|
|
1396
|
-
"
|
|
1397
|
-
"
|
|
1398
|
-
"force:
|
|
1399
|
-
"
|
|
1400
|
-
"
|
|
1401
|
-
"
|
|
1402
|
-
"force:
|
|
1403
|
-
"
|
|
1404
|
-
"
|
|
1405
|
-
"
|
|
1406
|
-
"force:create:
|
|
1407
|
-
"create:force:
|
|
1408
|
-
"create:
|
|
1409
|
-
"create:
|
|
1410
|
-
"force:create:
|
|
1411
|
-
"create:force:
|
|
1412
|
-
"create:
|
|
1413
|
-
"create:
|
|
1470
|
+
"force:apex:trigger:create",
|
|
1471
|
+
"apex:force:trigger:create",
|
|
1472
|
+
"apex:trigger:force:create",
|
|
1473
|
+
"apex:trigger:create:force",
|
|
1474
|
+
"force:trigger:apex:create",
|
|
1475
|
+
"trigger:force:apex:create",
|
|
1476
|
+
"trigger:apex:force:create",
|
|
1477
|
+
"trigger:apex:create:force",
|
|
1478
|
+
"force:trigger:create:apex",
|
|
1479
|
+
"trigger:force:create:apex",
|
|
1480
|
+
"trigger:create:force:apex",
|
|
1481
|
+
"trigger:create:apex:force",
|
|
1482
|
+
"force:apex:create:trigger",
|
|
1483
|
+
"apex:force:create:trigger",
|
|
1484
|
+
"apex:create:force:trigger",
|
|
1485
|
+
"apex:create:trigger:force",
|
|
1486
|
+
"force:create:apex:trigger",
|
|
1487
|
+
"create:force:apex:trigger",
|
|
1488
|
+
"create:apex:force:trigger",
|
|
1489
|
+
"create:apex:trigger:force",
|
|
1490
|
+
"force:create:trigger:apex",
|
|
1491
|
+
"create:force:trigger:apex",
|
|
1492
|
+
"create:trigger:force:apex",
|
|
1493
|
+
"create:trigger:apex:force"
|
|
1414
1494
|
],
|
|
1415
1495
|
"permutations": [
|
|
1416
|
-
"
|
|
1417
|
-
"generate:
|
|
1418
|
-
"generate:
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1496
|
+
"apex:generate:trigger",
|
|
1497
|
+
"generate:apex:trigger",
|
|
1498
|
+
"generate:trigger:apex",
|
|
1499
|
+
"apex:trigger:generate",
|
|
1500
|
+
"trigger:apex:generate",
|
|
1501
|
+
"trigger:generate:apex"
|
|
1422
1502
|
]
|
|
1423
1503
|
},
|
|
1424
1504
|
"visualforce:generate:component": {
|
|
@@ -1440,6 +1520,14 @@
|
|
|
1440
1520
|
"allowNo": false,
|
|
1441
1521
|
"type": "boolean"
|
|
1442
1522
|
},
|
|
1523
|
+
"flags-dir": {
|
|
1524
|
+
"helpGroup": "GLOBAL",
|
|
1525
|
+
"name": "flags-dir",
|
|
1526
|
+
"summary": "Import flag values from a directory.",
|
|
1527
|
+
"hasDynamicHelp": false,
|
|
1528
|
+
"multiple": false,
|
|
1529
|
+
"type": "option"
|
|
1530
|
+
},
|
|
1443
1531
|
"name": {
|
|
1444
1532
|
"aliases": [
|
|
1445
1533
|
"componentname"
|
|
@@ -1583,6 +1671,14 @@
|
|
|
1583
1671
|
"allowNo": false,
|
|
1584
1672
|
"type": "boolean"
|
|
1585
1673
|
},
|
|
1674
|
+
"flags-dir": {
|
|
1675
|
+
"helpGroup": "GLOBAL",
|
|
1676
|
+
"name": "flags-dir",
|
|
1677
|
+
"summary": "Import flag values from a directory.",
|
|
1678
|
+
"hasDynamicHelp": false,
|
|
1679
|
+
"multiple": false,
|
|
1680
|
+
"type": "option"
|
|
1681
|
+
},
|
|
1586
1682
|
"name": {
|
|
1587
1683
|
"aliases": [
|
|
1588
1684
|
"pagename"
|
|
@@ -1709,5 +1805,5 @@
|
|
|
1709
1805
|
]
|
|
1710
1806
|
}
|
|
1711
1807
|
},
|
|
1712
|
-
"version": "56.0
|
|
1808
|
+
"version": "56.1.0"
|
|
1713
1809
|
}
|