@salesforce/plugin-templates 57.1.0 → 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 +950 -950
  3. package/package.json +8 -8
@@ -658,189 +658,6 @@
658
658
  "site:digital-experience:generate:template"
659
659
  ]
660
660
  },
661
- "template:generate:flexipage": {
662
- "aliases": [],
663
- "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.",
665
- "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"
670
- ],
671
- "flags": {
672
- "json": {
673
- "description": "Format output as json.",
674
- "helpGroup": "GLOBAL",
675
- "name": "json",
676
- "allowNo": false,
677
- "type": "boolean"
678
- },
679
- "flags-dir": {
680
- "helpGroup": "GLOBAL",
681
- "name": "flags-dir",
682
- "summary": "Import flag values from a directory.",
683
- "hasDynamicHelp": false,
684
- "multiple": false,
685
- "type": "option"
686
- },
687
- "name": {
688
- "aliases": [
689
- "flexipagename"
690
- ],
691
- "char": "n",
692
- "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.",
694
- "name": "name",
695
- "required": true,
696
- "summary": "Name of the FlexiPage.",
697
- "hasDynamicHelp": false,
698
- "multiple": false,
699
- "type": "option"
700
- },
701
- "template": {
702
- "char": "t",
703
- "name": "template",
704
- "required": true,
705
- "summary": "Template type for the FlexiPage.",
706
- "hasDynamicHelp": false,
707
- "multiple": false,
708
- "options": [
709
- "RecordPage",
710
- "AppPage",
711
- "HomePage"
712
- ],
713
- "type": "option"
714
- },
715
- "output-dir": {
716
- "aliases": [
717
- "outputdir"
718
- ],
719
- "char": "d",
720
- "deprecateAliases": true,
721
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
722
- "name": "output-dir",
723
- "summary": "Directory for saving the created files.",
724
- "default": ".",
725
- "hasDynamicHelp": false,
726
- "multiple": false,
727
- "type": "option"
728
- },
729
- "api-version": {
730
- "aliases": [
731
- "apiversion"
732
- ],
733
- "deprecateAliases": true,
734
- "description": "Override the api version used for api requests made by this command",
735
- "name": "api-version",
736
- "hasDynamicHelp": false,
737
- "multiple": false,
738
- "type": "option"
739
- },
740
- "label": {
741
- "aliases": [
742
- "masterlabel"
743
- ],
744
- "deprecateAliases": true,
745
- "name": "label",
746
- "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
747
- "hasDynamicHelp": false,
748
- "multiple": false,
749
- "type": "option"
750
- },
751
- "description": {
752
- "name": "description",
753
- "summary": "Description for the FlexiPage, which provides context about its purpose.",
754
- "hasDynamicHelp": false,
755
- "multiple": false,
756
- "type": "option"
757
- },
758
- "sobject": {
759
- "aliases": [
760
- "entity-name",
761
- "entity"
762
- ],
763
- "char": "s",
764
- "deprecateAliases": true,
765
- "description": "For RecordPage FlexiPages, you must specify the associated object API name, such as 'Account', 'Opportunity', or 'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.",
766
- "name": "sobject",
767
- "summary": "API name of the Salesforce object; required when creating a RecordPage.",
768
- "hasDynamicHelp": false,
769
- "multiple": false,
770
- "type": "option"
771
- },
772
- "primary-field": {
773
- "name": "primary-field",
774
- "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
775
- "hasDynamicHelp": false,
776
- "multiple": false,
777
- "type": "option"
778
- },
779
- "secondary-fields": {
780
- "name": "secondary-fields",
781
- "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
782
- "delimiter": ",",
783
- "hasDynamicHelp": false,
784
- "multiple": true,
785
- "type": "option"
786
- },
787
- "detail-fields": {
788
- "name": "detail-fields",
789
- "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
790
- "delimiter": ",",
791
- "hasDynamicHelp": false,
792
- "multiple": true,
793
- "type": "option"
794
- },
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
- "loglevel": {
804
- "deprecated": {
805
- "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."
806
- },
807
- "hidden": true,
808
- "name": "loglevel",
809
- "hasDynamicHelp": false,
810
- "multiple": false,
811
- "type": "option"
812
- }
813
- },
814
- "hasDynamicHelp": false,
815
- "hiddenAliases": [],
816
- "id": "template:generate:flexipage",
817
- "pluginAlias": "@salesforce/plugin-templates",
818
- "pluginName": "@salesforce/plugin-templates",
819
- "pluginType": "core",
820
- "state": "beta",
821
- "strict": true,
822
- "summary": "Generate a FlexiPage, also known as a Lightning page.",
823
- "enableJsonFlag": true,
824
- "MAX_SECONDARY_FIELDS": 11,
825
- "isESM": true,
826
- "relativePath": [
827
- "lib",
828
- "commands",
829
- "template",
830
- "generate",
831
- "flexipage",
832
- "index.js"
833
- ],
834
- "aliasPermutations": [],
835
- "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"
842
- ]
843
- },
844
661
  "template:generate:project": {
845
662
  "aliases": [
846
663
  "force:project:create",
@@ -1034,17 +851,18 @@
1034
851
  "project:generate:template"
1035
852
  ]
1036
853
  },
1037
- "template:generate:lightning:app": {
854
+ "template:generate:static-resource": {
1038
855
  "aliases": [
1039
- "force:lightning:app:create",
1040
- "lightning:generate:app"
856
+ "force:staticresource:create",
857
+ "static-resource:generate"
1041
858
  ],
1042
859
  "args": {},
1043
860
  "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.",
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.",
1045
862
  "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"
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"
1048
866
  ],
1049
867
  "flags": {
1050
868
  "json": {
@@ -1064,29 +882,29 @@
1064
882
  },
1065
883
  "name": {
1066
884
  "aliases": [
1067
- "appname"
885
+ "resourcename"
1068
886
  ],
1069
887
  "char": "n",
1070
888
  "deprecateAliases": true,
1071
- "description": "The name can be up to 40 characters and must start with a letter.",
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.",
1072
890
  "name": "name",
1073
891
  "required": true,
1074
- "summary": "Name of the generated Lightning App.",
892
+ "summary": "Name of the generated static resource.",
1075
893
  "hasDynamicHelp": false,
1076
894
  "multiple": false,
1077
895
  "type": "option"
1078
896
  },
1079
- "template": {
1080
- "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
- "name": "template",
1083
- "summary": "Template to use for file creation.",
1084
- "default": "DefaultLightningApp",
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",
1085
906
  "hasDynamicHelp": false,
1086
907
  "multiple": false,
1087
- "options": [
1088
- "DefaultLightningApp"
1089
- ],
1090
908
  "type": "option"
1091
909
  },
1092
910
  "output-dir": {
@@ -1114,14 +932,6 @@
1114
932
  "multiple": false,
1115
933
  "type": "option"
1116
934
  },
1117
- "internal": {
1118
- "char": "i",
1119
- "hidden": true,
1120
- "name": "internal",
1121
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1122
- "allowNo": false,
1123
- "type": "boolean"
1124
- },
1125
935
  "loglevel": {
1126
936
  "deprecated": {
1127
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."
@@ -1135,12 +945,12 @@
1135
945
  },
1136
946
  "hasDynamicHelp": false,
1137
947
  "hiddenAliases": [],
1138
- "id": "template:generate:lightning:app",
948
+ "id": "template:generate:static-resource",
1139
949
  "pluginAlias": "@salesforce/plugin-templates",
1140
950
  "pluginName": "@salesforce/plugin-templates",
1141
951
  "pluginType": "core",
1142
952
  "strict": true,
1143
- "summary": "Generate a Lightning App.",
953
+ "summary": "Generate a static resource.",
1144
954
  "enableJsonFlag": true,
1145
955
  "isESM": true,
1146
956
  "relativePath": [
@@ -1148,82 +958,37 @@
1148
958
  "commands",
1149
959
  "template",
1150
960
  "generate",
1151
- "lightning",
1152
- "app.js"
961
+ "static-resource",
962
+ "index.js"
1153
963
  ],
1154
964
  "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"
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"
1185
973
  ],
1186
974
  "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"
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"
1211
981
  ]
1212
982
  },
1213
- "template:generate:lightning:component": {
1214
- "aliases": [
1215
- "force:lightning:component:create",
1216
- "lightning:generate:component"
1217
- ],
983
+ "template:generate:ui-bundle": {
984
+ "aliases": [],
1218
985
  "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.",
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.",
1221
987
  "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"
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"
1227
992
  ],
1228
993
  "flags": {
1229
994
  "json": {
@@ -1242,99 +1007,64 @@
1242
1007
  "type": "option"
1243
1008
  },
1244
1009
  "name": {
1245
- "aliases": [
1246
- "componentname"
1247
- ],
1248
1010
  "char": "n",
1249
- "deprecateAliases": true,
1250
- "description": "The name can be up to 40 characters and must start with a letter.",
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.",
1251
1012
  "name": "name",
1252
1013
  "required": true,
1253
- "summary": "Name of the generated Lightning Component.",
1014
+ "summary": "API name of the generated UI bundle.",
1254
1015
  "hasDynamicHelp": false,
1255
1016
  "multiple": false,
1256
1017
  "type": "option"
1257
1018
  },
1258
1019
  "template": {
1259
1020
  "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.",
1021
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1261
1022
  "name": "template",
1262
- "summary": "Template to use for file creation.",
1023
+ "summary": "Template to use when creating the files for a specific UI framework.",
1263
1024
  "default": "default",
1264
1025
  "hasDynamicHelp": false,
1265
1026
  "multiple": false,
1266
1027
  "options": [
1267
1028
  "default",
1268
- "analyticsDashboard",
1269
- "analyticsDashboardWithStep",
1270
- "typescript"
1029
+ "reactbasic",
1030
+ "angularbasic"
1271
1031
  ],
1272
1032
  "type": "option"
1273
1033
  },
1034
+ "label": {
1035
+ "char": "l",
1036
+ "description": "If not specified, the label is derived from the name.",
1037
+ "name": "label",
1038
+ "summary": "Master label for the UI bundle.",
1039
+ "hasDynamicHelp": false,
1040
+ "multiple": false,
1041
+ "type": "option"
1042
+ },
1274
1043
  "output-dir": {
1275
- "aliases": [
1276
- "outputdir"
1277
- ],
1278
1044
  "char": "d",
1279
- "deprecateAliases": true,
1280
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
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)",
1281
1046
  "name": "output-dir",
1282
- "summary": "Directory for saving the created files.",
1283
- "default": ".",
1047
+ "summary": "Directory into which the files are created.",
1284
1048
  "hasDynamicHelp": false,
1285
1049
  "multiple": false,
1286
1050
  "type": "option"
1287
1051
  },
1288
1052
  "api-version": {
1289
- "aliases": [
1290
- "apiversion"
1291
- ],
1292
- "deprecateAliases": true,
1293
1053
  "description": "Override the api version used for api requests made by this command",
1294
1054
  "name": "api-version",
1295
1055
  "hasDynamicHelp": false,
1296
1056
  "multiple": false,
1297
1057
  "type": "option"
1298
- },
1299
- "type": {
1300
- "name": "type",
1301
- "summary": "Type of the component bundle.",
1302
- "default": "aura",
1303
- "hasDynamicHelp": false,
1304
- "multiple": false,
1305
- "options": [
1306
- "aura",
1307
- "lwc"
1308
- ],
1309
- "type": "option"
1310
- },
1311
- "internal": {
1312
- "char": "i",
1313
- "hidden": true,
1314
- "name": "internal",
1315
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1316
- "allowNo": false,
1317
- "type": "boolean"
1318
- },
1319
- "loglevel": {
1320
- "deprecated": {
1321
- "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."
1322
- },
1323
- "hidden": true,
1324
- "name": "loglevel",
1325
- "hasDynamicHelp": false,
1326
- "multiple": false,
1327
- "type": "option"
1328
1058
  }
1329
1059
  },
1330
1060
  "hasDynamicHelp": false,
1331
1061
  "hiddenAliases": [],
1332
- "id": "template:generate:lightning:component",
1062
+ "id": "template:generate:ui-bundle",
1333
1063
  "pluginAlias": "@salesforce/plugin-templates",
1334
1064
  "pluginName": "@salesforce/plugin-templates",
1335
1065
  "pluginType": "core",
1336
1066
  "strict": true,
1337
- "summary": "Generate a bundle for an Aura component or a Lightning web component.",
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.",
1338
1068
  "enableJsonFlag": true,
1339
1069
  "isESM": true,
1340
1070
  "relativePath": [
@@ -1342,79 +1072,28 @@
1342
1072
  "commands",
1343
1073
  "template",
1344
1074
  "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"
1075
+ "ui-bundle",
1076
+ "index.js"
1379
1077
  ],
1078
+ "aliasPermutations": [],
1380
1079
  "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"
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"
1405
1086
  ]
1406
1087
  },
1407
- "template:generate:lightning:event": {
1408
- "aliases": [
1409
- "force:lightning:event:create",
1410
- "lightning:generate:event"
1411
- ],
1088
+ "template:generate:flexipage": {
1089
+ "aliases": [],
1412
1090
  "args": {},
1413
- "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.",
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.",
1415
1092
  "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"
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"
1418
1097
  ],
1419
1098
  "flags": {
1420
1099
  "json": {
@@ -1434,28 +1113,29 @@
1434
1113
  },
1435
1114
  "name": {
1436
1115
  "aliases": [
1437
- "eventname"
1116
+ "flexipagename"
1438
1117
  ],
1439
1118
  "char": "n",
1440
1119
  "deprecateAliases": true,
1441
- "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.",
1442
1121
  "name": "name",
1443
1122
  "required": true,
1444
- "summary": "Name of the generated Lightning Event.",
1123
+ "summary": "Name of the FlexiPage.",
1445
1124
  "hasDynamicHelp": false,
1446
1125
  "multiple": false,
1447
1126
  "type": "option"
1448
1127
  },
1449
1128
  "template": {
1450
1129
  "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.",
1452
1130
  "name": "template",
1453
- "summary": "Template to use for file creation.",
1454
- "default": "DefaultLightningEvt",
1131
+ "required": true,
1132
+ "summary": "Template type for the FlexiPage.",
1455
1133
  "hasDynamicHelp": false,
1456
1134
  "multiple": false,
1457
1135
  "options": [
1458
- "DefaultLightningEvt"
1136
+ "RecordPage",
1137
+ "AppPage",
1138
+ "HomePage"
1459
1139
  ],
1460
1140
  "type": "option"
1461
1141
  },
@@ -1484,15 +1164,70 @@
1484
1164
  "multiple": false,
1485
1165
  "type": "option"
1486
1166
  },
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"
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"
1494
1177
  },
1495
- "loglevel": {
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
+ },
1222
+ "internal": {
1223
+ "char": "i",
1224
+ "hidden": true,
1225
+ "name": "internal",
1226
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1227
+ "allowNo": false,
1228
+ "type": "boolean"
1229
+ },
1230
+ "loglevel": {
1496
1231
  "deprecated": {
1497
1232
  "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."
1498
1233
  },
@@ -1505,92 +1240,41 @@
1505
1240
  },
1506
1241
  "hasDynamicHelp": false,
1507
1242
  "hiddenAliases": [],
1508
- "id": "template:generate:lightning:event",
1243
+ "id": "template:generate:flexipage",
1509
1244
  "pluginAlias": "@salesforce/plugin-templates",
1510
1245
  "pluginName": "@salesforce/plugin-templates",
1511
1246
  "pluginType": "core",
1247
+ "state": "beta",
1512
1248
  "strict": true,
1513
- "summary": "Generate a Lightning Event.",
1249
+ "summary": "Generate a FlexiPage, also known as a Lightning page.",
1514
1250
  "enableJsonFlag": true,
1251
+ "MAX_SECONDARY_FIELDS": 11,
1515
1252
  "isESM": true,
1516
1253
  "relativePath": [
1517
1254
  "lib",
1518
1255
  "commands",
1519
1256
  "template",
1520
1257
  "generate",
1521
- "lightning",
1522
- "event.js"
1523
- ],
1524
- "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"
1258
+ "flexipage",
1259
+ "index.js"
1555
1260
  ],
1261
+ "aliasPermutations": [],
1556
1262
  "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"
1263
+ "template:generate:flexipage",
1264
+ "generate:template:flexipage",
1265
+ "generate:flexipage:template",
1266
+ "template:flexipage:generate",
1267
+ "flexipage:template:generate",
1268
+ "flexipage:generate:template"
1581
1269
  ]
1582
1270
  },
1583
- "template:generate:lightning:interface": {
1584
- "aliases": [
1585
- "force:lightning:interface:create",
1586
- "lightning:generate:interface"
1587
- ],
1271
+ "template:generate:ui-embedding": {
1272
+ "aliases": [],
1588
1273
  "args": {},
1589
- "deprecateAliases": true,
1590
- "description": "Generates a Lightning Interface bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
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\".",
1591
1275
  "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"
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"
1594
1278
  ],
1595
1279
  "flags": {
1596
1280
  "json": {
@@ -1609,32 +1293,57 @@
1609
1293
  "type": "option"
1610
1294
  },
1611
1295
  "name": {
1612
- "aliases": [
1613
- "interfacename"
1614
- ],
1615
1296
  "char": "n",
1616
- "deprecateAliases": true,
1617
- "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.",
1618
1298
  "name": "name",
1619
1299
  "required": true,
1620
- "summary": "Name of the generated Lightning Interface.",
1300
+ "summary": "Name of the generated component; must be in PascalCase format.",
1621
1301
  "hasDynamicHelp": false,
1622
1302
  "multiple": false,
1623
1303
  "type": "option"
1624
1304
  },
1625
- "template": {
1626
- "char": "t",
1627
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1628
- "name": "template",
1629
- "summary": "Template to use for file creation.",
1630
- "default": "DefaultLightningIntf",
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.",
1631
1311
  "hasDynamicHelp": false,
1632
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,
1633
1322
  "options": [
1634
- "DefaultLightningIntf"
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"
1635
1335
  ],
1636
1336
  "type": "option"
1637
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
+ },
1638
1347
  "output-dir": {
1639
1348
  "aliases": [
1640
1349
  "outputdir"
@@ -1680,13 +1389,15 @@
1680
1389
  }
1681
1390
  },
1682
1391
  "hasDynamicHelp": false,
1392
+ "hidden": true,
1683
1393
  "hiddenAliases": [],
1684
- "id": "template:generate:lightning:interface",
1394
+ "id": "template:generate:ui-embedding",
1685
1395
  "pluginAlias": "@salesforce/plugin-templates",
1686
1396
  "pluginName": "@salesforce/plugin-templates",
1687
1397
  "pluginType": "core",
1398
+ "state": "beta",
1688
1399
  "strict": true,
1689
- "summary": "Generate a Lightning Interface.",
1400
+ "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
1690
1401
  "enableJsonFlag": true,
1691
1402
  "isESM": true,
1692
1403
  "relativePath": [
@@ -1694,79 +1405,30 @@
1694
1405
  "commands",
1695
1406
  "template",
1696
1407
  "generate",
1697
- "lightning",
1698
- "interface.js"
1699
- ],
1700
- "aliasPermutations": [
1701
- "force:lightning:interface:create",
1702
- "lightning:force:interface:create",
1703
- "lightning:interface:force:create",
1704
- "lightning:interface:create:force",
1705
- "force:interface:lightning:create",
1706
- "interface:force:lightning:create",
1707
- "interface:lightning:force:create",
1708
- "interface:lightning:create:force",
1709
- "force:interface:create:lightning",
1710
- "interface:force:create:lightning",
1711
- "interface:create:force:lightning",
1712
- "interface:create:lightning:force",
1713
- "force:lightning:create:interface",
1714
- "lightning:force:create:interface",
1715
- "lightning:create:force:interface",
1716
- "lightning:create:interface:force",
1717
- "force:create:lightning:interface",
1718
- "create:force:lightning:interface",
1719
- "create:lightning:force:interface",
1720
- "create:lightning:interface:force",
1721
- "force:create:interface:lightning",
1722
- "create:force:interface:lightning",
1723
- "create:interface:force:lightning",
1724
- "create:interface:lightning:force",
1725
- "lightning:generate:interface",
1726
- "generate:lightning:interface",
1727
- "generate:interface:lightning",
1728
- "lightning:interface:generate",
1729
- "interface:lightning:generate",
1730
- "interface:generate:lightning"
1408
+ "ui-embedding",
1409
+ "index.js"
1731
1410
  ],
1411
+ "aliasPermutations": [],
1732
1412
  "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"
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"
1757
1419
  ]
1758
1420
  },
1759
- "template:generate:lightning:test": {
1421
+ "template:generate:visualforce:component": {
1760
1422
  "aliases": [
1761
- "force:lightning:test:create",
1762
- "lightning:generate:test"
1423
+ "force:visualforce:component:create",
1424
+ "visualforce:generate:component"
1763
1425
  ],
1764
1426
  "args": {},
1765
1427
  "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.",
1428
+ "description": "The command generates the .Component file and associated metadata file in the specified directory or the current working directory by default.",
1767
1429
  "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"
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"
1770
1432
  ],
1771
1433
  "flags": {
1772
1434
  "json": {
@@ -1786,28 +1448,28 @@
1786
1448
  },
1787
1449
  "name": {
1788
1450
  "aliases": [
1789
- "testname"
1451
+ "componentname"
1790
1452
  ],
1791
1453
  "char": "n",
1792
1454
  "deprecateAliases": true,
1793
- "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1455
+ "description": "The name can be up to 40 characters and must start with a letter.",
1794
1456
  "name": "name",
1795
1457
  "required": true,
1796
- "summary": "Name of the generated Lightning Test.",
1458
+ "summary": "Name of the generated Visualforce Component.",
1797
1459
  "hasDynamicHelp": false,
1798
1460
  "multiple": false,
1799
1461
  "type": "option"
1800
1462
  },
1801
1463
  "template": {
1802
1464
  "char": "t",
1803
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1465
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1804
1466
  "name": "template",
1805
1467
  "summary": "Template to use for file creation.",
1806
- "default": "DefaultLightningTest",
1468
+ "default": "DefaultVFComponent",
1807
1469
  "hasDynamicHelp": false,
1808
1470
  "multiple": false,
1809
1471
  "options": [
1810
- "DefaultLightningTest"
1472
+ "DefaultVFComponent"
1811
1473
  ],
1812
1474
  "type": "option"
1813
1475
  },
@@ -1825,14 +1487,6 @@
1825
1487
  "multiple": false,
1826
1488
  "type": "option"
1827
1489
  },
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
1490
  "api-version": {
1837
1491
  "aliases": [
1838
1492
  "apiversion"
@@ -1844,6 +1498,15 @@
1844
1498
  "multiple": false,
1845
1499
  "type": "option"
1846
1500
  },
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"
1509
+ },
1847
1510
  "loglevel": {
1848
1511
  "deprecated": {
1849
1512
  "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 +1520,12 @@
1857
1520
  },
1858
1521
  "hasDynamicHelp": false,
1859
1522
  "hiddenAliases": [],
1860
- "id": "template:generate:lightning:test",
1523
+ "id": "template:generate:visualforce:component",
1861
1524
  "pluginAlias": "@salesforce/plugin-templates",
1862
1525
  "pluginName": "@salesforce/plugin-templates",
1863
1526
  "pluginType": "core",
1864
1527
  "strict": true,
1865
- "summary": "Generate a Lightning test.",
1528
+ "summary": "Generate a Visualforce Component.",
1866
1529
  "enableJsonFlag": true,
1867
1530
  "isESM": true,
1868
1531
  "relativePath": [
@@ -1870,80 +1533,79 @@
1870
1533
  "commands",
1871
1534
  "template",
1872
1535
  "generate",
1873
- "lightning",
1874
- "test.js"
1536
+ "visualforce",
1537
+ "component.js"
1875
1538
  ],
1876
1539
  "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"
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"
1907
1570
  ],
1908
1571
  "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"
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"
1933
1596
  ]
1934
1597
  },
1935
- "template:generate:static-resource": {
1598
+ "template:generate:visualforce:page": {
1936
1599
  "aliases": [
1937
- "force:staticresource:create",
1938
- "static-resource:generate"
1600
+ "force:visualforce:page:create",
1601
+ "visualforce:generate:page"
1939
1602
  ],
1940
1603
  "args": {},
1941
1604
  "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.",
1605
+ "description": "The command generates the .Page file and associated metadata file in the specified directory or the current working directory by default.",
1943
1606
  "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"
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"
1947
1609
  ],
1948
1610
  "flags": {
1949
1611
  "json": {
@@ -1963,29 +1625,30 @@
1963
1625
  },
1964
1626
  "name": {
1965
1627
  "aliases": [
1966
- "resourcename"
1628
+ "pagename"
1967
1629
  ],
1968
1630
  "char": "n",
1969
1631
  "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.",
1632
+ "description": "The name can be up to 40 characters and must start with a letter.",
1971
1633
  "name": "name",
1972
1634
  "required": true,
1973
- "summary": "Name of the generated static resource.",
1635
+ "summary": "Name of the generated Visualforce Page.",
1974
1636
  "hasDynamicHelp": false,
1975
1637
  "multiple": false,
1976
1638
  "type": "option"
1977
1639
  },
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",
1640
+ "template": {
1641
+ "char": "t",
1642
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1643
+ "hidden": true,
1644
+ "name": "template",
1645
+ "summary": "Template to use for file creation.",
1646
+ "default": "DefaultVFPage",
1987
1647
  "hasDynamicHelp": false,
1988
1648
  "multiple": false,
1649
+ "options": [
1650
+ "DefaultVFPage"
1651
+ ],
1989
1652
  "type": "option"
1990
1653
  },
1991
1654
  "output-dir": {
@@ -2013,6 +1676,15 @@
2013
1676
  "multiple": false,
2014
1677
  "type": "option"
2015
1678
  },
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"
1687
+ },
2016
1688
  "loglevel": {
2017
1689
  "deprecated": {
2018
1690
  "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 +1698,12 @@
2026
1698
  },
2027
1699
  "hasDynamicHelp": false,
2028
1700
  "hiddenAliases": [],
2029
- "id": "template:generate:static-resource",
1701
+ "id": "template:generate:visualforce:page",
2030
1702
  "pluginAlias": "@salesforce/plugin-templates",
2031
1703
  "pluginName": "@salesforce/plugin-templates",
2032
1704
  "pluginType": "core",
2033
1705
  "strict": true,
2034
- "summary": "Generate a static resource.",
1706
+ "summary": "Generate a Visualforce Page.",
2035
1707
  "enableJsonFlag": true,
2036
1708
  "isESM": true,
2037
1709
  "relativePath": [
@@ -2039,46 +1711,88 @@
2039
1711
  "commands",
2040
1712
  "template",
2041
1713
  "generate",
2042
- "static-resource",
2043
- "index.js"
1714
+ "visualforce",
1715
+ "page.js"
2044
1716
  ],
2045
1717
  "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"
2054
- ],
2055
- "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
- ],
2074
- "flags": {
2075
- "json": {
2076
- "description": "Format output as json.",
2077
- "helpGroup": "GLOBAL",
2078
- "name": "json",
2079
- "allowNo": false,
2080
- "type": "boolean"
2081
- },
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"
1748
+ ],
1749
+ "permutations": [
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"
1774
+ ]
1775
+ },
1776
+ "template:generate:lightning:app": {
1777
+ "aliases": [
1778
+ "force:lightning:app:create",
1779
+ "lightning:generate:app"
1780
+ ],
1781
+ "args": {},
1782
+ "deprecateAliases": true,
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.",
1784
+ "examples": [
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"
1787
+ ],
1788
+ "flags": {
1789
+ "json": {
1790
+ "description": "Format output as json.",
1791
+ "helpGroup": "GLOBAL",
1792
+ "name": "json",
1793
+ "allowNo": false,
1794
+ "type": "boolean"
1795
+ },
2082
1796
  "flags-dir": {
2083
1797
  "helpGroup": "GLOBAL",
2084
1798
  "name": "flags-dir",
@@ -2088,64 +1802,278 @@
2088
1802
  "type": "option"
2089
1803
  },
2090
1804
  "name": {
1805
+ "aliases": [
1806
+ "appname"
1807
+ ],
2091
1808
  "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.",
1809
+ "deprecateAliases": true,
1810
+ "description": "The name can be up to 40 characters and must start with a letter.",
2093
1811
  "name": "name",
2094
1812
  "required": true,
2095
- "summary": "API name of the generated UI bundle.",
1813
+ "summary": "Name of the generated Lightning App.",
2096
1814
  "hasDynamicHelp": false,
2097
1815
  "multiple": false,
2098
1816
  "type": "option"
2099
1817
  },
2100
1818
  "template": {
2101
1819
  "char": "t",
2102
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
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.",
2103
1821
  "name": "template",
2104
- "summary": "Template to use when creating the files for a specific UI framework.",
2105
- "default": "default",
1822
+ "summary": "Template to use for file creation.",
1823
+ "default": "DefaultLightningApp",
2106
1824
  "hasDynamicHelp": false,
2107
1825
  "multiple": false,
2108
1826
  "options": [
2109
- "default",
2110
- "reactbasic",
2111
- "angularbasic"
1827
+ "DefaultLightningApp"
2112
1828
  ],
2113
1829
  "type": "option"
2114
1830
  },
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.",
1831
+ "output-dir": {
1832
+ "aliases": [
1833
+ "outputdir"
1834
+ ],
1835
+ "char": "d",
1836
+ "deprecateAliases": true,
1837
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1838
+ "name": "output-dir",
1839
+ "summary": "Directory for saving the created files.",
1840
+ "default": ".",
1841
+ "hasDynamicHelp": false,
1842
+ "multiple": false,
1843
+ "type": "option"
1844
+ },
1845
+ "api-version": {
1846
+ "aliases": [
1847
+ "apiversion"
1848
+ ],
1849
+ "deprecateAliases": true,
1850
+ "description": "Override the api version used for api requests made by this command",
1851
+ "name": "api-version",
1852
+ "hasDynamicHelp": false,
1853
+ "multiple": false,
1854
+ "type": "option"
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
+ },
1864
+ "loglevel": {
1865
+ "deprecated": {
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."
1867
+ },
1868
+ "hidden": true,
1869
+ "name": "loglevel",
1870
+ "hasDynamicHelp": false,
1871
+ "multiple": false,
1872
+ "type": "option"
1873
+ }
1874
+ },
1875
+ "hasDynamicHelp": false,
1876
+ "hiddenAliases": [],
1877
+ "id": "template:generate:lightning:app",
1878
+ "pluginAlias": "@salesforce/plugin-templates",
1879
+ "pluginName": "@salesforce/plugin-templates",
1880
+ "pluginType": "core",
1881
+ "strict": true,
1882
+ "summary": "Generate a Lightning App.",
1883
+ "enableJsonFlag": true,
1884
+ "isESM": true,
1885
+ "relativePath": [
1886
+ "lib",
1887
+ "commands",
1888
+ "template",
1889
+ "generate",
1890
+ "lightning",
1891
+ "app.js"
1892
+ ],
1893
+ "aliasPermutations": [
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"
1924
+ ],
1925
+ "permutations": [
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"
1950
+ ]
1951
+ },
1952
+ "template:generate:lightning:component": {
1953
+ "aliases": [
1954
+ "force:lightning:component:create",
1955
+ "lightning:generate:component"
1956
+ ],
1957
+ "args": {},
1958
+ "deprecateAliases": true,
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.",
1960
+ "examples": [
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"
1966
+ ],
1967
+ "flags": {
1968
+ "json": {
1969
+ "description": "Format output as json.",
1970
+ "helpGroup": "GLOBAL",
1971
+ "name": "json",
1972
+ "allowNo": false,
1973
+ "type": "boolean"
1974
+ },
1975
+ "flags-dir": {
1976
+ "helpGroup": "GLOBAL",
1977
+ "name": "flags-dir",
1978
+ "summary": "Import flag values from a directory.",
2120
1979
  "hasDynamicHelp": false,
2121
1980
  "multiple": false,
2122
1981
  "type": "option"
2123
1982
  },
1983
+ "name": {
1984
+ "aliases": [
1985
+ "componentname"
1986
+ ],
1987
+ "char": "n",
1988
+ "deprecateAliases": true,
1989
+ "description": "The name can be up to 40 characters and must start with a letter.",
1990
+ "name": "name",
1991
+ "required": true,
1992
+ "summary": "Name of the generated Lightning Component.",
1993
+ "hasDynamicHelp": false,
1994
+ "multiple": false,
1995
+ "type": "option"
1996
+ },
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",
2003
+ "hasDynamicHelp": false,
2004
+ "multiple": false,
2005
+ "options": [
2006
+ "default",
2007
+ "analyticsDashboard",
2008
+ "analyticsDashboardWithStep",
2009
+ "typescript"
2010
+ ],
2011
+ "type": "option"
2012
+ },
2124
2013
  "output-dir": {
2014
+ "aliases": [
2015
+ "outputdir"
2016
+ ],
2125
2017
  "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)",
2018
+ "deprecateAliases": true,
2019
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2127
2020
  "name": "output-dir",
2128
- "summary": "Directory into which the files are created.",
2021
+ "summary": "Directory for saving the created files.",
2022
+ "default": ".",
2129
2023
  "hasDynamicHelp": false,
2130
2024
  "multiple": false,
2131
2025
  "type": "option"
2132
2026
  },
2133
2027
  "api-version": {
2028
+ "aliases": [
2029
+ "apiversion"
2030
+ ],
2031
+ "deprecateAliases": true,
2134
2032
  "description": "Override the api version used for api requests made by this command",
2135
2033
  "name": "api-version",
2136
2034
  "hasDynamicHelp": false,
2137
2035
  "multiple": false,
2138
2036
  "type": "option"
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
+ },
2058
+ "loglevel": {
2059
+ "deprecated": {
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."
2061
+ },
2062
+ "hidden": true,
2063
+ "name": "loglevel",
2064
+ "hasDynamicHelp": false,
2065
+ "multiple": false,
2066
+ "type": "option"
2139
2067
  }
2140
2068
  },
2141
2069
  "hasDynamicHelp": false,
2142
2070
  "hiddenAliases": [],
2143
- "id": "template:generate:ui-bundle",
2071
+ "id": "template:generate:lightning:component",
2144
2072
  "pluginAlias": "@salesforce/plugin-templates",
2145
2073
  "pluginName": "@salesforce/plugin-templates",
2146
2074
  "pluginType": "core",
2147
2075
  "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.",
2076
+ "summary": "Generate a bundle for an Aura component or a Lightning web component.",
2149
2077
  "enableJsonFlag": true,
2150
2078
  "isESM": true,
2151
2079
  "relativePath": [
@@ -2153,26 +2081,79 @@
2153
2081
  "commands",
2154
2082
  "template",
2155
2083
  "generate",
2156
- "ui-bundle",
2157
- "index.js"
2084
+ "lightning",
2085
+ "component.js"
2086
+ ],
2087
+ "aliasPermutations": [
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"
2158
2118
  ],
2159
- "aliasPermutations": [],
2160
2119
  "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"
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"
2167
2144
  ]
2168
2145
  },
2169
- "template:generate:ui-embedding": {
2170
- "aliases": [],
2146
+ "template:generate:lightning:event": {
2147
+ "aliases": [
2148
+ "force:lightning:event:create",
2149
+ "lightning:generate:event"
2150
+ ],
2171
2151
  "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\".",
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.",
2173
2154
  "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"
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"
2176
2157
  ],
2177
2158
  "flags": {
2178
2159
  "json": {
@@ -2191,57 +2172,32 @@
2191
2172
  "type": "option"
2192
2173
  },
2193
2174
  "name": {
2175
+ "aliases": [
2176
+ "eventname"
2177
+ ],
2194
2178
  "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.",
2179
+ "deprecateAliases": true,
2180
+ "description": "The name can be up to 40 characters and must start with a letter.",
2196
2181
  "name": "name",
2197
2182
  "required": true,
2198
- "summary": "Name of the generated component; must be in PascalCase format.",
2183
+ "summary": "Name of the generated Lightning Event.",
2199
2184
  "hasDynamicHelp": false,
2200
2185
  "multiple": false,
2201
2186
  "type": "option"
2202
2187
  },
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.",
2188
+ "template": {
2189
+ "char": "t",
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.",
2191
+ "name": "template",
2192
+ "summary": "Template to use for file creation.",
2193
+ "default": "DefaultLightningEvt",
2209
2194
  "hasDynamicHelp": false,
2210
2195
  "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
2196
  "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"
2197
+ "DefaultLightningEvt"
2233
2198
  ],
2234
2199
  "type": "option"
2235
2200
  },
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
2201
  "output-dir": {
2246
2202
  "aliases": [
2247
2203
  "outputdir"
@@ -2287,15 +2243,13 @@
2287
2243
  }
2288
2244
  },
2289
2245
  "hasDynamicHelp": false,
2290
- "hidden": true,
2291
2246
  "hiddenAliases": [],
2292
- "id": "template:generate:ui-embedding",
2247
+ "id": "template:generate:lightning:event",
2293
2248
  "pluginAlias": "@salesforce/plugin-templates",
2294
2249
  "pluginName": "@salesforce/plugin-templates",
2295
2250
  "pluginType": "core",
2296
- "state": "beta",
2297
2251
  "strict": true,
2298
- "summary": "Generate a Lightning Web Component (LWC) bundle that wraps the <lightning-ui-embedding> base component.",
2252
+ "summary": "Generate a Lightning Event.",
2299
2253
  "enableJsonFlag": true,
2300
2254
  "isESM": true,
2301
2255
  "relativePath": [
@@ -2303,30 +2257,79 @@
2303
2257
  "commands",
2304
2258
  "template",
2305
2259
  "generate",
2306
- "ui-embedding",
2307
- "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"
2308
2294
  ],
2309
- "aliasPermutations": [],
2310
2295
  "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"
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"
2317
2320
  ]
2318
2321
  },
2319
- "template:generate:visualforce:component": {
2322
+ "template:generate:lightning:interface": {
2320
2323
  "aliases": [
2321
- "force:visualforce:component:create",
2322
- "visualforce:generate:component"
2324
+ "force:lightning:interface:create",
2325
+ "lightning:generate:interface"
2323
2326
  ],
2324
2327
  "args": {},
2325
2328
  "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.",
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.",
2327
2330
  "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"
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"
2330
2333
  ],
2331
2334
  "flags": {
2332
2335
  "json": {
@@ -2346,28 +2349,28 @@
2346
2349
  },
2347
2350
  "name": {
2348
2351
  "aliases": [
2349
- "componentname"
2352
+ "interfacename"
2350
2353
  ],
2351
2354
  "char": "n",
2352
2355
  "deprecateAliases": true,
2353
2356
  "description": "The name can be up to 40 characters and must start with a letter.",
2354
2357
  "name": "name",
2355
2358
  "required": true,
2356
- "summary": "Name of the generated Visualforce Component.",
2359
+ "summary": "Name of the generated Lightning Interface.",
2357
2360
  "hasDynamicHelp": false,
2358
2361
  "multiple": false,
2359
2362
  "type": "option"
2360
2363
  },
2361
2364
  "template": {
2362
2365
  "char": "t",
2363
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
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.",
2364
2367
  "name": "template",
2365
2368
  "summary": "Template to use for file creation.",
2366
- "default": "DefaultVFComponent",
2369
+ "default": "DefaultLightningIntf",
2367
2370
  "hasDynamicHelp": false,
2368
2371
  "multiple": false,
2369
2372
  "options": [
2370
- "DefaultVFComponent"
2373
+ "DefaultLightningIntf"
2371
2374
  ],
2372
2375
  "type": "option"
2373
2376
  },
@@ -2396,14 +2399,13 @@
2396
2399
  "multiple": false,
2397
2400
  "type": "option"
2398
2401
  },
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"
2402
+ "internal": {
2403
+ "char": "i",
2404
+ "hidden": true,
2405
+ "name": "internal",
2406
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
2407
+ "allowNo": false,
2408
+ "type": "boolean"
2407
2409
  },
2408
2410
  "loglevel": {
2409
2411
  "deprecated": {
@@ -2415,95 +2417,95 @@
2415
2417
  "multiple": false,
2416
2418
  "type": "option"
2417
2419
  }
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
- ],
2437
- "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"
2420
+ },
2421
+ "hasDynamicHelp": false,
2422
+ "hiddenAliases": [],
2423
+ "id": "template:generate:lightning:interface",
2424
+ "pluginAlias": "@salesforce/plugin-templates",
2425
+ "pluginName": "@salesforce/plugin-templates",
2426
+ "pluginType": "core",
2427
+ "strict": true,
2428
+ "summary": "Generate a Lightning Interface.",
2429
+ "enableJsonFlag": true,
2430
+ "isESM": true,
2431
+ "relativePath": [
2432
+ "lib",
2433
+ "commands",
2434
+ "template",
2435
+ "generate",
2436
+ "lightning",
2437
+ "interface.js"
2438
+ ],
2439
+ "aliasPermutations": [
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.0"
2675
+ "version": "57.1.2"
2676
2676
  }