@salesforce/plugin-templates 57.0.2 → 57.0.3

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 +15 -15
  2. package/oclif.manifest.json +784 -784
  3. package/package.json +3 -3
@@ -1,5 +1,158 @@
1
1
  {
2
2
  "commands": {
3
+ "template:generate:analytics:template": {
4
+ "aliases": [
5
+ "force:analytics:template:create",
6
+ "analytics:generate:template"
7
+ ],
8
+ "args": {},
9
+ "deprecateAliases": true,
10
+ "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.",
11
+ "examples": [
12
+ "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"
13
+ ],
14
+ "flags": {
15
+ "json": {
16
+ "description": "Format output as json.",
17
+ "helpGroup": "GLOBAL",
18
+ "name": "json",
19
+ "allowNo": false,
20
+ "type": "boolean"
21
+ },
22
+ "flags-dir": {
23
+ "helpGroup": "GLOBAL",
24
+ "name": "flags-dir",
25
+ "summary": "Import flag values from a directory.",
26
+ "hasDynamicHelp": false,
27
+ "multiple": false,
28
+ "type": "option"
29
+ },
30
+ "output-dir": {
31
+ "aliases": [
32
+ "outputdir"
33
+ ],
34
+ "char": "d",
35
+ "deprecateAliases": true,
36
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
37
+ "name": "output-dir",
38
+ "summary": "Directory for saving the created files.",
39
+ "default": ".",
40
+ "hasDynamicHelp": false,
41
+ "multiple": false,
42
+ "type": "option"
43
+ },
44
+ "api-version": {
45
+ "aliases": [
46
+ "apiversion"
47
+ ],
48
+ "deprecateAliases": true,
49
+ "description": "Override the api version used for api requests made by this command",
50
+ "name": "api-version",
51
+ "hasDynamicHelp": false,
52
+ "multiple": false,
53
+ "type": "option"
54
+ },
55
+ "name": {
56
+ "aliases": [
57
+ "templatename"
58
+ ],
59
+ "char": "n",
60
+ "deprecateAliases": true,
61
+ "name": "name",
62
+ "required": true,
63
+ "summary": "Name of the Analytics template.",
64
+ "hasDynamicHelp": false,
65
+ "multiple": false,
66
+ "type": "option"
67
+ },
68
+ "loglevel": {
69
+ "deprecated": {
70
+ "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 `SF_LOG_LEVEL` environment variable."
71
+ },
72
+ "hidden": true,
73
+ "name": "loglevel",
74
+ "hasDynamicHelp": false,
75
+ "multiple": false,
76
+ "type": "option"
77
+ }
78
+ },
79
+ "hasDynamicHelp": false,
80
+ "hiddenAliases": [],
81
+ "id": "template:generate:analytics:template",
82
+ "pluginAlias": "@salesforce/plugin-templates",
83
+ "pluginName": "@salesforce/plugin-templates",
84
+ "pluginType": "core",
85
+ "strict": true,
86
+ "summary": "Generate a simple Analytics template.",
87
+ "enableJsonFlag": true,
88
+ "isESM": true,
89
+ "relativePath": [
90
+ "lib",
91
+ "commands",
92
+ "template",
93
+ "generate",
94
+ "analytics",
95
+ "template.js"
96
+ ],
97
+ "aliasPermutations": [
98
+ "force:analytics:template:create",
99
+ "analytics:force:template:create",
100
+ "analytics:template:force:create",
101
+ "analytics:template:create:force",
102
+ "force:template:analytics:create",
103
+ "template:force:analytics:create",
104
+ "template:analytics:force:create",
105
+ "template:analytics:create:force",
106
+ "force:template:create:analytics",
107
+ "template:force:create:analytics",
108
+ "template:create:force:analytics",
109
+ "template:create:analytics:force",
110
+ "force:analytics:create:template",
111
+ "analytics:force:create:template",
112
+ "analytics:create:force:template",
113
+ "analytics:create:template:force",
114
+ "force:create:analytics:template",
115
+ "create:force:analytics:template",
116
+ "create:analytics:force:template",
117
+ "create:analytics:template:force",
118
+ "force:create:template:analytics",
119
+ "create:force:template:analytics",
120
+ "create:template:force:analytics",
121
+ "create:template:analytics:force",
122
+ "analytics:generate:template",
123
+ "generate:analytics:template",
124
+ "generate:template:analytics",
125
+ "analytics:template:generate",
126
+ "template:analytics:generate",
127
+ "template:generate:analytics"
128
+ ],
129
+ "permutations": [
130
+ "template:generate:analytics:template",
131
+ "generate:template:analytics:template",
132
+ "generate:analytics:template:template",
133
+ "generate:analytics:template:template",
134
+ "template:analytics:generate:template",
135
+ "analytics:template:generate:template",
136
+ "analytics:generate:template:template",
137
+ "analytics:generate:template:template",
138
+ "template:analytics:template:generate",
139
+ "analytics:template:template:generate",
140
+ "analytics:template:template:generate",
141
+ "analytics:template:generate:template",
142
+ "template:generate:template:analytics",
143
+ "generate:template:template:analytics",
144
+ "generate:template:template:analytics",
145
+ "generate:template:analytics:template",
146
+ "template:template:generate:analytics",
147
+ "template:template:generate:analytics",
148
+ "template:generate:template:analytics",
149
+ "template:generate:analytics:template",
150
+ "template:template:analytics:generate",
151
+ "template:template:analytics:generate",
152
+ "template:analytics:template:generate",
153
+ "template:analytics:generate:template"
154
+ ]
155
+ },
3
156
  "template:generate:apex:class": {
4
157
  "aliases": [
5
158
  "force:apex:class:create",
@@ -377,16 +530,13 @@
377
530
  "trigger:apex:generate:template"
378
531
  ]
379
532
  },
380
- "template:generate:analytics:template": {
381
- "aliases": [
382
- "force:analytics:template:create",
383
- "analytics:generate:template"
384
- ],
533
+ "template:generate:digital-experience:site": {
534
+ "aliases": [],
385
535
  "args": {},
386
- "deprecateAliases": true,
387
- "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.",
536
+ "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
388
537
  "examples": [
389
- "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"
538
+ "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
539
+ "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
390
540
  ],
391
541
  "flags": {
392
542
  "json": {
@@ -404,63 +554,72 @@
404
554
  "multiple": false,
405
555
  "type": "option"
406
556
  },
407
- "output-dir": {
408
- "aliases": [
409
- "outputdir"
410
- ],
411
- "char": "d",
412
- "deprecateAliases": true,
413
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
414
- "name": "output-dir",
415
- "summary": "Directory for saving the created files.",
416
- "default": ".",
557
+ "target-org": {
558
+ "char": "o",
559
+ "name": "target-org",
560
+ "noCacheDefault": true,
561
+ "summary": "Username or alias of the target org.",
562
+ "hasDynamicHelp": true,
563
+ "multiple": false,
564
+ "type": "option"
565
+ },
566
+ "name": {
567
+ "char": "n",
568
+ "name": "name",
569
+ "required": true,
570
+ "summary": "Name of the Experience Cloud site to generate.",
417
571
  "hasDynamicHelp": false,
418
572
  "multiple": false,
419
573
  "type": "option"
420
574
  },
421
- "api-version": {
422
- "aliases": [
423
- "apiversion"
575
+ "template-name": {
576
+ "char": "t",
577
+ "name": "template-name",
578
+ "required": true,
579
+ "summary": "Template to use when generating the site.",
580
+ "hasDynamicHelp": false,
581
+ "multiple": false,
582
+ "options": [
583
+ "Build Your Own (LWR)"
424
584
  ],
425
- "deprecateAliases": true,
426
- "description": "Override the api version used for api requests made by this command",
427
- "name": "api-version",
585
+ "type": "option"
586
+ },
587
+ "url-path-prefix": {
588
+ "char": "p",
589
+ "name": "url-path-prefix",
590
+ "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
591
+ "default": "",
428
592
  "hasDynamicHelp": false,
429
593
  "multiple": false,
430
594
  "type": "option"
431
595
  },
432
- "name": {
433
- "aliases": [
434
- "templatename"
435
- ],
436
- "char": "n",
437
- "deprecateAliases": true,
438
- "name": "name",
439
- "required": true,
440
- "summary": "Name of the Analytics template.",
596
+ "admin-email": {
597
+ "char": "e",
598
+ "name": "admin-email",
599
+ "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
441
600
  "hasDynamicHelp": false,
442
601
  "multiple": false,
443
602
  "type": "option"
444
603
  },
445
- "loglevel": {
446
- "deprecated": {
447
- "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 `SF_LOG_LEVEL` environment variable."
448
- },
449
- "hidden": true,
450
- "name": "loglevel",
604
+ "output-dir": {
605
+ "char": "d",
606
+ "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
607
+ "name": "output-dir",
608
+ "summary": "Directory to generate the site files in.",
451
609
  "hasDynamicHelp": false,
452
610
  "multiple": false,
453
611
  "type": "option"
454
612
  }
455
613
  },
456
- "hasDynamicHelp": false,
614
+ "hasDynamicHelp": true,
457
615
  "hiddenAliases": [],
458
- "id": "template:generate:analytics:template",
616
+ "id": "template:generate:digital-experience:site",
459
617
  "pluginAlias": "@salesforce/plugin-templates",
460
618
  "pluginName": "@salesforce/plugin-templates",
461
619
  "pluginType": "core",
620
+ "state": "preview",
462
621
  "strict": true,
463
- "summary": "Generate a simple Analytics template.",
622
+ "summary": "Generate an Experience Cloud site.",
464
623
  "enableJsonFlag": true,
465
624
  "isESM": true,
466
625
  "relativePath": [
@@ -468,167 +627,8 @@
468
627
  "commands",
469
628
  "template",
470
629
  "generate",
471
- "analytics",
472
- "template.js"
473
- ],
474
- "aliasPermutations": [
475
- "force:analytics:template:create",
476
- "analytics:force:template:create",
477
- "analytics:template:force:create",
478
- "analytics:template:create:force",
479
- "force:template:analytics:create",
480
- "template:force:analytics:create",
481
- "template:analytics:force:create",
482
- "template:analytics:create:force",
483
- "force:template:create:analytics",
484
- "template:force:create:analytics",
485
- "template:create:force:analytics",
486
- "template:create:analytics:force",
487
- "force:analytics:create:template",
488
- "analytics:force:create:template",
489
- "analytics:create:force:template",
490
- "analytics:create:template:force",
491
- "force:create:analytics:template",
492
- "create:force:analytics:template",
493
- "create:analytics:force:template",
494
- "create:analytics:template:force",
495
- "force:create:template:analytics",
496
- "create:force:template:analytics",
497
- "create:template:force:analytics",
498
- "create:template:analytics:force",
499
- "analytics:generate:template",
500
- "generate:analytics:template",
501
- "generate:template:analytics",
502
- "analytics:template:generate",
503
- "template:analytics:generate",
504
- "template:generate:analytics"
505
- ],
506
- "permutations": [
507
- "template:generate:analytics:template",
508
- "generate:template:analytics:template",
509
- "generate:analytics:template:template",
510
- "generate:analytics:template:template",
511
- "template:analytics:generate:template",
512
- "analytics:template:generate:template",
513
- "analytics:generate:template:template",
514
- "analytics:generate:template:template",
515
- "template:analytics:template:generate",
516
- "analytics:template:template:generate",
517
- "analytics:template:template:generate",
518
- "analytics:template:generate:template",
519
- "template:generate:template:analytics",
520
- "generate:template:template:analytics",
521
- "generate:template:template:analytics",
522
- "generate:template:analytics:template",
523
- "template:template:generate:analytics",
524
- "template:template:generate:analytics",
525
- "template:generate:template:analytics",
526
- "template:generate:analytics:template",
527
- "template:template:analytics:generate",
528
- "template:template:analytics:generate",
529
- "template:analytics:template:generate",
530
- "template:analytics:generate:template"
531
- ]
532
- },
533
- "template:generate:digital-experience:site": {
534
- "aliases": [],
535
- "args": {},
536
- "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
537
- "examples": [
538
- "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
539
- "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
540
- ],
541
- "flags": {
542
- "json": {
543
- "description": "Format output as json.",
544
- "helpGroup": "GLOBAL",
545
- "name": "json",
546
- "allowNo": false,
547
- "type": "boolean"
548
- },
549
- "flags-dir": {
550
- "helpGroup": "GLOBAL",
551
- "name": "flags-dir",
552
- "summary": "Import flag values from a directory.",
553
- "hasDynamicHelp": false,
554
- "multiple": false,
555
- "type": "option"
556
- },
557
- "target-org": {
558
- "char": "o",
559
- "name": "target-org",
560
- "noCacheDefault": true,
561
- "summary": "Username or alias of the target org.",
562
- "hasDynamicHelp": true,
563
- "multiple": false,
564
- "type": "option"
565
- },
566
- "name": {
567
- "char": "n",
568
- "name": "name",
569
- "required": true,
570
- "summary": "Name of the Experience Cloud site to generate.",
571
- "hasDynamicHelp": false,
572
- "multiple": false,
573
- "type": "option"
574
- },
575
- "template-name": {
576
- "char": "t",
577
- "name": "template-name",
578
- "required": true,
579
- "summary": "Template to use when generating the site.",
580
- "hasDynamicHelp": false,
581
- "multiple": false,
582
- "options": [
583
- "Build Your Own (LWR)"
584
- ],
585
- "type": "option"
586
- },
587
- "url-path-prefix": {
588
- "char": "p",
589
- "name": "url-path-prefix",
590
- "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
591
- "default": "",
592
- "hasDynamicHelp": false,
593
- "multiple": false,
594
- "type": "option"
595
- },
596
- "admin-email": {
597
- "char": "e",
598
- "name": "admin-email",
599
- "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
600
- "hasDynamicHelp": false,
601
- "multiple": false,
602
- "type": "option"
603
- },
604
- "output-dir": {
605
- "char": "d",
606
- "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
607
- "name": "output-dir",
608
- "summary": "Directory to generate the site files in.",
609
- "hasDynamicHelp": false,
610
- "multiple": false,
611
- "type": "option"
612
- }
613
- },
614
- "hasDynamicHelp": true,
615
- "hiddenAliases": [],
616
- "id": "template:generate:digital-experience:site",
617
- "pluginAlias": "@salesforce/plugin-templates",
618
- "pluginName": "@salesforce/plugin-templates",
619
- "pluginType": "core",
620
- "state": "preview",
621
- "strict": true,
622
- "summary": "Generate an Experience Cloud site.",
623
- "enableJsonFlag": true,
624
- "isESM": true,
625
- "relativePath": [
626
- "lib",
627
- "commands",
628
- "template",
629
- "generate",
630
- "digital-experience",
631
- "site.js"
630
+ "digital-experience",
631
+ "site.js"
632
632
  ],
633
633
  "aliasPermutations": [],
634
634
  "permutations": [
@@ -658,17 +658,15 @@
658
658
  "site:digital-experience:generate:template"
659
659
  ]
660
660
  },
661
- "template:generate:lightning:app": {
662
- "aliases": [
663
- "force:lightning:app:create",
664
- "lightning:generate:app"
665
- ],
661
+ "template:generate:flexipage": {
662
+ "aliases": [],
666
663
  "args": {},
667
- "deprecateAliases": true,
668
- "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.",
664
+ "description": "FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen made up of regions containing Lightning components.\n\nYou can use this command to generate these types of FlexiPages; specify the type with the --template flag:\n\n- AppPage: A Lightning page used as the home page for a custom app or a standalone application page.\n- HomePage: A Lightning page used to override the Home page in Lightning Experience.\n- RecordPage: A Lightning page used to override an object record page in Lightning Experience. Requires that you specify the object name with the --sobject flag.",
669
665
  "examples": [
670
- "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
671
- "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"
666
+ "Generate a RecordPage FlexiPage for the Account object in the current directory:\n<%= config.bin %> <%= command.id %> --name Account_Record_Page --template RecordPage --sobject Account",
667
+ "Generate an AppPage FlexiPage in the \"force-app/main/default/flexipages\" directory:\n<%= config.bin %> <%= command.id %> --name Sales_Dashboard --template AppPage --output-dir force-app/main/default/flexipages",
668
+ "Generate a HomePage FlexiPage with a custom label:\n<%= config.bin %> <%= command.id %> --name Custom_Home --template HomePage --label \"Sales Home Page\"",
669
+ "Generate a RecordPage with dynamic highlights and detail fields:\n<%= config.bin %> <%= command.id %> --name Property_Page --template RecordPage --sobject Rental_Property__c --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c"
672
670
  ],
673
671
  "flags": {
674
672
  "json": {
@@ -688,28 +686,29 @@
688
686
  },
689
687
  "name": {
690
688
  "aliases": [
691
- "appname"
689
+ "flexipagename"
692
690
  ],
693
691
  "char": "n",
694
692
  "deprecateAliases": true,
695
- "description": "The name can be up to 40 characters and must start with a letter.",
693
+ "description": "The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or contain two consecutive underscores.",
696
694
  "name": "name",
697
695
  "required": true,
698
- "summary": "Name of the generated Lightning App.",
696
+ "summary": "Name of the FlexiPage.",
699
697
  "hasDynamicHelp": false,
700
698
  "multiple": false,
701
699
  "type": "option"
702
700
  },
703
701
  "template": {
704
702
  "char": "t",
705
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
706
703
  "name": "template",
707
- "summary": "Template to use for file creation.",
708
- "default": "DefaultLightningApp",
704
+ "required": true,
705
+ "summary": "Template type for the FlexiPage.",
709
706
  "hasDynamicHelp": false,
710
707
  "multiple": false,
711
708
  "options": [
712
- "DefaultLightningApp"
709
+ "RecordPage",
710
+ "AppPage",
711
+ "HomePage"
713
712
  ],
714
713
  "type": "option"
715
714
  },
@@ -738,6 +737,61 @@
738
737
  "multiple": false,
739
738
  "type": "option"
740
739
  },
740
+ "label": {
741
+ "aliases": [
742
+ "masterlabel"
743
+ ],
744
+ "deprecateAliases": true,
745
+ "name": "label",
746
+ "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
747
+ "hasDynamicHelp": false,
748
+ "multiple": false,
749
+ "type": "option"
750
+ },
751
+ "description": {
752
+ "name": "description",
753
+ "summary": "Description for the FlexiPage, which provides context about its purpose.",
754
+ "hasDynamicHelp": false,
755
+ "multiple": false,
756
+ "type": "option"
757
+ },
758
+ "sobject": {
759
+ "aliases": [
760
+ "entity-name",
761
+ "entity"
762
+ ],
763
+ "char": "s",
764
+ "deprecateAliases": true,
765
+ "description": "For RecordPage FlexiPages, you must specify the associated object API name, such as 'Account', 'Opportunity', or 'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.",
766
+ "name": "sobject",
767
+ "summary": "API name of the Salesforce object; required when creating a RecordPage.",
768
+ "hasDynamicHelp": false,
769
+ "multiple": false,
770
+ "type": "option"
771
+ },
772
+ "primary-field": {
773
+ "name": "primary-field",
774
+ "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
775
+ "hasDynamicHelp": false,
776
+ "multiple": false,
777
+ "type": "option"
778
+ },
779
+ "secondary-fields": {
780
+ "name": "secondary-fields",
781
+ "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
782
+ "delimiter": ",",
783
+ "hasDynamicHelp": false,
784
+ "multiple": true,
785
+ "type": "option"
786
+ },
787
+ "detail-fields": {
788
+ "name": "detail-fields",
789
+ "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
790
+ "delimiter": ",",
791
+ "hasDynamicHelp": false,
792
+ "multiple": true,
793
+ "type": "option"
794
+ },
741
795
  "internal": {
742
796
  "char": "i",
743
797
  "hidden": true,
@@ -756,98 +810,51 @@
756
810
  "multiple": false,
757
811
  "type": "option"
758
812
  }
759
- },
760
- "hasDynamicHelp": false,
761
- "hiddenAliases": [],
762
- "id": "template:generate:lightning:app",
763
- "pluginAlias": "@salesforce/plugin-templates",
764
- "pluginName": "@salesforce/plugin-templates",
765
- "pluginType": "core",
766
- "strict": true,
767
- "summary": "Generate a Lightning App.",
768
- "enableJsonFlag": true,
769
- "isESM": true,
770
- "relativePath": [
771
- "lib",
772
- "commands",
773
- "template",
774
- "generate",
775
- "lightning",
776
- "app.js"
777
- ],
778
- "aliasPermutations": [
779
- "force:lightning:app:create",
780
- "lightning:force:app:create",
781
- "lightning:app:force:create",
782
- "lightning:app:create:force",
783
- "force:app:lightning:create",
784
- "app:force:lightning:create",
785
- "app:lightning:force:create",
786
- "app:lightning:create:force",
787
- "force:app:create:lightning",
788
- "app:force:create:lightning",
789
- "app:create:force:lightning",
790
- "app:create:lightning:force",
791
- "force:lightning:create:app",
792
- "lightning:force:create:app",
793
- "lightning:create:force:app",
794
- "lightning:create:app:force",
795
- "force:create:lightning:app",
796
- "create:force:lightning:app",
797
- "create:lightning:force:app",
798
- "create:lightning:app:force",
799
- "force:create:app:lightning",
800
- "create:force:app:lightning",
801
- "create:app:force:lightning",
802
- "create:app:lightning:force",
803
- "lightning:generate:app",
804
- "generate:lightning:app",
805
- "generate:app:lightning",
806
- "lightning:app:generate",
807
- "app:lightning:generate",
808
- "app:generate:lightning"
813
+ },
814
+ "hasDynamicHelp": false,
815
+ "hiddenAliases": [],
816
+ "id": "template:generate:flexipage",
817
+ "pluginAlias": "@salesforce/plugin-templates",
818
+ "pluginName": "@salesforce/plugin-templates",
819
+ "pluginType": "core",
820
+ "state": "beta",
821
+ "strict": true,
822
+ "summary": "Generate a FlexiPage, also known as a Lightning page.",
823
+ "enableJsonFlag": true,
824
+ "MAX_SECONDARY_FIELDS": 11,
825
+ "isESM": true,
826
+ "relativePath": [
827
+ "lib",
828
+ "commands",
829
+ "template",
830
+ "generate",
831
+ "flexipage",
832
+ "index.js"
809
833
  ],
834
+ "aliasPermutations": [],
810
835
  "permutations": [
811
- "template:generate:lightning:app",
812
- "generate:template:lightning:app",
813
- "generate:lightning:template:app",
814
- "generate:lightning:app:template",
815
- "template:lightning:generate:app",
816
- "lightning:template:generate:app",
817
- "lightning:generate:template:app",
818
- "lightning:generate:app:template",
819
- "template:lightning:app:generate",
820
- "lightning:template:app:generate",
821
- "lightning:app:template:generate",
822
- "lightning:app:generate:template",
823
- "template:generate:app:lightning",
824
- "generate:template:app:lightning",
825
- "generate:app:template:lightning",
826
- "generate:app:lightning:template",
827
- "template:app:generate:lightning",
828
- "app:template:generate:lightning",
829
- "app:generate:template:lightning",
830
- "app:generate:lightning:template",
831
- "template:app:lightning:generate",
832
- "app:template:lightning:generate",
833
- "app:lightning:template:generate",
834
- "app:lightning:generate:template"
836
+ "template:generate:flexipage",
837
+ "generate:template:flexipage",
838
+ "generate:flexipage:template",
839
+ "template:flexipage:generate",
840
+ "flexipage:template:generate",
841
+ "flexipage:generate:template"
835
842
  ]
836
843
  },
837
- "template:generate:lightning:component": {
844
+ "template:generate:project": {
838
845
  "aliases": [
839
- "force:lightning:component:create",
840
- "lightning:generate:component"
846
+ "force:project:create",
847
+ "project:generate"
841
848
  ],
842
849
  "args": {},
843
850
  "deprecateAliases": true,
844
- "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.",
851
+ "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
845
852
  "examples": [
846
- "Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
847
- "Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
848
- "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",
849
- "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",
850
- "Generate a TypeScript Lightning Web Component:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc --template typescript"
853
+ "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
854
+ "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
855
+ "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
856
+ "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
857
+ "Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
851
858
  ],
852
859
  "flags": {
853
860
  "json": {
@@ -867,31 +874,35 @@
867
874
  },
868
875
  "name": {
869
876
  "aliases": [
870
- "componentname"
877
+ "projectname"
871
878
  ],
872
879
  "char": "n",
873
880
  "deprecateAliases": true,
874
- "description": "The name can be up to 40 characters and must start with a letter.",
881
+ "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
875
882
  "name": "name",
876
883
  "required": true,
877
- "summary": "Name of the generated Lightning Component.",
884
+ "summary": "Name of the generated project.",
878
885
  "hasDynamicHelp": false,
879
886
  "multiple": false,
880
887
  "type": "option"
881
888
  },
882
889
  "template": {
883
890
  "char": "t",
884
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
891
+ "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
885
892
  "name": "template",
886
- "summary": "Template to use for file creation.",
887
- "default": "default",
893
+ "summary": "Template to use for project creation.",
894
+ "default": "standard",
888
895
  "hasDynamicHelp": false,
889
896
  "multiple": false,
890
897
  "options": [
891
- "default",
892
- "analyticsDashboard",
893
- "analyticsDashboardWithStep",
894
- "typescript"
898
+ "standard",
899
+ "empty",
900
+ "analytics",
901
+ "reactinternalapp",
902
+ "reactexternalapp",
903
+ "angularinternalapp",
904
+ "angularexternalapp",
905
+ "agent"
895
906
  ],
896
907
  "type": "option"
897
908
  },
@@ -909,37 +920,64 @@
909
920
  "multiple": false,
910
921
  "type": "option"
911
922
  },
912
- "api-version": {
923
+ "namespace": {
924
+ "char": "s",
925
+ "name": "namespace",
926
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
927
+ "default": "",
928
+ "hasDynamicHelp": false,
929
+ "multiple": false,
930
+ "type": "option"
931
+ },
932
+ "default-package-dir": {
913
933
  "aliases": [
914
- "apiversion"
934
+ "defaultpackagedir"
915
935
  ],
936
+ "char": "p",
916
937
  "deprecateAliases": true,
917
- "description": "Override the api version used for api requests made by this command",
918
- "name": "api-version",
938
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
939
+ "name": "default-package-dir",
940
+ "summary": "Default package directory name.",
941
+ "default": "force-app",
919
942
  "hasDynamicHelp": false,
920
943
  "multiple": false,
921
944
  "type": "option"
922
945
  },
923
- "type": {
924
- "name": "type",
925
- "summary": "Type of the component bundle.",
926
- "default": "aura",
946
+ "manifest": {
947
+ "char": "x",
948
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
949
+ "name": "manifest",
950
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
951
+ "allowNo": false,
952
+ "type": "boolean"
953
+ },
954
+ "login-url": {
955
+ "aliases": [
956
+ "loginurl"
957
+ ],
958
+ "char": "l",
959
+ "deprecateAliases": true,
960
+ "description": "Normally defaults to https://login.salesforce.com.",
961
+ "hidden": true,
962
+ "name": "login-url",
963
+ "summary": "Salesforce instance login URL.",
964
+ "default": "https://login.salesforce.com",
965
+ "hasDynamicHelp": false,
966
+ "multiple": false,
967
+ "type": "option"
968
+ },
969
+ "lwc-language": {
970
+ "description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
971
+ "name": "lwc-language",
972
+ "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
927
973
  "hasDynamicHelp": false,
928
974
  "multiple": false,
929
975
  "options": [
930
- "aura",
931
- "lwc"
976
+ "javascript",
977
+ "typescript"
932
978
  ],
933
979
  "type": "option"
934
980
  },
935
- "internal": {
936
- "char": "i",
937
- "hidden": true,
938
- "name": "internal",
939
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
940
- "allowNo": false,
941
- "type": "boolean"
942
- },
943
981
  "loglevel": {
944
982
  "deprecated": {
945
983
  "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 `SF_LOG_LEVEL` environment variable."
@@ -949,16 +987,24 @@
949
987
  "hasDynamicHelp": false,
950
988
  "multiple": false,
951
989
  "type": "option"
990
+ },
991
+ "api-version": {
992
+ "description": "Override the api version used for api requests made by this command",
993
+ "name": "api-version",
994
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
995
+ "hasDynamicHelp": false,
996
+ "multiple": false,
997
+ "type": "option"
952
998
  }
953
999
  },
954
1000
  "hasDynamicHelp": false,
955
1001
  "hiddenAliases": [],
956
- "id": "template:generate:lightning:component",
1002
+ "id": "template:generate:project",
957
1003
  "pluginAlias": "@salesforce/plugin-templates",
958
1004
  "pluginName": "@salesforce/plugin-templates",
959
1005
  "pluginType": "core",
960
1006
  "strict": true,
961
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1007
+ "summary": "Generate a Salesforce DX project.",
962
1008
  "enableJsonFlag": true,
963
1009
  "isESM": true,
964
1010
  "relativePath": [
@@ -966,79 +1012,39 @@
966
1012
  "commands",
967
1013
  "template",
968
1014
  "generate",
969
- "lightning",
970
- "component.js"
1015
+ "project",
1016
+ "index.js"
971
1017
  ],
972
1018
  "aliasPermutations": [
973
- "force:lightning:component:create",
974
- "lightning:force:component:create",
975
- "lightning:component:force:create",
976
- "lightning:component:create:force",
977
- "force:component:lightning:create",
978
- "component:force:lightning:create",
979
- "component:lightning:force:create",
980
- "component:lightning:create:force",
981
- "force:component:create:lightning",
982
- "component:force:create:lightning",
983
- "component:create:force:lightning",
984
- "component:create:lightning:force",
985
- "force:lightning:create:component",
986
- "lightning:force:create:component",
987
- "lightning:create:force:component",
988
- "lightning:create:component:force",
989
- "force:create:lightning:component",
990
- "create:force:lightning:component",
991
- "create:lightning:force:component",
992
- "create:lightning:component:force",
993
- "force:create:component:lightning",
994
- "create:force:component:lightning",
995
- "create:component:force:lightning",
996
- "create:component:lightning:force",
997
- "lightning:generate:component",
998
- "generate:lightning:component",
999
- "generate:component:lightning",
1000
- "lightning:component:generate",
1001
- "component:lightning:generate",
1002
- "component:generate:lightning"
1019
+ "force:project:create",
1020
+ "project:force:create",
1021
+ "project:create:force",
1022
+ "force:create:project",
1023
+ "create:force:project",
1024
+ "create:project:force",
1025
+ "project:generate",
1026
+ "generate:project"
1003
1027
  ],
1004
1028
  "permutations": [
1005
- "template:generate:lightning:component",
1006
- "generate:template:lightning:component",
1007
- "generate:lightning:template:component",
1008
- "generate:lightning:component:template",
1009
- "template:lightning:generate:component",
1010
- "lightning:template:generate:component",
1011
- "lightning:generate:template:component",
1012
- "lightning:generate:component:template",
1013
- "template:lightning:component:generate",
1014
- "lightning:template:component:generate",
1015
- "lightning:component:template:generate",
1016
- "lightning:component:generate:template",
1017
- "template:generate:component:lightning",
1018
- "generate:template:component:lightning",
1019
- "generate:component:template:lightning",
1020
- "generate:component:lightning:template",
1021
- "template:component:generate:lightning",
1022
- "component:template:generate:lightning",
1023
- "component:generate:template:lightning",
1024
- "component:generate:lightning:template",
1025
- "template:component:lightning:generate",
1026
- "component:template:lightning:generate",
1027
- "component:lightning:template:generate",
1028
- "component:lightning:generate:template"
1029
+ "template:generate:project",
1030
+ "generate:template:project",
1031
+ "generate:project:template",
1032
+ "template:project:generate",
1033
+ "project:template:generate",
1034
+ "project:generate:template"
1029
1035
  ]
1030
1036
  },
1031
- "template:generate:lightning:event": {
1037
+ "template:generate:lightning:app": {
1032
1038
  "aliases": [
1033
- "force:lightning:event:create",
1034
- "lightning:generate:event"
1039
+ "force:lightning:app:create",
1040
+ "lightning:generate:app"
1035
1041
  ],
1036
1042
  "args": {},
1037
1043
  "deprecateAliases": true,
1038
- "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.",
1044
+ "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.",
1039
1045
  "examples": [
1040
- "Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
1041
- "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"
1046
+ "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
1047
+ "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"
1042
1048
  ],
1043
1049
  "flags": {
1044
1050
  "json": {
@@ -1058,14 +1064,14 @@
1058
1064
  },
1059
1065
  "name": {
1060
1066
  "aliases": [
1061
- "eventname"
1067
+ "appname"
1062
1068
  ],
1063
1069
  "char": "n",
1064
1070
  "deprecateAliases": true,
1065
1071
  "description": "The name can be up to 40 characters and must start with a letter.",
1066
1072
  "name": "name",
1067
1073
  "required": true,
1068
- "summary": "Name of the generated Lightning Event.",
1074
+ "summary": "Name of the generated Lightning App.",
1069
1075
  "hasDynamicHelp": false,
1070
1076
  "multiple": false,
1071
1077
  "type": "option"
@@ -1075,11 +1081,11 @@
1075
1081
  "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1076
1082
  "name": "template",
1077
1083
  "summary": "Template to use for file creation.",
1078
- "default": "DefaultLightningEvt",
1084
+ "default": "DefaultLightningApp",
1079
1085
  "hasDynamicHelp": false,
1080
1086
  "multiple": false,
1081
1087
  "options": [
1082
- "DefaultLightningEvt"
1088
+ "DefaultLightningApp"
1083
1089
  ],
1084
1090
  "type": "option"
1085
1091
  },
@@ -1129,12 +1135,12 @@
1129
1135
  },
1130
1136
  "hasDynamicHelp": false,
1131
1137
  "hiddenAliases": [],
1132
- "id": "template:generate:lightning:event",
1138
+ "id": "template:generate:lightning:app",
1133
1139
  "pluginAlias": "@salesforce/plugin-templates",
1134
1140
  "pluginName": "@salesforce/plugin-templates",
1135
1141
  "pluginType": "core",
1136
1142
  "strict": true,
1137
- "summary": "Generate a Lightning Event.",
1143
+ "summary": "Generate a Lightning App.",
1138
1144
  "enableJsonFlag": true,
1139
1145
  "isESM": true,
1140
1146
  "relativePath": [
@@ -1143,78 +1149,81 @@
1143
1149
  "template",
1144
1150
  "generate",
1145
1151
  "lightning",
1146
- "event.js"
1152
+ "app.js"
1147
1153
  ],
1148
1154
  "aliasPermutations": [
1149
- "force:lightning:event:create",
1150
- "lightning:force:event:create",
1151
- "lightning:event:force:create",
1152
- "lightning:event:create:force",
1153
- "force:event:lightning:create",
1154
- "event:force:lightning:create",
1155
- "event:lightning:force:create",
1156
- "event:lightning:create:force",
1157
- "force:event:create:lightning",
1158
- "event:force:create:lightning",
1159
- "event:create:force:lightning",
1160
- "event:create:lightning:force",
1161
- "force:lightning:create:event",
1162
- "lightning:force:create:event",
1163
- "lightning:create:force:event",
1164
- "lightning:create:event:force",
1165
- "force:create:lightning:event",
1166
- "create:force:lightning:event",
1167
- "create:lightning:force:event",
1168
- "create:lightning:event:force",
1169
- "force:create:event:lightning",
1170
- "create:force:event:lightning",
1171
- "create:event:force:lightning",
1172
- "create:event:lightning:force",
1173
- "lightning:generate:event",
1174
- "generate:lightning:event",
1175
- "generate:event:lightning",
1176
- "lightning:event:generate",
1177
- "event:lightning:generate",
1178
- "event:generate:lightning"
1155
+ "force:lightning:app:create",
1156
+ "lightning:force:app:create",
1157
+ "lightning:app:force:create",
1158
+ "lightning:app:create:force",
1159
+ "force:app:lightning:create",
1160
+ "app:force:lightning:create",
1161
+ "app:lightning:force:create",
1162
+ "app:lightning:create:force",
1163
+ "force:app:create:lightning",
1164
+ "app:force:create:lightning",
1165
+ "app:create:force:lightning",
1166
+ "app:create:lightning:force",
1167
+ "force:lightning:create:app",
1168
+ "lightning:force:create:app",
1169
+ "lightning:create:force:app",
1170
+ "lightning:create:app:force",
1171
+ "force:create:lightning:app",
1172
+ "create:force:lightning:app",
1173
+ "create:lightning:force:app",
1174
+ "create:lightning:app:force",
1175
+ "force:create:app:lightning",
1176
+ "create:force:app:lightning",
1177
+ "create:app:force:lightning",
1178
+ "create:app:lightning:force",
1179
+ "lightning:generate:app",
1180
+ "generate:lightning:app",
1181
+ "generate:app:lightning",
1182
+ "lightning:app:generate",
1183
+ "app:lightning:generate",
1184
+ "app:generate:lightning"
1179
1185
  ],
1180
1186
  "permutations": [
1181
- "template:generate:lightning:event",
1182
- "generate:template:lightning:event",
1183
- "generate:lightning:template:event",
1184
- "generate:lightning:event:template",
1185
- "template:lightning:generate:event",
1186
- "lightning:template:generate:event",
1187
- "lightning:generate:template:event",
1188
- "lightning:generate:event:template",
1189
- "template:lightning:event:generate",
1190
- "lightning:template:event:generate",
1191
- "lightning:event:template:generate",
1192
- "lightning:event:generate:template",
1193
- "template:generate:event:lightning",
1194
- "generate:template:event:lightning",
1195
- "generate:event:template:lightning",
1196
- "generate:event:lightning:template",
1197
- "template:event:generate:lightning",
1198
- "event:template:generate:lightning",
1199
- "event:generate:template:lightning",
1200
- "event:generate:lightning:template",
1201
- "template:event:lightning:generate",
1202
- "event:template:lightning:generate",
1203
- "event:lightning:template:generate",
1204
- "event:lightning:generate:template"
1187
+ "template:generate:lightning:app",
1188
+ "generate:template:lightning:app",
1189
+ "generate:lightning:template:app",
1190
+ "generate:lightning:app:template",
1191
+ "template:lightning:generate:app",
1192
+ "lightning:template:generate:app",
1193
+ "lightning:generate:template:app",
1194
+ "lightning:generate:app:template",
1195
+ "template:lightning:app:generate",
1196
+ "lightning:template:app:generate",
1197
+ "lightning:app:template:generate",
1198
+ "lightning:app:generate:template",
1199
+ "template:generate:app:lightning",
1200
+ "generate:template:app:lightning",
1201
+ "generate:app:template:lightning",
1202
+ "generate:app:lightning:template",
1203
+ "template:app:generate:lightning",
1204
+ "app:template:generate:lightning",
1205
+ "app:generate:template:lightning",
1206
+ "app:generate:lightning:template",
1207
+ "template:app:lightning:generate",
1208
+ "app:template:lightning:generate",
1209
+ "app:lightning:template:generate",
1210
+ "app:lightning:generate:template"
1205
1211
  ]
1206
1212
  },
1207
- "template:generate:lightning:interface": {
1213
+ "template:generate:lightning:component": {
1208
1214
  "aliases": [
1209
- "force:lightning:interface:create",
1210
- "lightning:generate:interface"
1215
+ "force:lightning:component:create",
1216
+ "lightning:generate:component"
1211
1217
  ],
1212
1218
  "args": {},
1213
1219
  "deprecateAliases": true,
1214
- "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.",
1220
+ "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.",
1215
1221
  "examples": [
1216
- "Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
1217
- "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"
1222
+ "Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
1223
+ "Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
1224
+ "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",
1225
+ "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",
1226
+ "Generate a TypeScript Lightning Web Component:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc --template typescript"
1218
1227
  ],
1219
1228
  "flags": {
1220
1229
  "json": {
@@ -1234,14 +1243,14 @@
1234
1243
  },
1235
1244
  "name": {
1236
1245
  "aliases": [
1237
- "interfacename"
1246
+ "componentname"
1238
1247
  ],
1239
1248
  "char": "n",
1240
1249
  "deprecateAliases": true,
1241
1250
  "description": "The name can be up to 40 characters and must start with a letter.",
1242
1251
  "name": "name",
1243
1252
  "required": true,
1244
- "summary": "Name of the generated Lightning Interface.",
1253
+ "summary": "Name of the generated Lightning Component.",
1245
1254
  "hasDynamicHelp": false,
1246
1255
  "multiple": false,
1247
1256
  "type": "option"
@@ -1251,11 +1260,14 @@
1251
1260
  "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1252
1261
  "name": "template",
1253
1262
  "summary": "Template to use for file creation.",
1254
- "default": "DefaultLightningIntf",
1263
+ "default": "default",
1255
1264
  "hasDynamicHelp": false,
1256
1265
  "multiple": false,
1257
1266
  "options": [
1258
- "DefaultLightningIntf"
1267
+ "default",
1268
+ "analyticsDashboard",
1269
+ "analyticsDashboardWithStep",
1270
+ "typescript"
1259
1271
  ],
1260
1272
  "type": "option"
1261
1273
  },
@@ -1284,6 +1296,18 @@
1284
1296
  "multiple": false,
1285
1297
  "type": "option"
1286
1298
  },
1299
+ "type": {
1300
+ "name": "type",
1301
+ "summary": "Type of the component bundle.",
1302
+ "default": "aura",
1303
+ "hasDynamicHelp": false,
1304
+ "multiple": false,
1305
+ "options": [
1306
+ "aura",
1307
+ "lwc"
1308
+ ],
1309
+ "type": "option"
1310
+ },
1287
1311
  "internal": {
1288
1312
  "char": "i",
1289
1313
  "hidden": true,
@@ -1305,12 +1329,12 @@
1305
1329
  },
1306
1330
  "hasDynamicHelp": false,
1307
1331
  "hiddenAliases": [],
1308
- "id": "template:generate:lightning:interface",
1332
+ "id": "template:generate:lightning:component",
1309
1333
  "pluginAlias": "@salesforce/plugin-templates",
1310
1334
  "pluginName": "@salesforce/plugin-templates",
1311
1335
  "pluginType": "core",
1312
1336
  "strict": true,
1313
- "summary": "Generate a Lightning Interface.",
1337
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1314
1338
  "enableJsonFlag": true,
1315
1339
  "isESM": true,
1316
1340
  "relativePath": [
@@ -1319,78 +1343,78 @@
1319
1343
  "template",
1320
1344
  "generate",
1321
1345
  "lightning",
1322
- "interface.js"
1346
+ "component.js"
1323
1347
  ],
1324
1348
  "aliasPermutations": [
1325
- "force:lightning:interface:create",
1326
- "lightning:force:interface:create",
1327
- "lightning:interface:force:create",
1328
- "lightning:interface:create:force",
1329
- "force:interface:lightning:create",
1330
- "interface:force:lightning:create",
1331
- "interface:lightning:force:create",
1332
- "interface:lightning:create:force",
1333
- "force:interface:create:lightning",
1334
- "interface:force:create:lightning",
1335
- "interface:create:force:lightning",
1336
- "interface:create:lightning:force",
1337
- "force:lightning:create:interface",
1338
- "lightning:force:create:interface",
1339
- "lightning:create:force:interface",
1340
- "lightning:create:interface:force",
1341
- "force:create:lightning:interface",
1342
- "create:force:lightning:interface",
1343
- "create:lightning:force:interface",
1344
- "create:lightning:interface:force",
1345
- "force:create:interface:lightning",
1346
- "create:force:interface:lightning",
1347
- "create:interface:force:lightning",
1348
- "create:interface:lightning:force",
1349
- "lightning:generate:interface",
1350
- "generate:lightning:interface",
1351
- "generate:interface:lightning",
1352
- "lightning:interface:generate",
1353
- "interface:lightning:generate",
1354
- "interface:generate:lightning"
1349
+ "force:lightning:component:create",
1350
+ "lightning:force:component:create",
1351
+ "lightning:component:force:create",
1352
+ "lightning:component:create:force",
1353
+ "force:component:lightning:create",
1354
+ "component:force:lightning:create",
1355
+ "component:lightning:force:create",
1356
+ "component:lightning:create:force",
1357
+ "force:component:create:lightning",
1358
+ "component:force:create:lightning",
1359
+ "component:create:force:lightning",
1360
+ "component:create:lightning:force",
1361
+ "force:lightning:create:component",
1362
+ "lightning:force:create:component",
1363
+ "lightning:create:force:component",
1364
+ "lightning:create:component:force",
1365
+ "force:create:lightning:component",
1366
+ "create:force:lightning:component",
1367
+ "create:lightning:force:component",
1368
+ "create:lightning:component:force",
1369
+ "force:create:component:lightning",
1370
+ "create:force:component:lightning",
1371
+ "create:component:force:lightning",
1372
+ "create:component:lightning:force",
1373
+ "lightning:generate:component",
1374
+ "generate:lightning:component",
1375
+ "generate:component:lightning",
1376
+ "lightning:component:generate",
1377
+ "component:lightning:generate",
1378
+ "component:generate:lightning"
1355
1379
  ],
1356
1380
  "permutations": [
1357
- "template:generate:lightning:interface",
1358
- "generate:template:lightning:interface",
1359
- "generate:lightning:template:interface",
1360
- "generate:lightning:interface:template",
1361
- "template:lightning:generate:interface",
1362
- "lightning:template:generate:interface",
1363
- "lightning:generate:template:interface",
1364
- "lightning:generate:interface:template",
1365
- "template:lightning:interface:generate",
1366
- "lightning:template:interface:generate",
1367
- "lightning:interface:template:generate",
1368
- "lightning:interface:generate:template",
1369
- "template:generate:interface:lightning",
1370
- "generate:template:interface:lightning",
1371
- "generate:interface:template:lightning",
1372
- "generate:interface:lightning:template",
1373
- "template:interface:generate:lightning",
1374
- "interface:template:generate:lightning",
1375
- "interface:generate:template:lightning",
1376
- "interface:generate:lightning:template",
1377
- "template:interface:lightning:generate",
1378
- "interface:template:lightning:generate",
1379
- "interface:lightning:template:generate",
1380
- "interface:lightning:generate:template"
1381
+ "template:generate:lightning:component",
1382
+ "generate:template:lightning:component",
1383
+ "generate:lightning:template:component",
1384
+ "generate:lightning:component:template",
1385
+ "template:lightning:generate:component",
1386
+ "lightning:template:generate:component",
1387
+ "lightning:generate:template:component",
1388
+ "lightning:generate:component:template",
1389
+ "template:lightning:component:generate",
1390
+ "lightning:template:component:generate",
1391
+ "lightning:component:template:generate",
1392
+ "lightning:component:generate:template",
1393
+ "template:generate:component:lightning",
1394
+ "generate:template:component:lightning",
1395
+ "generate:component:template:lightning",
1396
+ "generate:component:lightning:template",
1397
+ "template:component:generate:lightning",
1398
+ "component:template:generate:lightning",
1399
+ "component:generate:template:lightning",
1400
+ "component:generate:lightning:template",
1401
+ "template:component:lightning:generate",
1402
+ "component:template:lightning:generate",
1403
+ "component:lightning:template:generate",
1404
+ "component:lightning:generate:template"
1381
1405
  ]
1382
1406
  },
1383
- "template:generate:lightning:test": {
1407
+ "template:generate:lightning:event": {
1384
1408
  "aliases": [
1385
- "force:lightning:test:create",
1386
- "lightning:generate:test"
1409
+ "force:lightning:event:create",
1410
+ "lightning:generate:event"
1387
1411
  ],
1388
1412
  "args": {},
1389
1413
  "deprecateAliases": true,
1390
- "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1414
+ "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.",
1391
1415
  "examples": [
1392
- "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
1393
- "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"
1416
+ "Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
1417
+ "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"
1394
1418
  ],
1395
1419
  "flags": {
1396
1420
  "json": {
@@ -1410,14 +1434,14 @@
1410
1434
  },
1411
1435
  "name": {
1412
1436
  "aliases": [
1413
- "testname"
1437
+ "eventname"
1414
1438
  ],
1415
1439
  "char": "n",
1416
1440
  "deprecateAliases": true,
1417
- "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1441
+ "description": "The name can be up to 40 characters and must start with a letter.",
1418
1442
  "name": "name",
1419
1443
  "required": true,
1420
- "summary": "Name of the generated Lightning Test.",
1444
+ "summary": "Name of the generated Lightning Event.",
1421
1445
  "hasDynamicHelp": false,
1422
1446
  "multiple": false,
1423
1447
  "type": "option"
@@ -1427,11 +1451,11 @@
1427
1451
  "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1428
1452
  "name": "template",
1429
1453
  "summary": "Template to use for file creation.",
1430
- "default": "DefaultLightningTest",
1454
+ "default": "DefaultLightningEvt",
1431
1455
  "hasDynamicHelp": false,
1432
1456
  "multiple": false,
1433
1457
  "options": [
1434
- "DefaultLightningTest"
1458
+ "DefaultLightningEvt"
1435
1459
  ],
1436
1460
  "type": "option"
1437
1461
  },
@@ -1449,14 +1473,6 @@
1449
1473
  "multiple": false,
1450
1474
  "type": "option"
1451
1475
  },
1452
- "internal": {
1453
- "char": "i",
1454
- "hidden": true,
1455
- "name": "internal",
1456
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1457
- "allowNo": false,
1458
- "type": "boolean"
1459
- },
1460
1476
  "api-version": {
1461
1477
  "aliases": [
1462
1478
  "apiversion"
@@ -1468,6 +1484,14 @@
1468
1484
  "multiple": false,
1469
1485
  "type": "option"
1470
1486
  },
1487
+ "internal": {
1488
+ "char": "i",
1489
+ "hidden": true,
1490
+ "name": "internal",
1491
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1492
+ "allowNo": false,
1493
+ "type": "boolean"
1494
+ },
1471
1495
  "loglevel": {
1472
1496
  "deprecated": {
1473
1497
  "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 `SF_LOG_LEVEL` environment variable."
@@ -1481,12 +1505,12 @@
1481
1505
  },
1482
1506
  "hasDynamicHelp": false,
1483
1507
  "hiddenAliases": [],
1484
- "id": "template:generate:lightning:test",
1508
+ "id": "template:generate:lightning:event",
1485
1509
  "pluginAlias": "@salesforce/plugin-templates",
1486
1510
  "pluginName": "@salesforce/plugin-templates",
1487
1511
  "pluginType": "core",
1488
1512
  "strict": true,
1489
- "summary": "Generate a Lightning test.",
1513
+ "summary": "Generate a Lightning Event.",
1490
1514
  "enableJsonFlag": true,
1491
1515
  "isESM": true,
1492
1516
  "relativePath": [
@@ -1495,76 +1519,78 @@
1495
1519
  "template",
1496
1520
  "generate",
1497
1521
  "lightning",
1498
- "test.js"
1522
+ "event.js"
1499
1523
  ],
1500
1524
  "aliasPermutations": [
1501
- "force:lightning:test:create",
1502
- "lightning:force:test:create",
1503
- "lightning:test:force:create",
1504
- "lightning:test:create:force",
1505
- "force:test:lightning:create",
1506
- "test:force:lightning:create",
1507
- "test:lightning:force:create",
1508
- "test:lightning:create:force",
1509
- "force:test:create:lightning",
1510
- "test:force:create:lightning",
1511
- "test:create:force:lightning",
1512
- "test:create:lightning:force",
1513
- "force:lightning:create:test",
1514
- "lightning:force:create:test",
1515
- "lightning:create:force:test",
1516
- "lightning:create:test:force",
1517
- "force:create:lightning:test",
1518
- "create:force:lightning:test",
1519
- "create:lightning:force:test",
1520
- "create:lightning:test:force",
1521
- "force:create:test:lightning",
1522
- "create:force:test:lightning",
1523
- "create:test:force:lightning",
1524
- "create:test:lightning:force",
1525
- "lightning:generate:test",
1526
- "generate:lightning:test",
1527
- "generate:test:lightning",
1528
- "lightning:test:generate",
1529
- "test:lightning:generate",
1530
- "test:generate:lightning"
1525
+ "force:lightning:event:create",
1526
+ "lightning:force:event:create",
1527
+ "lightning:event:force:create",
1528
+ "lightning:event:create:force",
1529
+ "force:event:lightning:create",
1530
+ "event:force:lightning:create",
1531
+ "event:lightning:force:create",
1532
+ "event:lightning:create:force",
1533
+ "force:event:create:lightning",
1534
+ "event:force:create:lightning",
1535
+ "event:create:force:lightning",
1536
+ "event:create:lightning:force",
1537
+ "force:lightning:create:event",
1538
+ "lightning:force:create:event",
1539
+ "lightning:create:force:event",
1540
+ "lightning:create:event:force",
1541
+ "force:create:lightning:event",
1542
+ "create:force:lightning:event",
1543
+ "create:lightning:force:event",
1544
+ "create:lightning:event:force",
1545
+ "force:create:event:lightning",
1546
+ "create:force:event:lightning",
1547
+ "create:event:force:lightning",
1548
+ "create:event:lightning:force",
1549
+ "lightning:generate:event",
1550
+ "generate:lightning:event",
1551
+ "generate:event:lightning",
1552
+ "lightning:event:generate",
1553
+ "event:lightning:generate",
1554
+ "event:generate:lightning"
1531
1555
  ],
1532
1556
  "permutations": [
1533
- "template:generate:lightning:test",
1534
- "generate:template:lightning:test",
1535
- "generate:lightning:template:test",
1536
- "generate:lightning:test:template",
1537
- "template:lightning:generate:test",
1538
- "lightning:template:generate:test",
1539
- "lightning:generate:template:test",
1540
- "lightning:generate:test:template",
1541
- "template:lightning:test:generate",
1542
- "lightning:template:test:generate",
1543
- "lightning:test:template:generate",
1544
- "lightning:test:generate:template",
1545
- "template:generate:test:lightning",
1546
- "generate:template:test:lightning",
1547
- "generate:test:template:lightning",
1548
- "generate:test:lightning:template",
1549
- "template:test:generate:lightning",
1550
- "test:template:generate:lightning",
1551
- "test:generate:template:lightning",
1552
- "test:generate:lightning:template",
1553
- "template:test:lightning:generate",
1554
- "test:template:lightning:generate",
1555
- "test:lightning:template:generate",
1556
- "test:lightning:generate:template"
1557
+ "template:generate:lightning:event",
1558
+ "generate:template:lightning:event",
1559
+ "generate:lightning:template:event",
1560
+ "generate:lightning:event:template",
1561
+ "template:lightning:generate:event",
1562
+ "lightning:template:generate:event",
1563
+ "lightning:generate:template:event",
1564
+ "lightning:generate:event:template",
1565
+ "template:lightning:event:generate",
1566
+ "lightning:template:event:generate",
1567
+ "lightning:event:template:generate",
1568
+ "lightning:event:generate:template",
1569
+ "template:generate:event:lightning",
1570
+ "generate:template:event:lightning",
1571
+ "generate:event:template:lightning",
1572
+ "generate:event:lightning:template",
1573
+ "template:event:generate:lightning",
1574
+ "event:template:generate:lightning",
1575
+ "event:generate:template:lightning",
1576
+ "event:generate:lightning:template",
1577
+ "template:event:lightning:generate",
1578
+ "event:template:lightning:generate",
1579
+ "event:lightning:template:generate",
1580
+ "event:lightning:generate:template"
1557
1581
  ]
1558
1582
  },
1559
- "template:generate:flexipage": {
1560
- "aliases": [],
1583
+ "template:generate:lightning:interface": {
1584
+ "aliases": [
1585
+ "force:lightning:interface:create",
1586
+ "lightning:generate:interface"
1587
+ ],
1561
1588
  "args": {},
1562
- "description": "FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen made up of regions containing Lightning components.\n\nYou can use this command to generate these types of FlexiPages; specify the type with the --template flag:\n\n- AppPage: A Lightning page used as the home page for a custom app or a standalone application page.\n- HomePage: A Lightning page used to override the Home page in Lightning Experience.\n- RecordPage: A Lightning page used to override an object record page in Lightning Experience. Requires that you specify the object name with the --sobject flag.",
1589
+ "deprecateAliases": true,
1590
+ "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.",
1563
1591
  "examples": [
1564
- "Generate a RecordPage FlexiPage for the Account object in the current directory:\n<%= config.bin %> <%= command.id %> --name Account_Record_Page --template RecordPage --sobject Account",
1565
- "Generate an AppPage FlexiPage in the \"force-app/main/default/flexipages\" directory:\n<%= config.bin %> <%= command.id %> --name Sales_Dashboard --template AppPage --output-dir force-app/main/default/flexipages",
1566
- "Generate a HomePage FlexiPage with a custom label:\n<%= config.bin %> <%= command.id %> --name Custom_Home --template HomePage --label \"Sales Home Page\"",
1567
- "Generate a RecordPage with dynamic highlights and detail fields:\n<%= config.bin %> <%= command.id %> --name Property_Page --template RecordPage --sobject Rental_Property__c --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c"
1592
+ "Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
1593
+ "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"
1568
1594
  ],
1569
1595
  "flags": {
1570
1596
  "json": {
@@ -1584,29 +1610,28 @@
1584
1610
  },
1585
1611
  "name": {
1586
1612
  "aliases": [
1587
- "flexipagename"
1613
+ "interfacename"
1588
1614
  ],
1589
1615
  "char": "n",
1590
1616
  "deprecateAliases": true,
1591
- "description": "The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or contain two consecutive underscores.",
1617
+ "description": "The name can be up to 40 characters and must start with a letter.",
1592
1618
  "name": "name",
1593
1619
  "required": true,
1594
- "summary": "Name of the FlexiPage.",
1620
+ "summary": "Name of the generated Lightning Interface.",
1595
1621
  "hasDynamicHelp": false,
1596
1622
  "multiple": false,
1597
1623
  "type": "option"
1598
1624
  },
1599
1625
  "template": {
1600
1626
  "char": "t",
1627
+ "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1601
1628
  "name": "template",
1602
- "required": true,
1603
- "summary": "Template type for the FlexiPage.",
1629
+ "summary": "Template to use for file creation.",
1630
+ "default": "DefaultLightningIntf",
1604
1631
  "hasDynamicHelp": false,
1605
1632
  "multiple": false,
1606
1633
  "options": [
1607
- "RecordPage",
1608
- "AppPage",
1609
- "HomePage"
1634
+ "DefaultLightningIntf"
1610
1635
  ],
1611
1636
  "type": "option"
1612
1637
  },
@@ -1627,67 +1652,12 @@
1627
1652
  "api-version": {
1628
1653
  "aliases": [
1629
1654
  "apiversion"
1630
- ],
1631
- "deprecateAliases": true,
1632
- "description": "Override the api version used for api requests made by this command",
1633
- "name": "api-version",
1634
- "hasDynamicHelp": false,
1635
- "multiple": false,
1636
- "type": "option"
1637
- },
1638
- "label": {
1639
- "aliases": [
1640
- "masterlabel"
1641
- ],
1642
- "deprecateAliases": true,
1643
- "name": "label",
1644
- "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
1645
- "hasDynamicHelp": false,
1646
- "multiple": false,
1647
- "type": "option"
1648
- },
1649
- "description": {
1650
- "name": "description",
1651
- "summary": "Description for the FlexiPage, which provides context about its purpose.",
1652
- "hasDynamicHelp": false,
1653
- "multiple": false,
1654
- "type": "option"
1655
- },
1656
- "sobject": {
1657
- "aliases": [
1658
- "entity-name",
1659
- "entity"
1660
- ],
1661
- "char": "s",
1662
- "deprecateAliases": true,
1663
- "description": "For RecordPage FlexiPages, you must specify the associated object API name, such as 'Account', 'Opportunity', or 'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.",
1664
- "name": "sobject",
1665
- "summary": "API name of the Salesforce object; required when creating a RecordPage.",
1666
- "hasDynamicHelp": false,
1667
- "multiple": false,
1668
- "type": "option"
1669
- },
1670
- "primary-field": {
1671
- "name": "primary-field",
1672
- "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
1673
- "hasDynamicHelp": false,
1674
- "multiple": false,
1675
- "type": "option"
1676
- },
1677
- "secondary-fields": {
1678
- "name": "secondary-fields",
1679
- "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
1680
- "delimiter": ",",
1681
- "hasDynamicHelp": false,
1682
- "multiple": true,
1683
- "type": "option"
1684
- },
1685
- "detail-fields": {
1686
- "name": "detail-fields",
1687
- "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
1688
- "delimiter": ",",
1655
+ ],
1656
+ "deprecateAliases": true,
1657
+ "description": "Override the api version used for api requests made by this command",
1658
+ "name": "api-version",
1689
1659
  "hasDynamicHelp": false,
1690
- "multiple": true,
1660
+ "multiple": false,
1691
1661
  "type": "option"
1692
1662
  },
1693
1663
  "internal": {
@@ -1711,48 +1681,92 @@
1711
1681
  },
1712
1682
  "hasDynamicHelp": false,
1713
1683
  "hiddenAliases": [],
1714
- "id": "template:generate:flexipage",
1684
+ "id": "template:generate:lightning:interface",
1715
1685
  "pluginAlias": "@salesforce/plugin-templates",
1716
1686
  "pluginName": "@salesforce/plugin-templates",
1717
1687
  "pluginType": "core",
1718
- "state": "beta",
1719
1688
  "strict": true,
1720
- "summary": "Generate a FlexiPage, also known as a Lightning page.",
1689
+ "summary": "Generate a Lightning Interface.",
1721
1690
  "enableJsonFlag": true,
1722
- "MAX_SECONDARY_FIELDS": 11,
1723
1691
  "isESM": true,
1724
1692
  "relativePath": [
1725
1693
  "lib",
1726
1694
  "commands",
1727
1695
  "template",
1728
1696
  "generate",
1729
- "flexipage",
1730
- "index.js"
1697
+ "lightning",
1698
+ "interface.js"
1699
+ ],
1700
+ "aliasPermutations": [
1701
+ "force:lightning:interface:create",
1702
+ "lightning:force:interface:create",
1703
+ "lightning:interface:force:create",
1704
+ "lightning:interface:create:force",
1705
+ "force:interface:lightning:create",
1706
+ "interface:force:lightning:create",
1707
+ "interface:lightning:force:create",
1708
+ "interface:lightning:create:force",
1709
+ "force:interface:create:lightning",
1710
+ "interface:force:create:lightning",
1711
+ "interface:create:force:lightning",
1712
+ "interface:create:lightning:force",
1713
+ "force:lightning:create:interface",
1714
+ "lightning:force:create:interface",
1715
+ "lightning:create:force:interface",
1716
+ "lightning:create:interface:force",
1717
+ "force:create:lightning:interface",
1718
+ "create:force:lightning:interface",
1719
+ "create:lightning:force:interface",
1720
+ "create:lightning:interface:force",
1721
+ "force:create:interface:lightning",
1722
+ "create:force:interface:lightning",
1723
+ "create:interface:force:lightning",
1724
+ "create:interface:lightning:force",
1725
+ "lightning:generate:interface",
1726
+ "generate:lightning:interface",
1727
+ "generate:interface:lightning",
1728
+ "lightning:interface:generate",
1729
+ "interface:lightning:generate",
1730
+ "interface:generate:lightning"
1731
1731
  ],
1732
- "aliasPermutations": [],
1733
1732
  "permutations": [
1734
- "template:generate:flexipage",
1735
- "generate:template:flexipage",
1736
- "generate:flexipage:template",
1737
- "template:flexipage:generate",
1738
- "flexipage:template:generate",
1739
- "flexipage:generate:template"
1733
+ "template:generate:lightning:interface",
1734
+ "generate:template:lightning:interface",
1735
+ "generate:lightning:template:interface",
1736
+ "generate:lightning:interface:template",
1737
+ "template:lightning:generate:interface",
1738
+ "lightning:template:generate:interface",
1739
+ "lightning:generate:template:interface",
1740
+ "lightning:generate:interface:template",
1741
+ "template:lightning:interface:generate",
1742
+ "lightning:template:interface:generate",
1743
+ "lightning:interface:template:generate",
1744
+ "lightning:interface:generate:template",
1745
+ "template:generate:interface:lightning",
1746
+ "generate:template:interface:lightning",
1747
+ "generate:interface:template:lightning",
1748
+ "generate:interface:lightning:template",
1749
+ "template:interface:generate:lightning",
1750
+ "interface:template:generate:lightning",
1751
+ "interface:generate:template:lightning",
1752
+ "interface:generate:lightning:template",
1753
+ "template:interface:lightning:generate",
1754
+ "interface:template:lightning:generate",
1755
+ "interface:lightning:template:generate",
1756
+ "interface:lightning:generate:template"
1740
1757
  ]
1741
1758
  },
1742
- "template:generate:project": {
1759
+ "template:generate:lightning:test": {
1743
1760
  "aliases": [
1744
- "force:project:create",
1745
- "project:generate"
1761
+ "force:lightning:test:create",
1762
+ "lightning:generate:test"
1746
1763
  ],
1747
1764
  "args": {},
1748
1765
  "deprecateAliases": true,
1749
- "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
1766
+ "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1750
1767
  "examples": [
1751
- "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
1752
- "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
1753
- "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
1754
- "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
1755
- "Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
1768
+ "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
1769
+ "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"
1756
1770
  ],
1757
1771
  "flags": {
1758
1772
  "json": {
@@ -1772,35 +1786,28 @@
1772
1786
  },
1773
1787
  "name": {
1774
1788
  "aliases": [
1775
- "projectname"
1789
+ "testname"
1776
1790
  ],
1777
1791
  "char": "n",
1778
1792
  "deprecateAliases": true,
1779
- "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
1793
+ "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1780
1794
  "name": "name",
1781
1795
  "required": true,
1782
- "summary": "Name of the generated project.",
1796
+ "summary": "Name of the generated Lightning Test.",
1783
1797
  "hasDynamicHelp": false,
1784
1798
  "multiple": false,
1785
1799
  "type": "option"
1786
1800
  },
1787
1801
  "template": {
1788
1802
  "char": "t",
1789
- "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
1803
+ "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1790
1804
  "name": "template",
1791
- "summary": "Template to use for project creation.",
1792
- "default": "standard",
1805
+ "summary": "Template to use for file creation.",
1806
+ "default": "DefaultLightningTest",
1793
1807
  "hasDynamicHelp": false,
1794
1808
  "multiple": false,
1795
1809
  "options": [
1796
- "standard",
1797
- "empty",
1798
- "analytics",
1799
- "reactinternalapp",
1800
- "reactexternalapp",
1801
- "angularinternalapp",
1802
- "angularexternalapp",
1803
- "agent"
1810
+ "DefaultLightningTest"
1804
1811
  ],
1805
1812
  "type": "option"
1806
1813
  },
@@ -1818,62 +1825,23 @@
1818
1825
  "multiple": false,
1819
1826
  "type": "option"
1820
1827
  },
1821
- "namespace": {
1822
- "char": "s",
1823
- "name": "namespace",
1824
- "summary": "Namespace associated with this project and any connected scratch orgs.",
1825
- "default": "",
1826
- "hasDynamicHelp": false,
1827
- "multiple": false,
1828
- "type": "option"
1829
- },
1830
- "default-package-dir": {
1831
- "aliases": [
1832
- "defaultpackagedir"
1833
- ],
1834
- "char": "p",
1835
- "deprecateAliases": true,
1836
- "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1837
- "name": "default-package-dir",
1838
- "summary": "Default package directory name.",
1839
- "default": "force-app",
1840
- "hasDynamicHelp": false,
1841
- "multiple": false,
1842
- "type": "option"
1843
- },
1844
- "manifest": {
1845
- "char": "x",
1846
- "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1847
- "name": "manifest",
1848
- "summary": "Generate a manifest (package.xml) for change-set based development.",
1828
+ "internal": {
1829
+ "char": "i",
1830
+ "hidden": true,
1831
+ "name": "internal",
1832
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1849
1833
  "allowNo": false,
1850
1834
  "type": "boolean"
1851
1835
  },
1852
- "login-url": {
1836
+ "api-version": {
1853
1837
  "aliases": [
1854
- "loginurl"
1838
+ "apiversion"
1855
1839
  ],
1856
- "char": "l",
1857
1840
  "deprecateAliases": true,
1858
- "description": "Normally defaults to https://login.salesforce.com.",
1859
- "hidden": true,
1860
- "name": "login-url",
1861
- "summary": "Salesforce instance login URL.",
1862
- "default": "https://login.salesforce.com",
1863
- "hasDynamicHelp": false,
1864
- "multiple": false,
1865
- "type": "option"
1866
- },
1867
- "lwc-language": {
1868
- "description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
1869
- "name": "lwc-language",
1870
- "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
1841
+ "description": "Override the api version used for api requests made by this command",
1842
+ "name": "api-version",
1871
1843
  "hasDynamicHelp": false,
1872
1844
  "multiple": false,
1873
- "options": [
1874
- "javascript",
1875
- "typescript"
1876
- ],
1877
1845
  "type": "option"
1878
1846
  },
1879
1847
  "loglevel": {
@@ -1885,24 +1853,16 @@
1885
1853
  "hasDynamicHelp": false,
1886
1854
  "multiple": false,
1887
1855
  "type": "option"
1888
- },
1889
- "api-version": {
1890
- "description": "Override the api version used for api requests made by this command",
1891
- "name": "api-version",
1892
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
1893
- "hasDynamicHelp": false,
1894
- "multiple": false,
1895
- "type": "option"
1896
1856
  }
1897
1857
  },
1898
1858
  "hasDynamicHelp": false,
1899
1859
  "hiddenAliases": [],
1900
- "id": "template:generate:project",
1860
+ "id": "template:generate:lightning:test",
1901
1861
  "pluginAlias": "@salesforce/plugin-templates",
1902
1862
  "pluginName": "@salesforce/plugin-templates",
1903
1863
  "pluginType": "core",
1904
1864
  "strict": true,
1905
- "summary": "Generate a Salesforce DX project.",
1865
+ "summary": "Generate a Lightning test.",
1906
1866
  "enableJsonFlag": true,
1907
1867
  "isESM": true,
1908
1868
  "relativePath": [
@@ -1910,26 +1870,66 @@
1910
1870
  "commands",
1911
1871
  "template",
1912
1872
  "generate",
1913
- "project",
1914
- "index.js"
1873
+ "lightning",
1874
+ "test.js"
1915
1875
  ],
1916
1876
  "aliasPermutations": [
1917
- "force:project:create",
1918
- "project:force:create",
1919
- "project:create:force",
1920
- "force:create:project",
1921
- "create:force:project",
1922
- "create:project:force",
1923
- "project:generate",
1924
- "generate:project"
1877
+ "force:lightning:test:create",
1878
+ "lightning:force:test:create",
1879
+ "lightning:test:force:create",
1880
+ "lightning:test:create:force",
1881
+ "force:test:lightning:create",
1882
+ "test:force:lightning:create",
1883
+ "test:lightning:force:create",
1884
+ "test:lightning:create:force",
1885
+ "force:test:create:lightning",
1886
+ "test:force:create:lightning",
1887
+ "test:create:force:lightning",
1888
+ "test:create:lightning:force",
1889
+ "force:lightning:create:test",
1890
+ "lightning:force:create:test",
1891
+ "lightning:create:force:test",
1892
+ "lightning:create:test:force",
1893
+ "force:create:lightning:test",
1894
+ "create:force:lightning:test",
1895
+ "create:lightning:force:test",
1896
+ "create:lightning:test:force",
1897
+ "force:create:test:lightning",
1898
+ "create:force:test:lightning",
1899
+ "create:test:force:lightning",
1900
+ "create:test:lightning:force",
1901
+ "lightning:generate:test",
1902
+ "generate:lightning:test",
1903
+ "generate:test:lightning",
1904
+ "lightning:test:generate",
1905
+ "test:lightning:generate",
1906
+ "test:generate:lightning"
1925
1907
  ],
1926
1908
  "permutations": [
1927
- "template:generate:project",
1928
- "generate:template:project",
1929
- "generate:project:template",
1930
- "template:project:generate",
1931
- "project:template:generate",
1932
- "project:generate:template"
1909
+ "template:generate:lightning:test",
1910
+ "generate:template:lightning:test",
1911
+ "generate:lightning:template:test",
1912
+ "generate:lightning:test:template",
1913
+ "template:lightning:generate:test",
1914
+ "lightning:template:generate:test",
1915
+ "lightning:generate:template:test",
1916
+ "lightning:generate:test:template",
1917
+ "template:lightning:test:generate",
1918
+ "lightning:template:test:generate",
1919
+ "lightning:test:template:generate",
1920
+ "lightning:test:generate:template",
1921
+ "template:generate:test:lightning",
1922
+ "generate:template:test:lightning",
1923
+ "generate:test:template:lightning",
1924
+ "generate:test:lightning:template",
1925
+ "template:test:generate:lightning",
1926
+ "test:template:generate:lightning",
1927
+ "test:generate:template:lightning",
1928
+ "test:generate:lightning:template",
1929
+ "template:test:lightning:generate",
1930
+ "test:template:lightning:generate",
1931
+ "test:lightning:template:generate",
1932
+ "test:lightning:generate:template"
1933
1933
  ]
1934
1934
  },
1935
1935
  "template:generate:static-resource": {
@@ -2672,5 +2672,5 @@
2672
2672
  ]
2673
2673
  }
2674
2674
  },
2675
- "version": "57.0.2"
2675
+ "version": "57.0.3"
2676
2676
  }