@salesforce/plugin-templates 56.3.39 → 56.3.41

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.
Files changed (3) hide show
  1. package/README.md +12 -12
  2. package/oclif.manifest.json +459 -459
  3. package/package.json +10 -10
@@ -286,16 +286,15 @@
286
286
  "generate:static-resource"
287
287
  ]
288
288
  },
289
- "lightning:generate:app": {
289
+ "analytics:generate:template": {
290
290
  "aliases": [
291
- "force:lightning:app:create"
291
+ "force:analytics:template:create"
292
292
  ],
293
293
  "args": {},
294
294
  "deprecateAliases": true,
295
- "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.",
295
+ "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" 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.",
296
296
  "examples": [
297
- "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
298
- "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"
297
+ "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
299
298
  ],
300
299
  "flags": {
301
300
  "json": {
@@ -313,33 +312,6 @@
313
312
  "multiple": false,
314
313
  "type": "option"
315
314
  },
316
- "name": {
317
- "aliases": [
318
- "appname"
319
- ],
320
- "char": "n",
321
- "deprecateAliases": true,
322
- "description": "The name can be up to 40 characters and must start with a letter.",
323
- "name": "name",
324
- "required": true,
325
- "summary": "Name of the generated Lightning App.",
326
- "hasDynamicHelp": false,
327
- "multiple": false,
328
- "type": "option"
329
- },
330
- "template": {
331
- "char": "t",
332
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
333
- "name": "template",
334
- "summary": "Template to use for file creation.",
335
- "default": "DefaultLightningApp",
336
- "hasDynamicHelp": false,
337
- "multiple": false,
338
- "options": [
339
- "DefaultLightningApp"
340
- ],
341
- "type": "option"
342
- },
343
315
  "output-dir": {
344
316
  "aliases": [
345
317
  "outputdir"
@@ -365,13 +337,18 @@
365
337
  "multiple": false,
366
338
  "type": "option"
367
339
  },
368
- "internal": {
369
- "char": "i",
370
- "hidden": true,
371
- "name": "internal",
372
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
373
- "allowNo": false,
374
- "type": "boolean"
340
+ "name": {
341
+ "aliases": [
342
+ "templatename"
343
+ ],
344
+ "char": "n",
345
+ "deprecateAliases": true,
346
+ "name": "name",
347
+ "required": true,
348
+ "summary": "Name of the Analytics template.",
349
+ "hasDynamicHelp": false,
350
+ "multiple": false,
351
+ "type": "option"
375
352
  },
376
353
  "loglevel": {
377
354
  "deprecated": {
@@ -386,68 +363,66 @@
386
363
  },
387
364
  "hasDynamicHelp": false,
388
365
  "hiddenAliases": [],
389
- "id": "lightning:generate:app",
366
+ "id": "analytics:generate:template",
390
367
  "pluginAlias": "@salesforce/plugin-templates",
391
368
  "pluginName": "@salesforce/plugin-templates",
392
369
  "pluginType": "core",
393
370
  "strict": true,
394
- "summary": "Generate a Lightning App.",
371
+ "summary": "Generate a simple Analytics template.",
395
372
  "enableJsonFlag": true,
396
373
  "isESM": true,
397
374
  "relativePath": [
398
375
  "lib",
399
376
  "commands",
400
- "lightning",
377
+ "analytics",
401
378
  "generate",
402
- "app.js"
379
+ "template.js"
403
380
  ],
404
381
  "aliasPermutations": [
405
- "force:lightning:app:create",
406
- "lightning:force:app:create",
407
- "lightning:app:force:create",
408
- "lightning:app:create:force",
409
- "force:app:lightning:create",
410
- "app:force:lightning:create",
411
- "app:lightning:force:create",
412
- "app:lightning:create:force",
413
- "force:app:create:lightning",
414
- "app:force:create:lightning",
415
- "app:create:force:lightning",
416
- "app:create:lightning:force",
417
- "force:lightning:create:app",
418
- "lightning:force:create:app",
419
- "lightning:create:force:app",
420
- "lightning:create:app:force",
421
- "force:create:lightning:app",
422
- "create:force:lightning:app",
423
- "create:lightning:force:app",
424
- "create:lightning:app:force",
425
- "force:create:app:lightning",
426
- "create:force:app:lightning",
427
- "create:app:force:lightning",
428
- "create:app:lightning:force"
382
+ "force:analytics:template:create",
383
+ "analytics:force:template:create",
384
+ "analytics:template:force:create",
385
+ "analytics:template:create:force",
386
+ "force:template:analytics:create",
387
+ "template:force:analytics:create",
388
+ "template:analytics:force:create",
389
+ "template:analytics:create:force",
390
+ "force:template:create:analytics",
391
+ "template:force:create:analytics",
392
+ "template:create:force:analytics",
393
+ "template:create:analytics:force",
394
+ "force:analytics:create:template",
395
+ "analytics:force:create:template",
396
+ "analytics:create:force:template",
397
+ "analytics:create:template:force",
398
+ "force:create:analytics:template",
399
+ "create:force:analytics:template",
400
+ "create:analytics:force:template",
401
+ "create:analytics:template:force",
402
+ "force:create:template:analytics",
403
+ "create:force:template:analytics",
404
+ "create:template:force:analytics",
405
+ "create:template:analytics:force"
429
406
  ],
430
407
  "permutations": [
431
- "lightning:generate:app",
432
- "generate:lightning:app",
433
- "generate:app:lightning",
434
- "lightning:app:generate",
435
- "app:lightning:generate",
436
- "app:generate:lightning"
408
+ "analytics:generate:template",
409
+ "generate:analytics:template",
410
+ "generate:template:analytics",
411
+ "analytics:template:generate",
412
+ "template:analytics:generate",
413
+ "template:generate:analytics"
437
414
  ]
438
415
  },
439
- "lightning:generate:component": {
416
+ "apex:generate:class": {
440
417
  "aliases": [
441
- "force:lightning:component:create"
418
+ "force:apex:class:create"
442
419
  ],
443
420
  "args": {},
444
421
  "deprecateAliases": true,
445
- "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.",
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.",
446
423
  "examples": [
447
- "Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
448
- "Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
449
- "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",
450
- "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"
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"
451
426
  ],
452
427
  "flags": {
453
428
  "json": {
@@ -467,14 +442,14 @@
467
442
  },
468
443
  "name": {
469
444
  "aliases": [
470
- "componentname"
445
+ "classname"
471
446
  ],
472
447
  "char": "n",
473
448
  "deprecateAliases": true,
474
449
  "description": "The name can be up to 40 characters and must start with a letter.",
475
450
  "name": "name",
476
451
  "required": true,
477
- "summary": "Name of the generated Lightning Component.",
452
+ "summary": "Name of the generated Apex class.",
478
453
  "hasDynamicHelp": false,
479
454
  "multiple": false,
480
455
  "type": "option"
@@ -484,13 +459,15 @@
484
459
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
485
460
  "name": "template",
486
461
  "summary": "Template to use for file creation.",
487
- "default": "default",
462
+ "default": "DefaultApexClass",
488
463
  "hasDynamicHelp": false,
489
464
  "multiple": false,
490
465
  "options": [
491
- "default",
492
- "analyticsDashboard",
493
- "analyticsDashboardWithStep"
466
+ "ApexException",
467
+ "ApexUnitTest",
468
+ "BasicUnitTest",
469
+ "DefaultApexClass",
470
+ "InboundEmailService"
494
471
  ],
495
472
  "type": "option"
496
473
  },
@@ -519,26 +496,6 @@
519
496
  "multiple": false,
520
497
  "type": "option"
521
498
  },
522
- "type": {
523
- "name": "type",
524
- "summary": "Type of the component bundle.",
525
- "default": "aura",
526
- "hasDynamicHelp": false,
527
- "multiple": false,
528
- "options": [
529
- "aura",
530
- "lwc"
531
- ],
532
- "type": "option"
533
- },
534
- "internal": {
535
- "char": "i",
536
- "hidden": true,
537
- "name": "internal",
538
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
539
- "allowNo": false,
540
- "type": "boolean"
541
- },
542
499
  "loglevel": {
543
500
  "deprecated": {
544
501
  "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."
@@ -552,66 +509,67 @@
552
509
  },
553
510
  "hasDynamicHelp": false,
554
511
  "hiddenAliases": [],
555
- "id": "lightning:generate:component",
512
+ "id": "apex:generate:class",
556
513
  "pluginAlias": "@salesforce/plugin-templates",
557
514
  "pluginName": "@salesforce/plugin-templates",
558
515
  "pluginType": "core",
559
516
  "strict": true,
560
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
517
+ "summary": "Generate an Apex class.",
561
518
  "enableJsonFlag": true,
562
519
  "isESM": true,
563
520
  "relativePath": [
564
521
  "lib",
565
522
  "commands",
566
- "lightning",
523
+ "apex",
567
524
  "generate",
568
- "component.js"
525
+ "class.js"
569
526
  ],
570
527
  "aliasPermutations": [
571
- "force:lightning:component:create",
572
- "lightning:force:component:create",
573
- "lightning:component:force:create",
574
- "lightning:component:create:force",
575
- "force:component:lightning:create",
576
- "component:force:lightning:create",
577
- "component:lightning:force:create",
578
- "component:lightning:create:force",
579
- "force:component:create:lightning",
580
- "component:force:create:lightning",
581
- "component:create:force:lightning",
582
- "component:create:lightning:force",
583
- "force:lightning:create:component",
584
- "lightning:force:create:component",
585
- "lightning:create:force:component",
586
- "lightning:create:component:force",
587
- "force:create:lightning:component",
588
- "create:force:lightning:component",
589
- "create:lightning:force:component",
590
- "create:lightning:component:force",
591
- "force:create:component:lightning",
592
- "create:force:component:lightning",
593
- "create:component:force:lightning",
594
- "create:component:lightning:force"
528
+ "force:apex:class:create",
529
+ "apex:force:class:create",
530
+ "apex:class:force:create",
531
+ "apex:class:create:force",
532
+ "force:class:apex:create",
533
+ "class:force:apex:create",
534
+ "class:apex:force:create",
535
+ "class:apex:create:force",
536
+ "force:class:create:apex",
537
+ "class:force:create:apex",
538
+ "class:create:force:apex",
539
+ "class:create:apex:force",
540
+ "force:apex:create:class",
541
+ "apex:force:create:class",
542
+ "apex:create:force:class",
543
+ "apex:create:class:force",
544
+ "force:create:apex:class",
545
+ "create:force:apex:class",
546
+ "create:apex:force:class",
547
+ "create:apex:class:force",
548
+ "force:create:class:apex",
549
+ "create:force:class:apex",
550
+ "create:class:force:apex",
551
+ "create:class:apex:force"
595
552
  ],
596
553
  "permutations": [
597
- "lightning:generate:component",
598
- "generate:lightning:component",
599
- "generate:component:lightning",
600
- "lightning:component:generate",
601
- "component:lightning:generate",
602
- "component:generate:lightning"
554
+ "apex:generate:class",
555
+ "generate:apex:class",
556
+ "generate:class:apex",
557
+ "apex:class:generate",
558
+ "class:apex:generate",
559
+ "class:generate:apex"
603
560
  ]
604
561
  },
605
- "lightning:generate:event": {
562
+ "apex:generate:trigger": {
606
563
  "aliases": [
607
- "force:lightning:event:create"
564
+ "force:apex:trigger:create"
608
565
  ],
609
566
  "args": {},
610
567
  "deprecateAliases": true,
611
- "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.",
568
+ "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.",
612
569
  "examples": [
613
- "Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
614
- "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"
570
+ "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",
571
+ "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",
572
+ "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\""
615
573
  ],
616
574
  "flags": {
617
575
  "json": {
@@ -631,14 +589,14 @@
631
589
  },
632
590
  "name": {
633
591
  "aliases": [
634
- "eventname"
592
+ "triggername"
635
593
  ],
636
594
  "char": "n",
637
595
  "deprecateAliases": true,
638
596
  "description": "The name can be up to 40 characters and must start with a letter.",
639
597
  "name": "name",
640
598
  "required": true,
641
- "summary": "Name of the generated Lightning Event.",
599
+ "summary": "Name of the generated Apex trigger",
642
600
  "hasDynamicHelp": false,
643
601
  "multiple": false,
644
602
  "type": "option"
@@ -648,11 +606,11 @@
648
606
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
649
607
  "name": "template",
650
608
  "summary": "Template to use for file creation.",
651
- "default": "DefaultLightningEvt",
609
+ "default": "ApexTrigger",
652
610
  "hasDynamicHelp": false,
653
611
  "multiple": false,
654
612
  "options": [
655
- "DefaultLightningEvt"
613
+ "ApexTrigger"
656
614
  ],
657
615
  "type": "option"
658
616
  },
@@ -681,13 +639,39 @@
681
639
  "multiple": false,
682
640
  "type": "option"
683
641
  },
684
- "internal": {
685
- "char": "i",
686
- "hidden": true,
687
- "name": "internal",
688
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
689
- "allowNo": false,
690
- "type": "boolean"
642
+ "sobject": {
643
+ "char": "s",
644
+ "name": "sobject",
645
+ "summary": "Salesforce object to generate a trigger on.",
646
+ "default": "SOBJECT",
647
+ "hasDynamicHelp": false,
648
+ "multiple": false,
649
+ "type": "option"
650
+ },
651
+ "event": {
652
+ "aliases": [
653
+ "triggerevents"
654
+ ],
655
+ "char": "e",
656
+ "deprecateAliases": true,
657
+ "name": "event",
658
+ "summary": "Events that fire the trigger.",
659
+ "default": [
660
+ "before insert"
661
+ ],
662
+ "delimiter": ",",
663
+ "hasDynamicHelp": false,
664
+ "multiple": true,
665
+ "options": [
666
+ "before insert",
667
+ "before update",
668
+ "before delete",
669
+ "after insert",
670
+ "after update",
671
+ "after delete",
672
+ "after undelete"
673
+ ],
674
+ "type": "option"
691
675
  },
692
676
  "loglevel": {
693
677
  "deprecated": {
@@ -702,66 +686,66 @@
702
686
  },
703
687
  "hasDynamicHelp": false,
704
688
  "hiddenAliases": [],
705
- "id": "lightning:generate:event",
689
+ "id": "apex:generate:trigger",
706
690
  "pluginAlias": "@salesforce/plugin-templates",
707
691
  "pluginName": "@salesforce/plugin-templates",
708
692
  "pluginType": "core",
709
693
  "strict": true,
710
- "summary": "Generate a Lightning Event.",
694
+ "summary": "Generate an Apex trigger.",
711
695
  "enableJsonFlag": true,
712
696
  "isESM": true,
713
697
  "relativePath": [
714
698
  "lib",
715
699
  "commands",
716
- "lightning",
700
+ "apex",
717
701
  "generate",
718
- "event.js"
702
+ "trigger.js"
719
703
  ],
720
704
  "aliasPermutations": [
721
- "force:lightning:event:create",
722
- "lightning:force:event:create",
723
- "lightning:event:force:create",
724
- "lightning:event:create:force",
725
- "force:event:lightning:create",
726
- "event:force:lightning:create",
727
- "event:lightning:force:create",
728
- "event:lightning:create:force",
729
- "force:event:create:lightning",
730
- "event:force:create:lightning",
731
- "event:create:force:lightning",
732
- "event:create:lightning:force",
733
- "force:lightning:create:event",
734
- "lightning:force:create:event",
735
- "lightning:create:force:event",
736
- "lightning:create:event:force",
737
- "force:create:lightning:event",
738
- "create:force:lightning:event",
739
- "create:lightning:force:event",
740
- "create:lightning:event:force",
741
- "force:create:event:lightning",
742
- "create:force:event:lightning",
743
- "create:event:force:lightning",
744
- "create:event:lightning:force"
705
+ "force:apex:trigger:create",
706
+ "apex:force:trigger:create",
707
+ "apex:trigger:force:create",
708
+ "apex:trigger:create:force",
709
+ "force:trigger:apex:create",
710
+ "trigger:force:apex:create",
711
+ "trigger:apex:force:create",
712
+ "trigger:apex:create:force",
713
+ "force:trigger:create:apex",
714
+ "trigger:force:create:apex",
715
+ "trigger:create:force:apex",
716
+ "trigger:create:apex:force",
717
+ "force:apex:create:trigger",
718
+ "apex:force:create:trigger",
719
+ "apex:create:force:trigger",
720
+ "apex:create:trigger:force",
721
+ "force:create:apex:trigger",
722
+ "create:force:apex:trigger",
723
+ "create:apex:force:trigger",
724
+ "create:apex:trigger:force",
725
+ "force:create:trigger:apex",
726
+ "create:force:trigger:apex",
727
+ "create:trigger:force:apex",
728
+ "create:trigger:apex:force"
745
729
  ],
746
730
  "permutations": [
747
- "lightning:generate:event",
748
- "generate:lightning:event",
749
- "generate:event:lightning",
750
- "lightning:event:generate",
751
- "event:lightning:generate",
752
- "event:generate:lightning"
731
+ "apex:generate:trigger",
732
+ "generate:apex:trigger",
733
+ "generate:trigger:apex",
734
+ "apex:trigger:generate",
735
+ "trigger:apex:generate",
736
+ "trigger:generate:apex"
753
737
  ]
754
738
  },
755
- "lightning:generate:interface": {
739
+ "lightning:generate:app": {
756
740
  "aliases": [
757
- "force:lightning:interface:create"
741
+ "force:lightning:app:create"
758
742
  ],
759
743
  "args": {},
760
744
  "deprecateAliases": true,
761
- "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.",
745
+ "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.",
762
746
  "examples": [
763
- "Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
764
- "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"
747
+ "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
748
+ "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"
765
749
  ],
766
750
  "flags": {
767
751
  "json": {
@@ -781,14 +765,14 @@
781
765
  },
782
766
  "name": {
783
767
  "aliases": [
784
- "interfacename"
768
+ "appname"
785
769
  ],
786
770
  "char": "n",
787
771
  "deprecateAliases": true,
788
772
  "description": "The name can be up to 40 characters and must start with a letter.",
789
773
  "name": "name",
790
774
  "required": true,
791
- "summary": "Name of the generated Lightning Interface.",
775
+ "summary": "Name of the generated Lightning App.",
792
776
  "hasDynamicHelp": false,
793
777
  "multiple": false,
794
778
  "type": "option"
@@ -798,11 +782,11 @@
798
782
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
799
783
  "name": "template",
800
784
  "summary": "Template to use for file creation.",
801
- "default": "DefaultLightningIntf",
785
+ "default": "DefaultLightningApp",
802
786
  "hasDynamicHelp": false,
803
787
  "multiple": false,
804
788
  "options": [
805
- "DefaultLightningIntf"
789
+ "DefaultLightningApp"
806
790
  ],
807
791
  "type": "option"
808
792
  },
@@ -852,12 +836,12 @@
852
836
  },
853
837
  "hasDynamicHelp": false,
854
838
  "hiddenAliases": [],
855
- "id": "lightning:generate:interface",
839
+ "id": "lightning:generate:app",
856
840
  "pluginAlias": "@salesforce/plugin-templates",
857
841
  "pluginName": "@salesforce/plugin-templates",
858
842
  "pluginType": "core",
859
843
  "strict": true,
860
- "summary": "Generate a Lightning Interface.",
844
+ "summary": "Generate a Lightning App.",
861
845
  "enableJsonFlag": true,
862
846
  "isESM": true,
863
847
  "relativePath": [
@@ -865,53 +849,55 @@
865
849
  "commands",
866
850
  "lightning",
867
851
  "generate",
868
- "interface.js"
852
+ "app.js"
869
853
  ],
870
854
  "aliasPermutations": [
871
- "force:lightning:interface:create",
872
- "lightning:force:interface:create",
873
- "lightning:interface:force:create",
874
- "lightning:interface:create:force",
875
- "force:interface:lightning:create",
876
- "interface:force:lightning:create",
877
- "interface:lightning:force:create",
878
- "interface:lightning:create:force",
879
- "force:interface:create:lightning",
880
- "interface:force:create:lightning",
881
- "interface:create:force:lightning",
882
- "interface:create:lightning:force",
883
- "force:lightning:create:interface",
884
- "lightning:force:create:interface",
885
- "lightning:create:force:interface",
886
- "lightning:create:interface:force",
887
- "force:create:lightning:interface",
888
- "create:force:lightning:interface",
889
- "create:lightning:force:interface",
890
- "create:lightning:interface:force",
891
- "force:create:interface:lightning",
892
- "create:force:interface:lightning",
893
- "create:interface:force:lightning",
894
- "create:interface:lightning:force"
855
+ "force:lightning:app:create",
856
+ "lightning:force:app:create",
857
+ "lightning:app:force:create",
858
+ "lightning:app:create:force",
859
+ "force:app:lightning:create",
860
+ "app:force:lightning:create",
861
+ "app:lightning:force:create",
862
+ "app:lightning:create:force",
863
+ "force:app:create:lightning",
864
+ "app:force:create:lightning",
865
+ "app:create:force:lightning",
866
+ "app:create:lightning:force",
867
+ "force:lightning:create:app",
868
+ "lightning:force:create:app",
869
+ "lightning:create:force:app",
870
+ "lightning:create:app:force",
871
+ "force:create:lightning:app",
872
+ "create:force:lightning:app",
873
+ "create:lightning:force:app",
874
+ "create:lightning:app:force",
875
+ "force:create:app:lightning",
876
+ "create:force:app:lightning",
877
+ "create:app:force:lightning",
878
+ "create:app:lightning:force"
895
879
  ],
896
880
  "permutations": [
897
- "lightning:generate:interface",
898
- "generate:lightning:interface",
899
- "generate:interface:lightning",
900
- "lightning:interface:generate",
901
- "interface:lightning:generate",
902
- "interface:generate:lightning"
881
+ "lightning:generate:app",
882
+ "generate:lightning:app",
883
+ "generate:app:lightning",
884
+ "lightning:app:generate",
885
+ "app:lightning:generate",
886
+ "app:generate:lightning"
903
887
  ]
904
888
  },
905
- "lightning:generate:test": {
889
+ "lightning:generate:component": {
906
890
  "aliases": [
907
- "force:lightning:test:create"
891
+ "force:lightning:component:create"
908
892
  ],
909
893
  "args": {},
910
894
  "deprecateAliases": true,
911
- "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
895
+ "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.",
912
896
  "examples": [
913
- "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
914
- "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"
897
+ "Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
898
+ "Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
899
+ "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",
900
+ "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"
915
901
  ],
916
902
  "flags": {
917
903
  "json": {
@@ -931,14 +917,14 @@
931
917
  },
932
918
  "name": {
933
919
  "aliases": [
934
- "testname"
920
+ "componentname"
935
921
  ],
936
922
  "char": "n",
937
923
  "deprecateAliases": true,
938
- "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
924
+ "description": "The name can be up to 40 characters and must start with a letter.",
939
925
  "name": "name",
940
926
  "required": true,
941
- "summary": "Name of the generated Lightning Test.",
927
+ "summary": "Name of the generated Lightning Component.",
942
928
  "hasDynamicHelp": false,
943
929
  "multiple": false,
944
930
  "type": "option"
@@ -948,11 +934,13 @@
948
934
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
949
935
  "name": "template",
950
936
  "summary": "Template to use for file creation.",
951
- "default": "DefaultLightningTest",
937
+ "default": "default",
952
938
  "hasDynamicHelp": false,
953
939
  "multiple": false,
954
940
  "options": [
955
- "DefaultLightningTest"
941
+ "default",
942
+ "analyticsDashboard",
943
+ "analyticsDashboardWithStep"
956
944
  ],
957
945
  "type": "option"
958
946
  },
@@ -970,14 +958,6 @@
970
958
  "multiple": false,
971
959
  "type": "option"
972
960
  },
973
- "internal": {
974
- "char": "i",
975
- "hidden": true,
976
- "name": "internal",
977
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
978
- "allowNo": false,
979
- "type": "boolean"
980
- },
981
961
  "api-version": {
982
962
  "aliases": [
983
963
  "apiversion"
@@ -989,6 +969,26 @@
989
969
  "multiple": false,
990
970
  "type": "option"
991
971
  },
972
+ "type": {
973
+ "name": "type",
974
+ "summary": "Type of the component bundle.",
975
+ "default": "aura",
976
+ "hasDynamicHelp": false,
977
+ "multiple": false,
978
+ "options": [
979
+ "aura",
980
+ "lwc"
981
+ ],
982
+ "type": "option"
983
+ },
984
+ "internal": {
985
+ "char": "i",
986
+ "hidden": true,
987
+ "name": "internal",
988
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
989
+ "allowNo": false,
990
+ "type": "boolean"
991
+ },
992
992
  "loglevel": {
993
993
  "deprecated": {
994
994
  "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."
@@ -1002,12 +1002,12 @@
1002
1002
  },
1003
1003
  "hasDynamicHelp": false,
1004
1004
  "hiddenAliases": [],
1005
- "id": "lightning:generate:test",
1005
+ "id": "lightning:generate:component",
1006
1006
  "pluginAlias": "@salesforce/plugin-templates",
1007
1007
  "pluginName": "@salesforce/plugin-templates",
1008
1008
  "pluginType": "core",
1009
1009
  "strict": true,
1010
- "summary": "Generate a Lightning test.",
1010
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1011
1011
  "enableJsonFlag": true,
1012
1012
  "isESM": true,
1013
1013
  "relativePath": [
@@ -1015,53 +1015,53 @@
1015
1015
  "commands",
1016
1016
  "lightning",
1017
1017
  "generate",
1018
- "test.js"
1018
+ "component.js"
1019
1019
  ],
1020
1020
  "aliasPermutations": [
1021
- "force:lightning:test:create",
1022
- "lightning:force:test:create",
1023
- "lightning:test:force:create",
1024
- "lightning:test:create:force",
1025
- "force:test:lightning:create",
1026
- "test:force:lightning:create",
1027
- "test:lightning:force:create",
1028
- "test:lightning:create:force",
1029
- "force:test:create:lightning",
1030
- "test:force:create:lightning",
1031
- "test:create:force:lightning",
1032
- "test:create:lightning:force",
1033
- "force:lightning:create:test",
1034
- "lightning:force:create:test",
1035
- "lightning:create:force:test",
1036
- "lightning:create:test:force",
1037
- "force:create:lightning:test",
1038
- "create:force:lightning:test",
1039
- "create:lightning:force:test",
1040
- "create:lightning:test:force",
1041
- "force:create:test:lightning",
1042
- "create:force:test:lightning",
1043
- "create:test:force:lightning",
1044
- "create:test:lightning:force"
1021
+ "force:lightning:component:create",
1022
+ "lightning:force:component:create",
1023
+ "lightning:component:force:create",
1024
+ "lightning:component:create:force",
1025
+ "force:component:lightning:create",
1026
+ "component:force:lightning:create",
1027
+ "component:lightning:force:create",
1028
+ "component:lightning:create:force",
1029
+ "force:component:create:lightning",
1030
+ "component:force:create:lightning",
1031
+ "component:create:force:lightning",
1032
+ "component:create:lightning:force",
1033
+ "force:lightning:create:component",
1034
+ "lightning:force:create:component",
1035
+ "lightning:create:force:component",
1036
+ "lightning:create:component:force",
1037
+ "force:create:lightning:component",
1038
+ "create:force:lightning:component",
1039
+ "create:lightning:force:component",
1040
+ "create:lightning:component:force",
1041
+ "force:create:component:lightning",
1042
+ "create:force:component:lightning",
1043
+ "create:component:force:lightning",
1044
+ "create:component:lightning:force"
1045
1045
  ],
1046
1046
  "permutations": [
1047
- "lightning:generate:test",
1048
- "generate:lightning:test",
1049
- "generate:test:lightning",
1050
- "lightning:test:generate",
1051
- "test:lightning:generate",
1052
- "test:generate:lightning"
1047
+ "lightning:generate:component",
1048
+ "generate:lightning:component",
1049
+ "generate:component:lightning",
1050
+ "lightning:component:generate",
1051
+ "component:lightning:generate",
1052
+ "component:generate:lightning"
1053
1053
  ]
1054
1054
  },
1055
- "apex:generate:class": {
1055
+ "lightning:generate:event": {
1056
1056
  "aliases": [
1057
- "force:apex:class:create"
1057
+ "force:lightning:event:create"
1058
1058
  ],
1059
1059
  "args": {},
1060
1060
  "deprecateAliases": true,
1061
- "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.",
1061
+ "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.",
1062
1062
  "examples": [
1063
- "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",
1064
- "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"
1063
+ "Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
1064
+ "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"
1065
1065
  ],
1066
1066
  "flags": {
1067
1067
  "json": {
@@ -1081,14 +1081,14 @@
1081
1081
  },
1082
1082
  "name": {
1083
1083
  "aliases": [
1084
- "classname"
1084
+ "eventname"
1085
1085
  ],
1086
1086
  "char": "n",
1087
1087
  "deprecateAliases": true,
1088
1088
  "description": "The name can be up to 40 characters and must start with a letter.",
1089
1089
  "name": "name",
1090
1090
  "required": true,
1091
- "summary": "Name of the generated Apex class.",
1091
+ "summary": "Name of the generated Lightning Event.",
1092
1092
  "hasDynamicHelp": false,
1093
1093
  "multiple": false,
1094
1094
  "type": "option"
@@ -1098,15 +1098,11 @@
1098
1098
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
1099
1099
  "name": "template",
1100
1100
  "summary": "Template to use for file creation.",
1101
- "default": "DefaultApexClass",
1101
+ "default": "DefaultLightningEvt",
1102
1102
  "hasDynamicHelp": false,
1103
1103
  "multiple": false,
1104
1104
  "options": [
1105
- "ApexException",
1106
- "ApexUnitTest",
1107
- "BasicUnitTest",
1108
- "DefaultApexClass",
1109
- "InboundEmailService"
1105
+ "DefaultLightningEvt"
1110
1106
  ],
1111
1107
  "type": "option"
1112
1108
  },
@@ -1135,6 +1131,14 @@
1135
1131
  "multiple": false,
1136
1132
  "type": "option"
1137
1133
  },
1134
+ "internal": {
1135
+ "char": "i",
1136
+ "hidden": true,
1137
+ "name": "internal",
1138
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1139
+ "allowNo": false,
1140
+ "type": "boolean"
1141
+ },
1138
1142
  "loglevel": {
1139
1143
  "deprecated": {
1140
1144
  "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."
@@ -1148,67 +1152,66 @@
1148
1152
  },
1149
1153
  "hasDynamicHelp": false,
1150
1154
  "hiddenAliases": [],
1151
- "id": "apex:generate:class",
1155
+ "id": "lightning:generate:event",
1152
1156
  "pluginAlias": "@salesforce/plugin-templates",
1153
1157
  "pluginName": "@salesforce/plugin-templates",
1154
1158
  "pluginType": "core",
1155
1159
  "strict": true,
1156
- "summary": "Generate an Apex class.",
1160
+ "summary": "Generate a Lightning Event.",
1157
1161
  "enableJsonFlag": true,
1158
1162
  "isESM": true,
1159
1163
  "relativePath": [
1160
1164
  "lib",
1161
1165
  "commands",
1162
- "apex",
1166
+ "lightning",
1163
1167
  "generate",
1164
- "class.js"
1168
+ "event.js"
1165
1169
  ],
1166
1170
  "aliasPermutations": [
1167
- "force:apex:class:create",
1168
- "apex:force:class:create",
1169
- "apex:class:force:create",
1170
- "apex:class:create:force",
1171
- "force:class:apex:create",
1172
- "class:force:apex:create",
1173
- "class:apex:force:create",
1174
- "class:apex:create:force",
1175
- "force:class:create:apex",
1176
- "class:force:create:apex",
1177
- "class:create:force:apex",
1178
- "class:create:apex:force",
1179
- "force:apex:create:class",
1180
- "apex:force:create:class",
1181
- "apex:create:force:class",
1182
- "apex:create:class:force",
1183
- "force:create:apex:class",
1184
- "create:force:apex:class",
1185
- "create:apex:force:class",
1186
- "create:apex:class:force",
1187
- "force:create:class:apex",
1188
- "create:force:class:apex",
1189
- "create:class:force:apex",
1190
- "create:class:apex:force"
1171
+ "force:lightning:event:create",
1172
+ "lightning:force:event:create",
1173
+ "lightning:event:force:create",
1174
+ "lightning:event:create:force",
1175
+ "force:event:lightning:create",
1176
+ "event:force:lightning:create",
1177
+ "event:lightning:force:create",
1178
+ "event:lightning:create:force",
1179
+ "force:event:create:lightning",
1180
+ "event:force:create:lightning",
1181
+ "event:create:force:lightning",
1182
+ "event:create:lightning:force",
1183
+ "force:lightning:create:event",
1184
+ "lightning:force:create:event",
1185
+ "lightning:create:force:event",
1186
+ "lightning:create:event:force",
1187
+ "force:create:lightning:event",
1188
+ "create:force:lightning:event",
1189
+ "create:lightning:force:event",
1190
+ "create:lightning:event:force",
1191
+ "force:create:event:lightning",
1192
+ "create:force:event:lightning",
1193
+ "create:event:force:lightning",
1194
+ "create:event:lightning:force"
1191
1195
  ],
1192
1196
  "permutations": [
1193
- "apex:generate:class",
1194
- "generate:apex:class",
1195
- "generate:class:apex",
1196
- "apex:class:generate",
1197
- "class:apex:generate",
1198
- "class:generate:apex"
1197
+ "lightning:generate:event",
1198
+ "generate:lightning:event",
1199
+ "generate:event:lightning",
1200
+ "lightning:event:generate",
1201
+ "event:lightning:generate",
1202
+ "event:generate:lightning"
1199
1203
  ]
1200
1204
  },
1201
- "apex:generate:trigger": {
1205
+ "lightning:generate:interface": {
1202
1206
  "aliases": [
1203
- "force:apex:trigger:create"
1207
+ "force:lightning:interface:create"
1204
1208
  ],
1205
1209
  "args": {},
1206
1210
  "deprecateAliases": true,
1207
- "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.",
1211
+ "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.",
1208
1212
  "examples": [
1209
- "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",
1210
- "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",
1211
- "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\""
1213
+ "Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
1214
+ "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"
1212
1215
  ],
1213
1216
  "flags": {
1214
1217
  "json": {
@@ -1228,14 +1231,14 @@
1228
1231
  },
1229
1232
  "name": {
1230
1233
  "aliases": [
1231
- "triggername"
1234
+ "interfacename"
1232
1235
  ],
1233
1236
  "char": "n",
1234
1237
  "deprecateAliases": true,
1235
1238
  "description": "The name can be up to 40 characters and must start with a letter.",
1236
1239
  "name": "name",
1237
1240
  "required": true,
1238
- "summary": "Name of the generated Apex trigger",
1241
+ "summary": "Name of the generated Lightning Interface.",
1239
1242
  "hasDynamicHelp": false,
1240
1243
  "multiple": false,
1241
1244
  "type": "option"
@@ -1245,11 +1248,11 @@
1245
1248
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
1246
1249
  "name": "template",
1247
1250
  "summary": "Template to use for file creation.",
1248
- "default": "ApexTrigger",
1251
+ "default": "DefaultLightningIntf",
1249
1252
  "hasDynamicHelp": false,
1250
1253
  "multiple": false,
1251
1254
  "options": [
1252
- "ApexTrigger"
1255
+ "DefaultLightningIntf"
1253
1256
  ],
1254
1257
  "type": "option"
1255
1258
  },
@@ -1278,39 +1281,13 @@
1278
1281
  "multiple": false,
1279
1282
  "type": "option"
1280
1283
  },
1281
- "sobject": {
1282
- "char": "s",
1283
- "name": "sobject",
1284
- "summary": "Salesforce object to generate a trigger on.",
1285
- "default": "SOBJECT",
1286
- "hasDynamicHelp": false,
1287
- "multiple": false,
1288
- "type": "option"
1289
- },
1290
- "event": {
1291
- "aliases": [
1292
- "triggerevents"
1293
- ],
1294
- "char": "e",
1295
- "deprecateAliases": true,
1296
- "name": "event",
1297
- "summary": "Events that fire the trigger.",
1298
- "default": [
1299
- "before insert"
1300
- ],
1301
- "delimiter": ",",
1302
- "hasDynamicHelp": false,
1303
- "multiple": true,
1304
- "options": [
1305
- "before insert",
1306
- "before update",
1307
- "before delete",
1308
- "after insert",
1309
- "after update",
1310
- "after delete",
1311
- "after undelete"
1312
- ],
1313
- "type": "option"
1284
+ "internal": {
1285
+ "char": "i",
1286
+ "hidden": true,
1287
+ "name": "internal",
1288
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1289
+ "allowNo": false,
1290
+ "type": "boolean"
1314
1291
  },
1315
1292
  "loglevel": {
1316
1293
  "deprecated": {
@@ -1325,65 +1302,66 @@
1325
1302
  },
1326
1303
  "hasDynamicHelp": false,
1327
1304
  "hiddenAliases": [],
1328
- "id": "apex:generate:trigger",
1305
+ "id": "lightning:generate:interface",
1329
1306
  "pluginAlias": "@salesforce/plugin-templates",
1330
1307
  "pluginName": "@salesforce/plugin-templates",
1331
1308
  "pluginType": "core",
1332
1309
  "strict": true,
1333
- "summary": "Generate an Apex trigger.",
1310
+ "summary": "Generate a Lightning Interface.",
1334
1311
  "enableJsonFlag": true,
1335
1312
  "isESM": true,
1336
1313
  "relativePath": [
1337
1314
  "lib",
1338
1315
  "commands",
1339
- "apex",
1316
+ "lightning",
1340
1317
  "generate",
1341
- "trigger.js"
1318
+ "interface.js"
1342
1319
  ],
1343
1320
  "aliasPermutations": [
1344
- "force:apex:trigger:create",
1345
- "apex:force:trigger:create",
1346
- "apex:trigger:force:create",
1347
- "apex:trigger:create:force",
1348
- "force:trigger:apex:create",
1349
- "trigger:force:apex:create",
1350
- "trigger:apex:force:create",
1351
- "trigger:apex:create:force",
1352
- "force:trigger:create:apex",
1353
- "trigger:force:create:apex",
1354
- "trigger:create:force:apex",
1355
- "trigger:create:apex:force",
1356
- "force:apex:create:trigger",
1357
- "apex:force:create:trigger",
1358
- "apex:create:force:trigger",
1359
- "apex:create:trigger:force",
1360
- "force:create:apex:trigger",
1361
- "create:force:apex:trigger",
1362
- "create:apex:force:trigger",
1363
- "create:apex:trigger:force",
1364
- "force:create:trigger:apex",
1365
- "create:force:trigger:apex",
1366
- "create:trigger:force:apex",
1367
- "create:trigger:apex:force"
1321
+ "force:lightning:interface:create",
1322
+ "lightning:force:interface:create",
1323
+ "lightning:interface:force:create",
1324
+ "lightning:interface:create:force",
1325
+ "force:interface:lightning:create",
1326
+ "interface:force:lightning:create",
1327
+ "interface:lightning:force:create",
1328
+ "interface:lightning:create:force",
1329
+ "force:interface:create:lightning",
1330
+ "interface:force:create:lightning",
1331
+ "interface:create:force:lightning",
1332
+ "interface:create:lightning:force",
1333
+ "force:lightning:create:interface",
1334
+ "lightning:force:create:interface",
1335
+ "lightning:create:force:interface",
1336
+ "lightning:create:interface:force",
1337
+ "force:create:lightning:interface",
1338
+ "create:force:lightning:interface",
1339
+ "create:lightning:force:interface",
1340
+ "create:lightning:interface:force",
1341
+ "force:create:interface:lightning",
1342
+ "create:force:interface:lightning",
1343
+ "create:interface:force:lightning",
1344
+ "create:interface:lightning:force"
1368
1345
  ],
1369
1346
  "permutations": [
1370
- "apex:generate:trigger",
1371
- "generate:apex:trigger",
1372
- "generate:trigger:apex",
1373
- "apex:trigger:generate",
1374
- "trigger:apex:generate",
1375
- "trigger:generate:apex"
1347
+ "lightning:generate:interface",
1348
+ "generate:lightning:interface",
1349
+ "generate:interface:lightning",
1350
+ "lightning:interface:generate",
1351
+ "interface:lightning:generate",
1352
+ "interface:generate:lightning"
1376
1353
  ]
1377
1354
  },
1378
- "analytics:generate:template": {
1355
+ "lightning:generate:test": {
1379
1356
  "aliases": [
1380
- "force:analytics:template:create"
1357
+ "force:lightning:test:create"
1381
1358
  ],
1382
1359
  "args": {},
1383
1360
  "deprecateAliases": true,
1384
- "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" 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.",
1361
+ "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1385
1362
  "examples": [
1386
- "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
1363
+ "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
1364
+ "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"
1387
1365
  ],
1388
1366
  "flags": {
1389
1367
  "json": {
@@ -1401,6 +1379,33 @@
1401
1379
  "multiple": false,
1402
1380
  "type": "option"
1403
1381
  },
1382
+ "name": {
1383
+ "aliases": [
1384
+ "testname"
1385
+ ],
1386
+ "char": "n",
1387
+ "deprecateAliases": true,
1388
+ "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1389
+ "name": "name",
1390
+ "required": true,
1391
+ "summary": "Name of the generated Lightning Test.",
1392
+ "hasDynamicHelp": false,
1393
+ "multiple": false,
1394
+ "type": "option"
1395
+ },
1396
+ "template": {
1397
+ "char": "t",
1398
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1399
+ "name": "template",
1400
+ "summary": "Template to use for file creation.",
1401
+ "default": "DefaultLightningTest",
1402
+ "hasDynamicHelp": false,
1403
+ "multiple": false,
1404
+ "options": [
1405
+ "DefaultLightningTest"
1406
+ ],
1407
+ "type": "option"
1408
+ },
1404
1409
  "output-dir": {
1405
1410
  "aliases": [
1406
1411
  "outputdir"
@@ -1415,6 +1420,14 @@
1415
1420
  "multiple": false,
1416
1421
  "type": "option"
1417
1422
  },
1423
+ "internal": {
1424
+ "char": "i",
1425
+ "hidden": true,
1426
+ "name": "internal",
1427
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1428
+ "allowNo": false,
1429
+ "type": "boolean"
1430
+ },
1418
1431
  "api-version": {
1419
1432
  "aliases": [
1420
1433
  "apiversion"
@@ -1426,19 +1439,6 @@
1426
1439
  "multiple": false,
1427
1440
  "type": "option"
1428
1441
  },
1429
- "name": {
1430
- "aliases": [
1431
- "templatename"
1432
- ],
1433
- "char": "n",
1434
- "deprecateAliases": true,
1435
- "name": "name",
1436
- "required": true,
1437
- "summary": "Name of the Analytics template.",
1438
- "hasDynamicHelp": false,
1439
- "multiple": false,
1440
- "type": "option"
1441
- },
1442
1442
  "loglevel": {
1443
1443
  "deprecated": {
1444
1444
  "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."
@@ -1452,54 +1452,54 @@
1452
1452
  },
1453
1453
  "hasDynamicHelp": false,
1454
1454
  "hiddenAliases": [],
1455
- "id": "analytics:generate:template",
1455
+ "id": "lightning:generate:test",
1456
1456
  "pluginAlias": "@salesforce/plugin-templates",
1457
1457
  "pluginName": "@salesforce/plugin-templates",
1458
1458
  "pluginType": "core",
1459
1459
  "strict": true,
1460
- "summary": "Generate a simple Analytics template.",
1460
+ "summary": "Generate a Lightning test.",
1461
1461
  "enableJsonFlag": true,
1462
1462
  "isESM": true,
1463
1463
  "relativePath": [
1464
1464
  "lib",
1465
1465
  "commands",
1466
- "analytics",
1466
+ "lightning",
1467
1467
  "generate",
1468
- "template.js"
1468
+ "test.js"
1469
1469
  ],
1470
1470
  "aliasPermutations": [
1471
- "force:analytics:template:create",
1472
- "analytics:force:template:create",
1473
- "analytics:template:force:create",
1474
- "analytics:template:create:force",
1475
- "force:template:analytics:create",
1476
- "template:force:analytics:create",
1477
- "template:analytics:force:create",
1478
- "template:analytics:create:force",
1479
- "force:template:create:analytics",
1480
- "template:force:create:analytics",
1481
- "template:create:force:analytics",
1482
- "template:create:analytics:force",
1483
- "force:analytics:create:template",
1484
- "analytics:force:create:template",
1485
- "analytics:create:force:template",
1486
- "analytics:create:template:force",
1487
- "force:create:analytics:template",
1488
- "create:force:analytics:template",
1489
- "create:analytics:force:template",
1490
- "create:analytics:template:force",
1491
- "force:create:template:analytics",
1492
- "create:force:template:analytics",
1493
- "create:template:force:analytics",
1494
- "create:template:analytics:force"
1471
+ "force:lightning:test:create",
1472
+ "lightning:force:test:create",
1473
+ "lightning:test:force:create",
1474
+ "lightning:test:create:force",
1475
+ "force:test:lightning:create",
1476
+ "test:force:lightning:create",
1477
+ "test:lightning:force:create",
1478
+ "test:lightning:create:force",
1479
+ "force:test:create:lightning",
1480
+ "test:force:create:lightning",
1481
+ "test:create:force:lightning",
1482
+ "test:create:lightning:force",
1483
+ "force:lightning:create:test",
1484
+ "lightning:force:create:test",
1485
+ "lightning:create:force:test",
1486
+ "lightning:create:test:force",
1487
+ "force:create:lightning:test",
1488
+ "create:force:lightning:test",
1489
+ "create:lightning:force:test",
1490
+ "create:lightning:test:force",
1491
+ "force:create:test:lightning",
1492
+ "create:force:test:lightning",
1493
+ "create:test:force:lightning",
1494
+ "create:test:lightning:force"
1495
1495
  ],
1496
1496
  "permutations": [
1497
- "analytics:generate:template",
1498
- "generate:analytics:template",
1499
- "generate:template:analytics",
1500
- "analytics:template:generate",
1501
- "template:analytics:generate",
1502
- "template:generate:analytics"
1497
+ "lightning:generate:test",
1498
+ "generate:lightning:test",
1499
+ "generate:test:lightning",
1500
+ "lightning:test:generate",
1501
+ "test:lightning:generate",
1502
+ "test:generate:lightning"
1503
1503
  ]
1504
1504
  },
1505
1505
  "visualforce:generate:component": {
@@ -1806,5 +1806,5 @@
1806
1806
  ]
1807
1807
  }
1808
1808
  },
1809
- "version": "56.3.39"
1809
+ "version": "56.3.41"
1810
1810
  }