@salesforce/plugin-templates 57.1.1 → 57.1.2

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 +1087 -1087
  3. package/package.json +4 -4
@@ -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",
@@ -505,16 +658,20 @@
505
658
  "site:digital-experience:generate:template"
506
659
  ]
507
660
  },
508
- "template:generate:analytics:template": {
661
+ "template:generate:project": {
509
662
  "aliases": [
510
- "force:analytics:template:create",
511
- "analytics:generate:template"
663
+ "force:project:create",
664
+ "project:generate"
512
665
  ],
513
666
  "args": {},
514
667
  "deprecateAliases": true,
515
- "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.",
668
+ "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\".",
516
669
  "examples": [
517
- "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"
670
+ "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
671
+ "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
672
+ "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",
673
+ "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
674
+ "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"
518
675
  ],
519
676
  "flags": {
520
677
  "json": {
@@ -532,6 +689,40 @@
532
689
  "multiple": false,
533
690
  "type": "option"
534
691
  },
692
+ "name": {
693
+ "aliases": [
694
+ "projectname"
695
+ ],
696
+ "char": "n",
697
+ "deprecateAliases": true,
698
+ "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.",
699
+ "name": "name",
700
+ "required": true,
701
+ "summary": "Name of the generated project.",
702
+ "hasDynamicHelp": false,
703
+ "multiple": false,
704
+ "type": "option"
705
+ },
706
+ "template": {
707
+ "char": "t",
708
+ "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.",
709
+ "name": "template",
710
+ "summary": "Template to use for project creation.",
711
+ "default": "standard",
712
+ "hasDynamicHelp": false,
713
+ "multiple": false,
714
+ "options": [
715
+ "standard",
716
+ "empty",
717
+ "analytics",
718
+ "reactinternalapp",
719
+ "reactexternalapp",
720
+ "angularinternalapp",
721
+ "angularexternalapp",
722
+ "agent"
723
+ ],
724
+ "type": "option"
725
+ },
535
726
  "output-dir": {
536
727
  "aliases": [
537
728
  "outputdir"
@@ -546,28 +737,62 @@
546
737
  "multiple": false,
547
738
  "type": "option"
548
739
  },
549
- "api-version": {
740
+ "namespace": {
741
+ "char": "s",
742
+ "name": "namespace",
743
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
744
+ "default": "",
745
+ "hasDynamicHelp": false,
746
+ "multiple": false,
747
+ "type": "option"
748
+ },
749
+ "default-package-dir": {
550
750
  "aliases": [
551
- "apiversion"
751
+ "defaultpackagedir"
552
752
  ],
753
+ "char": "p",
553
754
  "deprecateAliases": true,
554
- "description": "Override the api version used for api requests made by this command",
555
- "name": "api-version",
755
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
756
+ "name": "default-package-dir",
757
+ "summary": "Default package directory name.",
758
+ "default": "force-app",
556
759
  "hasDynamicHelp": false,
557
760
  "multiple": false,
558
761
  "type": "option"
559
762
  },
560
- "name": {
763
+ "manifest": {
764
+ "char": "x",
765
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
766
+ "name": "manifest",
767
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
768
+ "allowNo": false,
769
+ "type": "boolean"
770
+ },
771
+ "login-url": {
561
772
  "aliases": [
562
- "templatename"
773
+ "loginurl"
563
774
  ],
564
- "char": "n",
775
+ "char": "l",
565
776
  "deprecateAliases": true,
566
- "name": "name",
567
- "required": true,
568
- "summary": "Name of the Analytics template.",
777
+ "description": "Normally defaults to https://login.salesforce.com.",
778
+ "hidden": true,
779
+ "name": "login-url",
780
+ "summary": "Salesforce instance login URL.",
781
+ "default": "https://login.salesforce.com",
782
+ "hasDynamicHelp": false,
783
+ "multiple": false,
784
+ "type": "option"
785
+ },
786
+ "lwc-language": {
787
+ "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.",
788
+ "name": "lwc-language",
789
+ "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
569
790
  "hasDynamicHelp": false,
570
791
  "multiple": false,
792
+ "options": [
793
+ "javascript",
794
+ "typescript"
795
+ ],
571
796
  "type": "option"
572
797
  },
573
798
  "loglevel": {
@@ -579,16 +804,24 @@
579
804
  "hasDynamicHelp": false,
580
805
  "multiple": false,
581
806
  "type": "option"
582
- }
807
+ },
808
+ "api-version": {
809
+ "description": "Override the api version used for api requests made by this command",
810
+ "name": "api-version",
811
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
812
+ "hasDynamicHelp": false,
813
+ "multiple": false,
814
+ "type": "option"
815
+ }
583
816
  },
584
817
  "hasDynamicHelp": false,
585
818
  "hiddenAliases": [],
586
- "id": "template:generate:analytics:template",
819
+ "id": "template:generate:project",
587
820
  "pluginAlias": "@salesforce/plugin-templates",
588
821
  "pluginName": "@salesforce/plugin-templates",
589
822
  "pluginType": "core",
590
823
  "strict": true,
591
- "summary": "Generate a simple Analytics template.",
824
+ "summary": "Generate a Salesforce DX project.",
592
825
  "enableJsonFlag": true,
593
826
  "isESM": true,
594
827
  "relativePath": [
@@ -596,77 +829,40 @@
596
829
  "commands",
597
830
  "template",
598
831
  "generate",
599
- "analytics",
600
- "template.js"
832
+ "project",
833
+ "index.js"
601
834
  ],
602
835
  "aliasPermutations": [
603
- "force:analytics:template:create",
604
- "analytics:force:template:create",
605
- "analytics:template:force:create",
606
- "analytics:template:create:force",
607
- "force:template:analytics:create",
608
- "template:force:analytics:create",
609
- "template:analytics:force:create",
610
- "template:analytics:create:force",
611
- "force:template:create:analytics",
612
- "template:force:create:analytics",
613
- "template:create:force:analytics",
614
- "template:create:analytics:force",
615
- "force:analytics:create:template",
616
- "analytics:force:create:template",
617
- "analytics:create:force:template",
618
- "analytics:create:template:force",
619
- "force:create:analytics:template",
620
- "create:force:analytics:template",
621
- "create:analytics:force:template",
622
- "create:analytics:template:force",
623
- "force:create:template:analytics",
624
- "create:force:template:analytics",
625
- "create:template:force:analytics",
626
- "create:template:analytics:force",
627
- "analytics:generate:template",
628
- "generate:analytics:template",
629
- "generate:template:analytics",
630
- "analytics:template:generate",
631
- "template:analytics:generate",
632
- "template:generate:analytics"
836
+ "force:project:create",
837
+ "project:force:create",
838
+ "project:create:force",
839
+ "force:create:project",
840
+ "create:force:project",
841
+ "create:project:force",
842
+ "project:generate",
843
+ "generate:project"
633
844
  ],
634
845
  "permutations": [
635
- "template:generate:analytics:template",
636
- "generate:template:analytics:template",
637
- "generate:analytics:template:template",
638
- "generate:analytics:template:template",
639
- "template:analytics:generate:template",
640
- "analytics:template:generate:template",
641
- "analytics:generate:template:template",
642
- "analytics:generate:template:template",
643
- "template:analytics:template:generate",
644
- "analytics:template:template:generate",
645
- "analytics:template:template:generate",
646
- "analytics:template:generate:template",
647
- "template:generate:template:analytics",
648
- "generate:template:template:analytics",
649
- "generate:template:template:analytics",
650
- "generate:template:analytics:template",
651
- "template:template:generate:analytics",
652
- "template:template:generate:analytics",
653
- "template:generate:template:analytics",
654
- "template:generate:analytics:template",
655
- "template:template:analytics:generate",
656
- "template:template:analytics:generate",
657
- "template:analytics:template:generate",
658
- "template:analytics:generate:template"
846
+ "template:generate:project",
847
+ "generate:template:project",
848
+ "generate:project:template",
849
+ "template:project:generate",
850
+ "project:template:generate",
851
+ "project:generate:template"
659
852
  ]
660
853
  },
661
- "template:generate:flexipage": {
662
- "aliases": [],
854
+ "template:generate:static-resource": {
855
+ "aliases": [
856
+ "force:staticresource:create",
857
+ "static-resource:generate"
858
+ ],
663
859
  "args": {},
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.",
860
+ "deprecateAliases": true,
861
+ "description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
665
862
  "examples": [
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"
863
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
864
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
865
+ "Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n<%= config.bin %> <%= command.id %> --name MyResource --output-dir force-app/main/default/staticresources"
670
866
  ],
671
867
  "flags": {
672
868
  "json": {
@@ -686,30 +882,29 @@
686
882
  },
687
883
  "name": {
688
884
  "aliases": [
689
- "flexipagename"
885
+ "resourcename"
690
886
  ],
691
887
  "char": "n",
692
888
  "deprecateAliases": true,
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.",
889
+ "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
694
890
  "name": "name",
695
891
  "required": true,
696
- "summary": "Name of the FlexiPage.",
892
+ "summary": "Name of the generated static resource.",
697
893
  "hasDynamicHelp": false,
698
894
  "multiple": false,
699
895
  "type": "option"
700
896
  },
701
- "template": {
702
- "char": "t",
703
- "name": "template",
704
- "required": true,
705
- "summary": "Template type for the FlexiPage.",
897
+ "type": {
898
+ "aliases": [
899
+ "contenttype"
900
+ ],
901
+ "deprecateAliases": true,
902
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
903
+ "name": "type",
904
+ "summary": "Content type (mime type) of the generated static resource.",
905
+ "default": "application/zip",
706
906
  "hasDynamicHelp": false,
707
907
  "multiple": false,
708
- "options": [
709
- "RecordPage",
710
- "AppPage",
711
- "HomePage"
712
- ],
713
908
  "type": "option"
714
909
  },
715
910
  "output-dir": {
@@ -737,69 +932,6 @@
737
932
  "multiple": false,
738
933
  "type": "option"
739
934
  },
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
- },
795
- "internal": {
796
- "char": "i",
797
- "hidden": true,
798
- "name": "internal",
799
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
800
- "allowNo": false,
801
- "type": "boolean"
802
- },
803
935
  "loglevel": {
804
936
  "deprecated": {
805
937
  "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."
@@ -813,48 +945,50 @@
813
945
  },
814
946
  "hasDynamicHelp": false,
815
947
  "hiddenAliases": [],
816
- "id": "template:generate:flexipage",
948
+ "id": "template:generate:static-resource",
817
949
  "pluginAlias": "@salesforce/plugin-templates",
818
950
  "pluginName": "@salesforce/plugin-templates",
819
951
  "pluginType": "core",
820
- "state": "beta",
821
952
  "strict": true,
822
- "summary": "Generate a FlexiPage, also known as a Lightning page.",
953
+ "summary": "Generate a static resource.",
823
954
  "enableJsonFlag": true,
824
- "MAX_SECONDARY_FIELDS": 11,
825
955
  "isESM": true,
826
956
  "relativePath": [
827
957
  "lib",
828
958
  "commands",
829
959
  "template",
830
960
  "generate",
831
- "flexipage",
961
+ "static-resource",
832
962
  "index.js"
833
963
  ],
834
- "aliasPermutations": [],
964
+ "aliasPermutations": [
965
+ "force:staticresource:create",
966
+ "staticresource:force:create",
967
+ "staticresource:create:force",
968
+ "force:create:staticresource",
969
+ "create:force:staticresource",
970
+ "create:staticresource:force",
971
+ "static-resource:generate",
972
+ "generate:static-resource"
973
+ ],
835
974
  "permutations": [
836
- "template:generate:flexipage",
837
- "generate:template:flexipage",
838
- "generate:flexipage:template",
839
- "template:flexipage:generate",
840
- "flexipage:template:generate",
841
- "flexipage:generate:template"
975
+ "template:generate:static-resource",
976
+ "generate:template:static-resource",
977
+ "generate:static-resource:template",
978
+ "template:static-resource:generate",
979
+ "static-resource:template:generate",
980
+ "static-resource:generate:template"
842
981
  ]
843
982
  },
844
- "template:generate:project": {
845
- "aliases": [
846
- "force:project:create",
847
- "project:generate"
848
- ],
983
+ "template:generate:ui-bundle": {
984
+ "aliases": [],
849
985
  "args": {},
850
- "deprecateAliases": true,
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\".",
986
+ "description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a specific UI framework, such as React or Angular. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
852
987
  "examples": [
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"
988
+ "Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
989
+ "Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
990
+ "Generate an Angular-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyAngularApp --template angularbasic",
991
+ "Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles"
858
992
  ],
859
993
  "flags": {
860
994
  "json": {
@@ -873,117 +1007,44 @@
873
1007
  "type": "option"
874
1008
  },
875
1009
  "name": {
876
- "aliases": [
877
- "projectname"
878
- ],
879
1010
  "char": "n",
880
- "deprecateAliases": true,
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.",
1011
+ "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
882
1012
  "name": "name",
883
1013
  "required": true,
884
- "summary": "Name of the generated project.",
1014
+ "summary": "API name of the generated UI bundle.",
885
1015
  "hasDynamicHelp": false,
886
1016
  "multiple": false,
887
1017
  "type": "option"
888
1018
  },
889
1019
  "template": {
890
1020
  "char": "t",
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.",
1021
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
892
1022
  "name": "template",
893
- "summary": "Template to use for project creation.",
894
- "default": "standard",
1023
+ "summary": "Template to use when creating the files for a specific UI framework.",
1024
+ "default": "default",
895
1025
  "hasDynamicHelp": false,
896
1026
  "multiple": false,
897
1027
  "options": [
898
- "standard",
899
- "empty",
900
- "analytics",
901
- "reactinternalapp",
902
- "reactexternalapp",
903
- "angularinternalapp",
904
- "angularexternalapp",
905
- "agent"
906
- ],
907
- "type": "option"
908
- },
909
- "output-dir": {
910
- "aliases": [
911
- "outputdir"
912
- ],
913
- "char": "d",
914
- "deprecateAliases": true,
915
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
916
- "name": "output-dir",
917
- "summary": "Directory for saving the created files.",
918
- "default": ".",
919
- "hasDynamicHelp": false,
920
- "multiple": false,
921
- "type": "option"
922
- },
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": {
933
- "aliases": [
934
- "defaultpackagedir"
1028
+ "default",
1029
+ "reactbasic",
1030
+ "angularbasic"
935
1031
  ],
936
- "char": "p",
937
- "deprecateAliases": true,
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",
942
- "hasDynamicHelp": false,
943
- "multiple": false,
944
1032
  "type": "option"
945
1033
  },
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
- ],
1034
+ "label": {
958
1035
  "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.",
1036
+ "description": "If not specified, the label is derived from the name.",
1037
+ "name": "label",
1038
+ "summary": "Master label for the UI bundle.",
973
1039
  "hasDynamicHelp": false,
974
1040
  "multiple": false,
975
- "options": [
976
- "javascript",
977
- "typescript"
978
- ],
979
1041
  "type": "option"
980
1042
  },
981
- "loglevel": {
982
- "deprecated": {
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."
984
- },
985
- "hidden": true,
986
- "name": "loglevel",
1043
+ "output-dir": {
1044
+ "char": "d",
1045
+ "description": "The location can be an absolute path or relative to the current working directory.\n\nIf not specified, the command reads your sfdx-project.json and defaults to \"uiBundles\" directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.\n\n**Important:** This command automatically ensures the output directory ends with \"uiBundles\". If your specified path doesn't end with \"uiBundles\", it's automatically appended. The UI bundle is created at \"<output-dir>/<name>\".\n\n**Examples:**\n\n- \"--output-dir force-app/main/default\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\"\n- \"--output-dir force-app/main/default/uiBundles\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\" (no change)",
1046
+ "name": "output-dir",
1047
+ "summary": "Directory into which the files are created.",
987
1048
  "hasDynamicHelp": false,
988
1049
  "multiple": false,
989
1050
  "type": "option"
@@ -991,7 +1052,6 @@
991
1052
  "api-version": {
992
1053
  "description": "Override the api version used for api requests made by this command",
993
1054
  "name": "api-version",
994
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
995
1055
  "hasDynamicHelp": false,
996
1056
  "multiple": false,
997
1057
  "type": "option"
@@ -999,12 +1059,12 @@
999
1059
  },
1000
1060
  "hasDynamicHelp": false,
1001
1061
  "hiddenAliases": [],
1002
- "id": "template:generate:project",
1062
+ "id": "template:generate:ui-bundle",
1003
1063
  "pluginAlias": "@salesforce/plugin-templates",
1004
1064
  "pluginName": "@salesforce/plugin-templates",
1005
1065
  "pluginType": "core",
1006
1066
  "strict": true,
1007
- "summary": "Generate a Salesforce DX project.",
1067
+ "summary": "Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.",
1008
1068
  "enableJsonFlag": true,
1009
1069
  "isESM": true,
1010
1070
  "relativePath": [
@@ -1012,39 +1072,28 @@
1012
1072
  "commands",
1013
1073
  "template",
1014
1074
  "generate",
1015
- "project",
1075
+ "ui-bundle",
1016
1076
  "index.js"
1017
1077
  ],
1018
- "aliasPermutations": [
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"
1027
- ],
1078
+ "aliasPermutations": [],
1028
1079
  "permutations": [
1029
- "template:generate:project",
1030
- "generate:template:project",
1031
- "generate:project:template",
1032
- "template:project:generate",
1033
- "project:template:generate",
1034
- "project:generate:template"
1080
+ "template:generate:ui-bundle",
1081
+ "generate:template:ui-bundle",
1082
+ "generate:ui-bundle:template",
1083
+ "template:ui-bundle:generate",
1084
+ "ui-bundle:template:generate",
1085
+ "ui-bundle:generate:template"
1035
1086
  ]
1036
1087
  },
1037
- "template:generate:lightning:app": {
1038
- "aliases": [
1039
- "force:lightning:app:create",
1040
- "lightning:generate:app"
1041
- ],
1088
+ "template:generate:flexipage": {
1089
+ "aliases": [],
1042
1090
  "args": {},
1043
- "deprecateAliases": true,
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.",
1091
+ "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.",
1045
1092
  "examples": [
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"
1093
+ "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",
1094
+ "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",
1095
+ "Generate a HomePage FlexiPage with a custom label:\n<%= config.bin %> <%= command.id %> --name Custom_Home --template HomePage --label \"Sales Home Page\"",
1096
+ "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"
1048
1097
  ],
1049
1098
  "flags": {
1050
1099
  "json": {
@@ -1064,28 +1113,29 @@
1064
1113
  },
1065
1114
  "name": {
1066
1115
  "aliases": [
1067
- "appname"
1116
+ "flexipagename"
1068
1117
  ],
1069
1118
  "char": "n",
1070
1119
  "deprecateAliases": true,
1071
- "description": "The name can be up to 40 characters and must start with a letter.",
1120
+ "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.",
1072
1121
  "name": "name",
1073
1122
  "required": true,
1074
- "summary": "Name of the generated Lightning App.",
1123
+ "summary": "Name of the FlexiPage.",
1075
1124
  "hasDynamicHelp": false,
1076
1125
  "multiple": false,
1077
1126
  "type": "option"
1078
1127
  },
1079
1128
  "template": {
1080
1129
  "char": "t",
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.",
1082
1130
  "name": "template",
1083
- "summary": "Template to use for file creation.",
1084
- "default": "DefaultLightningApp",
1131
+ "required": true,
1132
+ "summary": "Template type for the FlexiPage.",
1085
1133
  "hasDynamicHelp": false,
1086
1134
  "multiple": false,
1087
1135
  "options": [
1088
- "DefaultLightningApp"
1136
+ "RecordPage",
1137
+ "AppPage",
1138
+ "HomePage"
1089
1139
  ],
1090
1140
  "type": "option"
1091
1141
  },
@@ -1114,6 +1164,61 @@
1114
1164
  "multiple": false,
1115
1165
  "type": "option"
1116
1166
  },
1167
+ "label": {
1168
+ "aliases": [
1169
+ "masterlabel"
1170
+ ],
1171
+ "deprecateAliases": true,
1172
+ "name": "label",
1173
+ "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
1174
+ "hasDynamicHelp": false,
1175
+ "multiple": false,
1176
+ "type": "option"
1177
+ },
1178
+ "description": {
1179
+ "name": "description",
1180
+ "summary": "Description for the FlexiPage, which provides context about its purpose.",
1181
+ "hasDynamicHelp": false,
1182
+ "multiple": false,
1183
+ "type": "option"
1184
+ },
1185
+ "sobject": {
1186
+ "aliases": [
1187
+ "entity-name",
1188
+ "entity"
1189
+ ],
1190
+ "char": "s",
1191
+ "deprecateAliases": true,
1192
+ "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.",
1193
+ "name": "sobject",
1194
+ "summary": "API name of the Salesforce object; required when creating a RecordPage.",
1195
+ "hasDynamicHelp": false,
1196
+ "multiple": false,
1197
+ "type": "option"
1198
+ },
1199
+ "primary-field": {
1200
+ "name": "primary-field",
1201
+ "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
1202
+ "hasDynamicHelp": false,
1203
+ "multiple": false,
1204
+ "type": "option"
1205
+ },
1206
+ "secondary-fields": {
1207
+ "name": "secondary-fields",
1208
+ "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
1209
+ "delimiter": ",",
1210
+ "hasDynamicHelp": false,
1211
+ "multiple": true,
1212
+ "type": "option"
1213
+ },
1214
+ "detail-fields": {
1215
+ "name": "detail-fields",
1216
+ "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
1217
+ "delimiter": ",",
1218
+ "hasDynamicHelp": false,
1219
+ "multiple": true,
1220
+ "type": "option"
1221
+ },
1117
1222
  "internal": {
1118
1223
  "char": "i",
1119
1224
  "hidden": true,
@@ -1135,95 +1240,41 @@
1135
1240
  },
1136
1241
  "hasDynamicHelp": false,
1137
1242
  "hiddenAliases": [],
1138
- "id": "template:generate:lightning:app",
1243
+ "id": "template:generate:flexipage",
1139
1244
  "pluginAlias": "@salesforce/plugin-templates",
1140
1245
  "pluginName": "@salesforce/plugin-templates",
1141
1246
  "pluginType": "core",
1247
+ "state": "beta",
1142
1248
  "strict": true,
1143
- "summary": "Generate a Lightning App.",
1249
+ "summary": "Generate a FlexiPage, also known as a Lightning page.",
1144
1250
  "enableJsonFlag": true,
1251
+ "MAX_SECONDARY_FIELDS": 11,
1145
1252
  "isESM": true,
1146
1253
  "relativePath": [
1147
1254
  "lib",
1148
1255
  "commands",
1149
1256
  "template",
1150
1257
  "generate",
1151
- "lightning",
1152
- "app.js"
1153
- ],
1154
- "aliasPermutations": [
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"
1258
+ "flexipage",
1259
+ "index.js"
1185
1260
  ],
1261
+ "aliasPermutations": [],
1186
1262
  "permutations": [
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"
1263
+ "template:generate:flexipage",
1264
+ "generate:template:flexipage",
1265
+ "generate:flexipage:template",
1266
+ "template:flexipage:generate",
1267
+ "flexipage:template:generate",
1268
+ "flexipage:generate:template"
1211
1269
  ]
1212
1270
  },
1213
- "template:generate:lightning:component": {
1214
- "aliases": [
1215
- "force:lightning:component:create",
1216
- "lightning:generate:component"
1217
- ],
1271
+ "template:generate:ui-embedding": {
1272
+ "aliases": [],
1218
1273
  "args": {},
1219
- "deprecateAliases": true,
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.",
1274
+ "description": "The generated LWC bundle consumes the first-party <lightning-ui-embedding> component, which is pre-wired with the three required attributes: the embedding URL (src), iframe sandbox tokens, and an accessible iframe title (shell-title).\n\nThe generated LWC bundle contains four files (.html, .js, .js-meta.xml, .css) in a directory named with the camelCased component name. The bundle must live under a parent folder named \"lwc\".",
1221
1275
  "examples": [
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"
1276
+ "Generate an embedding wrapper LWC in the current directory:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --shell-title \"Expense Report Embedding\"",
1277
+ "Generate an embedding wrapper LWC in the \"force-app/main/default/lwc\" directory with multiple sandbox tokens:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --sandbox allow-scripts --shell-title \"Expense Report Embedding\" --output-dir force-app/main/default/lwc"
1227
1278
  ],
1228
1279
  "flags": {
1229
1280
  "json": {
@@ -1242,35 +1293,57 @@
1242
1293
  "type": "option"
1243
1294
  },
1244
1295
  "name": {
1245
- "aliases": [
1246
- "componentname"
1247
- ],
1248
1296
  "char": "n",
1249
- "deprecateAliases": true,
1250
- "description": "The name can be up to 40 characters and must start with a letter.",
1297
+ "description": "The component name is also used (camelCased) as the LWC folder name and file stem. Must contain only alphanumeric characters and start with a letter.",
1251
1298
  "name": "name",
1252
1299
  "required": true,
1253
- "summary": "Name of the generated Lightning Component.",
1300
+ "summary": "Name of the generated component; must be in PascalCase format.",
1254
1301
  "hasDynamicHelp": false,
1255
1302
  "multiple": false,
1256
1303
  "type": "option"
1257
1304
  },
1258
- "template": {
1259
- "char": "t",
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.",
1261
- "name": "template",
1262
- "summary": "Template to use for file creation.",
1263
- "default": "default",
1305
+ "src": {
1306
+ "char": "s",
1307
+ "description": "The URL is bound to the <lightning-ui-embedding> \"src\" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).",
1308
+ "name": "src",
1309
+ "required": true,
1310
+ "summary": "Absolute HTTPS URL that the iframe will load.",
1264
1311
  "hasDynamicHelp": false,
1265
1312
  "multiple": false,
1313
+ "type": "option"
1314
+ },
1315
+ "sandbox": {
1316
+ "description": "Each token is written into the space-separated \"sandbox\" attribute on <lightning-ui-embedding>. Only W3C-defined sandbox tokens are accepted.",
1317
+ "name": "sandbox",
1318
+ "required": true,
1319
+ "summary": "Iframe sandbox token. Specify this flag multiple times to set more than one token.",
1320
+ "hasDynamicHelp": false,
1321
+ "multiple": true,
1266
1322
  "options": [
1267
- "default",
1268
- "analyticsDashboard",
1269
- "analyticsDashboardWithStep",
1270
- "typescript"
1323
+ "allow-forms",
1324
+ "allow-modals",
1325
+ "allow-orientation-lock",
1326
+ "allow-pointer-lock",
1327
+ "allow-popups",
1328
+ "allow-popups-to-escape-sandbox",
1329
+ "allow-presentation",
1330
+ "allow-same-origin",
1331
+ "allow-scripts",
1332
+ "allow-storage-access-by-user-activation",
1333
+ "allow-top-navigation",
1334
+ "allow-top-navigation-by-user-activation"
1271
1335
  ],
1272
1336
  "type": "option"
1273
1337
  },
1338
+ "shell-title": {
1339
+ "description": "Written to the \"shell-title\" attribute on <lightning-ui-embedding> and used as the iframe's accessible name (announced by screen readers).",
1340
+ "name": "shell-title",
1341
+ "required": true,
1342
+ "summary": "Accessible title for the embedded iframe.",
1343
+ "hasDynamicHelp": false,
1344
+ "multiple": false,
1345
+ "type": "option"
1346
+ },
1274
1347
  "output-dir": {
1275
1348
  "aliases": [
1276
1349
  "outputdir"
@@ -1296,18 +1369,6 @@
1296
1369
  "multiple": false,
1297
1370
  "type": "option"
1298
1371
  },
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
- },
1311
1372
  "internal": {
1312
1373
  "char": "i",
1313
1374
  "hidden": true,
@@ -1328,13 +1389,15 @@
1328
1389
  }
1329
1390
  },
1330
1391
  "hasDynamicHelp": false,
1392
+ "hidden": true,
1331
1393
  "hiddenAliases": [],
1332
- "id": "template:generate:lightning:component",
1394
+ "id": "template:generate:ui-embedding",
1333
1395
  "pluginAlias": "@salesforce/plugin-templates",
1334
1396
  "pluginName": "@salesforce/plugin-templates",
1335
1397
  "pluginType": "core",
1398
+ "state": "beta",
1336
1399
  "strict": true,
1337
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
1400
+ "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
1338
1401
  "enableJsonFlag": true,
1339
1402
  "isESM": true,
1340
1403
  "relativePath": [
@@ -1342,79 +1405,30 @@
1342
1405
  "commands",
1343
1406
  "template",
1344
1407
  "generate",
1345
- "lightning",
1346
- "component.js"
1347
- ],
1348
- "aliasPermutations": [
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"
1408
+ "ui-embedding",
1409
+ "index.js"
1379
1410
  ],
1411
+ "aliasPermutations": [],
1380
1412
  "permutations": [
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"
1413
+ "template:generate:ui-embedding",
1414
+ "generate:template:ui-embedding",
1415
+ "generate:ui-embedding:template",
1416
+ "template:ui-embedding:generate",
1417
+ "ui-embedding:template:generate",
1418
+ "ui-embedding:generate:template"
1405
1419
  ]
1406
1420
  },
1407
- "template:generate:lightning:event": {
1421
+ "template:generate:visualforce:component": {
1408
1422
  "aliases": [
1409
- "force:lightning:event:create",
1410
- "lightning:generate:event"
1423
+ "force:visualforce:component:create",
1424
+ "visualforce:generate:component"
1411
1425
  ],
1412
1426
  "args": {},
1413
1427
  "deprecateAliases": true,
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.",
1428
+ "description": "The command generates the .Component file and associated metadata file in the specified directory or the current working directory by default.",
1415
1429
  "examples": [
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"
1430
+ "Generate the metadata files for a Visualforce component in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel",
1431
+ "Similar to previous example, but generate the files in the directory \"force-app/main/default/components\":\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel --output-dir components"
1418
1432
  ],
1419
1433
  "flags": {
1420
1434
  "json": {
@@ -1434,28 +1448,28 @@
1434
1448
  },
1435
1449
  "name": {
1436
1450
  "aliases": [
1437
- "eventname"
1451
+ "componentname"
1438
1452
  ],
1439
1453
  "char": "n",
1440
1454
  "deprecateAliases": true,
1441
1455
  "description": "The name can be up to 40 characters and must start with a letter.",
1442
1456
  "name": "name",
1443
1457
  "required": true,
1444
- "summary": "Name of the generated Lightning Event.",
1458
+ "summary": "Name of the generated Visualforce Component.",
1445
1459
  "hasDynamicHelp": false,
1446
1460
  "multiple": false,
1447
1461
  "type": "option"
1448
1462
  },
1449
1463
  "template": {
1450
1464
  "char": "t",
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.",
1465
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1452
1466
  "name": "template",
1453
1467
  "summary": "Template to use for file creation.",
1454
- "default": "DefaultLightningEvt",
1468
+ "default": "DefaultVFComponent",
1455
1469
  "hasDynamicHelp": false,
1456
1470
  "multiple": false,
1457
1471
  "options": [
1458
- "DefaultLightningEvt"
1472
+ "DefaultVFComponent"
1459
1473
  ],
1460
1474
  "type": "option"
1461
1475
  },
@@ -1484,13 +1498,14 @@
1484
1498
  "multiple": false,
1485
1499
  "type": "option"
1486
1500
  },
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"
1501
+ "label": {
1502
+ "char": "l",
1503
+ "name": "label",
1504
+ "required": true,
1505
+ "summary": "Visualforce Component label.",
1506
+ "hasDynamicHelp": false,
1507
+ "multiple": false,
1508
+ "type": "option"
1494
1509
  },
1495
1510
  "loglevel": {
1496
1511
  "deprecated": {
@@ -1505,12 +1520,12 @@
1505
1520
  },
1506
1521
  "hasDynamicHelp": false,
1507
1522
  "hiddenAliases": [],
1508
- "id": "template:generate:lightning:event",
1523
+ "id": "template:generate:visualforce:component",
1509
1524
  "pluginAlias": "@salesforce/plugin-templates",
1510
1525
  "pluginName": "@salesforce/plugin-templates",
1511
1526
  "pluginType": "core",
1512
1527
  "strict": true,
1513
- "summary": "Generate a Lightning Event.",
1528
+ "summary": "Generate a Visualforce Component.",
1514
1529
  "enableJsonFlag": true,
1515
1530
  "isESM": true,
1516
1531
  "relativePath": [
@@ -1518,79 +1533,79 @@
1518
1533
  "commands",
1519
1534
  "template",
1520
1535
  "generate",
1521
- "lightning",
1522
- "event.js"
1536
+ "visualforce",
1537
+ "component.js"
1523
1538
  ],
1524
1539
  "aliasPermutations": [
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"
1555
- ],
1540
+ "force:visualforce:component:create",
1541
+ "visualforce:force:component:create",
1542
+ "visualforce:component:force:create",
1543
+ "visualforce:component:create:force",
1544
+ "force:component:visualforce:create",
1545
+ "component:force:visualforce:create",
1546
+ "component:visualforce:force:create",
1547
+ "component:visualforce:create:force",
1548
+ "force:component:create:visualforce",
1549
+ "component:force:create:visualforce",
1550
+ "component:create:force:visualforce",
1551
+ "component:create:visualforce:force",
1552
+ "force:visualforce:create:component",
1553
+ "visualforce:force:create:component",
1554
+ "visualforce:create:force:component",
1555
+ "visualforce:create:component:force",
1556
+ "force:create:visualforce:component",
1557
+ "create:force:visualforce:component",
1558
+ "create:visualforce:force:component",
1559
+ "create:visualforce:component:force",
1560
+ "force:create:component:visualforce",
1561
+ "create:force:component:visualforce",
1562
+ "create:component:force:visualforce",
1563
+ "create:component:visualforce:force",
1564
+ "visualforce:generate:component",
1565
+ "generate:visualforce:component",
1566
+ "generate:component:visualforce",
1567
+ "visualforce:component:generate",
1568
+ "component:visualforce:generate",
1569
+ "component:generate:visualforce"
1570
+ ],
1556
1571
  "permutations": [
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"
1572
+ "template:generate:visualforce:component",
1573
+ "generate:template:visualforce:component",
1574
+ "generate:visualforce:template:component",
1575
+ "generate:visualforce:component:template",
1576
+ "template:visualforce:generate:component",
1577
+ "visualforce:template:generate:component",
1578
+ "visualforce:generate:template:component",
1579
+ "visualforce:generate:component:template",
1580
+ "template:visualforce:component:generate",
1581
+ "visualforce:template:component:generate",
1582
+ "visualforce:component:template:generate",
1583
+ "visualforce:component:generate:template",
1584
+ "template:generate:component:visualforce",
1585
+ "generate:template:component:visualforce",
1586
+ "generate:component:template:visualforce",
1587
+ "generate:component:visualforce:template",
1588
+ "template:component:generate:visualforce",
1589
+ "component:template:generate:visualforce",
1590
+ "component:generate:template:visualforce",
1591
+ "component:generate:visualforce:template",
1592
+ "template:component:visualforce:generate",
1593
+ "component:template:visualforce:generate",
1594
+ "component:visualforce:template:generate",
1595
+ "component:visualforce:generate:template"
1581
1596
  ]
1582
1597
  },
1583
- "template:generate:lightning:interface": {
1598
+ "template:generate:visualforce:page": {
1584
1599
  "aliases": [
1585
- "force:lightning:interface:create",
1586
- "lightning:generate:interface"
1600
+ "force:visualforce:page:create",
1601
+ "visualforce:generate:page"
1587
1602
  ],
1588
1603
  "args": {},
1589
1604
  "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.",
1605
+ "description": "The command generates the .Page file and associated metadata file in the specified directory or the current working directory by default.",
1591
1606
  "examples": [
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"
1607
+ "Generate the metadata files for a Visualforce page in the current directory:\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel",
1608
+ "Similar to previous example, but generate the files in the directory \"force-app/main/default/pages\":\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel --output-dir pages"
1594
1609
  ],
1595
1610
  "flags": {
1596
1611
  "json": {
@@ -1610,28 +1625,29 @@
1610
1625
  },
1611
1626
  "name": {
1612
1627
  "aliases": [
1613
- "interfacename"
1628
+ "pagename"
1614
1629
  ],
1615
1630
  "char": "n",
1616
1631
  "deprecateAliases": true,
1617
1632
  "description": "The name can be up to 40 characters and must start with a letter.",
1618
1633
  "name": "name",
1619
1634
  "required": true,
1620
- "summary": "Name of the generated Lightning Interface.",
1635
+ "summary": "Name of the generated Visualforce Page.",
1621
1636
  "hasDynamicHelp": false,
1622
1637
  "multiple": false,
1623
1638
  "type": "option"
1624
1639
  },
1625
1640
  "template": {
1626
1641
  "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.",
1642
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1643
+ "hidden": true,
1628
1644
  "name": "template",
1629
1645
  "summary": "Template to use for file creation.",
1630
- "default": "DefaultLightningIntf",
1646
+ "default": "DefaultVFPage",
1631
1647
  "hasDynamicHelp": false,
1632
1648
  "multiple": false,
1633
1649
  "options": [
1634
- "DefaultLightningIntf"
1650
+ "DefaultVFPage"
1635
1651
  ],
1636
1652
  "type": "option"
1637
1653
  },
@@ -1660,13 +1676,14 @@
1660
1676
  "multiple": false,
1661
1677
  "type": "option"
1662
1678
  },
1663
- "internal": {
1664
- "char": "i",
1665
- "hidden": true,
1666
- "name": "internal",
1667
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1668
- "allowNo": false,
1669
- "type": "boolean"
1679
+ "label": {
1680
+ "char": "l",
1681
+ "name": "label",
1682
+ "required": true,
1683
+ "summary": "Visualforce Page label.",
1684
+ "hasDynamicHelp": false,
1685
+ "multiple": false,
1686
+ "type": "option"
1670
1687
  },
1671
1688
  "loglevel": {
1672
1689
  "deprecated": {
@@ -1681,12 +1698,12 @@
1681
1698
  },
1682
1699
  "hasDynamicHelp": false,
1683
1700
  "hiddenAliases": [],
1684
- "id": "template:generate:lightning:interface",
1701
+ "id": "template:generate:visualforce:page",
1685
1702
  "pluginAlias": "@salesforce/plugin-templates",
1686
1703
  "pluginName": "@salesforce/plugin-templates",
1687
1704
  "pluginType": "core",
1688
1705
  "strict": true,
1689
- "summary": "Generate a Lightning Interface.",
1706
+ "summary": "Generate a Visualforce Page.",
1690
1707
  "enableJsonFlag": true,
1691
1708
  "isESM": true,
1692
1709
  "relativePath": [
@@ -1694,79 +1711,79 @@
1694
1711
  "commands",
1695
1712
  "template",
1696
1713
  "generate",
1697
- "lightning",
1698
- "interface.js"
1714
+ "visualforce",
1715
+ "page.js"
1699
1716
  ],
1700
1717
  "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"
1718
+ "force:visualforce:page:create",
1719
+ "visualforce:force:page:create",
1720
+ "visualforce:page:force:create",
1721
+ "visualforce:page:create:force",
1722
+ "force:page:visualforce:create",
1723
+ "page:force:visualforce:create",
1724
+ "page:visualforce:force:create",
1725
+ "page:visualforce:create:force",
1726
+ "force:page:create:visualforce",
1727
+ "page:force:create:visualforce",
1728
+ "page:create:force:visualforce",
1729
+ "page:create:visualforce:force",
1730
+ "force:visualforce:create:page",
1731
+ "visualforce:force:create:page",
1732
+ "visualforce:create:force:page",
1733
+ "visualforce:create:page:force",
1734
+ "force:create:visualforce:page",
1735
+ "create:force:visualforce:page",
1736
+ "create:visualforce:force:page",
1737
+ "create:visualforce:page:force",
1738
+ "force:create:page:visualforce",
1739
+ "create:force:page:visualforce",
1740
+ "create:page:force:visualforce",
1741
+ "create:page:visualforce:force",
1742
+ "visualforce:generate:page",
1743
+ "generate:visualforce:page",
1744
+ "generate:page:visualforce",
1745
+ "visualforce:page:generate",
1746
+ "page:visualforce:generate",
1747
+ "page:generate:visualforce"
1731
1748
  ],
1732
1749
  "permutations": [
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"
1750
+ "template:generate:visualforce:page",
1751
+ "generate:template:visualforce:page",
1752
+ "generate:visualforce:template:page",
1753
+ "generate:visualforce:page:template",
1754
+ "template:visualforce:generate:page",
1755
+ "visualforce:template:generate:page",
1756
+ "visualforce:generate:template:page",
1757
+ "visualforce:generate:page:template",
1758
+ "template:visualforce:page:generate",
1759
+ "visualforce:template:page:generate",
1760
+ "visualforce:page:template:generate",
1761
+ "visualforce:page:generate:template",
1762
+ "template:generate:page:visualforce",
1763
+ "generate:template:page:visualforce",
1764
+ "generate:page:template:visualforce",
1765
+ "generate:page:visualforce:template",
1766
+ "template:page:generate:visualforce",
1767
+ "page:template:generate:visualforce",
1768
+ "page:generate:template:visualforce",
1769
+ "page:generate:visualforce:template",
1770
+ "template:page:visualforce:generate",
1771
+ "page:template:visualforce:generate",
1772
+ "page:visualforce:template:generate",
1773
+ "page:visualforce:generate:template"
1757
1774
  ]
1758
1775
  },
1759
- "template:generate:lightning:test": {
1776
+ "template:generate:lightning:app": {
1760
1777
  "aliases": [
1761
- "force:lightning:test:create",
1762
- "lightning:generate:test"
1778
+ "force:lightning:app:create",
1779
+ "lightning:generate:app"
1763
1780
  ],
1764
1781
  "args": {},
1765
1782
  "deprecateAliases": true,
1766
- "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1783
+ "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.",
1767
1784
  "examples": [
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"
1785
+ "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
1786
+ "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"
1770
1787
  ],
1771
1788
  "flags": {
1772
1789
  "json": {
@@ -1786,14 +1803,14 @@
1786
1803
  },
1787
1804
  "name": {
1788
1805
  "aliases": [
1789
- "testname"
1806
+ "appname"
1790
1807
  ],
1791
1808
  "char": "n",
1792
1809
  "deprecateAliases": true,
1793
- "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1810
+ "description": "The name can be up to 40 characters and must start with a letter.",
1794
1811
  "name": "name",
1795
1812
  "required": true,
1796
- "summary": "Name of the generated Lightning Test.",
1813
+ "summary": "Name of the generated Lightning App.",
1797
1814
  "hasDynamicHelp": false,
1798
1815
  "multiple": false,
1799
1816
  "type": "option"
@@ -1803,11 +1820,11 @@
1803
1820
  "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.",
1804
1821
  "name": "template",
1805
1822
  "summary": "Template to use for file creation.",
1806
- "default": "DefaultLightningTest",
1823
+ "default": "DefaultLightningApp",
1807
1824
  "hasDynamicHelp": false,
1808
1825
  "multiple": false,
1809
1826
  "options": [
1810
- "DefaultLightningTest"
1827
+ "DefaultLightningApp"
1811
1828
  ],
1812
1829
  "type": "option"
1813
1830
  },
@@ -1825,14 +1842,6 @@
1825
1842
  "multiple": false,
1826
1843
  "type": "option"
1827
1844
  },
1828
- "internal": {
1829
- "char": "i",
1830
- "hidden": true,
1831
- "name": "internal",
1832
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1833
- "allowNo": false,
1834
- "type": "boolean"
1835
- },
1836
1845
  "api-version": {
1837
1846
  "aliases": [
1838
1847
  "apiversion"
@@ -1844,6 +1853,14 @@
1844
1853
  "multiple": false,
1845
1854
  "type": "option"
1846
1855
  },
1856
+ "internal": {
1857
+ "char": "i",
1858
+ "hidden": true,
1859
+ "name": "internal",
1860
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1861
+ "allowNo": false,
1862
+ "type": "boolean"
1863
+ },
1847
1864
  "loglevel": {
1848
1865
  "deprecated": {
1849
1866
  "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."
@@ -1857,12 +1874,12 @@
1857
1874
  },
1858
1875
  "hasDynamicHelp": false,
1859
1876
  "hiddenAliases": [],
1860
- "id": "template:generate:lightning:test",
1877
+ "id": "template:generate:lightning:app",
1861
1878
  "pluginAlias": "@salesforce/plugin-templates",
1862
1879
  "pluginName": "@salesforce/plugin-templates",
1863
1880
  "pluginType": "core",
1864
1881
  "strict": true,
1865
- "summary": "Generate a Lightning test.",
1882
+ "summary": "Generate a Lightning App.",
1866
1883
  "enableJsonFlag": true,
1867
1884
  "isESM": true,
1868
1885
  "relativePath": [
@@ -1871,79 +1888,81 @@
1871
1888
  "template",
1872
1889
  "generate",
1873
1890
  "lightning",
1874
- "test.js"
1891
+ "app.js"
1875
1892
  ],
1876
1893
  "aliasPermutations": [
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"
1894
+ "force:lightning:app:create",
1895
+ "lightning:force:app:create",
1896
+ "lightning:app:force:create",
1897
+ "lightning:app:create:force",
1898
+ "force:app:lightning:create",
1899
+ "app:force:lightning:create",
1900
+ "app:lightning:force:create",
1901
+ "app:lightning:create:force",
1902
+ "force:app:create:lightning",
1903
+ "app:force:create:lightning",
1904
+ "app:create:force:lightning",
1905
+ "app:create:lightning:force",
1906
+ "force:lightning:create:app",
1907
+ "lightning:force:create:app",
1908
+ "lightning:create:force:app",
1909
+ "lightning:create:app:force",
1910
+ "force:create:lightning:app",
1911
+ "create:force:lightning:app",
1912
+ "create:lightning:force:app",
1913
+ "create:lightning:app:force",
1914
+ "force:create:app:lightning",
1915
+ "create:force:app:lightning",
1916
+ "create:app:force:lightning",
1917
+ "create:app:lightning:force",
1918
+ "lightning:generate:app",
1919
+ "generate:lightning:app",
1920
+ "generate:app:lightning",
1921
+ "lightning:app:generate",
1922
+ "app:lightning:generate",
1923
+ "app:generate:lightning"
1907
1924
  ],
1908
1925
  "permutations": [
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"
1926
+ "template:generate:lightning:app",
1927
+ "generate:template:lightning:app",
1928
+ "generate:lightning:template:app",
1929
+ "generate:lightning:app:template",
1930
+ "template:lightning:generate:app",
1931
+ "lightning:template:generate:app",
1932
+ "lightning:generate:template:app",
1933
+ "lightning:generate:app:template",
1934
+ "template:lightning:app:generate",
1935
+ "lightning:template:app:generate",
1936
+ "lightning:app:template:generate",
1937
+ "lightning:app:generate:template",
1938
+ "template:generate:app:lightning",
1939
+ "generate:template:app:lightning",
1940
+ "generate:app:template:lightning",
1941
+ "generate:app:lightning:template",
1942
+ "template:app:generate:lightning",
1943
+ "app:template:generate:lightning",
1944
+ "app:generate:template:lightning",
1945
+ "app:generate:lightning:template",
1946
+ "template:app:lightning:generate",
1947
+ "app:template:lightning:generate",
1948
+ "app:lightning:template:generate",
1949
+ "app:lightning:generate:template"
1933
1950
  ]
1934
1951
  },
1935
- "template:generate:static-resource": {
1952
+ "template:generate:lightning:component": {
1936
1953
  "aliases": [
1937
- "force:staticresource:create",
1938
- "static-resource:generate"
1954
+ "force:lightning:component:create",
1955
+ "lightning:generate:component"
1939
1956
  ],
1940
1957
  "args": {},
1941
1958
  "deprecateAliases": true,
1942
- "description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
1959
+ "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.",
1943
1960
  "examples": [
1944
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
1945
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
1946
- "Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n<%= config.bin %> <%= command.id %> --name MyResource --output-dir force-app/main/default/staticresources"
1961
+ "Generate the metadata files for an Aura component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent",
1962
+ "Generate a Lightning web component bundle in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc",
1963
+ "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",
1964
+ "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",
1965
+ "Generate a TypeScript Lightning Web Component:\n<%= config.bin %> <%= command.id %> --name mycomponent --type lwc --template typescript"
1947
1966
  ],
1948
1967
  "flags": {
1949
1968
  "json": {
@@ -1963,29 +1982,32 @@
1963
1982
  },
1964
1983
  "name": {
1965
1984
  "aliases": [
1966
- "resourcename"
1985
+ "componentname"
1967
1986
  ],
1968
1987
  "char": "n",
1969
1988
  "deprecateAliases": true,
1970
- "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
1989
+ "description": "The name can be up to 40 characters and must start with a letter.",
1971
1990
  "name": "name",
1972
1991
  "required": true,
1973
- "summary": "Name of the generated static resource.",
1992
+ "summary": "Name of the generated Lightning Component.",
1974
1993
  "hasDynamicHelp": false,
1975
1994
  "multiple": false,
1976
1995
  "type": "option"
1977
1996
  },
1978
- "type": {
1979
- "aliases": [
1980
- "contenttype"
1981
- ],
1982
- "deprecateAliases": true,
1983
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
1984
- "name": "type",
1985
- "summary": "Content type (mime type) of the generated static resource.",
1986
- "default": "application/zip",
1997
+ "template": {
1998
+ "char": "t",
1999
+ "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.",
2000
+ "name": "template",
2001
+ "summary": "Template to use for file creation.",
2002
+ "default": "default",
1987
2003
  "hasDynamicHelp": false,
1988
2004
  "multiple": false,
2005
+ "options": [
2006
+ "default",
2007
+ "analyticsDashboard",
2008
+ "analyticsDashboardWithStep",
2009
+ "typescript"
2010
+ ],
1989
2011
  "type": "option"
1990
2012
  },
1991
2013
  "output-dir": {
@@ -2013,6 +2035,26 @@
2013
2035
  "multiple": false,
2014
2036
  "type": "option"
2015
2037
  },
2038
+ "type": {
2039
+ "name": "type",
2040
+ "summary": "Type of the component bundle.",
2041
+ "default": "aura",
2042
+ "hasDynamicHelp": false,
2043
+ "multiple": false,
2044
+ "options": [
2045
+ "aura",
2046
+ "lwc"
2047
+ ],
2048
+ "type": "option"
2049
+ },
2050
+ "internal": {
2051
+ "char": "i",
2052
+ "hidden": true,
2053
+ "name": "internal",
2054
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
2055
+ "allowNo": false,
2056
+ "type": "boolean"
2057
+ },
2016
2058
  "loglevel": {
2017
2059
  "deprecated": {
2018
2060
  "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."
@@ -2026,12 +2068,12 @@
2026
2068
  },
2027
2069
  "hasDynamicHelp": false,
2028
2070
  "hiddenAliases": [],
2029
- "id": "template:generate:static-resource",
2071
+ "id": "template:generate:lightning:component",
2030
2072
  "pluginAlias": "@salesforce/plugin-templates",
2031
2073
  "pluginName": "@salesforce/plugin-templates",
2032
2074
  "pluginType": "core",
2033
2075
  "strict": true,
2034
- "summary": "Generate a static resource.",
2076
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
2035
2077
  "enableJsonFlag": true,
2036
2078
  "isESM": true,
2037
2079
  "relativePath": [
@@ -2039,38 +2081,80 @@
2039
2081
  "commands",
2040
2082
  "template",
2041
2083
  "generate",
2042
- "static-resource",
2043
- "index.js"
2084
+ "lightning",
2085
+ "component.js"
2044
2086
  ],
2045
2087
  "aliasPermutations": [
2046
- "force:staticresource:create",
2047
- "staticresource:force:create",
2048
- "staticresource:create:force",
2049
- "force:create:staticresource",
2050
- "create:force:staticresource",
2051
- "create:staticresource:force",
2052
- "static-resource:generate",
2053
- "generate:static-resource"
2088
+ "force:lightning:component:create",
2089
+ "lightning:force:component:create",
2090
+ "lightning:component:force:create",
2091
+ "lightning:component:create:force",
2092
+ "force:component:lightning:create",
2093
+ "component:force:lightning:create",
2094
+ "component:lightning:force:create",
2095
+ "component:lightning:create:force",
2096
+ "force:component:create:lightning",
2097
+ "component:force:create:lightning",
2098
+ "component:create:force:lightning",
2099
+ "component:create:lightning:force",
2100
+ "force:lightning:create:component",
2101
+ "lightning:force:create:component",
2102
+ "lightning:create:force:component",
2103
+ "lightning:create:component:force",
2104
+ "force:create:lightning:component",
2105
+ "create:force:lightning:component",
2106
+ "create:lightning:force:component",
2107
+ "create:lightning:component:force",
2108
+ "force:create:component:lightning",
2109
+ "create:force:component:lightning",
2110
+ "create:component:force:lightning",
2111
+ "create:component:lightning:force",
2112
+ "lightning:generate:component",
2113
+ "generate:lightning:component",
2114
+ "generate:component:lightning",
2115
+ "lightning:component:generate",
2116
+ "component:lightning:generate",
2117
+ "component:generate:lightning"
2054
2118
  ],
2055
2119
  "permutations": [
2056
- "template:generate:static-resource",
2057
- "generate:template:static-resource",
2058
- "generate:static-resource:template",
2059
- "template:static-resource:generate",
2060
- "static-resource:template:generate",
2061
- "static-resource:generate:template"
2062
- ]
2063
- },
2064
- "template:generate:ui-bundle": {
2065
- "aliases": [],
2066
- "args": {},
2067
- "description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a specific UI framework, such as React or Angular. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
2068
- "examples": [
2069
- "Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
2070
- "Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
2071
- "Generate an Angular-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyAngularApp --template angularbasic",
2072
- "Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles"
2073
- ],
2120
+ "template:generate:lightning:component",
2121
+ "generate:template:lightning:component",
2122
+ "generate:lightning:template:component",
2123
+ "generate:lightning:component:template",
2124
+ "template:lightning:generate:component",
2125
+ "lightning:template:generate:component",
2126
+ "lightning:generate:template:component",
2127
+ "lightning:generate:component:template",
2128
+ "template:lightning:component:generate",
2129
+ "lightning:template:component:generate",
2130
+ "lightning:component:template:generate",
2131
+ "lightning:component:generate:template",
2132
+ "template:generate:component:lightning",
2133
+ "generate:template:component:lightning",
2134
+ "generate:component:template:lightning",
2135
+ "generate:component:lightning:template",
2136
+ "template:component:generate:lightning",
2137
+ "component:template:generate:lightning",
2138
+ "component:generate:template:lightning",
2139
+ "component:generate:lightning:template",
2140
+ "template:component:lightning:generate",
2141
+ "component:template:lightning:generate",
2142
+ "component:lightning:template:generate",
2143
+ "component:lightning:generate:template"
2144
+ ]
2145
+ },
2146
+ "template:generate:lightning:event": {
2147
+ "aliases": [
2148
+ "force:lightning:event:create",
2149
+ "lightning:generate:event"
2150
+ ],
2151
+ "args": {},
2152
+ "deprecateAliases": true,
2153
+ "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.",
2154
+ "examples": [
2155
+ "Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myevent",
2156
+ "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"
2157
+ ],
2074
2158
  "flags": {
2075
2159
  "json": {
2076
2160
  "description": "Format output as json.",
@@ -2088,64 +2172,84 @@
2088
2172
  "type": "option"
2089
2173
  },
2090
2174
  "name": {
2175
+ "aliases": [
2176
+ "eventname"
2177
+ ],
2091
2178
  "char": "n",
2092
- "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
2179
+ "deprecateAliases": true,
2180
+ "description": "The name can be up to 40 characters and must start with a letter.",
2093
2181
  "name": "name",
2094
2182
  "required": true,
2095
- "summary": "API name of the generated UI bundle.",
2183
+ "summary": "Name of the generated Lightning Event.",
2096
2184
  "hasDynamicHelp": false,
2097
2185
  "multiple": false,
2098
2186
  "type": "option"
2099
2187
  },
2100
2188
  "template": {
2101
2189
  "char": "t",
2102
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
2190
+ "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.",
2103
2191
  "name": "template",
2104
- "summary": "Template to use when creating the files for a specific UI framework.",
2105
- "default": "default",
2192
+ "summary": "Template to use for file creation.",
2193
+ "default": "DefaultLightningEvt",
2106
2194
  "hasDynamicHelp": false,
2107
2195
  "multiple": false,
2108
2196
  "options": [
2109
- "default",
2110
- "reactbasic",
2111
- "angularbasic"
2197
+ "DefaultLightningEvt"
2112
2198
  ],
2113
2199
  "type": "option"
2114
2200
  },
2115
- "label": {
2116
- "char": "l",
2117
- "description": "If not specified, the label is derived from the name.",
2118
- "name": "label",
2119
- "summary": "Master label for the UI bundle.",
2120
- "hasDynamicHelp": false,
2121
- "multiple": false,
2122
- "type": "option"
2123
- },
2124
2201
  "output-dir": {
2202
+ "aliases": [
2203
+ "outputdir"
2204
+ ],
2125
2205
  "char": "d",
2126
- "description": "The location can be an absolute path or relative to the current working directory.\n\nIf not specified, the command reads your sfdx-project.json and defaults to \"uiBundles\" directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.\n\n**Important:** This command automatically ensures the output directory ends with \"uiBundles\". If your specified path doesn't end with \"uiBundles\", it's automatically appended. The UI bundle is created at \"<output-dir>/<name>\".\n\n**Examples:**\n\n- \"--output-dir force-app/main/default\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\"\n- \"--output-dir force-app/main/default/uiBundles\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\" (no change)",
2206
+ "deprecateAliases": true,
2207
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2127
2208
  "name": "output-dir",
2128
- "summary": "Directory into which the files are created.",
2209
+ "summary": "Directory for saving the created files.",
2210
+ "default": ".",
2129
2211
  "hasDynamicHelp": false,
2130
2212
  "multiple": false,
2131
2213
  "type": "option"
2132
2214
  },
2133
2215
  "api-version": {
2216
+ "aliases": [
2217
+ "apiversion"
2218
+ ],
2219
+ "deprecateAliases": true,
2134
2220
  "description": "Override the api version used for api requests made by this command",
2135
2221
  "name": "api-version",
2136
2222
  "hasDynamicHelp": false,
2137
2223
  "multiple": false,
2138
2224
  "type": "option"
2225
+ },
2226
+ "internal": {
2227
+ "char": "i",
2228
+ "hidden": true,
2229
+ "name": "internal",
2230
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
2231
+ "allowNo": false,
2232
+ "type": "boolean"
2233
+ },
2234
+ "loglevel": {
2235
+ "deprecated": {
2236
+ "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."
2237
+ },
2238
+ "hidden": true,
2239
+ "name": "loglevel",
2240
+ "hasDynamicHelp": false,
2241
+ "multiple": false,
2242
+ "type": "option"
2139
2243
  }
2140
2244
  },
2141
2245
  "hasDynamicHelp": false,
2142
2246
  "hiddenAliases": [],
2143
- "id": "template:generate:ui-bundle",
2247
+ "id": "template:generate:lightning:event",
2144
2248
  "pluginAlias": "@salesforce/plugin-templates",
2145
2249
  "pluginName": "@salesforce/plugin-templates",
2146
2250
  "pluginType": "core",
2147
2251
  "strict": true,
2148
- "summary": "Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.",
2252
+ "summary": "Generate a Lightning Event.",
2149
2253
  "enableJsonFlag": true,
2150
2254
  "isESM": true,
2151
2255
  "relativePath": [
@@ -2153,26 +2257,79 @@
2153
2257
  "commands",
2154
2258
  "template",
2155
2259
  "generate",
2156
- "ui-bundle",
2157
- "index.js"
2260
+ "lightning",
2261
+ "event.js"
2262
+ ],
2263
+ "aliasPermutations": [
2264
+ "force:lightning:event:create",
2265
+ "lightning:force:event:create",
2266
+ "lightning:event:force:create",
2267
+ "lightning:event:create:force",
2268
+ "force:event:lightning:create",
2269
+ "event:force:lightning:create",
2270
+ "event:lightning:force:create",
2271
+ "event:lightning:create:force",
2272
+ "force:event:create:lightning",
2273
+ "event:force:create:lightning",
2274
+ "event:create:force:lightning",
2275
+ "event:create:lightning:force",
2276
+ "force:lightning:create:event",
2277
+ "lightning:force:create:event",
2278
+ "lightning:create:force:event",
2279
+ "lightning:create:event:force",
2280
+ "force:create:lightning:event",
2281
+ "create:force:lightning:event",
2282
+ "create:lightning:force:event",
2283
+ "create:lightning:event:force",
2284
+ "force:create:event:lightning",
2285
+ "create:force:event:lightning",
2286
+ "create:event:force:lightning",
2287
+ "create:event:lightning:force",
2288
+ "lightning:generate:event",
2289
+ "generate:lightning:event",
2290
+ "generate:event:lightning",
2291
+ "lightning:event:generate",
2292
+ "event:lightning:generate",
2293
+ "event:generate:lightning"
2158
2294
  ],
2159
- "aliasPermutations": [],
2160
2295
  "permutations": [
2161
- "template:generate:ui-bundle",
2162
- "generate:template:ui-bundle",
2163
- "generate:ui-bundle:template",
2164
- "template:ui-bundle:generate",
2165
- "ui-bundle:template:generate",
2166
- "ui-bundle:generate:template"
2296
+ "template:generate:lightning:event",
2297
+ "generate:template:lightning:event",
2298
+ "generate:lightning:template:event",
2299
+ "generate:lightning:event:template",
2300
+ "template:lightning:generate:event",
2301
+ "lightning:template:generate:event",
2302
+ "lightning:generate:template:event",
2303
+ "lightning:generate:event:template",
2304
+ "template:lightning:event:generate",
2305
+ "lightning:template:event:generate",
2306
+ "lightning:event:template:generate",
2307
+ "lightning:event:generate:template",
2308
+ "template:generate:event:lightning",
2309
+ "generate:template:event:lightning",
2310
+ "generate:event:template:lightning",
2311
+ "generate:event:lightning:template",
2312
+ "template:event:generate:lightning",
2313
+ "event:template:generate:lightning",
2314
+ "event:generate:template:lightning",
2315
+ "event:generate:lightning:template",
2316
+ "template:event:lightning:generate",
2317
+ "event:template:lightning:generate",
2318
+ "event:lightning:template:generate",
2319
+ "event:lightning:generate:template"
2167
2320
  ]
2168
2321
  },
2169
- "template:generate:ui-embedding": {
2170
- "aliases": [],
2322
+ "template:generate:lightning:interface": {
2323
+ "aliases": [
2324
+ "force:lightning:interface:create",
2325
+ "lightning:generate:interface"
2326
+ ],
2171
2327
  "args": {},
2172
- "description": "The generated LWC bundle consumes the first-party <lightning-ui-embedding> component, which is pre-wired with the three required attributes: the embedding URL (src), iframe sandbox tokens, and an accessible iframe title (shell-title).\n\nThe generated LWC bundle contains four files (.html, .js, .js-meta.xml, .css) in a directory named with the camelCased component name. The bundle must live under a parent folder named \"lwc\".",
2328
+ "deprecateAliases": true,
2329
+ "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.",
2173
2330
  "examples": [
2174
- "Generate an embedding wrapper LWC in the current directory:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --shell-title \"Expense Report Embedding\"",
2175
- "Generate an embedding wrapper LWC in the \"force-app/main/default/lwc\" directory with multiple sandbox tokens:\n<%= config.bin %> <%= command.id %> --name MyEmbeddingWrapper --src https://app.example.com --sandbox allow-forms --sandbox allow-scripts --shell-title \"Expense Report Embedding\" --output-dir force-app/main/default/lwc"
2331
+ "Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myinterface",
2332
+ "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"
2176
2333
  ],
2177
2334
  "flags": {
2178
2335
  "json": {
@@ -2191,57 +2348,32 @@
2191
2348
  "type": "option"
2192
2349
  },
2193
2350
  "name": {
2351
+ "aliases": [
2352
+ "interfacename"
2353
+ ],
2194
2354
  "char": "n",
2195
- "description": "The component name is also used (camelCased) as the LWC folder name and file stem. Must contain only alphanumeric characters and start with a letter.",
2355
+ "deprecateAliases": true,
2356
+ "description": "The name can be up to 40 characters and must start with a letter.",
2196
2357
  "name": "name",
2197
2358
  "required": true,
2198
- "summary": "Name of the generated component; must be in PascalCase format.",
2359
+ "summary": "Name of the generated Lightning Interface.",
2199
2360
  "hasDynamicHelp": false,
2200
2361
  "multiple": false,
2201
2362
  "type": "option"
2202
2363
  },
2203
- "src": {
2204
- "char": "s",
2205
- "description": "The URL is bound to the <lightning-ui-embedding> \"src\" attribute as a reactive property in the generated LWC. Must use HTTPS; plain HTTP is allowed only for localhost or 127.0.0.1 (for local development).",
2206
- "name": "src",
2207
- "required": true,
2208
- "summary": "Absolute HTTPS URL that the iframe will load.",
2364
+ "template": {
2365
+ "char": "t",
2366
+ "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.",
2367
+ "name": "template",
2368
+ "summary": "Template to use for file creation.",
2369
+ "default": "DefaultLightningIntf",
2209
2370
  "hasDynamicHelp": false,
2210
2371
  "multiple": false,
2211
- "type": "option"
2212
- },
2213
- "sandbox": {
2214
- "description": "Each token is written into the space-separated \"sandbox\" attribute on <lightning-ui-embedding>. Only W3C-defined sandbox tokens are accepted.",
2215
- "name": "sandbox",
2216
- "required": true,
2217
- "summary": "Iframe sandbox token. Specify this flag multiple times to set more than one token.",
2218
- "hasDynamicHelp": false,
2219
- "multiple": true,
2220
2372
  "options": [
2221
- "allow-forms",
2222
- "allow-modals",
2223
- "allow-orientation-lock",
2224
- "allow-pointer-lock",
2225
- "allow-popups",
2226
- "allow-popups-to-escape-sandbox",
2227
- "allow-presentation",
2228
- "allow-same-origin",
2229
- "allow-scripts",
2230
- "allow-storage-access-by-user-activation",
2231
- "allow-top-navigation",
2232
- "allow-top-navigation-by-user-activation"
2373
+ "DefaultLightningIntf"
2233
2374
  ],
2234
2375
  "type": "option"
2235
2376
  },
2236
- "shell-title": {
2237
- "description": "Written to the \"shell-title\" attribute on <lightning-ui-embedding> and used as the iframe's accessible name (announced by screen readers).",
2238
- "name": "shell-title",
2239
- "required": true,
2240
- "summary": "Accessible title for the embedded iframe.",
2241
- "hasDynamicHelp": false,
2242
- "multiple": false,
2243
- "type": "option"
2244
- },
2245
2377
  "output-dir": {
2246
2378
  "aliases": [
2247
2379
  "outputdir"
@@ -2287,15 +2419,13 @@
2287
2419
  }
2288
2420
  },
2289
2421
  "hasDynamicHelp": false,
2290
- "hidden": true,
2291
2422
  "hiddenAliases": [],
2292
- "id": "template:generate:ui-embedding",
2423
+ "id": "template:generate:lightning:interface",
2293
2424
  "pluginAlias": "@salesforce/plugin-templates",
2294
2425
  "pluginName": "@salesforce/plugin-templates",
2295
2426
  "pluginType": "core",
2296
- "state": "beta",
2297
2427
  "strict": true,
2298
- "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
2428
+ "summary": "Generate a Lightning Interface.",
2299
2429
  "enableJsonFlag": true,
2300
2430
  "isESM": true,
2301
2431
  "relativePath": [
@@ -2303,207 +2433,79 @@
2303
2433
  "commands",
2304
2434
  "template",
2305
2435
  "generate",
2306
- "ui-embedding",
2307
- "index.js"
2308
- ],
2309
- "aliasPermutations": [],
2310
- "permutations": [
2311
- "template:generate:ui-embedding",
2312
- "generate:template:ui-embedding",
2313
- "generate:ui-embedding:template",
2314
- "template:ui-embedding:generate",
2315
- "ui-embedding:template:generate",
2316
- "ui-embedding:generate:template"
2317
- ]
2318
- },
2319
- "template:generate:visualforce:component": {
2320
- "aliases": [
2321
- "force:visualforce:component:create",
2322
- "visualforce:generate:component"
2323
- ],
2324
- "args": {},
2325
- "deprecateAliases": true,
2326
- "description": "The command generates the .Component file and associated metadata file in the specified directory or the current working directory by default.",
2327
- "examples": [
2328
- "Generate the metadata files for a Visualforce component in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel",
2329
- "Similar to previous example, but generate the files in the directory \"force-app/main/default/components\":\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel --output-dir components"
2330
- ],
2331
- "flags": {
2332
- "json": {
2333
- "description": "Format output as json.",
2334
- "helpGroup": "GLOBAL",
2335
- "name": "json",
2336
- "allowNo": false,
2337
- "type": "boolean"
2338
- },
2339
- "flags-dir": {
2340
- "helpGroup": "GLOBAL",
2341
- "name": "flags-dir",
2342
- "summary": "Import flag values from a directory.",
2343
- "hasDynamicHelp": false,
2344
- "multiple": false,
2345
- "type": "option"
2346
- },
2347
- "name": {
2348
- "aliases": [
2349
- "componentname"
2350
- ],
2351
- "char": "n",
2352
- "deprecateAliases": true,
2353
- "description": "The name can be up to 40 characters and must start with a letter.",
2354
- "name": "name",
2355
- "required": true,
2356
- "summary": "Name of the generated Visualforce Component.",
2357
- "hasDynamicHelp": false,
2358
- "multiple": false,
2359
- "type": "option"
2360
- },
2361
- "template": {
2362
- "char": "t",
2363
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
2364
- "name": "template",
2365
- "summary": "Template to use for file creation.",
2366
- "default": "DefaultVFComponent",
2367
- "hasDynamicHelp": false,
2368
- "multiple": false,
2369
- "options": [
2370
- "DefaultVFComponent"
2371
- ],
2372
- "type": "option"
2373
- },
2374
- "output-dir": {
2375
- "aliases": [
2376
- "outputdir"
2377
- ],
2378
- "char": "d",
2379
- "deprecateAliases": true,
2380
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2381
- "name": "output-dir",
2382
- "summary": "Directory for saving the created files.",
2383
- "default": ".",
2384
- "hasDynamicHelp": false,
2385
- "multiple": false,
2386
- "type": "option"
2387
- },
2388
- "api-version": {
2389
- "aliases": [
2390
- "apiversion"
2391
- ],
2392
- "deprecateAliases": true,
2393
- "description": "Override the api version used for api requests made by this command",
2394
- "name": "api-version",
2395
- "hasDynamicHelp": false,
2396
- "multiple": false,
2397
- "type": "option"
2398
- },
2399
- "label": {
2400
- "char": "l",
2401
- "name": "label",
2402
- "required": true,
2403
- "summary": "Visualforce Component label.",
2404
- "hasDynamicHelp": false,
2405
- "multiple": false,
2406
- "type": "option"
2407
- },
2408
- "loglevel": {
2409
- "deprecated": {
2410
- "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."
2411
- },
2412
- "hidden": true,
2413
- "name": "loglevel",
2414
- "hasDynamicHelp": false,
2415
- "multiple": false,
2416
- "type": "option"
2417
- }
2418
- },
2419
- "hasDynamicHelp": false,
2420
- "hiddenAliases": [],
2421
- "id": "template:generate:visualforce:component",
2422
- "pluginAlias": "@salesforce/plugin-templates",
2423
- "pluginName": "@salesforce/plugin-templates",
2424
- "pluginType": "core",
2425
- "strict": true,
2426
- "summary": "Generate a Visualforce Component.",
2427
- "enableJsonFlag": true,
2428
- "isESM": true,
2429
- "relativePath": [
2430
- "lib",
2431
- "commands",
2432
- "template",
2433
- "generate",
2434
- "visualforce",
2435
- "component.js"
2436
+ "lightning",
2437
+ "interface.js"
2436
2438
  ],
2437
2439
  "aliasPermutations": [
2438
- "force:visualforce:component:create",
2439
- "visualforce:force:component:create",
2440
- "visualforce:component:force:create",
2441
- "visualforce:component:create:force",
2442
- "force:component:visualforce:create",
2443
- "component:force:visualforce:create",
2444
- "component:visualforce:force:create",
2445
- "component:visualforce:create:force",
2446
- "force:component:create:visualforce",
2447
- "component:force:create:visualforce",
2448
- "component:create:force:visualforce",
2449
- "component:create:visualforce:force",
2450
- "force:visualforce:create:component",
2451
- "visualforce:force:create:component",
2452
- "visualforce:create:force:component",
2453
- "visualforce:create:component:force",
2454
- "force:create:visualforce:component",
2455
- "create:force:visualforce:component",
2456
- "create:visualforce:force:component",
2457
- "create:visualforce:component:force",
2458
- "force:create:component:visualforce",
2459
- "create:force:component:visualforce",
2460
- "create:component:force:visualforce",
2461
- "create:component:visualforce:force",
2462
- "visualforce:generate:component",
2463
- "generate:visualforce:component",
2464
- "generate:component:visualforce",
2465
- "visualforce:component:generate",
2466
- "component:visualforce:generate",
2467
- "component:generate:visualforce"
2440
+ "force:lightning:interface:create",
2441
+ "lightning:force:interface:create",
2442
+ "lightning:interface:force:create",
2443
+ "lightning:interface:create:force",
2444
+ "force:interface:lightning:create",
2445
+ "interface:force:lightning:create",
2446
+ "interface:lightning:force:create",
2447
+ "interface:lightning:create:force",
2448
+ "force:interface:create:lightning",
2449
+ "interface:force:create:lightning",
2450
+ "interface:create:force:lightning",
2451
+ "interface:create:lightning:force",
2452
+ "force:lightning:create:interface",
2453
+ "lightning:force:create:interface",
2454
+ "lightning:create:force:interface",
2455
+ "lightning:create:interface:force",
2456
+ "force:create:lightning:interface",
2457
+ "create:force:lightning:interface",
2458
+ "create:lightning:force:interface",
2459
+ "create:lightning:interface:force",
2460
+ "force:create:interface:lightning",
2461
+ "create:force:interface:lightning",
2462
+ "create:interface:force:lightning",
2463
+ "create:interface:lightning:force",
2464
+ "lightning:generate:interface",
2465
+ "generate:lightning:interface",
2466
+ "generate:interface:lightning",
2467
+ "lightning:interface:generate",
2468
+ "interface:lightning:generate",
2469
+ "interface:generate:lightning"
2468
2470
  ],
2469
2471
  "permutations": [
2470
- "template:generate:visualforce:component",
2471
- "generate:template:visualforce:component",
2472
- "generate:visualforce:template:component",
2473
- "generate:visualforce:component:template",
2474
- "template:visualforce:generate:component",
2475
- "visualforce:template:generate:component",
2476
- "visualforce:generate:template:component",
2477
- "visualforce:generate:component:template",
2478
- "template:visualforce:component:generate",
2479
- "visualforce:template:component:generate",
2480
- "visualforce:component:template:generate",
2481
- "visualforce:component:generate:template",
2482
- "template:generate:component:visualforce",
2483
- "generate:template:component:visualforce",
2484
- "generate:component:template:visualforce",
2485
- "generate:component:visualforce:template",
2486
- "template:component:generate:visualforce",
2487
- "component:template:generate:visualforce",
2488
- "component:generate:template:visualforce",
2489
- "component:generate:visualforce:template",
2490
- "template:component:visualforce:generate",
2491
- "component:template:visualforce:generate",
2492
- "component:visualforce:template:generate",
2493
- "component:visualforce:generate:template"
2472
+ "template:generate:lightning:interface",
2473
+ "generate:template:lightning:interface",
2474
+ "generate:lightning:template:interface",
2475
+ "generate:lightning:interface:template",
2476
+ "template:lightning:generate:interface",
2477
+ "lightning:template:generate:interface",
2478
+ "lightning:generate:template:interface",
2479
+ "lightning:generate:interface:template",
2480
+ "template:lightning:interface:generate",
2481
+ "lightning:template:interface:generate",
2482
+ "lightning:interface:template:generate",
2483
+ "lightning:interface:generate:template",
2484
+ "template:generate:interface:lightning",
2485
+ "generate:template:interface:lightning",
2486
+ "generate:interface:template:lightning",
2487
+ "generate:interface:lightning:template",
2488
+ "template:interface:generate:lightning",
2489
+ "interface:template:generate:lightning",
2490
+ "interface:generate:template:lightning",
2491
+ "interface:generate:lightning:template",
2492
+ "template:interface:lightning:generate",
2493
+ "interface:template:lightning:generate",
2494
+ "interface:lightning:template:generate",
2495
+ "interface:lightning:generate:template"
2494
2496
  ]
2495
2497
  },
2496
- "template:generate:visualforce:page": {
2498
+ "template:generate:lightning:test": {
2497
2499
  "aliases": [
2498
- "force:visualforce:page:create",
2499
- "visualforce:generate:page"
2500
+ "force:lightning:test:create",
2501
+ "lightning:generate:test"
2500
2502
  ],
2501
2503
  "args": {},
2502
2504
  "deprecateAliases": true,
2503
- "description": "The command generates the .Page file and associated metadata file in the specified directory or the current working directory by default.",
2505
+ "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
2504
2506
  "examples": [
2505
- "Generate the metadata files for a Visualforce page in the current directory:\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel",
2506
- "Similar to previous example, but generate the files in the directory \"force-app/main/default/pages\":\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel --output-dir pages"
2507
+ "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
2508
+ "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"
2507
2509
  ],
2508
2510
  "flags": {
2509
2511
  "json": {
@@ -2523,29 +2525,28 @@
2523
2525
  },
2524
2526
  "name": {
2525
2527
  "aliases": [
2526
- "pagename"
2528
+ "testname"
2527
2529
  ],
2528
2530
  "char": "n",
2529
2531
  "deprecateAliases": true,
2530
- "description": "The name can be up to 40 characters and must start with a letter.",
2532
+ "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
2531
2533
  "name": "name",
2532
2534
  "required": true,
2533
- "summary": "Name of the generated Visualforce Page.",
2535
+ "summary": "Name of the generated Lightning Test.",
2534
2536
  "hasDynamicHelp": false,
2535
2537
  "multiple": false,
2536
2538
  "type": "option"
2537
2539
  },
2538
2540
  "template": {
2539
2541
  "char": "t",
2540
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
2541
- "hidden": true,
2542
+ "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.",
2542
2543
  "name": "template",
2543
2544
  "summary": "Template to use for file creation.",
2544
- "default": "DefaultVFPage",
2545
+ "default": "DefaultLightningTest",
2545
2546
  "hasDynamicHelp": false,
2546
2547
  "multiple": false,
2547
2548
  "options": [
2548
- "DefaultVFPage"
2549
+ "DefaultLightningTest"
2549
2550
  ],
2550
2551
  "type": "option"
2551
2552
  },
@@ -2563,6 +2564,14 @@
2563
2564
  "multiple": false,
2564
2565
  "type": "option"
2565
2566
  },
2567
+ "internal": {
2568
+ "char": "i",
2569
+ "hidden": true,
2570
+ "name": "internal",
2571
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
2572
+ "allowNo": false,
2573
+ "type": "boolean"
2574
+ },
2566
2575
  "api-version": {
2567
2576
  "aliases": [
2568
2577
  "apiversion"
@@ -2574,15 +2583,6 @@
2574
2583
  "multiple": false,
2575
2584
  "type": "option"
2576
2585
  },
2577
- "label": {
2578
- "char": "l",
2579
- "name": "label",
2580
- "required": true,
2581
- "summary": "Visualforce Page label.",
2582
- "hasDynamicHelp": false,
2583
- "multiple": false,
2584
- "type": "option"
2585
- },
2586
2586
  "loglevel": {
2587
2587
  "deprecated": {
2588
2588
  "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."
@@ -2596,12 +2596,12 @@
2596
2596
  },
2597
2597
  "hasDynamicHelp": false,
2598
2598
  "hiddenAliases": [],
2599
- "id": "template:generate:visualforce:page",
2599
+ "id": "template:generate:lightning:test",
2600
2600
  "pluginAlias": "@salesforce/plugin-templates",
2601
2601
  "pluginName": "@salesforce/plugin-templates",
2602
2602
  "pluginType": "core",
2603
2603
  "strict": true,
2604
- "summary": "Generate a Visualforce Page.",
2604
+ "summary": "Generate a Lightning test.",
2605
2605
  "enableJsonFlag": true,
2606
2606
  "isESM": true,
2607
2607
  "relativePath": [
@@ -2609,68 +2609,68 @@
2609
2609
  "commands",
2610
2610
  "template",
2611
2611
  "generate",
2612
- "visualforce",
2613
- "page.js"
2612
+ "lightning",
2613
+ "test.js"
2614
2614
  ],
2615
2615
  "aliasPermutations": [
2616
- "force:visualforce:page:create",
2617
- "visualforce:force:page:create",
2618
- "visualforce:page:force:create",
2619
- "visualforce:page:create:force",
2620
- "force:page:visualforce:create",
2621
- "page:force:visualforce:create",
2622
- "page:visualforce:force:create",
2623
- "page:visualforce:create:force",
2624
- "force:page:create:visualforce",
2625
- "page:force:create:visualforce",
2626
- "page:create:force:visualforce",
2627
- "page:create:visualforce:force",
2628
- "force:visualforce:create:page",
2629
- "visualforce:force:create:page",
2630
- "visualforce:create:force:page",
2631
- "visualforce:create:page:force",
2632
- "force:create:visualforce:page",
2633
- "create:force:visualforce:page",
2634
- "create:visualforce:force:page",
2635
- "create:visualforce:page:force",
2636
- "force:create:page:visualforce",
2637
- "create:force:page:visualforce",
2638
- "create:page:force:visualforce",
2639
- "create:page:visualforce:force",
2640
- "visualforce:generate:page",
2641
- "generate:visualforce:page",
2642
- "generate:page:visualforce",
2643
- "visualforce:page:generate",
2644
- "page:visualforce:generate",
2645
- "page:generate:visualforce"
2616
+ "force:lightning:test:create",
2617
+ "lightning:force:test:create",
2618
+ "lightning:test:force:create",
2619
+ "lightning:test:create:force",
2620
+ "force:test:lightning:create",
2621
+ "test:force:lightning:create",
2622
+ "test:lightning:force:create",
2623
+ "test:lightning:create:force",
2624
+ "force:test:create:lightning",
2625
+ "test:force:create:lightning",
2626
+ "test:create:force:lightning",
2627
+ "test:create:lightning:force",
2628
+ "force:lightning:create:test",
2629
+ "lightning:force:create:test",
2630
+ "lightning:create:force:test",
2631
+ "lightning:create:test:force",
2632
+ "force:create:lightning:test",
2633
+ "create:force:lightning:test",
2634
+ "create:lightning:force:test",
2635
+ "create:lightning:test:force",
2636
+ "force:create:test:lightning",
2637
+ "create:force:test:lightning",
2638
+ "create:test:force:lightning",
2639
+ "create:test:lightning:force",
2640
+ "lightning:generate:test",
2641
+ "generate:lightning:test",
2642
+ "generate:test:lightning",
2643
+ "lightning:test:generate",
2644
+ "test:lightning:generate",
2645
+ "test:generate:lightning"
2646
2646
  ],
2647
2647
  "permutations": [
2648
- "template:generate:visualforce:page",
2649
- "generate:template:visualforce:page",
2650
- "generate:visualforce:template:page",
2651
- "generate:visualforce:page:template",
2652
- "template:visualforce:generate:page",
2653
- "visualforce:template:generate:page",
2654
- "visualforce:generate:template:page",
2655
- "visualforce:generate:page:template",
2656
- "template:visualforce:page:generate",
2657
- "visualforce:template:page:generate",
2658
- "visualforce:page:template:generate",
2659
- "visualforce:page:generate:template",
2660
- "template:generate:page:visualforce",
2661
- "generate:template:page:visualforce",
2662
- "generate:page:template:visualforce",
2663
- "generate:page:visualforce:template",
2664
- "template:page:generate:visualforce",
2665
- "page:template:generate:visualforce",
2666
- "page:generate:template:visualforce",
2667
- "page:generate:visualforce:template",
2668
- "template:page:visualforce:generate",
2669
- "page:template:visualforce:generate",
2670
- "page:visualforce:template:generate",
2671
- "page:visualforce:generate:template"
2648
+ "template:generate:lightning:test",
2649
+ "generate:template:lightning:test",
2650
+ "generate:lightning:template:test",
2651
+ "generate:lightning:test:template",
2652
+ "template:lightning:generate:test",
2653
+ "lightning:template:generate:test",
2654
+ "lightning:generate:template:test",
2655
+ "lightning:generate:test:template",
2656
+ "template:lightning:test:generate",
2657
+ "lightning:template:test:generate",
2658
+ "lightning:test:template:generate",
2659
+ "lightning:test:generate:template",
2660
+ "template:generate:test:lightning",
2661
+ "generate:template:test:lightning",
2662
+ "generate:test:template:lightning",
2663
+ "generate:test:lightning:template",
2664
+ "template:test:generate:lightning",
2665
+ "test:template:generate:lightning",
2666
+ "test:generate:template:lightning",
2667
+ "test:generate:lightning:template",
2668
+ "template:test:lightning:generate",
2669
+ "test:template:lightning:generate",
2670
+ "test:lightning:template:generate",
2671
+ "test:lightning:generate:template"
2672
2672
  ]
2673
2673
  }
2674
2674
  },
2675
- "version": "57.1.1"
2675
+ "version": "57.1.2"
2676
2676
  }