@salesforce/plugin-templates 56.0.20 → 56.0.22
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 +1913 -1356
- package/oclif.lock +1074 -648
- package/oclif.manifest.json +373 -373
- package/package.json +11 -11
package/oclif.manifest.json
CHANGED
|
@@ -389,16 +389,16 @@
|
|
|
389
389
|
"template:generate:analytics"
|
|
390
390
|
]
|
|
391
391
|
},
|
|
392
|
-
"
|
|
392
|
+
"apex:generate:class": {
|
|
393
393
|
"aliases": [
|
|
394
|
-
"force:
|
|
394
|
+
"force:apex:class:create"
|
|
395
395
|
],
|
|
396
396
|
"args": {},
|
|
397
397
|
"deprecateAliases": true,
|
|
398
|
-
"description": "Generates
|
|
398
|
+
"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.",
|
|
399
399
|
"examples": [
|
|
400
|
-
"Generate
|
|
401
|
-
"Similar to
|
|
400
|
+
"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",
|
|
401
|
+
"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"
|
|
402
402
|
],
|
|
403
403
|
"flags": {
|
|
404
404
|
"json": {
|
|
@@ -410,14 +410,14 @@
|
|
|
410
410
|
},
|
|
411
411
|
"name": {
|
|
412
412
|
"aliases": [
|
|
413
|
-
"
|
|
413
|
+
"classname"
|
|
414
414
|
],
|
|
415
415
|
"char": "n",
|
|
416
416
|
"deprecateAliases": true,
|
|
417
417
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
418
418
|
"name": "name",
|
|
419
419
|
"required": true,
|
|
420
|
-
"summary": "Name of the generated
|
|
420
|
+
"summary": "Name of the generated Apex class.",
|
|
421
421
|
"hasDynamicHelp": false,
|
|
422
422
|
"multiple": false,
|
|
423
423
|
"type": "option"
|
|
@@ -427,11 +427,14 @@
|
|
|
427
427
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
428
428
|
"name": "template",
|
|
429
429
|
"summary": "Template to use for file creation.",
|
|
430
|
-
"default": "
|
|
430
|
+
"default": "DefaultApexClass",
|
|
431
431
|
"hasDynamicHelp": false,
|
|
432
432
|
"multiple": false,
|
|
433
433
|
"options": [
|
|
434
|
-
"
|
|
434
|
+
"ApexException",
|
|
435
|
+
"ApexUnitTest",
|
|
436
|
+
"DefaultApexClass",
|
|
437
|
+
"InboundEmailService"
|
|
435
438
|
],
|
|
436
439
|
"type": "option"
|
|
437
440
|
},
|
|
@@ -460,14 +463,6 @@
|
|
|
460
463
|
"multiple": false,
|
|
461
464
|
"type": "option"
|
|
462
465
|
},
|
|
463
|
-
"internal": {
|
|
464
|
-
"char": "i",
|
|
465
|
-
"hidden": true,
|
|
466
|
-
"name": "internal",
|
|
467
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
468
|
-
"allowNo": false,
|
|
469
|
-
"type": "boolean"
|
|
470
|
-
},
|
|
471
466
|
"loglevel": {
|
|
472
467
|
"deprecated": {
|
|
473
468
|
"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."
|
|
@@ -481,68 +476,67 @@
|
|
|
481
476
|
},
|
|
482
477
|
"hasDynamicHelp": false,
|
|
483
478
|
"hiddenAliases": [],
|
|
484
|
-
"id": "
|
|
479
|
+
"id": "apex:generate:class",
|
|
485
480
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
486
481
|
"pluginName": "@salesforce/plugin-templates",
|
|
487
482
|
"pluginType": "core",
|
|
488
483
|
"strict": true,
|
|
489
|
-
"summary": "Generate
|
|
484
|
+
"summary": "Generate an Apex class.",
|
|
490
485
|
"enableJsonFlag": true,
|
|
491
486
|
"isESM": true,
|
|
492
487
|
"relativePath": [
|
|
493
488
|
"lib",
|
|
494
489
|
"commands",
|
|
495
|
-
"
|
|
490
|
+
"apex",
|
|
496
491
|
"generate",
|
|
497
|
-
"
|
|
492
|
+
"class.js"
|
|
498
493
|
],
|
|
499
494
|
"aliasPermutations": [
|
|
500
|
-
"force:
|
|
501
|
-
"
|
|
502
|
-
"
|
|
503
|
-
"
|
|
504
|
-
"force:
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"
|
|
508
|
-
"force:
|
|
509
|
-
"
|
|
510
|
-
"
|
|
511
|
-
"
|
|
512
|
-
"force:
|
|
513
|
-
"
|
|
514
|
-
"
|
|
515
|
-
"
|
|
516
|
-
"force:create:
|
|
517
|
-
"create:force:
|
|
518
|
-
"create:
|
|
519
|
-
"create:
|
|
520
|
-
"force:create:
|
|
521
|
-
"create:force:
|
|
522
|
-
"create:
|
|
523
|
-
"create:
|
|
495
|
+
"force:apex:class:create",
|
|
496
|
+
"apex:force:class:create",
|
|
497
|
+
"apex:class:force:create",
|
|
498
|
+
"apex:class:create:force",
|
|
499
|
+
"force:class:apex:create",
|
|
500
|
+
"class:force:apex:create",
|
|
501
|
+
"class:apex:force:create",
|
|
502
|
+
"class:apex:create:force",
|
|
503
|
+
"force:class:create:apex",
|
|
504
|
+
"class:force:create:apex",
|
|
505
|
+
"class:create:force:apex",
|
|
506
|
+
"class:create:apex:force",
|
|
507
|
+
"force:apex:create:class",
|
|
508
|
+
"apex:force:create:class",
|
|
509
|
+
"apex:create:force:class",
|
|
510
|
+
"apex:create:class:force",
|
|
511
|
+
"force:create:apex:class",
|
|
512
|
+
"create:force:apex:class",
|
|
513
|
+
"create:apex:force:class",
|
|
514
|
+
"create:apex:class:force",
|
|
515
|
+
"force:create:class:apex",
|
|
516
|
+
"create:force:class:apex",
|
|
517
|
+
"create:class:force:apex",
|
|
518
|
+
"create:class:apex:force"
|
|
524
519
|
],
|
|
525
520
|
"permutations": [
|
|
526
|
-
"
|
|
527
|
-
"generate:
|
|
528
|
-
"generate:
|
|
529
|
-
"
|
|
530
|
-
"
|
|
531
|
-
"
|
|
521
|
+
"apex:generate:class",
|
|
522
|
+
"generate:apex:class",
|
|
523
|
+
"generate:class:apex",
|
|
524
|
+
"apex:class:generate",
|
|
525
|
+
"class:apex:generate",
|
|
526
|
+
"class:generate:apex"
|
|
532
527
|
]
|
|
533
528
|
},
|
|
534
|
-
"
|
|
529
|
+
"apex:generate:trigger": {
|
|
535
530
|
"aliases": [
|
|
536
|
-
"force:
|
|
531
|
+
"force:apex:trigger:create"
|
|
537
532
|
],
|
|
538
533
|
"args": {},
|
|
539
534
|
"deprecateAliases": true,
|
|
540
|
-
"description": "Generates the
|
|
535
|
+
"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.",
|
|
541
536
|
"examples": [
|
|
542
|
-
"Generate the
|
|
543
|
-
"
|
|
544
|
-
"Generate
|
|
545
|
-
"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"
|
|
537
|
+
"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",
|
|
538
|
+
"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",
|
|
539
|
+
"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\""
|
|
546
540
|
],
|
|
547
541
|
"flags": {
|
|
548
542
|
"json": {
|
|
@@ -554,14 +548,14 @@
|
|
|
554
548
|
},
|
|
555
549
|
"name": {
|
|
556
550
|
"aliases": [
|
|
557
|
-
"
|
|
551
|
+
"triggername"
|
|
558
552
|
],
|
|
559
553
|
"char": "n",
|
|
560
554
|
"deprecateAliases": true,
|
|
561
555
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
562
556
|
"name": "name",
|
|
563
557
|
"required": true,
|
|
564
|
-
"summary": "Name of the generated
|
|
558
|
+
"summary": "Name of the generated Apex trigger",
|
|
565
559
|
"hasDynamicHelp": false,
|
|
566
560
|
"multiple": false,
|
|
567
561
|
"type": "option"
|
|
@@ -571,13 +565,11 @@
|
|
|
571
565
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
572
566
|
"name": "template",
|
|
573
567
|
"summary": "Template to use for file creation.",
|
|
574
|
-
"default": "
|
|
568
|
+
"default": "ApexTrigger",
|
|
575
569
|
"hasDynamicHelp": false,
|
|
576
570
|
"multiple": false,
|
|
577
571
|
"options": [
|
|
578
|
-
"
|
|
579
|
-
"analyticsDashboard",
|
|
580
|
-
"analyticsDashboardWithStep"
|
|
572
|
+
"ApexTrigger"
|
|
581
573
|
],
|
|
582
574
|
"type": "option"
|
|
583
575
|
},
|
|
@@ -606,26 +598,40 @@
|
|
|
606
598
|
"multiple": false,
|
|
607
599
|
"type": "option"
|
|
608
600
|
},
|
|
609
|
-
"
|
|
610
|
-
"
|
|
611
|
-
"
|
|
612
|
-
"
|
|
601
|
+
"sobject": {
|
|
602
|
+
"char": "s",
|
|
603
|
+
"name": "sobject",
|
|
604
|
+
"summary": "Salesforce object to generate a trigger on.",
|
|
605
|
+
"default": "SOBJECT",
|
|
613
606
|
"hasDynamicHelp": false,
|
|
614
607
|
"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,
|
|
615
624
|
"options": [
|
|
616
|
-
"
|
|
617
|
-
"
|
|
625
|
+
"before insert",
|
|
626
|
+
"before update",
|
|
627
|
+
"before delete",
|
|
628
|
+
"after insert",
|
|
629
|
+
"after update",
|
|
630
|
+
"after delete",
|
|
631
|
+
"after undelete"
|
|
618
632
|
],
|
|
619
633
|
"type": "option"
|
|
620
634
|
},
|
|
621
|
-
"internal": {
|
|
622
|
-
"char": "i",
|
|
623
|
-
"hidden": true,
|
|
624
|
-
"name": "internal",
|
|
625
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
626
|
-
"allowNo": false,
|
|
627
|
-
"type": "boolean"
|
|
628
|
-
},
|
|
629
635
|
"loglevel": {
|
|
630
636
|
"deprecated": {
|
|
631
637
|
"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."
|
|
@@ -639,66 +645,66 @@
|
|
|
639
645
|
},
|
|
640
646
|
"hasDynamicHelp": false,
|
|
641
647
|
"hiddenAliases": [],
|
|
642
|
-
"id": "
|
|
648
|
+
"id": "apex:generate:trigger",
|
|
643
649
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
644
650
|
"pluginName": "@salesforce/plugin-templates",
|
|
645
651
|
"pluginType": "core",
|
|
646
652
|
"strict": true,
|
|
647
|
-
"summary": "Generate
|
|
653
|
+
"summary": "Generate an Apex trigger.",
|
|
648
654
|
"enableJsonFlag": true,
|
|
649
655
|
"isESM": true,
|
|
650
656
|
"relativePath": [
|
|
651
657
|
"lib",
|
|
652
658
|
"commands",
|
|
653
|
-
"
|
|
659
|
+
"apex",
|
|
654
660
|
"generate",
|
|
655
|
-
"
|
|
661
|
+
"trigger.js"
|
|
656
662
|
],
|
|
657
663
|
"aliasPermutations": [
|
|
658
|
-
"force:
|
|
659
|
-
"
|
|
660
|
-
"
|
|
661
|
-
"
|
|
662
|
-
"force:
|
|
663
|
-
"
|
|
664
|
-
"
|
|
665
|
-
"
|
|
666
|
-
"force:
|
|
667
|
-
"
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"force:
|
|
671
|
-
"
|
|
672
|
-
"
|
|
673
|
-
"
|
|
674
|
-
"force:create:
|
|
675
|
-
"create:force:
|
|
676
|
-
"create:
|
|
677
|
-
"create:
|
|
678
|
-
"force:create:
|
|
679
|
-
"create:force:
|
|
680
|
-
"create:
|
|
681
|
-
"create:
|
|
664
|
+
"force:apex:trigger:create",
|
|
665
|
+
"apex:force:trigger:create",
|
|
666
|
+
"apex:trigger:force:create",
|
|
667
|
+
"apex:trigger:create:force",
|
|
668
|
+
"force:trigger:apex:create",
|
|
669
|
+
"trigger:force:apex:create",
|
|
670
|
+
"trigger:apex:force:create",
|
|
671
|
+
"trigger:apex:create:force",
|
|
672
|
+
"force:trigger:create:apex",
|
|
673
|
+
"trigger:force:create:apex",
|
|
674
|
+
"trigger:create:force:apex",
|
|
675
|
+
"trigger:create:apex:force",
|
|
676
|
+
"force:apex:create:trigger",
|
|
677
|
+
"apex:force:create:trigger",
|
|
678
|
+
"apex:create:force:trigger",
|
|
679
|
+
"apex:create:trigger:force",
|
|
680
|
+
"force:create:apex:trigger",
|
|
681
|
+
"create:force:apex:trigger",
|
|
682
|
+
"create:apex:force:trigger",
|
|
683
|
+
"create:apex:trigger:force",
|
|
684
|
+
"force:create:trigger:apex",
|
|
685
|
+
"create:force:trigger:apex",
|
|
686
|
+
"create:trigger:force:apex",
|
|
687
|
+
"create:trigger:apex:force"
|
|
682
688
|
],
|
|
683
689
|
"permutations": [
|
|
684
|
-
"
|
|
685
|
-
"generate:
|
|
686
|
-
"generate:
|
|
687
|
-
"
|
|
688
|
-
"
|
|
689
|
-
"
|
|
690
|
+
"apex:generate:trigger",
|
|
691
|
+
"generate:apex:trigger",
|
|
692
|
+
"generate:trigger:apex",
|
|
693
|
+
"apex:trigger:generate",
|
|
694
|
+
"trigger:apex:generate",
|
|
695
|
+
"trigger:generate:apex"
|
|
690
696
|
]
|
|
691
697
|
},
|
|
692
|
-
"lightning:generate:
|
|
698
|
+
"lightning:generate:app": {
|
|
693
699
|
"aliases": [
|
|
694
|
-
"force:lightning:
|
|
700
|
+
"force:lightning:app:create"
|
|
695
701
|
],
|
|
696
702
|
"args": {},
|
|
697
703
|
"deprecateAliases": true,
|
|
698
|
-
"description": "Generates a Lightning
|
|
704
|
+
"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.",
|
|
699
705
|
"examples": [
|
|
700
|
-
"Generate the metadata files for a Lightning
|
|
701
|
-
"Similar to previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name
|
|
706
|
+
"Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
|
|
707
|
+
"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"
|
|
702
708
|
],
|
|
703
709
|
"flags": {
|
|
704
710
|
"json": {
|
|
@@ -710,14 +716,14 @@
|
|
|
710
716
|
},
|
|
711
717
|
"name": {
|
|
712
718
|
"aliases": [
|
|
713
|
-
"
|
|
719
|
+
"appname"
|
|
714
720
|
],
|
|
715
721
|
"char": "n",
|
|
716
722
|
"deprecateAliases": true,
|
|
717
723
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
718
724
|
"name": "name",
|
|
719
725
|
"required": true,
|
|
720
|
-
"summary": "Name of the generated Lightning
|
|
726
|
+
"summary": "Name of the generated Lightning App.",
|
|
721
727
|
"hasDynamicHelp": false,
|
|
722
728
|
"multiple": false,
|
|
723
729
|
"type": "option"
|
|
@@ -727,11 +733,11 @@
|
|
|
727
733
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
728
734
|
"name": "template",
|
|
729
735
|
"summary": "Template to use for file creation.",
|
|
730
|
-
"default": "
|
|
736
|
+
"default": "DefaultLightningApp",
|
|
731
737
|
"hasDynamicHelp": false,
|
|
732
738
|
"multiple": false,
|
|
733
739
|
"options": [
|
|
734
|
-
"
|
|
740
|
+
"DefaultLightningApp"
|
|
735
741
|
],
|
|
736
742
|
"type": "option"
|
|
737
743
|
},
|
|
@@ -781,12 +787,12 @@
|
|
|
781
787
|
},
|
|
782
788
|
"hasDynamicHelp": false,
|
|
783
789
|
"hiddenAliases": [],
|
|
784
|
-
"id": "lightning:generate:
|
|
790
|
+
"id": "lightning:generate:app",
|
|
785
791
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
786
792
|
"pluginName": "@salesforce/plugin-templates",
|
|
787
793
|
"pluginType": "core",
|
|
788
794
|
"strict": true,
|
|
789
|
-
"summary": "Generate a Lightning
|
|
795
|
+
"summary": "Generate a Lightning App.",
|
|
790
796
|
"enableJsonFlag": true,
|
|
791
797
|
"isESM": true,
|
|
792
798
|
"relativePath": [
|
|
@@ -794,53 +800,55 @@
|
|
|
794
800
|
"commands",
|
|
795
801
|
"lightning",
|
|
796
802
|
"generate",
|
|
797
|
-
"
|
|
803
|
+
"app.js"
|
|
798
804
|
],
|
|
799
805
|
"aliasPermutations": [
|
|
800
|
-
"force:lightning:
|
|
801
|
-
"lightning:force:
|
|
802
|
-
"lightning:
|
|
803
|
-
"lightning:
|
|
804
|
-
"force:
|
|
805
|
-
"
|
|
806
|
-
"
|
|
807
|
-
"
|
|
808
|
-
"force:
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"force:lightning:create:
|
|
813
|
-
"lightning:force:create:
|
|
814
|
-
"lightning:create:force:
|
|
815
|
-
"lightning:create:
|
|
816
|
-
"force:create:lightning:
|
|
817
|
-
"create:force:lightning:
|
|
818
|
-
"create:lightning:force:
|
|
819
|
-
"create:lightning:
|
|
820
|
-
"force:create:
|
|
821
|
-
"create:force:
|
|
822
|
-
"create:
|
|
823
|
-
"create:
|
|
806
|
+
"force:lightning:app:create",
|
|
807
|
+
"lightning:force:app:create",
|
|
808
|
+
"lightning:app:force:create",
|
|
809
|
+
"lightning:app:create:force",
|
|
810
|
+
"force:app:lightning:create",
|
|
811
|
+
"app:force:lightning:create",
|
|
812
|
+
"app:lightning:force:create",
|
|
813
|
+
"app:lightning:create:force",
|
|
814
|
+
"force:app:create:lightning",
|
|
815
|
+
"app:force:create:lightning",
|
|
816
|
+
"app:create:force:lightning",
|
|
817
|
+
"app:create:lightning:force",
|
|
818
|
+
"force:lightning:create:app",
|
|
819
|
+
"lightning:force:create:app",
|
|
820
|
+
"lightning:create:force:app",
|
|
821
|
+
"lightning:create:app:force",
|
|
822
|
+
"force:create:lightning:app",
|
|
823
|
+
"create:force:lightning:app",
|
|
824
|
+
"create:lightning:force:app",
|
|
825
|
+
"create:lightning:app:force",
|
|
826
|
+
"force:create:app:lightning",
|
|
827
|
+
"create:force:app:lightning",
|
|
828
|
+
"create:app:force:lightning",
|
|
829
|
+
"create:app:lightning:force"
|
|
824
830
|
],
|
|
825
831
|
"permutations": [
|
|
826
|
-
"lightning:generate:
|
|
827
|
-
"generate:lightning:
|
|
828
|
-
"generate:
|
|
829
|
-
"lightning:
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
+
"lightning:generate:app",
|
|
833
|
+
"generate:lightning:app",
|
|
834
|
+
"generate:app:lightning",
|
|
835
|
+
"lightning:app:generate",
|
|
836
|
+
"app:lightning:generate",
|
|
837
|
+
"app:generate:lightning"
|
|
832
838
|
]
|
|
833
839
|
},
|
|
834
|
-
"lightning:generate:
|
|
840
|
+
"lightning:generate:component": {
|
|
835
841
|
"aliases": [
|
|
836
|
-
"force:lightning:
|
|
842
|
+
"force:lightning:component:create"
|
|
837
843
|
],
|
|
838
844
|
"args": {},
|
|
839
845
|
"deprecateAliases": true,
|
|
840
|
-
"description": "Generates
|
|
846
|
+
"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.",
|
|
841
847
|
"examples": [
|
|
842
|
-
"Generate the metadata files for
|
|
843
|
-
"
|
|
848
|
+
"Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
|
|
849
|
+
"Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
|
|
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"
|
|
844
852
|
],
|
|
845
853
|
"flags": {
|
|
846
854
|
"json": {
|
|
@@ -852,14 +860,14 @@
|
|
|
852
860
|
},
|
|
853
861
|
"name": {
|
|
854
862
|
"aliases": [
|
|
855
|
-
"
|
|
863
|
+
"componentname"
|
|
856
864
|
],
|
|
857
865
|
"char": "n",
|
|
858
866
|
"deprecateAliases": true,
|
|
859
867
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
860
868
|
"name": "name",
|
|
861
869
|
"required": true,
|
|
862
|
-
"summary": "Name of the generated Lightning
|
|
870
|
+
"summary": "Name of the generated Lightning Component.",
|
|
863
871
|
"hasDynamicHelp": false,
|
|
864
872
|
"multiple": false,
|
|
865
873
|
"type": "option"
|
|
@@ -869,11 +877,13 @@
|
|
|
869
877
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
870
878
|
"name": "template",
|
|
871
879
|
"summary": "Template to use for file creation.",
|
|
872
|
-
"default": "
|
|
880
|
+
"default": "default",
|
|
873
881
|
"hasDynamicHelp": false,
|
|
874
882
|
"multiple": false,
|
|
875
883
|
"options": [
|
|
876
|
-
"
|
|
884
|
+
"default",
|
|
885
|
+
"analyticsDashboard",
|
|
886
|
+
"analyticsDashboardWithStep"
|
|
877
887
|
],
|
|
878
888
|
"type": "option"
|
|
879
889
|
},
|
|
@@ -902,6 +912,18 @@
|
|
|
902
912
|
"multiple": false,
|
|
903
913
|
"type": "option"
|
|
904
914
|
},
|
|
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
|
+
},
|
|
905
927
|
"internal": {
|
|
906
928
|
"char": "i",
|
|
907
929
|
"hidden": true,
|
|
@@ -923,12 +945,12 @@
|
|
|
923
945
|
},
|
|
924
946
|
"hasDynamicHelp": false,
|
|
925
947
|
"hiddenAliases": [],
|
|
926
|
-
"id": "lightning:generate:
|
|
948
|
+
"id": "lightning:generate:component",
|
|
927
949
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
928
950
|
"pluginName": "@salesforce/plugin-templates",
|
|
929
951
|
"pluginType": "core",
|
|
930
952
|
"strict": true,
|
|
931
|
-
"summary": "Generate a Lightning
|
|
953
|
+
"summary": "Generate a bundle for an Aura component or a Lightning web component.",
|
|
932
954
|
"enableJsonFlag": true,
|
|
933
955
|
"isESM": true,
|
|
934
956
|
"relativePath": [
|
|
@@ -936,53 +958,53 @@
|
|
|
936
958
|
"commands",
|
|
937
959
|
"lightning",
|
|
938
960
|
"generate",
|
|
939
|
-
"
|
|
961
|
+
"component.js"
|
|
940
962
|
],
|
|
941
963
|
"aliasPermutations": [
|
|
942
|
-
"force:lightning:
|
|
943
|
-
"lightning:force:
|
|
944
|
-
"lightning:
|
|
945
|
-
"lightning:
|
|
946
|
-
"force:
|
|
947
|
-
"
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
"force:
|
|
951
|
-
"
|
|
952
|
-
"
|
|
953
|
-
"
|
|
954
|
-
"force:lightning:create:
|
|
955
|
-
"lightning:force:create:
|
|
956
|
-
"lightning:create:force:
|
|
957
|
-
"lightning:create:
|
|
958
|
-
"force:create:lightning:
|
|
959
|
-
"create:force:lightning:
|
|
960
|
-
"create:lightning:force:
|
|
961
|
-
"create:lightning:
|
|
962
|
-
"force:create:
|
|
963
|
-
"create:force:
|
|
964
|
-
"create:
|
|
965
|
-
"create:
|
|
964
|
+
"force:lightning:component:create",
|
|
965
|
+
"lightning:force:component:create",
|
|
966
|
+
"lightning:component:force:create",
|
|
967
|
+
"lightning:component:create:force",
|
|
968
|
+
"force:component:lightning:create",
|
|
969
|
+
"component:force:lightning:create",
|
|
970
|
+
"component:lightning:force:create",
|
|
971
|
+
"component:lightning:create:force",
|
|
972
|
+
"force:component:create:lightning",
|
|
973
|
+
"component:force:create:lightning",
|
|
974
|
+
"component:create:force:lightning",
|
|
975
|
+
"component:create:lightning:force",
|
|
976
|
+
"force:lightning:create:component",
|
|
977
|
+
"lightning:force:create:component",
|
|
978
|
+
"lightning:create:force:component",
|
|
979
|
+
"lightning:create:component:force",
|
|
980
|
+
"force:create:lightning:component",
|
|
981
|
+
"create:force:lightning:component",
|
|
982
|
+
"create:lightning:force:component",
|
|
983
|
+
"create:lightning:component:force",
|
|
984
|
+
"force:create:component:lightning",
|
|
985
|
+
"create:force:component:lightning",
|
|
986
|
+
"create:component:force:lightning",
|
|
987
|
+
"create:component:lightning:force"
|
|
966
988
|
],
|
|
967
989
|
"permutations": [
|
|
968
|
-
"lightning:generate:
|
|
969
|
-
"generate:lightning:
|
|
970
|
-
"generate:
|
|
971
|
-
"lightning:
|
|
972
|
-
"
|
|
973
|
-
"
|
|
990
|
+
"lightning:generate:component",
|
|
991
|
+
"generate:lightning:component",
|
|
992
|
+
"generate:component:lightning",
|
|
993
|
+
"lightning:component:generate",
|
|
994
|
+
"component:lightning:generate",
|
|
995
|
+
"component:generate:lightning"
|
|
974
996
|
]
|
|
975
997
|
},
|
|
976
|
-
"lightning:generate:
|
|
998
|
+
"lightning:generate:event": {
|
|
977
999
|
"aliases": [
|
|
978
|
-
"force:lightning:
|
|
1000
|
+
"force:lightning:event:create"
|
|
979
1001
|
],
|
|
980
1002
|
"args": {},
|
|
981
1003
|
"deprecateAliases": true,
|
|
982
|
-
"description": "Generates
|
|
1004
|
+
"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.",
|
|
983
1005
|
"examples": [
|
|
984
|
-
"Generate the metadata files for
|
|
985
|
-
"Similar to
|
|
1006
|
+
"Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
|
|
1007
|
+
"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"
|
|
986
1008
|
],
|
|
987
1009
|
"flags": {
|
|
988
1010
|
"json": {
|
|
@@ -994,14 +1016,14 @@
|
|
|
994
1016
|
},
|
|
995
1017
|
"name": {
|
|
996
1018
|
"aliases": [
|
|
997
|
-
"
|
|
1019
|
+
"eventname"
|
|
998
1020
|
],
|
|
999
1021
|
"char": "n",
|
|
1000
1022
|
"deprecateAliases": true,
|
|
1001
|
-
"description": "
|
|
1023
|
+
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1002
1024
|
"name": "name",
|
|
1003
1025
|
"required": true,
|
|
1004
|
-
"summary": "Name of the generated Lightning
|
|
1026
|
+
"summary": "Name of the generated Lightning Event.",
|
|
1005
1027
|
"hasDynamicHelp": false,
|
|
1006
1028
|
"multiple": false,
|
|
1007
1029
|
"type": "option"
|
|
@@ -1011,11 +1033,11 @@
|
|
|
1011
1033
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1012
1034
|
"name": "template",
|
|
1013
1035
|
"summary": "Template to use for file creation.",
|
|
1014
|
-
"default": "
|
|
1036
|
+
"default": "DefaultLightningEvt",
|
|
1015
1037
|
"hasDynamicHelp": false,
|
|
1016
1038
|
"multiple": false,
|
|
1017
1039
|
"options": [
|
|
1018
|
-
"
|
|
1040
|
+
"DefaultLightningEvt"
|
|
1019
1041
|
],
|
|
1020
1042
|
"type": "option"
|
|
1021
1043
|
},
|
|
@@ -1033,14 +1055,6 @@
|
|
|
1033
1055
|
"multiple": false,
|
|
1034
1056
|
"type": "option"
|
|
1035
1057
|
},
|
|
1036
|
-
"internal": {
|
|
1037
|
-
"char": "i",
|
|
1038
|
-
"hidden": true,
|
|
1039
|
-
"name": "internal",
|
|
1040
|
-
"summary": "Generate lightning bundles without creating a -meta.xml file.",
|
|
1041
|
-
"allowNo": false,
|
|
1042
|
-
"type": "boolean"
|
|
1043
|
-
},
|
|
1044
1058
|
"api-version": {
|
|
1045
1059
|
"aliases": [
|
|
1046
1060
|
"apiversion"
|
|
@@ -1052,6 +1066,14 @@
|
|
|
1052
1066
|
"multiple": false,
|
|
1053
1067
|
"type": "option"
|
|
1054
1068
|
},
|
|
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
|
+
},
|
|
1055
1077
|
"loglevel": {
|
|
1056
1078
|
"deprecated": {
|
|
1057
1079
|
"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."
|
|
@@ -1065,12 +1087,12 @@
|
|
|
1065
1087
|
},
|
|
1066
1088
|
"hasDynamicHelp": false,
|
|
1067
1089
|
"hiddenAliases": [],
|
|
1068
|
-
"id": "lightning:generate:
|
|
1090
|
+
"id": "lightning:generate:event",
|
|
1069
1091
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1070
1092
|
"pluginName": "@salesforce/plugin-templates",
|
|
1071
1093
|
"pluginType": "core",
|
|
1072
1094
|
"strict": true,
|
|
1073
|
-
"summary": "Generate a Lightning
|
|
1095
|
+
"summary": "Generate a Lightning Event.",
|
|
1074
1096
|
"enableJsonFlag": true,
|
|
1075
1097
|
"isESM": true,
|
|
1076
1098
|
"relativePath": [
|
|
@@ -1078,53 +1100,53 @@
|
|
|
1078
1100
|
"commands",
|
|
1079
1101
|
"lightning",
|
|
1080
1102
|
"generate",
|
|
1081
|
-
"
|
|
1103
|
+
"event.js"
|
|
1082
1104
|
],
|
|
1083
1105
|
"aliasPermutations": [
|
|
1084
|
-
"force:lightning:
|
|
1085
|
-
"lightning:force:
|
|
1086
|
-
"lightning:
|
|
1087
|
-
"lightning:
|
|
1088
|
-
"force:
|
|
1089
|
-
"
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
"force:
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"force:lightning:create:
|
|
1097
|
-
"lightning:force:create:
|
|
1098
|
-
"lightning:create:force:
|
|
1099
|
-
"lightning:create:
|
|
1100
|
-
"force:create:lightning:
|
|
1101
|
-
"create:force:lightning:
|
|
1102
|
-
"create:lightning:force:
|
|
1103
|
-
"create:lightning:
|
|
1104
|
-
"force:create:
|
|
1105
|
-
"create:force:
|
|
1106
|
-
"create:
|
|
1107
|
-
"create:
|
|
1106
|
+
"force:lightning:event:create",
|
|
1107
|
+
"lightning:force:event:create",
|
|
1108
|
+
"lightning:event:force:create",
|
|
1109
|
+
"lightning:event:create:force",
|
|
1110
|
+
"force:event:lightning:create",
|
|
1111
|
+
"event:force:lightning:create",
|
|
1112
|
+
"event:lightning:force:create",
|
|
1113
|
+
"event:lightning:create:force",
|
|
1114
|
+
"force:event:create:lightning",
|
|
1115
|
+
"event:force:create:lightning",
|
|
1116
|
+
"event:create:force:lightning",
|
|
1117
|
+
"event:create:lightning:force",
|
|
1118
|
+
"force:lightning:create:event",
|
|
1119
|
+
"lightning:force:create:event",
|
|
1120
|
+
"lightning:create:force:event",
|
|
1121
|
+
"lightning:create:event:force",
|
|
1122
|
+
"force:create:lightning:event",
|
|
1123
|
+
"create:force:lightning:event",
|
|
1124
|
+
"create:lightning:force:event",
|
|
1125
|
+
"create:lightning:event:force",
|
|
1126
|
+
"force:create:event:lightning",
|
|
1127
|
+
"create:force:event:lightning",
|
|
1128
|
+
"create:event:force:lightning",
|
|
1129
|
+
"create:event:lightning:force"
|
|
1108
1130
|
],
|
|
1109
1131
|
"permutations": [
|
|
1110
|
-
"lightning:generate:
|
|
1111
|
-
"generate:lightning:
|
|
1112
|
-
"generate:
|
|
1113
|
-
"lightning:
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1132
|
+
"lightning:generate:event",
|
|
1133
|
+
"generate:lightning:event",
|
|
1134
|
+
"generate:event:lightning",
|
|
1135
|
+
"lightning:event:generate",
|
|
1136
|
+
"event:lightning:generate",
|
|
1137
|
+
"event:generate:lightning"
|
|
1116
1138
|
]
|
|
1117
1139
|
},
|
|
1118
|
-
"
|
|
1140
|
+
"lightning:generate:interface": {
|
|
1119
1141
|
"aliases": [
|
|
1120
|
-
"force:
|
|
1142
|
+
"force:lightning:interface:create"
|
|
1121
1143
|
],
|
|
1122
1144
|
"args": {},
|
|
1123
1145
|
"deprecateAliases": true,
|
|
1124
|
-
"description": "Generates
|
|
1146
|
+
"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.",
|
|
1125
1147
|
"examples": [
|
|
1126
|
-
"Generate
|
|
1127
|
-
"Similar to previous example
|
|
1148
|
+
"Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
|
|
1149
|
+
"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"
|
|
1128
1150
|
],
|
|
1129
1151
|
"flags": {
|
|
1130
1152
|
"json": {
|
|
@@ -1136,14 +1158,14 @@
|
|
|
1136
1158
|
},
|
|
1137
1159
|
"name": {
|
|
1138
1160
|
"aliases": [
|
|
1139
|
-
"
|
|
1161
|
+
"interfacename"
|
|
1140
1162
|
],
|
|
1141
1163
|
"char": "n",
|
|
1142
1164
|
"deprecateAliases": true,
|
|
1143
1165
|
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
1144
1166
|
"name": "name",
|
|
1145
1167
|
"required": true,
|
|
1146
|
-
"summary": "Name of the generated
|
|
1168
|
+
"summary": "Name of the generated Lightning Interface.",
|
|
1147
1169
|
"hasDynamicHelp": false,
|
|
1148
1170
|
"multiple": false,
|
|
1149
1171
|
"type": "option"
|
|
@@ -1153,14 +1175,11 @@
|
|
|
1153
1175
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1154
1176
|
"name": "template",
|
|
1155
1177
|
"summary": "Template to use for file creation.",
|
|
1156
|
-
"default": "
|
|
1178
|
+
"default": "DefaultLightningIntf",
|
|
1157
1179
|
"hasDynamicHelp": false,
|
|
1158
1180
|
"multiple": false,
|
|
1159
1181
|
"options": [
|
|
1160
|
-
"
|
|
1161
|
-
"ApexUnitTest",
|
|
1162
|
-
"DefaultApexClass",
|
|
1163
|
-
"InboundEmailService"
|
|
1182
|
+
"DefaultLightningIntf"
|
|
1164
1183
|
],
|
|
1165
1184
|
"type": "option"
|
|
1166
1185
|
},
|
|
@@ -1189,6 +1208,14 @@
|
|
|
1189
1208
|
"multiple": false,
|
|
1190
1209
|
"type": "option"
|
|
1191
1210
|
},
|
|
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
|
+
},
|
|
1192
1219
|
"loglevel": {
|
|
1193
1220
|
"deprecated": {
|
|
1194
1221
|
"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."
|
|
@@ -1202,67 +1229,66 @@
|
|
|
1202
1229
|
},
|
|
1203
1230
|
"hasDynamicHelp": false,
|
|
1204
1231
|
"hiddenAliases": [],
|
|
1205
|
-
"id": "
|
|
1232
|
+
"id": "lightning:generate:interface",
|
|
1206
1233
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1207
1234
|
"pluginName": "@salesforce/plugin-templates",
|
|
1208
1235
|
"pluginType": "core",
|
|
1209
1236
|
"strict": true,
|
|
1210
|
-
"summary": "Generate
|
|
1237
|
+
"summary": "Generate a Lightning Interface.",
|
|
1211
1238
|
"enableJsonFlag": true,
|
|
1212
1239
|
"isESM": true,
|
|
1213
1240
|
"relativePath": [
|
|
1214
1241
|
"lib",
|
|
1215
1242
|
"commands",
|
|
1216
|
-
"
|
|
1243
|
+
"lightning",
|
|
1217
1244
|
"generate",
|
|
1218
|
-
"
|
|
1245
|
+
"interface.js"
|
|
1219
1246
|
],
|
|
1220
1247
|
"aliasPermutations": [
|
|
1221
|
-
"force:
|
|
1222
|
-
"
|
|
1223
|
-
"
|
|
1224
|
-
"
|
|
1225
|
-
"force:
|
|
1226
|
-
"
|
|
1227
|
-
"
|
|
1228
|
-
"
|
|
1229
|
-
"force:
|
|
1230
|
-
"
|
|
1231
|
-
"
|
|
1232
|
-
"
|
|
1233
|
-
"force:
|
|
1234
|
-
"
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1237
|
-
"force:create:
|
|
1238
|
-
"create:force:
|
|
1239
|
-
"create:
|
|
1240
|
-
"create:
|
|
1241
|
-
"force:create:
|
|
1242
|
-
"create:force:
|
|
1243
|
-
"create:
|
|
1244
|
-
"create:
|
|
1248
|
+
"force:lightning:interface:create",
|
|
1249
|
+
"lightning:force:interface:create",
|
|
1250
|
+
"lightning:interface:force:create",
|
|
1251
|
+
"lightning:interface:create:force",
|
|
1252
|
+
"force:interface:lightning:create",
|
|
1253
|
+
"interface:force:lightning:create",
|
|
1254
|
+
"interface:lightning:force:create",
|
|
1255
|
+
"interface:lightning:create:force",
|
|
1256
|
+
"force:interface:create:lightning",
|
|
1257
|
+
"interface:force:create:lightning",
|
|
1258
|
+
"interface:create:force:lightning",
|
|
1259
|
+
"interface:create:lightning:force",
|
|
1260
|
+
"force:lightning:create:interface",
|
|
1261
|
+
"lightning:force:create:interface",
|
|
1262
|
+
"lightning:create:force:interface",
|
|
1263
|
+
"lightning:create:interface:force",
|
|
1264
|
+
"force:create:lightning:interface",
|
|
1265
|
+
"create:force:lightning:interface",
|
|
1266
|
+
"create:lightning:force:interface",
|
|
1267
|
+
"create:lightning:interface:force",
|
|
1268
|
+
"force:create:interface:lightning",
|
|
1269
|
+
"create:force:interface:lightning",
|
|
1270
|
+
"create:interface:force:lightning",
|
|
1271
|
+
"create:interface:lightning:force"
|
|
1245
1272
|
],
|
|
1246
1273
|
"permutations": [
|
|
1247
|
-
"
|
|
1248
|
-
"generate:
|
|
1249
|
-
"generate:
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
"
|
|
1274
|
+
"lightning:generate:interface",
|
|
1275
|
+
"generate:lightning:interface",
|
|
1276
|
+
"generate:interface:lightning",
|
|
1277
|
+
"lightning:interface:generate",
|
|
1278
|
+
"interface:lightning:generate",
|
|
1279
|
+
"interface:generate:lightning"
|
|
1253
1280
|
]
|
|
1254
1281
|
},
|
|
1255
|
-
"
|
|
1282
|
+
"lightning:generate:test": {
|
|
1256
1283
|
"aliases": [
|
|
1257
|
-
"force:
|
|
1284
|
+
"force:lightning:test:create"
|
|
1258
1285
|
],
|
|
1259
1286
|
"args": {},
|
|
1260
1287
|
"deprecateAliases": true,
|
|
1261
|
-
"description": "Generates the
|
|
1288
|
+
"description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
|
|
1262
1289
|
"examples": [
|
|
1263
|
-
"Generate
|
|
1264
|
-
"Similar to the previous example
|
|
1265
|
-
"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\""
|
|
1290
|
+
"Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
|
|
1291
|
+
"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"
|
|
1266
1292
|
],
|
|
1267
1293
|
"flags": {
|
|
1268
1294
|
"json": {
|
|
@@ -1274,14 +1300,14 @@
|
|
|
1274
1300
|
},
|
|
1275
1301
|
"name": {
|
|
1276
1302
|
"aliases": [
|
|
1277
|
-
"
|
|
1303
|
+
"testname"
|
|
1278
1304
|
],
|
|
1279
1305
|
"char": "n",
|
|
1280
1306
|
"deprecateAliases": true,
|
|
1281
|
-
"description": "
|
|
1307
|
+
"description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
|
|
1282
1308
|
"name": "name",
|
|
1283
1309
|
"required": true,
|
|
1284
|
-
"summary": "Name of the generated
|
|
1310
|
+
"summary": "Name of the generated Lightning Test.",
|
|
1285
1311
|
"hasDynamicHelp": false,
|
|
1286
1312
|
"multiple": false,
|
|
1287
1313
|
"type": "option"
|
|
@@ -1291,11 +1317,11 @@
|
|
|
1291
1317
|
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
1292
1318
|
"name": "template",
|
|
1293
1319
|
"summary": "Template to use for file creation.",
|
|
1294
|
-
"default": "
|
|
1320
|
+
"default": "DefaultLightningTest",
|
|
1295
1321
|
"hasDynamicHelp": false,
|
|
1296
1322
|
"multiple": false,
|
|
1297
1323
|
"options": [
|
|
1298
|
-
"
|
|
1324
|
+
"DefaultLightningTest"
|
|
1299
1325
|
],
|
|
1300
1326
|
"type": "option"
|
|
1301
1327
|
},
|
|
@@ -1313,6 +1339,14 @@
|
|
|
1313
1339
|
"multiple": false,
|
|
1314
1340
|
"type": "option"
|
|
1315
1341
|
},
|
|
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
|
+
},
|
|
1316
1350
|
"api-version": {
|
|
1317
1351
|
"aliases": [
|
|
1318
1352
|
"apiversion"
|
|
@@ -1324,40 +1358,6 @@
|
|
|
1324
1358
|
"multiple": false,
|
|
1325
1359
|
"type": "option"
|
|
1326
1360
|
},
|
|
1327
|
-
"sobject": {
|
|
1328
|
-
"char": "s",
|
|
1329
|
-
"name": "sobject",
|
|
1330
|
-
"summary": "Salesforce object to generate a trigger on.",
|
|
1331
|
-
"default": "SOBJECT",
|
|
1332
|
-
"hasDynamicHelp": false,
|
|
1333
|
-
"multiple": false,
|
|
1334
|
-
"type": "option"
|
|
1335
|
-
},
|
|
1336
|
-
"event": {
|
|
1337
|
-
"aliases": [
|
|
1338
|
-
"triggerevents"
|
|
1339
|
-
],
|
|
1340
|
-
"char": "e",
|
|
1341
|
-
"deprecateAliases": true,
|
|
1342
|
-
"name": "event",
|
|
1343
|
-
"summary": "Events that fire the trigger.",
|
|
1344
|
-
"default": [
|
|
1345
|
-
"before insert"
|
|
1346
|
-
],
|
|
1347
|
-
"delimiter": ",",
|
|
1348
|
-
"hasDynamicHelp": false,
|
|
1349
|
-
"multiple": true,
|
|
1350
|
-
"options": [
|
|
1351
|
-
"before insert",
|
|
1352
|
-
"before update",
|
|
1353
|
-
"before delete",
|
|
1354
|
-
"after insert",
|
|
1355
|
-
"after update",
|
|
1356
|
-
"after delete",
|
|
1357
|
-
"after undelete"
|
|
1358
|
-
],
|
|
1359
|
-
"type": "option"
|
|
1360
|
-
},
|
|
1361
1361
|
"loglevel": {
|
|
1362
1362
|
"deprecated": {
|
|
1363
1363
|
"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 +1371,54 @@
|
|
|
1371
1371
|
},
|
|
1372
1372
|
"hasDynamicHelp": false,
|
|
1373
1373
|
"hiddenAliases": [],
|
|
1374
|
-
"id": "
|
|
1374
|
+
"id": "lightning:generate:test",
|
|
1375
1375
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1376
1376
|
"pluginName": "@salesforce/plugin-templates",
|
|
1377
1377
|
"pluginType": "core",
|
|
1378
1378
|
"strict": true,
|
|
1379
|
-
"summary": "Generate
|
|
1379
|
+
"summary": "Generate a Lightning test.",
|
|
1380
1380
|
"enableJsonFlag": true,
|
|
1381
1381
|
"isESM": true,
|
|
1382
1382
|
"relativePath": [
|
|
1383
1383
|
"lib",
|
|
1384
1384
|
"commands",
|
|
1385
|
-
"
|
|
1385
|
+
"lightning",
|
|
1386
1386
|
"generate",
|
|
1387
|
-
"
|
|
1387
|
+
"test.js"
|
|
1388
1388
|
],
|
|
1389
1389
|
"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:
|
|
1390
|
+
"force:lightning:test:create",
|
|
1391
|
+
"lightning:force:test:create",
|
|
1392
|
+
"lightning:test:force:create",
|
|
1393
|
+
"lightning:test:create:force",
|
|
1394
|
+
"force:test:lightning:create",
|
|
1395
|
+
"test:force:lightning:create",
|
|
1396
|
+
"test:lightning:force:create",
|
|
1397
|
+
"test:lightning:create:force",
|
|
1398
|
+
"force:test:create:lightning",
|
|
1399
|
+
"test:force:create:lightning",
|
|
1400
|
+
"test:create:force:lightning",
|
|
1401
|
+
"test:create:lightning:force",
|
|
1402
|
+
"force:lightning:create:test",
|
|
1403
|
+
"lightning:force:create:test",
|
|
1404
|
+
"lightning:create:force:test",
|
|
1405
|
+
"lightning:create:test:force",
|
|
1406
|
+
"force:create:lightning:test",
|
|
1407
|
+
"create:force:lightning:test",
|
|
1408
|
+
"create:lightning:force:test",
|
|
1409
|
+
"create:lightning:test:force",
|
|
1410
|
+
"force:create:test:lightning",
|
|
1411
|
+
"create:force:test:lightning",
|
|
1412
|
+
"create:test:force:lightning",
|
|
1413
|
+
"create:test:lightning:force"
|
|
1414
1414
|
],
|
|
1415
1415
|
"permutations": [
|
|
1416
|
-
"
|
|
1417
|
-
"generate:
|
|
1418
|
-
"generate:
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1416
|
+
"lightning:generate:test",
|
|
1417
|
+
"generate:lightning:test",
|
|
1418
|
+
"generate:test:lightning",
|
|
1419
|
+
"lightning:test:generate",
|
|
1420
|
+
"test:lightning:generate",
|
|
1421
|
+
"test:generate:lightning"
|
|
1422
1422
|
]
|
|
1423
1423
|
},
|
|
1424
1424
|
"visualforce:generate:component": {
|
|
@@ -1709,5 +1709,5 @@
|
|
|
1709
1709
|
]
|
|
1710
1710
|
}
|
|
1711
1711
|
},
|
|
1712
|
-
"version": "56.0.
|
|
1712
|
+
"version": "56.0.22"
|
|
1713
1713
|
}
|