@salesforce/plugin-templates 56.3.37 → 56.3.39

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 +7 -7
@@ -286,15 +286,16 @@
286
286
  "generate:static-resource"
287
287
  ]
288
288
  },
289
- "analytics:generate:template": {
289
+ "lightning:generate:app": {
290
290
  "aliases": [
291
- "force:analytics:template:create"
291
+ "force:lightning:app:create"
292
292
  ],
293
293
  "args": {},
294
294
  "deprecateAliases": true,
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.",
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.",
296
296
  "examples": [
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"
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"
298
299
  ],
299
300
  "flags": {
300
301
  "json": {
@@ -312,6 +313,33 @@
312
313
  "multiple": false,
313
314
  "type": "option"
314
315
  },
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
+ },
315
343
  "output-dir": {
316
344
  "aliases": [
317
345
  "outputdir"
@@ -337,18 +365,13 @@
337
365
  "multiple": false,
338
366
  "type": "option"
339
367
  },
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"
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"
352
375
  },
353
376
  "loglevel": {
354
377
  "deprecated": {
@@ -363,66 +386,68 @@
363
386
  },
364
387
  "hasDynamicHelp": false,
365
388
  "hiddenAliases": [],
366
- "id": "analytics:generate:template",
389
+ "id": "lightning:generate:app",
367
390
  "pluginAlias": "@salesforce/plugin-templates",
368
391
  "pluginName": "@salesforce/plugin-templates",
369
392
  "pluginType": "core",
370
393
  "strict": true,
371
- "summary": "Generate a simple Analytics template.",
394
+ "summary": "Generate a Lightning App.",
372
395
  "enableJsonFlag": true,
373
396
  "isESM": true,
374
397
  "relativePath": [
375
398
  "lib",
376
399
  "commands",
377
- "analytics",
400
+ "lightning",
378
401
  "generate",
379
- "template.js"
402
+ "app.js"
380
403
  ],
381
404
  "aliasPermutations": [
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"
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"
406
429
  ],
407
430
  "permutations": [
408
- "analytics:generate:template",
409
- "generate:analytics:template",
410
- "generate:template:analytics",
411
- "analytics:template:generate",
412
- "template:analytics:generate",
413
- "template:generate:analytics"
431
+ "lightning:generate:app",
432
+ "generate:lightning:app",
433
+ "generate:app:lightning",
434
+ "lightning:app:generate",
435
+ "app:lightning:generate",
436
+ "app:generate:lightning"
414
437
  ]
415
438
  },
416
- "apex:generate:class": {
439
+ "lightning:generate:component": {
417
440
  "aliases": [
418
- "force:apex:class:create"
441
+ "force:lightning:component:create"
419
442
  ],
420
443
  "args": {},
421
444
  "deprecateAliases": true,
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.",
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.",
423
446
  "examples": [
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"
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"
426
451
  ],
427
452
  "flags": {
428
453
  "json": {
@@ -442,14 +467,14 @@
442
467
  },
443
468
  "name": {
444
469
  "aliases": [
445
- "classname"
470
+ "componentname"
446
471
  ],
447
472
  "char": "n",
448
473
  "deprecateAliases": true,
449
474
  "description": "The name can be up to 40 characters and must start with a letter.",
450
475
  "name": "name",
451
476
  "required": true,
452
- "summary": "Name of the generated Apex class.",
477
+ "summary": "Name of the generated Lightning Component.",
453
478
  "hasDynamicHelp": false,
454
479
  "multiple": false,
455
480
  "type": "option"
@@ -459,15 +484,13 @@
459
484
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
460
485
  "name": "template",
461
486
  "summary": "Template to use for file creation.",
462
- "default": "DefaultApexClass",
487
+ "default": "default",
463
488
  "hasDynamicHelp": false,
464
489
  "multiple": false,
465
490
  "options": [
466
- "ApexException",
467
- "ApexUnitTest",
468
- "BasicUnitTest",
469
- "DefaultApexClass",
470
- "InboundEmailService"
491
+ "default",
492
+ "analyticsDashboard",
493
+ "analyticsDashboardWithStep"
471
494
  ],
472
495
  "type": "option"
473
496
  },
@@ -496,6 +519,26 @@
496
519
  "multiple": false,
497
520
  "type": "option"
498
521
  },
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
+ },
499
542
  "loglevel": {
500
543
  "deprecated": {
501
544
  "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."
@@ -509,67 +552,66 @@
509
552
  },
510
553
  "hasDynamicHelp": false,
511
554
  "hiddenAliases": [],
512
- "id": "apex:generate:class",
555
+ "id": "lightning:generate:component",
513
556
  "pluginAlias": "@salesforce/plugin-templates",
514
557
  "pluginName": "@salesforce/plugin-templates",
515
558
  "pluginType": "core",
516
559
  "strict": true,
517
- "summary": "Generate an Apex class.",
560
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
518
561
  "enableJsonFlag": true,
519
562
  "isESM": true,
520
563
  "relativePath": [
521
564
  "lib",
522
565
  "commands",
523
- "apex",
566
+ "lightning",
524
567
  "generate",
525
- "class.js"
568
+ "component.js"
526
569
  ],
527
570
  "aliasPermutations": [
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"
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"
552
595
  ],
553
596
  "permutations": [
554
- "apex:generate:class",
555
- "generate:apex:class",
556
- "generate:class:apex",
557
- "apex:class:generate",
558
- "class:apex:generate",
559
- "class:generate:apex"
597
+ "lightning:generate:component",
598
+ "generate:lightning:component",
599
+ "generate:component:lightning",
600
+ "lightning:component:generate",
601
+ "component:lightning:generate",
602
+ "component:generate:lightning"
560
603
  ]
561
604
  },
562
- "apex:generate:trigger": {
605
+ "lightning:generate:event": {
563
606
  "aliases": [
564
- "force:apex:trigger:create"
607
+ "force:lightning:event:create"
565
608
  ],
566
609
  "args": {},
567
610
  "deprecateAliases": true,
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.",
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.",
569
612
  "examples": [
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\""
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"
573
615
  ],
574
616
  "flags": {
575
617
  "json": {
@@ -589,14 +631,14 @@
589
631
  },
590
632
  "name": {
591
633
  "aliases": [
592
- "triggername"
634
+ "eventname"
593
635
  ],
594
636
  "char": "n",
595
637
  "deprecateAliases": true,
596
638
  "description": "The name can be up to 40 characters and must start with a letter.",
597
639
  "name": "name",
598
640
  "required": true,
599
- "summary": "Name of the generated Apex trigger",
641
+ "summary": "Name of the generated Lightning Event.",
600
642
  "hasDynamicHelp": false,
601
643
  "multiple": false,
602
644
  "type": "option"
@@ -606,11 +648,11 @@
606
648
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
607
649
  "name": "template",
608
650
  "summary": "Template to use for file creation.",
609
- "default": "ApexTrigger",
651
+ "default": "DefaultLightningEvt",
610
652
  "hasDynamicHelp": false,
611
653
  "multiple": false,
612
654
  "options": [
613
- "ApexTrigger"
655
+ "DefaultLightningEvt"
614
656
  ],
615
657
  "type": "option"
616
658
  },
@@ -639,39 +681,13 @@
639
681
  "multiple": false,
640
682
  "type": "option"
641
683
  },
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"
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"
675
691
  },
676
692
  "loglevel": {
677
693
  "deprecated": {
@@ -686,66 +702,66 @@
686
702
  },
687
703
  "hasDynamicHelp": false,
688
704
  "hiddenAliases": [],
689
- "id": "apex:generate:trigger",
705
+ "id": "lightning:generate:event",
690
706
  "pluginAlias": "@salesforce/plugin-templates",
691
707
  "pluginName": "@salesforce/plugin-templates",
692
708
  "pluginType": "core",
693
709
  "strict": true,
694
- "summary": "Generate an Apex trigger.",
710
+ "summary": "Generate a Lightning Event.",
695
711
  "enableJsonFlag": true,
696
712
  "isESM": true,
697
713
  "relativePath": [
698
714
  "lib",
699
715
  "commands",
700
- "apex",
716
+ "lightning",
701
717
  "generate",
702
- "trigger.js"
718
+ "event.js"
703
719
  ],
704
720
  "aliasPermutations": [
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"
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"
729
745
  ],
730
746
  "permutations": [
731
- "apex:generate:trigger",
732
- "generate:apex:trigger",
733
- "generate:trigger:apex",
734
- "apex:trigger:generate",
735
- "trigger:apex:generate",
736
- "trigger:generate:apex"
747
+ "lightning:generate:event",
748
+ "generate:lightning:event",
749
+ "generate:event:lightning",
750
+ "lightning:event:generate",
751
+ "event:lightning:generate",
752
+ "event:generate:lightning"
737
753
  ]
738
754
  },
739
- "lightning:generate:app": {
755
+ "lightning:generate:interface": {
740
756
  "aliases": [
741
- "force:lightning:app:create"
757
+ "force:lightning:interface:create"
742
758
  ],
743
759
  "args": {},
744
760
  "deprecateAliases": true,
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.",
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.",
746
762
  "examples": [
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"
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"
749
765
  ],
750
766
  "flags": {
751
767
  "json": {
@@ -765,14 +781,14 @@
765
781
  },
766
782
  "name": {
767
783
  "aliases": [
768
- "appname"
784
+ "interfacename"
769
785
  ],
770
786
  "char": "n",
771
787
  "deprecateAliases": true,
772
788
  "description": "The name can be up to 40 characters and must start with a letter.",
773
789
  "name": "name",
774
790
  "required": true,
775
- "summary": "Name of the generated Lightning App.",
791
+ "summary": "Name of the generated Lightning Interface.",
776
792
  "hasDynamicHelp": false,
777
793
  "multiple": false,
778
794
  "type": "option"
@@ -782,11 +798,11 @@
782
798
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
783
799
  "name": "template",
784
800
  "summary": "Template to use for file creation.",
785
- "default": "DefaultLightningApp",
801
+ "default": "DefaultLightningIntf",
786
802
  "hasDynamicHelp": false,
787
803
  "multiple": false,
788
804
  "options": [
789
- "DefaultLightningApp"
805
+ "DefaultLightningIntf"
790
806
  ],
791
807
  "type": "option"
792
808
  },
@@ -836,12 +852,12 @@
836
852
  },
837
853
  "hasDynamicHelp": false,
838
854
  "hiddenAliases": [],
839
- "id": "lightning:generate:app",
855
+ "id": "lightning:generate:interface",
840
856
  "pluginAlias": "@salesforce/plugin-templates",
841
857
  "pluginName": "@salesforce/plugin-templates",
842
858
  "pluginType": "core",
843
859
  "strict": true,
844
- "summary": "Generate a Lightning App.",
860
+ "summary": "Generate a Lightning Interface.",
845
861
  "enableJsonFlag": true,
846
862
  "isESM": true,
847
863
  "relativePath": [
@@ -849,55 +865,53 @@
849
865
  "commands",
850
866
  "lightning",
851
867
  "generate",
852
- "app.js"
868
+ "interface.js"
853
869
  ],
854
870
  "aliasPermutations": [
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"
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"
879
895
  ],
880
896
  "permutations": [
881
- "lightning:generate:app",
882
- "generate:lightning:app",
883
- "generate:app:lightning",
884
- "lightning:app:generate",
885
- "app:lightning:generate",
886
- "app:generate:lightning"
897
+ "lightning:generate:interface",
898
+ "generate:lightning:interface",
899
+ "generate:interface:lightning",
900
+ "lightning:interface:generate",
901
+ "interface:lightning:generate",
902
+ "interface:generate:lightning"
887
903
  ]
888
904
  },
889
- "lightning:generate:component": {
905
+ "lightning:generate:test": {
890
906
  "aliases": [
891
- "force:lightning:component:create"
907
+ "force:lightning:test:create"
892
908
  ],
893
909
  "args": {},
894
910
  "deprecateAliases": true,
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.",
911
+ "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
896
912
  "examples": [
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"
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"
901
915
  ],
902
916
  "flags": {
903
917
  "json": {
@@ -917,14 +931,14 @@
917
931
  },
918
932
  "name": {
919
933
  "aliases": [
920
- "componentname"
934
+ "testname"
921
935
  ],
922
936
  "char": "n",
923
937
  "deprecateAliases": true,
924
- "description": "The name can be up to 40 characters and must start with a letter.",
938
+ "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
925
939
  "name": "name",
926
940
  "required": true,
927
- "summary": "Name of the generated Lightning Component.",
941
+ "summary": "Name of the generated Lightning Test.",
928
942
  "hasDynamicHelp": false,
929
943
  "multiple": false,
930
944
  "type": "option"
@@ -934,13 +948,11 @@
934
948
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
935
949
  "name": "template",
936
950
  "summary": "Template to use for file creation.",
937
- "default": "default",
951
+ "default": "DefaultLightningTest",
938
952
  "hasDynamicHelp": false,
939
953
  "multiple": false,
940
954
  "options": [
941
- "default",
942
- "analyticsDashboard",
943
- "analyticsDashboardWithStep"
955
+ "DefaultLightningTest"
944
956
  ],
945
957
  "type": "option"
946
958
  },
@@ -958,6 +970,14 @@
958
970
  "multiple": false,
959
971
  "type": "option"
960
972
  },
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
+ },
961
981
  "api-version": {
962
982
  "aliases": [
963
983
  "apiversion"
@@ -969,26 +989,6 @@
969
989
  "multiple": false,
970
990
  "type": "option"
971
991
  },
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:component",
1005
+ "id": "lightning:generate:test",
1006
1006
  "pluginAlias": "@salesforce/plugin-templates",
1007
1007
  "pluginName": "@salesforce/plugin-templates",
1008
1008
  "pluginType": "core",
1009
1009
  "strict": true,
1010
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1010
+ "summary": "Generate a Lightning test.",
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
- "component.js"
1018
+ "test.js"
1019
1019
  ],
1020
1020
  "aliasPermutations": [
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"
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"
1045
1045
  ],
1046
1046
  "permutations": [
1047
- "lightning:generate:component",
1048
- "generate:lightning:component",
1049
- "generate:component:lightning",
1050
- "lightning:component:generate",
1051
- "component:lightning:generate",
1052
- "component:generate:lightning"
1047
+ "lightning:generate:test",
1048
+ "generate:lightning:test",
1049
+ "generate:test:lightning",
1050
+ "lightning:test:generate",
1051
+ "test:lightning:generate",
1052
+ "test:generate:lightning"
1053
1053
  ]
1054
1054
  },
1055
- "lightning:generate:event": {
1055
+ "apex:generate:class": {
1056
1056
  "aliases": [
1057
- "force:lightning:event:create"
1057
+ "force:apex:class:create"
1058
1058
  ],
1059
1059
  "args": {},
1060
1060
  "deprecateAliases": true,
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.",
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.",
1062
1062
  "examples": [
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"
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"
1065
1065
  ],
1066
1066
  "flags": {
1067
1067
  "json": {
@@ -1081,14 +1081,14 @@
1081
1081
  },
1082
1082
  "name": {
1083
1083
  "aliases": [
1084
- "eventname"
1084
+ "classname"
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 Lightning Event.",
1091
+ "summary": "Name of the generated Apex class.",
1092
1092
  "hasDynamicHelp": false,
1093
1093
  "multiple": false,
1094
1094
  "type": "option"
@@ -1098,11 +1098,15 @@
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": "DefaultLightningEvt",
1101
+ "default": "DefaultApexClass",
1102
1102
  "hasDynamicHelp": false,
1103
1103
  "multiple": false,
1104
1104
  "options": [
1105
- "DefaultLightningEvt"
1105
+ "ApexException",
1106
+ "ApexUnitTest",
1107
+ "BasicUnitTest",
1108
+ "DefaultApexClass",
1109
+ "InboundEmailService"
1106
1110
  ],
1107
1111
  "type": "option"
1108
1112
  },
@@ -1131,14 +1135,6 @@
1131
1135
  "multiple": false,
1132
1136
  "type": "option"
1133
1137
  },
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
- },
1142
1138
  "loglevel": {
1143
1139
  "deprecated": {
1144
1140
  "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."
@@ -1152,66 +1148,67 @@
1152
1148
  },
1153
1149
  "hasDynamicHelp": false,
1154
1150
  "hiddenAliases": [],
1155
- "id": "lightning:generate:event",
1151
+ "id": "apex:generate:class",
1156
1152
  "pluginAlias": "@salesforce/plugin-templates",
1157
1153
  "pluginName": "@salesforce/plugin-templates",
1158
1154
  "pluginType": "core",
1159
1155
  "strict": true,
1160
- "summary": "Generate a Lightning Event.",
1156
+ "summary": "Generate an Apex class.",
1161
1157
  "enableJsonFlag": true,
1162
1158
  "isESM": true,
1163
1159
  "relativePath": [
1164
1160
  "lib",
1165
1161
  "commands",
1166
- "lightning",
1162
+ "apex",
1167
1163
  "generate",
1168
- "event.js"
1164
+ "class.js"
1169
1165
  ],
1170
1166
  "aliasPermutations": [
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"
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"
1195
1191
  ],
1196
1192
  "permutations": [
1197
- "lightning:generate:event",
1198
- "generate:lightning:event",
1199
- "generate:event:lightning",
1200
- "lightning:event:generate",
1201
- "event:lightning:generate",
1202
- "event:generate:lightning"
1193
+ "apex:generate:class",
1194
+ "generate:apex:class",
1195
+ "generate:class:apex",
1196
+ "apex:class:generate",
1197
+ "class:apex:generate",
1198
+ "class:generate:apex"
1203
1199
  ]
1204
1200
  },
1205
- "lightning:generate:interface": {
1201
+ "apex:generate:trigger": {
1206
1202
  "aliases": [
1207
- "force:lightning:interface:create"
1203
+ "force:apex:trigger:create"
1208
1204
  ],
1209
1205
  "args": {},
1210
1206
  "deprecateAliases": true,
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.",
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.",
1212
1208
  "examples": [
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"
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\""
1215
1212
  ],
1216
1213
  "flags": {
1217
1214
  "json": {
@@ -1231,14 +1228,14 @@
1231
1228
  },
1232
1229
  "name": {
1233
1230
  "aliases": [
1234
- "interfacename"
1231
+ "triggername"
1235
1232
  ],
1236
1233
  "char": "n",
1237
1234
  "deprecateAliases": true,
1238
1235
  "description": "The name can be up to 40 characters and must start with a letter.",
1239
1236
  "name": "name",
1240
1237
  "required": true,
1241
- "summary": "Name of the generated Lightning Interface.",
1238
+ "summary": "Name of the generated Apex trigger",
1242
1239
  "hasDynamicHelp": false,
1243
1240
  "multiple": false,
1244
1241
  "type": "option"
@@ -1248,11 +1245,11 @@
1248
1245
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
1249
1246
  "name": "template",
1250
1247
  "summary": "Template to use for file creation.",
1251
- "default": "DefaultLightningIntf",
1248
+ "default": "ApexTrigger",
1252
1249
  "hasDynamicHelp": false,
1253
1250
  "multiple": false,
1254
1251
  "options": [
1255
- "DefaultLightningIntf"
1252
+ "ApexTrigger"
1256
1253
  ],
1257
1254
  "type": "option"
1258
1255
  },
@@ -1281,13 +1278,39 @@
1281
1278
  "multiple": false,
1282
1279
  "type": "option"
1283
1280
  },
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"
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"
1291
1314
  },
1292
1315
  "loglevel": {
1293
1316
  "deprecated": {
@@ -1302,66 +1325,65 @@
1302
1325
  },
1303
1326
  "hasDynamicHelp": false,
1304
1327
  "hiddenAliases": [],
1305
- "id": "lightning:generate:interface",
1328
+ "id": "apex:generate:trigger",
1306
1329
  "pluginAlias": "@salesforce/plugin-templates",
1307
1330
  "pluginName": "@salesforce/plugin-templates",
1308
1331
  "pluginType": "core",
1309
1332
  "strict": true,
1310
- "summary": "Generate a Lightning Interface.",
1333
+ "summary": "Generate an Apex trigger.",
1311
1334
  "enableJsonFlag": true,
1312
1335
  "isESM": true,
1313
1336
  "relativePath": [
1314
1337
  "lib",
1315
1338
  "commands",
1316
- "lightning",
1339
+ "apex",
1317
1340
  "generate",
1318
- "interface.js"
1341
+ "trigger.js"
1319
1342
  ],
1320
1343
  "aliasPermutations": [
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"
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"
1345
1368
  ],
1346
1369
  "permutations": [
1347
- "lightning:generate:interface",
1348
- "generate:lightning:interface",
1349
- "generate:interface:lightning",
1350
- "lightning:interface:generate",
1351
- "interface:lightning:generate",
1352
- "interface:generate:lightning"
1370
+ "apex:generate:trigger",
1371
+ "generate:apex:trigger",
1372
+ "generate:trigger:apex",
1373
+ "apex:trigger:generate",
1374
+ "trigger:apex:generate",
1375
+ "trigger:generate:apex"
1353
1376
  ]
1354
1377
  },
1355
- "lightning:generate:test": {
1378
+ "analytics:generate:template": {
1356
1379
  "aliases": [
1357
- "force:lightning:test:create"
1380
+ "force:analytics:template:create"
1358
1381
  ],
1359
1382
  "args": {},
1360
1383
  "deprecateAliases": true,
1361
- "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
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.",
1362
1385
  "examples": [
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"
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"
1365
1387
  ],
1366
1388
  "flags": {
1367
1389
  "json": {
@@ -1379,33 +1401,6 @@
1379
1401
  "multiple": false,
1380
1402
  "type": "option"
1381
1403
  },
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
- },
1409
1404
  "output-dir": {
1410
1405
  "aliases": [
1411
1406
  "outputdir"
@@ -1420,14 +1415,6 @@
1420
1415
  "multiple": false,
1421
1416
  "type": "option"
1422
1417
  },
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
- },
1431
1418
  "api-version": {
1432
1419
  "aliases": [
1433
1420
  "apiversion"
@@ -1439,6 +1426,19 @@
1439
1426
  "multiple": false,
1440
1427
  "type": "option"
1441
1428
  },
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": "lightning:generate:test",
1455
+ "id": "analytics:generate:template",
1456
1456
  "pluginAlias": "@salesforce/plugin-templates",
1457
1457
  "pluginName": "@salesforce/plugin-templates",
1458
1458
  "pluginType": "core",
1459
1459
  "strict": true,
1460
- "summary": "Generate a Lightning test.",
1460
+ "summary": "Generate a simple Analytics template.",
1461
1461
  "enableJsonFlag": true,
1462
1462
  "isESM": true,
1463
1463
  "relativePath": [
1464
1464
  "lib",
1465
1465
  "commands",
1466
- "lightning",
1466
+ "analytics",
1467
1467
  "generate",
1468
- "test.js"
1468
+ "template.js"
1469
1469
  ],
1470
1470
  "aliasPermutations": [
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"
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"
1495
1495
  ],
1496
1496
  "permutations": [
1497
- "lightning:generate:test",
1498
- "generate:lightning:test",
1499
- "generate:test:lightning",
1500
- "lightning:test:generate",
1501
- "test:lightning:generate",
1502
- "test:generate:lightning"
1497
+ "analytics:generate:template",
1498
+ "generate:analytics:template",
1499
+ "generate:template:analytics",
1500
+ "analytics:template:generate",
1501
+ "template:analytics:generate",
1502
+ "template:generate:analytics"
1503
1503
  ]
1504
1504
  },
1505
1505
  "visualforce:generate:component": {
@@ -1806,5 +1806,5 @@
1806
1806
  ]
1807
1807
  }
1808
1808
  },
1809
- "version": "56.3.37"
1809
+ "version": "56.3.39"
1810
1810
  }