@salesforce/plugin-templates 56.1.0 → 56.2.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 +12 -12
- package/npm-shrinkwrap.json +532 -674
- package/oclif.lock +268 -241
- package/oclif.manifest.json +373 -373
- package/package.json +13 -13
package/oclif.manifest.json
CHANGED
|
@@ -413,16 +413,16 @@
|
|
|
413
413
|
"template:generate:analytics"
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
|
-
"
|
|
416
|
+
"apex:generate:class": {
|
|
417
417
|
"aliases": [
|
|
418
|
-
"force:
|
|
418
|
+
"force:apex:class:create"
|
|
419
419
|
],
|
|
420
420
|
"args": {},
|
|
421
421
|
"deprecateAliases": true,
|
|
422
|
-
"description": "Generates
|
|
422
|
+
"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.",
|
|
423
423
|
"examples": [
|
|
424
|
-
"Generate
|
|
425
|
-
"Similar to
|
|
424
|
+
"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",
|
|
425
|
+
"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"
|
|
426
426
|
],
|
|
427
427
|
"flags": {
|
|
428
428
|
"json": {
|
|
@@ -442,14 +442,14 @@
|
|
|
442
442
|
},
|
|
443
443
|
"name": {
|
|
444
444
|
"aliases": [
|
|
445
|
-
"
|
|
445
|
+
"classname"
|
|
446
446
|
],
|
|
447
447
|
"char": "n",
|
|
448
448
|
"deprecateAliases": true,
|
|
449
449
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
450
450
|
"name": "name",
|
|
451
451
|
"required": true,
|
|
452
|
-
"summary": "Name of the generated
|
|
452
|
+
"summary": "Name of the generated Apex class.",
|
|
453
453
|
"hasDynamicHelp": false,
|
|
454
454
|
"multiple": false,
|
|
455
455
|
"type": "option"
|
|
@@ -459,11 +459,14 @@
|
|
|
459
459
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
460
460
|
"name": "template",
|
|
461
461
|
"summary": "Template to use for file creation.",
|
|
462
|
-
"default": "
|
|
462
|
+
"default": "DefaultApexClass",
|
|
463
463
|
"hasDynamicHelp": false,
|
|
464
464
|
"multiple": false,
|
|
465
465
|
"options": [
|
|
466
|
-
"
|
|
466
|
+
"ApexException",
|
|
467
|
+
"ApexUnitTest",
|
|
468
|
+
"DefaultApexClass",
|
|
469
|
+
"InboundEmailService"
|
|
467
470
|
],
|
|
468
471
|
"type": "option"
|
|
469
472
|
},
|
|
@@ -492,14 +495,6 @@
|
|
|
492
495
|
"multiple": false,
|
|
493
496
|
"type": "option"
|
|
494
497
|
},
|
|
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
|
-
},
|
|
503
498
|
"loglevel": {
|
|
504
499
|
"deprecated": {
|
|
505
500
|
"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."
|
|
@@ -513,68 +508,67 @@
|
|
|
513
508
|
},
|
|
514
509
|
"hasDynamicHelp": false,
|
|
515
510
|
"hiddenAliases": [],
|
|
516
|
-
"id": "
|
|
511
|
+
"id": "apex:generate:class",
|
|
517
512
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
518
513
|
"pluginName": "@salesforce/plugin-templates",
|
|
519
514
|
"pluginType": "core",
|
|
520
515
|
"strict": true,
|
|
521
|
-
"summary": "Generate
|
|
516
|
+
"summary": "Generate an Apex class.",
|
|
522
517
|
"enableJsonFlag": true,
|
|
523
518
|
"isESM": true,
|
|
524
519
|
"relativePath": [
|
|
525
520
|
"lib",
|
|
526
521
|
"commands",
|
|
527
|
-
"
|
|
522
|
+
"apex",
|
|
528
523
|
"generate",
|
|
529
|
-
"
|
|
524
|
+
"class.js"
|
|
530
525
|
],
|
|
531
526
|
"aliasPermutations": [
|
|
532
|
-
"force:
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
"force:
|
|
537
|
-
"
|
|
538
|
-
"
|
|
539
|
-
"
|
|
540
|
-
"force:
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"
|
|
544
|
-
"force:
|
|
545
|
-
"
|
|
546
|
-
"
|
|
547
|
-
"
|
|
548
|
-
"force:create:
|
|
549
|
-
"create:force:
|
|
550
|
-
"create:
|
|
551
|
-
"create:
|
|
552
|
-
"force:create:
|
|
553
|
-
"create:force:
|
|
554
|
-
"create:
|
|
555
|
-
"create:
|
|
527
|
+
"force:apex:class:create",
|
|
528
|
+
"apex:force:class:create",
|
|
529
|
+
"apex:class:force:create",
|
|
530
|
+
"apex:class:create:force",
|
|
531
|
+
"force:class:apex:create",
|
|
532
|
+
"class:force:apex:create",
|
|
533
|
+
"class:apex:force:create",
|
|
534
|
+
"class:apex:create:force",
|
|
535
|
+
"force:class:create:apex",
|
|
536
|
+
"class:force:create:apex",
|
|
537
|
+
"class:create:force:apex",
|
|
538
|
+
"class:create:apex:force",
|
|
539
|
+
"force:apex:create:class",
|
|
540
|
+
"apex:force:create:class",
|
|
541
|
+
"apex:create:force:class",
|
|
542
|
+
"apex:create:class:force",
|
|
543
|
+
"force:create:apex:class",
|
|
544
|
+
"create:force:apex:class",
|
|
545
|
+
"create:apex:force:class",
|
|
546
|
+
"create:apex:class:force",
|
|
547
|
+
"force:create:class:apex",
|
|
548
|
+
"create:force:class:apex",
|
|
549
|
+
"create:class:force:apex",
|
|
550
|
+
"create:class:apex:force"
|
|
556
551
|
],
|
|
557
552
|
"permutations": [
|
|
558
|
-
"
|
|
559
|
-
"generate:
|
|
560
|
-
"generate:
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
553
|
+
"apex:generate:class",
|
|
554
|
+
"generate:apex:class",
|
|
555
|
+
"generate:class:apex",
|
|
556
|
+
"apex:class:generate",
|
|
557
|
+
"class:apex:generate",
|
|
558
|
+
"class:generate:apex"
|
|
564
559
|
]
|
|
565
560
|
},
|
|
566
|
-
"
|
|
561
|
+
"apex:generate:trigger": {
|
|
567
562
|
"aliases": [
|
|
568
|
-
"force:
|
|
563
|
+
"force:apex:trigger:create"
|
|
569
564
|
],
|
|
570
565
|
"args": {},
|
|
571
566
|
"deprecateAliases": true,
|
|
572
|
-
"description": "Generates the
|
|
567
|
+
"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.",
|
|
573
568
|
"examples": [
|
|
574
|
-
"Generate the
|
|
575
|
-
"
|
|
576
|
-
"Generate
|
|
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"
|
|
569
|
+
"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",
|
|
570
|
+
"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",
|
|
571
|
+
"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\""
|
|
578
572
|
],
|
|
579
573
|
"flags": {
|
|
580
574
|
"json": {
|
|
@@ -594,14 +588,14 @@
|
|
|
594
588
|
},
|
|
595
589
|
"name": {
|
|
596
590
|
"aliases": [
|
|
597
|
-
"
|
|
591
|
+
"triggername"
|
|
598
592
|
],
|
|
599
593
|
"char": "n",
|
|
600
594
|
"deprecateAliases": true,
|
|
601
595
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
602
596
|
"name": "name",
|
|
603
597
|
"required": true,
|
|
604
|
-
"summary": "Name of the generated
|
|
598
|
+
"summary": "Name of the generated Apex trigger",
|
|
605
599
|
"hasDynamicHelp": false,
|
|
606
600
|
"multiple": false,
|
|
607
601
|
"type": "option"
|
|
@@ -611,13 +605,11 @@
|
|
|
611
605
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
612
606
|
"name": "template",
|
|
613
607
|
"summary": "Template to use for file creation.",
|
|
614
|
-
"default": "
|
|
608
|
+
"default": "ApexTrigger",
|
|
615
609
|
"hasDynamicHelp": false,
|
|
616
610
|
"multiple": false,
|
|
617
611
|
"options": [
|
|
618
|
-
"
|
|
619
|
-
"analyticsDashboard",
|
|
620
|
-
"analyticsDashboardWithStep"
|
|
612
|
+
"ApexTrigger"
|
|
621
613
|
],
|
|
622
614
|
"type": "option"
|
|
623
615
|
},
|
|
@@ -646,26 +638,40 @@
|
|
|
646
638
|
"multiple": false,
|
|
647
639
|
"type": "option"
|
|
648
640
|
},
|
|
649
|
-
"
|
|
650
|
-
"
|
|
651
|
-
"
|
|
652
|
-
"
|
|
641
|
+
"sobject": {
|
|
642
|
+
"char": "s",
|
|
643
|
+
"name": "sobject",
|
|
644
|
+
"summary": "Salesforce object to generate a trigger on.",
|
|
645
|
+
"default": "SOBJECT",
|
|
653
646
|
"hasDynamicHelp": false,
|
|
654
647
|
"multiple": false,
|
|
648
|
+
"type": "option"
|
|
649
|
+
},
|
|
650
|
+
"event": {
|
|
651
|
+
"aliases": [
|
|
652
|
+
"triggerevents"
|
|
653
|
+
],
|
|
654
|
+
"char": "e",
|
|
655
|
+
"deprecateAliases": true,
|
|
656
|
+
"name": "event",
|
|
657
|
+
"summary": "Events that fire the trigger.",
|
|
658
|
+
"default": [
|
|
659
|
+
"before insert"
|
|
660
|
+
],
|
|
661
|
+
"delimiter": ",",
|
|
662
|
+
"hasDynamicHelp": false,
|
|
663
|
+
"multiple": true,
|
|
655
664
|
"options": [
|
|
656
|
-
"
|
|
657
|
-
"
|
|
665
|
+
"before insert",
|
|
666
|
+
"before update",
|
|
667
|
+
"before delete",
|
|
668
|
+
"after insert",
|
|
669
|
+
"after update",
|
|
670
|
+
"after delete",
|
|
671
|
+
"after undelete"
|
|
658
672
|
],
|
|
659
673
|
"type": "option"
|
|
660
674
|
},
|
|
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
|
-
},
|
|
669
675
|
"loglevel": {
|
|
670
676
|
"deprecated": {
|
|
671
677
|
"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."
|
|
@@ -679,66 +685,66 @@
|
|
|
679
685
|
},
|
|
680
686
|
"hasDynamicHelp": false,
|
|
681
687
|
"hiddenAliases": [],
|
|
682
|
-
"id": "
|
|
688
|
+
"id": "apex:generate:trigger",
|
|
683
689
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
684
690
|
"pluginName": "@salesforce/plugin-templates",
|
|
685
691
|
"pluginType": "core",
|
|
686
692
|
"strict": true,
|
|
687
|
-
"summary": "Generate
|
|
693
|
+
"summary": "Generate an Apex trigger.",
|
|
688
694
|
"enableJsonFlag": true,
|
|
689
695
|
"isESM": true,
|
|
690
696
|
"relativePath": [
|
|
691
697
|
"lib",
|
|
692
698
|
"commands",
|
|
693
|
-
"
|
|
699
|
+
"apex",
|
|
694
700
|
"generate",
|
|
695
|
-
"
|
|
701
|
+
"trigger.js"
|
|
696
702
|
],
|
|
697
703
|
"aliasPermutations": [
|
|
698
|
-
"force:
|
|
699
|
-
"
|
|
700
|
-
"
|
|
701
|
-
"
|
|
702
|
-
"force:
|
|
703
|
-
"
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"force:
|
|
707
|
-
"
|
|
708
|
-
"
|
|
709
|
-
"
|
|
710
|
-
"force:
|
|
711
|
-
"
|
|
712
|
-
"
|
|
713
|
-
"
|
|
714
|
-
"force:create:
|
|
715
|
-
"create:force:
|
|
716
|
-
"create:
|
|
717
|
-
"create:
|
|
718
|
-
"force:create:
|
|
719
|
-
"create:force:
|
|
720
|
-
"create:
|
|
721
|
-
"create:
|
|
704
|
+
"force:apex:trigger:create",
|
|
705
|
+
"apex:force:trigger:create",
|
|
706
|
+
"apex:trigger:force:create",
|
|
707
|
+
"apex:trigger:create:force",
|
|
708
|
+
"force:trigger:apex:create",
|
|
709
|
+
"trigger:force:apex:create",
|
|
710
|
+
"trigger:apex:force:create",
|
|
711
|
+
"trigger:apex:create:force",
|
|
712
|
+
"force:trigger:create:apex",
|
|
713
|
+
"trigger:force:create:apex",
|
|
714
|
+
"trigger:create:force:apex",
|
|
715
|
+
"trigger:create:apex:force",
|
|
716
|
+
"force:apex:create:trigger",
|
|
717
|
+
"apex:force:create:trigger",
|
|
718
|
+
"apex:create:force:trigger",
|
|
719
|
+
"apex:create:trigger:force",
|
|
720
|
+
"force:create:apex:trigger",
|
|
721
|
+
"create:force:apex:trigger",
|
|
722
|
+
"create:apex:force:trigger",
|
|
723
|
+
"create:apex:trigger:force",
|
|
724
|
+
"force:create:trigger:apex",
|
|
725
|
+
"create:force:trigger:apex",
|
|
726
|
+
"create:trigger:force:apex",
|
|
727
|
+
"create:trigger:apex:force"
|
|
722
728
|
],
|
|
723
729
|
"permutations": [
|
|
724
|
-
"
|
|
725
|
-
"generate:
|
|
726
|
-
"generate:
|
|
727
|
-
"
|
|
728
|
-
"
|
|
729
|
-
"
|
|
730
|
+
"apex:generate:trigger",
|
|
731
|
+
"generate:apex:trigger",
|
|
732
|
+
"generate:trigger:apex",
|
|
733
|
+
"apex:trigger:generate",
|
|
734
|
+
"trigger:apex:generate",
|
|
735
|
+
"trigger:generate:apex"
|
|
730
736
|
]
|
|
731
737
|
},
|
|
732
|
-
"lightning:generate:
|
|
738
|
+
"lightning:generate:app": {
|
|
733
739
|
"aliases": [
|
|
734
|
-
"force:lightning:
|
|
740
|
+
"force:lightning:app:create"
|
|
735
741
|
],
|
|
736
742
|
"args": {},
|
|
737
743
|
"deprecateAliases": true,
|
|
738
|
-
"description": "Generates a Lightning
|
|
744
|
+
"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.",
|
|
739
745
|
"examples": [
|
|
740
|
-
"Generate the metadata files for a Lightning
|
|
741
|
-
"Similar to previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name
|
|
746
|
+
"Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
|
|
747
|
+
"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"
|
|
742
748
|
],
|
|
743
749
|
"flags": {
|
|
744
750
|
"json": {
|
|
@@ -758,14 +764,14 @@
|
|
|
758
764
|
},
|
|
759
765
|
"name": {
|
|
760
766
|
"aliases": [
|
|
761
|
-
"
|
|
767
|
+
"appname"
|
|
762
768
|
],
|
|
763
769
|
"char": "n",
|
|
764
770
|
"deprecateAliases": true,
|
|
765
771
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
766
772
|
"name": "name",
|
|
767
773
|
"required": true,
|
|
768
|
-
"summary": "Name of the generated Lightning
|
|
774
|
+
"summary": "Name of the generated Lightning App.",
|
|
769
775
|
"hasDynamicHelp": false,
|
|
770
776
|
"multiple": false,
|
|
771
777
|
"type": "option"
|
|
@@ -775,11 +781,11 @@
|
|
|
775
781
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
776
782
|
"name": "template",
|
|
777
783
|
"summary": "Template to use for file creation.",
|
|
778
|
-
"default": "
|
|
784
|
+
"default": "DefaultLightningApp",
|
|
779
785
|
"hasDynamicHelp": false,
|
|
780
786
|
"multiple": false,
|
|
781
787
|
"options": [
|
|
782
|
-
"
|
|
788
|
+
"DefaultLightningApp"
|
|
783
789
|
],
|
|
784
790
|
"type": "option"
|
|
785
791
|
},
|
|
@@ -829,12 +835,12 @@
|
|
|
829
835
|
},
|
|
830
836
|
"hasDynamicHelp": false,
|
|
831
837
|
"hiddenAliases": [],
|
|
832
|
-
"id": "lightning:generate:
|
|
838
|
+
"id": "lightning:generate:app",
|
|
833
839
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
834
840
|
"pluginName": "@salesforce/plugin-templates",
|
|
835
841
|
"pluginType": "core",
|
|
836
842
|
"strict": true,
|
|
837
|
-
"summary": "Generate a Lightning
|
|
843
|
+
"summary": "Generate a Lightning App.",
|
|
838
844
|
"enableJsonFlag": true,
|
|
839
845
|
"isESM": true,
|
|
840
846
|
"relativePath": [
|
|
@@ -842,53 +848,55 @@
|
|
|
842
848
|
"commands",
|
|
843
849
|
"lightning",
|
|
844
850
|
"generate",
|
|
845
|
-
"
|
|
851
|
+
"app.js"
|
|
846
852
|
],
|
|
847
853
|
"aliasPermutations": [
|
|
848
|
-
"force:lightning:
|
|
849
|
-
"lightning:force:
|
|
850
|
-
"lightning:
|
|
851
|
-
"lightning:
|
|
852
|
-
"force:
|
|
853
|
-
"
|
|
854
|
-
"
|
|
855
|
-
"
|
|
856
|
-
"force:
|
|
857
|
-
"
|
|
858
|
-
"
|
|
859
|
-
"
|
|
860
|
-
"force:lightning:create:
|
|
861
|
-
"lightning:force:create:
|
|
862
|
-
"lightning:create:force:
|
|
863
|
-
"lightning:create:
|
|
864
|
-
"force:create:lightning:
|
|
865
|
-
"create:force:lightning:
|
|
866
|
-
"create:lightning:force:
|
|
867
|
-
"create:lightning:
|
|
868
|
-
"force:create:
|
|
869
|
-
"create:force:
|
|
870
|
-
"create:
|
|
871
|
-
"create:
|
|
854
|
+
"force:lightning:app:create",
|
|
855
|
+
"lightning:force:app:create",
|
|
856
|
+
"lightning:app:force:create",
|
|
857
|
+
"lightning:app:create:force",
|
|
858
|
+
"force:app:lightning:create",
|
|
859
|
+
"app:force:lightning:create",
|
|
860
|
+
"app:lightning:force:create",
|
|
861
|
+
"app:lightning:create:force",
|
|
862
|
+
"force:app:create:lightning",
|
|
863
|
+
"app:force:create:lightning",
|
|
864
|
+
"app:create:force:lightning",
|
|
865
|
+
"app:create:lightning:force",
|
|
866
|
+
"force:lightning:create:app",
|
|
867
|
+
"lightning:force:create:app",
|
|
868
|
+
"lightning:create:force:app",
|
|
869
|
+
"lightning:create:app:force",
|
|
870
|
+
"force:create:lightning:app",
|
|
871
|
+
"create:force:lightning:app",
|
|
872
|
+
"create:lightning:force:app",
|
|
873
|
+
"create:lightning:app:force",
|
|
874
|
+
"force:create:app:lightning",
|
|
875
|
+
"create:force:app:lightning",
|
|
876
|
+
"create:app:force:lightning",
|
|
877
|
+
"create:app:lightning:force"
|
|
872
878
|
],
|
|
873
879
|
"permutations": [
|
|
874
|
-
"lightning:generate:
|
|
875
|
-
"generate:lightning:
|
|
876
|
-
"generate:
|
|
877
|
-
"lightning:
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
+
"lightning:generate:app",
|
|
881
|
+
"generate:lightning:app",
|
|
882
|
+
"generate:app:lightning",
|
|
883
|
+
"lightning:app:generate",
|
|
884
|
+
"app:lightning:generate",
|
|
885
|
+
"app:generate:lightning"
|
|
880
886
|
]
|
|
881
887
|
},
|
|
882
|
-
"lightning:generate:
|
|
888
|
+
"lightning:generate:component": {
|
|
883
889
|
"aliases": [
|
|
884
|
-
"force:lightning:
|
|
890
|
+
"force:lightning:component:create"
|
|
885
891
|
],
|
|
886
892
|
"args": {},
|
|
887
893
|
"deprecateAliases": true,
|
|
888
|
-
"description": "Generates
|
|
894
|
+
"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.",
|
|
889
895
|
"examples": [
|
|
890
|
-
"Generate the metadata files for
|
|
891
|
-
"
|
|
896
|
+
"Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
|
|
897
|
+
"Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
|
|
898
|
+
"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",
|
|
899
|
+
"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"
|
|
892
900
|
],
|
|
893
901
|
"flags": {
|
|
894
902
|
"json": {
|
|
@@ -908,14 +916,14 @@
|
|
|
908
916
|
},
|
|
909
917
|
"name": {
|
|
910
918
|
"aliases": [
|
|
911
|
-
"
|
|
919
|
+
"componentname"
|
|
912
920
|
],
|
|
913
921
|
"char": "n",
|
|
914
922
|
"deprecateAliases": true,
|
|
915
923
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
916
924
|
"name": "name",
|
|
917
925
|
"required": true,
|
|
918
|
-
"summary": "Name of the generated Lightning
|
|
926
|
+
"summary": "Name of the generated Lightning Component.",
|
|
919
927
|
"hasDynamicHelp": false,
|
|
920
928
|
"multiple": false,
|
|
921
929
|
"type": "option"
|
|
@@ -925,11 +933,13 @@
|
|
|
925
933
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
926
934
|
"name": "template",
|
|
927
935
|
"summary": "Template to use for file creation.",
|
|
928
|
-
"default": "
|
|
936
|
+
"default": "default",
|
|
929
937
|
"hasDynamicHelp": false,
|
|
930
938
|
"multiple": false,
|
|
931
939
|
"options": [
|
|
932
|
-
"
|
|
940
|
+
"default",
|
|
941
|
+
"analyticsDashboard",
|
|
942
|
+
"analyticsDashboardWithStep"
|
|
933
943
|
],
|
|
934
944
|
"type": "option"
|
|
935
945
|
},
|
|
@@ -958,6 +968,18 @@
|
|
|
958
968
|
"multiple": false,
|
|
959
969
|
"type": "option"
|
|
960
970
|
},
|
|
971
|
+
"type": {
|
|
972
|
+
"name": "type",
|
|
973
|
+
"summary": "Type of the component bundle.",
|
|
974
|
+
"default": "aura",
|
|
975
|
+
"hasDynamicHelp": false,
|
|
976
|
+
"multiple": false,
|
|
977
|
+
"options": [
|
|
978
|
+
"aura",
|
|
979
|
+
"lwc"
|
|
980
|
+
],
|
|
981
|
+
"type": "option"
|
|
982
|
+
},
|
|
961
983
|
"internal": {
|
|
962
984
|
"char": "i",
|
|
963
985
|
"hidden": true,
|
|
@@ -979,12 +1001,12 @@
|
|
|
979
1001
|
},
|
|
980
1002
|
"hasDynamicHelp": false,
|
|
981
1003
|
"hiddenAliases": [],
|
|
982
|
-
"id": "lightning:generate:
|
|
1004
|
+
"id": "lightning:generate:component",
|
|
983
1005
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
984
1006
|
"pluginName": "@salesforce/plugin-templates",
|
|
985
1007
|
"pluginType": "core",
|
|
986
1008
|
"strict": true,
|
|
987
|
-
"summary": "Generate a Lightning
|
|
1009
|
+
"summary": "Generate a bundle for an Aura component or a Lightning web component.",
|
|
988
1010
|
"enableJsonFlag": true,
|
|
989
1011
|
"isESM": true,
|
|
990
1012
|
"relativePath": [
|
|
@@ -992,53 +1014,53 @@
|
|
|
992
1014
|
"commands",
|
|
993
1015
|
"lightning",
|
|
994
1016
|
"generate",
|
|
995
|
-
"
|
|
1017
|
+
"component.js"
|
|
996
1018
|
],
|
|
997
1019
|
"aliasPermutations": [
|
|
998
|
-
"force:lightning:
|
|
999
|
-
"lightning:force:
|
|
1000
|
-
"lightning:
|
|
1001
|
-
"lightning:
|
|
1002
|
-
"force:
|
|
1003
|
-
"
|
|
1004
|
-
"
|
|
1005
|
-
"
|
|
1006
|
-
"force:
|
|
1007
|
-
"
|
|
1008
|
-
"
|
|
1009
|
-
"
|
|
1010
|
-
"force:lightning:create:
|
|
1011
|
-
"lightning:force:create:
|
|
1012
|
-
"lightning:create:force:
|
|
1013
|
-
"lightning:create:
|
|
1014
|
-
"force:create:lightning:
|
|
1015
|
-
"create:force:lightning:
|
|
1016
|
-
"create:lightning:force:
|
|
1017
|
-
"create:lightning:
|
|
1018
|
-
"force:create:
|
|
1019
|
-
"create:force:
|
|
1020
|
-
"create:
|
|
1021
|
-
"create:
|
|
1020
|
+
"force:lightning:component:create",
|
|
1021
|
+
"lightning:force:component:create",
|
|
1022
|
+
"lightning:component:force:create",
|
|
1023
|
+
"lightning:component:create:force",
|
|
1024
|
+
"force:component:lightning:create",
|
|
1025
|
+
"component:force:lightning:create",
|
|
1026
|
+
"component:lightning:force:create",
|
|
1027
|
+
"component:lightning:create:force",
|
|
1028
|
+
"force:component:create:lightning",
|
|
1029
|
+
"component:force:create:lightning",
|
|
1030
|
+
"component:create:force:lightning",
|
|
1031
|
+
"component:create:lightning:force",
|
|
1032
|
+
"force:lightning:create:component",
|
|
1033
|
+
"lightning:force:create:component",
|
|
1034
|
+
"lightning:create:force:component",
|
|
1035
|
+
"lightning:create:component:force",
|
|
1036
|
+
"force:create:lightning:component",
|
|
1037
|
+
"create:force:lightning:component",
|
|
1038
|
+
"create:lightning:force:component",
|
|
1039
|
+
"create:lightning:component:force",
|
|
1040
|
+
"force:create:component:lightning",
|
|
1041
|
+
"create:force:component:lightning",
|
|
1042
|
+
"create:component:force:lightning",
|
|
1043
|
+
"create:component:lightning:force"
|
|
1022
1044
|
],
|
|
1023
1045
|
"permutations": [
|
|
1024
|
-
"lightning:generate:
|
|
1025
|
-
"generate:lightning:
|
|
1026
|
-
"generate:
|
|
1027
|
-
"lightning:
|
|
1028
|
-
"
|
|
1029
|
-
"
|
|
1046
|
+
"lightning:generate:component",
|
|
1047
|
+
"generate:lightning:component",
|
|
1048
|
+
"generate:component:lightning",
|
|
1049
|
+
"lightning:component:generate",
|
|
1050
|
+
"component:lightning:generate",
|
|
1051
|
+
"component:generate:lightning"
|
|
1030
1052
|
]
|
|
1031
1053
|
},
|
|
1032
|
-
"lightning:generate:
|
|
1054
|
+
"lightning:generate:event": {
|
|
1033
1055
|
"aliases": [
|
|
1034
|
-
"force:lightning:
|
|
1056
|
+
"force:lightning:event:create"
|
|
1035
1057
|
],
|
|
1036
1058
|
"args": {},
|
|
1037
1059
|
"deprecateAliases": true,
|
|
1038
|
-
"description": "Generates
|
|
1060
|
+
"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.",
|
|
1039
1061
|
"examples": [
|
|
1040
|
-
"Generate the metadata files for
|
|
1041
|
-
"Similar to
|
|
1062
|
+
"Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
|
|
1063
|
+
"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"
|
|
1042
1064
|
],
|
|
1043
1065
|
"flags": {
|
|
1044
1066
|
"json": {
|
|
@@ -1058,14 +1080,14 @@
|
|
|
1058
1080
|
},
|
|
1059
1081
|
"name": {
|
|
1060
1082
|
"aliases": [
|
|
1061
|
-
"
|
|
1083
|
+
"eventname"
|
|
1062
1084
|
],
|
|
1063
1085
|
"char": "n",
|
|
1064
1086
|
"deprecateAliases": true,
|
|
1065
|
-
"description": "
|
|
1087
|
+
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1066
1088
|
"name": "name",
|
|
1067
1089
|
"required": true,
|
|
1068
|
-
"summary": "Name of the generated Lightning
|
|
1090
|
+
"summary": "Name of the generated Lightning Event.",
|
|
1069
1091
|
"hasDynamicHelp": false,
|
|
1070
1092
|
"multiple": false,
|
|
1071
1093
|
"type": "option"
|
|
@@ -1075,11 +1097,11 @@
|
|
|
1075
1097
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1076
1098
|
"name": "template",
|
|
1077
1099
|
"summary": "Template to use for file creation.",
|
|
1078
|
-
"default": "
|
|
1100
|
+
"default": "DefaultLightningEvt",
|
|
1079
1101
|
"hasDynamicHelp": false,
|
|
1080
1102
|
"multiple": false,
|
|
1081
1103
|
"options": [
|
|
1082
|
-
"
|
|
1104
|
+
"DefaultLightningEvt"
|
|
1083
1105
|
],
|
|
1084
1106
|
"type": "option"
|
|
1085
1107
|
},
|
|
@@ -1097,14 +1119,6 @@
|
|
|
1097
1119
|
"multiple": false,
|
|
1098
1120
|
"type": "option"
|
|
1099
1121
|
},
|
|
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
|
-
},
|
|
1108
1122
|
"api-version": {
|
|
1109
1123
|
"aliases": [
|
|
1110
1124
|
"apiversion"
|
|
@@ -1116,6 +1130,14 @@
|
|
|
1116
1130
|
"multiple": false,
|
|
1117
1131
|
"type": "option"
|
|
1118
1132
|
},
|
|
1133
|
+
"internal": {
|
|
1134
|
+
"char": "i",
|
|
1135
|
+
"hidden": true,
|
|
1136
|
+
"name": "internal",
|
|
1137
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1138
|
+
"allowNo": false,
|
|
1139
|
+
"type": "boolean"
|
|
1140
|
+
},
|
|
1119
1141
|
"loglevel": {
|
|
1120
1142
|
"deprecated": {
|
|
1121
1143
|
"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."
|
|
@@ -1129,12 +1151,12 @@
|
|
|
1129
1151
|
},
|
|
1130
1152
|
"hasDynamicHelp": false,
|
|
1131
1153
|
"hiddenAliases": [],
|
|
1132
|
-
"id": "lightning:generate:
|
|
1154
|
+
"id": "lightning:generate:event",
|
|
1133
1155
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1134
1156
|
"pluginName": "@salesforce/plugin-templates",
|
|
1135
1157
|
"pluginType": "core",
|
|
1136
1158
|
"strict": true,
|
|
1137
|
-
"summary": "Generate a Lightning
|
|
1159
|
+
"summary": "Generate a Lightning Event.",
|
|
1138
1160
|
"enableJsonFlag": true,
|
|
1139
1161
|
"isESM": true,
|
|
1140
1162
|
"relativePath": [
|
|
@@ -1142,53 +1164,53 @@
|
|
|
1142
1164
|
"commands",
|
|
1143
1165
|
"lightning",
|
|
1144
1166
|
"generate",
|
|
1145
|
-
"
|
|
1167
|
+
"event.js"
|
|
1146
1168
|
],
|
|
1147
1169
|
"aliasPermutations": [
|
|
1148
|
-
"force:lightning:
|
|
1149
|
-
"lightning:force:
|
|
1150
|
-
"lightning:
|
|
1151
|
-
"lightning:
|
|
1152
|
-
"force:
|
|
1153
|
-
"
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
"force:
|
|
1157
|
-
"
|
|
1158
|
-
"
|
|
1159
|
-
"
|
|
1160
|
-
"force:lightning:create:
|
|
1161
|
-
"lightning:force:create:
|
|
1162
|
-
"lightning:create:force:
|
|
1163
|
-
"lightning:create:
|
|
1164
|
-
"force:create:lightning:
|
|
1165
|
-
"create:force:lightning:
|
|
1166
|
-
"create:lightning:force:
|
|
1167
|
-
"create:lightning:
|
|
1168
|
-
"force:create:
|
|
1169
|
-
"create:force:
|
|
1170
|
-
"create:
|
|
1171
|
-
"create:
|
|
1170
|
+
"force:lightning:event:create",
|
|
1171
|
+
"lightning:force:event:create",
|
|
1172
|
+
"lightning:event:force:create",
|
|
1173
|
+
"lightning:event:create:force",
|
|
1174
|
+
"force:event:lightning:create",
|
|
1175
|
+
"event:force:lightning:create",
|
|
1176
|
+
"event:lightning:force:create",
|
|
1177
|
+
"event:lightning:create:force",
|
|
1178
|
+
"force:event:create:lightning",
|
|
1179
|
+
"event:force:create:lightning",
|
|
1180
|
+
"event:create:force:lightning",
|
|
1181
|
+
"event:create:lightning:force",
|
|
1182
|
+
"force:lightning:create:event",
|
|
1183
|
+
"lightning:force:create:event",
|
|
1184
|
+
"lightning:create:force:event",
|
|
1185
|
+
"lightning:create:event:force",
|
|
1186
|
+
"force:create:lightning:event",
|
|
1187
|
+
"create:force:lightning:event",
|
|
1188
|
+
"create:lightning:force:event",
|
|
1189
|
+
"create:lightning:event:force",
|
|
1190
|
+
"force:create:event:lightning",
|
|
1191
|
+
"create:force:event:lightning",
|
|
1192
|
+
"create:event:force:lightning",
|
|
1193
|
+
"create:event:lightning:force"
|
|
1172
1194
|
],
|
|
1173
1195
|
"permutations": [
|
|
1174
|
-
"lightning:generate:
|
|
1175
|
-
"generate:lightning:
|
|
1176
|
-
"generate:
|
|
1177
|
-
"lightning:
|
|
1178
|
-
"
|
|
1179
|
-
"
|
|
1196
|
+
"lightning:generate:event",
|
|
1197
|
+
"generate:lightning:event",
|
|
1198
|
+
"generate:event:lightning",
|
|
1199
|
+
"lightning:event:generate",
|
|
1200
|
+
"event:lightning:generate",
|
|
1201
|
+
"event:generate:lightning"
|
|
1180
1202
|
]
|
|
1181
1203
|
},
|
|
1182
|
-
"
|
|
1204
|
+
"lightning:generate:interface": {
|
|
1183
1205
|
"aliases": [
|
|
1184
|
-
"force:
|
|
1206
|
+
"force:lightning:interface:create"
|
|
1185
1207
|
],
|
|
1186
1208
|
"args": {},
|
|
1187
1209
|
"deprecateAliases": true,
|
|
1188
|
-
"description": "Generates
|
|
1210
|
+
"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.",
|
|
1189
1211
|
"examples": [
|
|
1190
|
-
"Generate
|
|
1191
|
-
"Similar to previous example
|
|
1212
|
+
"Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
|
|
1213
|
+
"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"
|
|
1192
1214
|
],
|
|
1193
1215
|
"flags": {
|
|
1194
1216
|
"json": {
|
|
@@ -1208,14 +1230,14 @@
|
|
|
1208
1230
|
},
|
|
1209
1231
|
"name": {
|
|
1210
1232
|
"aliases": [
|
|
1211
|
-
"
|
|
1233
|
+
"interfacename"
|
|
1212
1234
|
],
|
|
1213
1235
|
"char": "n",
|
|
1214
1236
|
"deprecateAliases": true,
|
|
1215
1237
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1216
1238
|
"name": "name",
|
|
1217
1239
|
"required": true,
|
|
1218
|
-
"summary": "Name of the generated
|
|
1240
|
+
"summary": "Name of the generated Lightning Interface.",
|
|
1219
1241
|
"hasDynamicHelp": false,
|
|
1220
1242
|
"multiple": false,
|
|
1221
1243
|
"type": "option"
|
|
@@ -1225,14 +1247,11 @@
|
|
|
1225
1247
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1226
1248
|
"name": "template",
|
|
1227
1249
|
"summary": "Template to use for file creation.",
|
|
1228
|
-
"default": "
|
|
1250
|
+
"default": "DefaultLightningIntf",
|
|
1229
1251
|
"hasDynamicHelp": false,
|
|
1230
1252
|
"multiple": false,
|
|
1231
1253
|
"options": [
|
|
1232
|
-
"
|
|
1233
|
-
"ApexUnitTest",
|
|
1234
|
-
"DefaultApexClass",
|
|
1235
|
-
"InboundEmailService"
|
|
1254
|
+
"DefaultLightningIntf"
|
|
1236
1255
|
],
|
|
1237
1256
|
"type": "option"
|
|
1238
1257
|
},
|
|
@@ -1261,6 +1280,14 @@
|
|
|
1261
1280
|
"multiple": false,
|
|
1262
1281
|
"type": "option"
|
|
1263
1282
|
},
|
|
1283
|
+
"internal": {
|
|
1284
|
+
"char": "i",
|
|
1285
|
+
"hidden": true,
|
|
1286
|
+
"name": "internal",
|
|
1287
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1288
|
+
"allowNo": false,
|
|
1289
|
+
"type": "boolean"
|
|
1290
|
+
},
|
|
1264
1291
|
"loglevel": {
|
|
1265
1292
|
"deprecated": {
|
|
1266
1293
|
"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."
|
|
@@ -1274,67 +1301,66 @@
|
|
|
1274
1301
|
},
|
|
1275
1302
|
"hasDynamicHelp": false,
|
|
1276
1303
|
"hiddenAliases": [],
|
|
1277
|
-
"id": "
|
|
1304
|
+
"id": "lightning:generate:interface",
|
|
1278
1305
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1279
1306
|
"pluginName": "@salesforce/plugin-templates",
|
|
1280
1307
|
"pluginType": "core",
|
|
1281
1308
|
"strict": true,
|
|
1282
|
-
"summary": "Generate
|
|
1309
|
+
"summary": "Generate a Lightning Interface.",
|
|
1283
1310
|
"enableJsonFlag": true,
|
|
1284
1311
|
"isESM": true,
|
|
1285
1312
|
"relativePath": [
|
|
1286
1313
|
"lib",
|
|
1287
1314
|
"commands",
|
|
1288
|
-
"
|
|
1315
|
+
"lightning",
|
|
1289
1316
|
"generate",
|
|
1290
|
-
"
|
|
1317
|
+
"interface.js"
|
|
1291
1318
|
],
|
|
1292
1319
|
"aliasPermutations": [
|
|
1293
|
-
"force:
|
|
1294
|
-
"
|
|
1295
|
-
"
|
|
1296
|
-
"
|
|
1297
|
-
"force:
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1300
|
-
"
|
|
1301
|
-
"force:
|
|
1302
|
-
"
|
|
1303
|
-
"
|
|
1304
|
-
"
|
|
1305
|
-
"force:
|
|
1306
|
-
"
|
|
1307
|
-
"
|
|
1308
|
-
"
|
|
1309
|
-
"force:create:
|
|
1310
|
-
"create:force:
|
|
1311
|
-
"create:
|
|
1312
|
-
"create:
|
|
1313
|
-
"force:create:
|
|
1314
|
-
"create:force:
|
|
1315
|
-
"create:
|
|
1316
|
-
"create:
|
|
1320
|
+
"force:lightning:interface:create",
|
|
1321
|
+
"lightning:force:interface:create",
|
|
1322
|
+
"lightning:interface:force:create",
|
|
1323
|
+
"lightning:interface:create:force",
|
|
1324
|
+
"force:interface:lightning:create",
|
|
1325
|
+
"interface:force:lightning:create",
|
|
1326
|
+
"interface:lightning:force:create",
|
|
1327
|
+
"interface:lightning:create:force",
|
|
1328
|
+
"force:interface:create:lightning",
|
|
1329
|
+
"interface:force:create:lightning",
|
|
1330
|
+
"interface:create:force:lightning",
|
|
1331
|
+
"interface:create:lightning:force",
|
|
1332
|
+
"force:lightning:create:interface",
|
|
1333
|
+
"lightning:force:create:interface",
|
|
1334
|
+
"lightning:create:force:interface",
|
|
1335
|
+
"lightning:create:interface:force",
|
|
1336
|
+
"force:create:lightning:interface",
|
|
1337
|
+
"create:force:lightning:interface",
|
|
1338
|
+
"create:lightning:force:interface",
|
|
1339
|
+
"create:lightning:interface:force",
|
|
1340
|
+
"force:create:interface:lightning",
|
|
1341
|
+
"create:force:interface:lightning",
|
|
1342
|
+
"create:interface:force:lightning",
|
|
1343
|
+
"create:interface:lightning:force"
|
|
1317
1344
|
],
|
|
1318
1345
|
"permutations": [
|
|
1319
|
-
"
|
|
1320
|
-
"generate:
|
|
1321
|
-
"generate:
|
|
1322
|
-
"
|
|
1323
|
-
"
|
|
1324
|
-
"
|
|
1346
|
+
"lightning:generate:interface",
|
|
1347
|
+
"generate:lightning:interface",
|
|
1348
|
+
"generate:interface:lightning",
|
|
1349
|
+
"lightning:interface:generate",
|
|
1350
|
+
"interface:lightning:generate",
|
|
1351
|
+
"interface:generate:lightning"
|
|
1325
1352
|
]
|
|
1326
1353
|
},
|
|
1327
|
-
"
|
|
1354
|
+
"lightning:generate:test": {
|
|
1328
1355
|
"aliases": [
|
|
1329
|
-
"force:
|
|
1356
|
+
"force:lightning:test:create"
|
|
1330
1357
|
],
|
|
1331
1358
|
"args": {},
|
|
1332
1359
|
"deprecateAliases": true,
|
|
1333
|
-
"description": "Generates the
|
|
1360
|
+
"description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
|
|
1334
1361
|
"examples": [
|
|
1335
|
-
"Generate
|
|
1336
|
-
"Similar to the previous example
|
|
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\""
|
|
1362
|
+
"Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
|
|
1363
|
+
"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"
|
|
1338
1364
|
],
|
|
1339
1365
|
"flags": {
|
|
1340
1366
|
"json": {
|
|
@@ -1354,14 +1380,14 @@
|
|
|
1354
1380
|
},
|
|
1355
1381
|
"name": {
|
|
1356
1382
|
"aliases": [
|
|
1357
|
-
"
|
|
1383
|
+
"testname"
|
|
1358
1384
|
],
|
|
1359
1385
|
"char": "n",
|
|
1360
1386
|
"deprecateAliases": true,
|
|
1361
|
-
"description": "
|
|
1387
|
+
"description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
|
|
1362
1388
|
"name": "name",
|
|
1363
1389
|
"required": true,
|
|
1364
|
-
"summary": "Name of the generated
|
|
1390
|
+
"summary": "Name of the generated Lightning Test.",
|
|
1365
1391
|
"hasDynamicHelp": false,
|
|
1366
1392
|
"multiple": false,
|
|
1367
1393
|
"type": "option"
|
|
@@ -1371,11 +1397,11 @@
|
|
|
1371
1397
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1372
1398
|
"name": "template",
|
|
1373
1399
|
"summary": "Template to use for file creation.",
|
|
1374
|
-
"default": "
|
|
1400
|
+
"default": "DefaultLightningTest",
|
|
1375
1401
|
"hasDynamicHelp": false,
|
|
1376
1402
|
"multiple": false,
|
|
1377
1403
|
"options": [
|
|
1378
|
-
"
|
|
1404
|
+
"DefaultLightningTest"
|
|
1379
1405
|
],
|
|
1380
1406
|
"type": "option"
|
|
1381
1407
|
},
|
|
@@ -1393,6 +1419,14 @@
|
|
|
1393
1419
|
"multiple": false,
|
|
1394
1420
|
"type": "option"
|
|
1395
1421
|
},
|
|
1422
|
+
"internal": {
|
|
1423
|
+
"char": "i",
|
|
1424
|
+
"hidden": true,
|
|
1425
|
+
"name": "internal",
|
|
1426
|
+
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1427
|
+
"allowNo": false,
|
|
1428
|
+
"type": "boolean"
|
|
1429
|
+
},
|
|
1396
1430
|
"api-version": {
|
|
1397
1431
|
"aliases": [
|
|
1398
1432
|
"apiversion"
|
|
@@ -1404,40 +1438,6 @@
|
|
|
1404
1438
|
"multiple": false,
|
|
1405
1439
|
"type": "option"
|
|
1406
1440
|
},
|
|
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
|
-
},
|
|
1441
1441
|
"loglevel": {
|
|
1442
1442
|
"deprecated": {
|
|
1443
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."
|
|
@@ -1451,54 +1451,54 @@
|
|
|
1451
1451
|
},
|
|
1452
1452
|
"hasDynamicHelp": false,
|
|
1453
1453
|
"hiddenAliases": [],
|
|
1454
|
-
"id": "
|
|
1454
|
+
"id": "lightning:generate:test",
|
|
1455
1455
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1456
1456
|
"pluginName": "@salesforce/plugin-templates",
|
|
1457
1457
|
"pluginType": "core",
|
|
1458
1458
|
"strict": true,
|
|
1459
|
-
"summary": "Generate
|
|
1459
|
+
"summary": "Generate a Lightning test.",
|
|
1460
1460
|
"enableJsonFlag": true,
|
|
1461
1461
|
"isESM": true,
|
|
1462
1462
|
"relativePath": [
|
|
1463
1463
|
"lib",
|
|
1464
1464
|
"commands",
|
|
1465
|
-
"
|
|
1465
|
+
"lightning",
|
|
1466
1466
|
"generate",
|
|
1467
|
-
"
|
|
1467
|
+
"test.js"
|
|
1468
1468
|
],
|
|
1469
1469
|
"aliasPermutations": [
|
|
1470
|
-
"force:
|
|
1471
|
-
"
|
|
1472
|
-
"
|
|
1473
|
-
"
|
|
1474
|
-
"force:
|
|
1475
|
-
"
|
|
1476
|
-
"
|
|
1477
|
-
"
|
|
1478
|
-
"force:
|
|
1479
|
-
"
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1482
|
-
"force:
|
|
1483
|
-
"
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"force:create:
|
|
1487
|
-
"create:force:
|
|
1488
|
-
"create:
|
|
1489
|
-
"create:
|
|
1490
|
-
"force:create:
|
|
1491
|
-
"create:force:
|
|
1492
|
-
"create:
|
|
1493
|
-
"create:
|
|
1470
|
+
"force:lightning:test:create",
|
|
1471
|
+
"lightning:force:test:create",
|
|
1472
|
+
"lightning:test:force:create",
|
|
1473
|
+
"lightning:test:create:force",
|
|
1474
|
+
"force:test:lightning:create",
|
|
1475
|
+
"test:force:lightning:create",
|
|
1476
|
+
"test:lightning:force:create",
|
|
1477
|
+
"test:lightning:create:force",
|
|
1478
|
+
"force:test:create:lightning",
|
|
1479
|
+
"test:force:create:lightning",
|
|
1480
|
+
"test:create:force:lightning",
|
|
1481
|
+
"test:create:lightning:force",
|
|
1482
|
+
"force:lightning:create:test",
|
|
1483
|
+
"lightning:force:create:test",
|
|
1484
|
+
"lightning:create:force:test",
|
|
1485
|
+
"lightning:create:test:force",
|
|
1486
|
+
"force:create:lightning:test",
|
|
1487
|
+
"create:force:lightning:test",
|
|
1488
|
+
"create:lightning:force:test",
|
|
1489
|
+
"create:lightning:test:force",
|
|
1490
|
+
"force:create:test:lightning",
|
|
1491
|
+
"create:force:test:lightning",
|
|
1492
|
+
"create:test:force:lightning",
|
|
1493
|
+
"create:test:lightning:force"
|
|
1494
1494
|
],
|
|
1495
1495
|
"permutations": [
|
|
1496
|
-
"
|
|
1497
|
-
"generate:
|
|
1498
|
-
"generate:
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1501
|
-
"
|
|
1496
|
+
"lightning:generate:test",
|
|
1497
|
+
"generate:lightning:test",
|
|
1498
|
+
"generate:test:lightning",
|
|
1499
|
+
"lightning:test:generate",
|
|
1500
|
+
"test:lightning:generate",
|
|
1501
|
+
"test:generate:lightning"
|
|
1502
1502
|
]
|
|
1503
1503
|
},
|
|
1504
1504
|
"visualforce:generate:component": {
|
|
@@ -1805,5 +1805,5 @@
|
|
|
1805
1805
|
]
|
|
1806
1806
|
}
|
|
1807
1807
|
},
|
|
1808
|
-
"version": "56.
|
|
1808
|
+
"version": "56.2.0"
|
|
1809
1809
|
}
|