@salesforce/plugin-templates 56.13.2 → 56.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +15 -15
  2. package/oclif.manifest.json +468 -468
  3. package/package.json +4 -4
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "commands": {
3
- "template:generate:apex:class": {
3
+ "template:generate:analytics:template": {
4
4
  "aliases": [
5
- "force:apex:class:create",
6
- "apex:generate:class"
5
+ "force:analytics:template:create",
6
+ "analytics:generate:template"
7
7
  ],
8
8
  "args": {},
9
9
  "deprecateAliases": true,
10
- "description": "Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called \"classes\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
10
+ "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
11
11
  "examples": [
12
- "Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyClass",
13
- "Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n<%= config.bin %> <%= command.id %> --name MyClass --output-dir force-app/main/default/classes"
12
+ "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
14
13
  ],
15
14
  "flags": {
16
15
  "json": {
@@ -28,37 +27,6 @@
28
27
  "multiple": false,
29
28
  "type": "option"
30
29
  },
31
- "name": {
32
- "aliases": [
33
- "classname"
34
- ],
35
- "char": "n",
36
- "deprecateAliases": true,
37
- "description": "The name can be up to 40 characters and must start with a letter.",
38
- "name": "name",
39
- "required": true,
40
- "summary": "Name of the generated Apex class.",
41
- "hasDynamicHelp": false,
42
- "multiple": false,
43
- "type": "option"
44
- },
45
- "template": {
46
- "char": "t",
47
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
48
- "name": "template",
49
- "summary": "Template to use for file creation.",
50
- "default": "DefaultApexClass",
51
- "hasDynamicHelp": false,
52
- "multiple": false,
53
- "options": [
54
- "ApexException",
55
- "ApexUnitTest",
56
- "BasicUnitTest",
57
- "DefaultApexClass",
58
- "InboundEmailService"
59
- ],
60
- "type": "option"
61
- },
62
30
  "output-dir": {
63
31
  "aliases": [
64
32
  "outputdir"
@@ -84,6 +52,19 @@
84
52
  "multiple": false,
85
53
  "type": "option"
86
54
  },
55
+ "name": {
56
+ "aliases": [
57
+ "templatename"
58
+ ],
59
+ "char": "n",
60
+ "deprecateAliases": true,
61
+ "name": "name",
62
+ "required": true,
63
+ "summary": "Name of the Analytics template.",
64
+ "hasDynamicHelp": false,
65
+ "multiple": false,
66
+ "type": "option"
67
+ },
87
68
  "loglevel": {
88
69
  "deprecated": {
89
70
  "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
@@ -97,12 +78,12 @@
97
78
  },
98
79
  "hasDynamicHelp": false,
99
80
  "hiddenAliases": [],
100
- "id": "template:generate:apex:class",
81
+ "id": "template:generate:analytics:template",
101
82
  "pluginAlias": "@salesforce/plugin-templates",
102
83
  "pluginName": "@salesforce/plugin-templates",
103
84
  "pluginType": "core",
104
85
  "strict": true,
105
- "summary": "Generate an Apex class.",
86
+ "summary": "Generate a simple Analytics template.",
106
87
  "enableJsonFlag": true,
107
88
  "isESM": true,
108
89
  "relativePath": [
@@ -110,80 +91,75 @@
110
91
  "commands",
111
92
  "template",
112
93
  "generate",
113
- "apex",
114
- "class.js"
94
+ "analytics",
95
+ "template.js"
115
96
  ],
116
97
  "aliasPermutations": [
117
- "force:apex:class:create",
118
- "apex:force:class:create",
119
- "apex:class:force:create",
120
- "apex:class:create:force",
121
- "force:class:apex:create",
122
- "class:force:apex:create",
123
- "class:apex:force:create",
124
- "class:apex:create:force",
125
- "force:class:create:apex",
126
- "class:force:create:apex",
127
- "class:create:force:apex",
128
- "class:create:apex:force",
129
- "force:apex:create:class",
130
- "apex:force:create:class",
131
- "apex:create:force:class",
132
- "apex:create:class:force",
133
- "force:create:apex:class",
134
- "create:force:apex:class",
135
- "create:apex:force:class",
136
- "create:apex:class:force",
137
- "force:create:class:apex",
138
- "create:force:class:apex",
139
- "create:class:force:apex",
140
- "create:class:apex:force",
141
- "apex:generate:class",
142
- "generate:apex:class",
143
- "generate:class:apex",
144
- "apex:class:generate",
145
- "class:apex:generate",
146
- "class:generate:apex"
98
+ "force:analytics:template:create",
99
+ "analytics:force:template:create",
100
+ "analytics:template:force:create",
101
+ "analytics:template:create:force",
102
+ "force:template:analytics:create",
103
+ "template:force:analytics:create",
104
+ "template:analytics:force:create",
105
+ "template:analytics:create:force",
106
+ "force:template:create:analytics",
107
+ "template:force:create:analytics",
108
+ "template:create:force:analytics",
109
+ "template:create:analytics:force",
110
+ "force:analytics:create:template",
111
+ "analytics:force:create:template",
112
+ "analytics:create:force:template",
113
+ "analytics:create:template:force",
114
+ "force:create:analytics:template",
115
+ "create:force:analytics:template",
116
+ "create:analytics:force:template",
117
+ "create:analytics:template:force",
118
+ "force:create:template:analytics",
119
+ "create:force:template:analytics",
120
+ "create:template:force:analytics",
121
+ "create:template:analytics:force",
122
+ "analytics:generate:template",
123
+ "generate:analytics:template",
124
+ "generate:template:analytics",
125
+ "analytics:template:generate",
126
+ "template:analytics:generate",
127
+ "template:generate:analytics"
147
128
  ],
148
129
  "permutations": [
149
- "template:generate:apex:class",
150
- "generate:template:apex:class",
151
- "generate:apex:template:class",
152
- "generate:apex:class:template",
153
- "template:apex:generate:class",
154
- "apex:template:generate:class",
155
- "apex:generate:template:class",
156
- "apex:generate:class:template",
157
- "template:apex:class:generate",
158
- "apex:template:class:generate",
159
- "apex:class:template:generate",
160
- "apex:class:generate:template",
161
- "template:generate:class:apex",
162
- "generate:template:class:apex",
163
- "generate:class:template:apex",
164
- "generate:class:apex:template",
165
- "template:class:generate:apex",
166
- "class:template:generate:apex",
167
- "class:generate:template:apex",
168
- "class:generate:apex:template",
169
- "template:class:apex:generate",
170
- "class:template:apex:generate",
171
- "class:apex:template:generate",
172
- "class:apex:generate:template"
130
+ "template:generate:analytics:template",
131
+ "generate:template:analytics:template",
132
+ "generate:analytics:template:template",
133
+ "generate:analytics:template:template",
134
+ "template:analytics:generate:template",
135
+ "analytics:template:generate:template",
136
+ "analytics:generate:template:template",
137
+ "analytics:generate:template:template",
138
+ "template:analytics:template:generate",
139
+ "analytics:template:template:generate",
140
+ "analytics:template:template:generate",
141
+ "analytics:template:generate:template",
142
+ "template:generate:template:analytics",
143
+ "generate:template:template:analytics",
144
+ "generate:template:template:analytics",
145
+ "generate:template:analytics:template",
146
+ "template:template:generate:analytics",
147
+ "template:template:generate:analytics",
148
+ "template:generate:template:analytics",
149
+ "template:generate:analytics:template",
150
+ "template:template:analytics:generate",
151
+ "template:template:analytics:generate",
152
+ "template:analytics:template:generate",
153
+ "template:analytics:generate:template"
173
154
  ]
174
155
  },
175
- "template:generate:apex:trigger": {
176
- "aliases": [
177
- "force:apex:trigger:create",
178
- "apex:generate:trigger"
179
- ],
156
+ "template:generate:digital-experience:site": {
157
+ "aliases": [],
180
158
  "args": {},
181
- "deprecateAliases": true,
182
- "description": "Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called \"triggers\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.\n\nIf you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.",
159
+ "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
183
160
  "examples": [
184
- "Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger",
185
- "Similar to the previous example, but generate the files in the \"force-app/main/default/triggers\" directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger --output-dir force-app/main/default/triggers",
186
- "Generate files for a trigger that fires on the Account object before and after an insert:\n<%= config.bin %> <%= command.id %> --name MyTrigger --sobject Account --event \"before insert,after insert\""
161
+ "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
162
+ "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
187
163
  ],
188
164
  "flags": {
189
165
  "json": {
@@ -201,111 +177,72 @@
201
177
  "multiple": false,
202
178
  "type": "option"
203
179
  },
180
+ "target-org": {
181
+ "char": "o",
182
+ "name": "target-org",
183
+ "noCacheDefault": true,
184
+ "summary": "Username or alias of the target org.",
185
+ "hasDynamicHelp": true,
186
+ "multiple": false,
187
+ "type": "option"
188
+ },
204
189
  "name": {
205
- "aliases": [
206
- "triggername"
207
- ],
208
190
  "char": "n",
209
- "deprecateAliases": true,
210
- "description": "The name can be up to 40 characters and must start with a letter.",
211
191
  "name": "name",
212
192
  "required": true,
213
- "summary": "Name of the generated Apex trigger",
193
+ "summary": "Name of the Experience Cloud site to generate.",
214
194
  "hasDynamicHelp": false,
215
195
  "multiple": false,
216
196
  "type": "option"
217
197
  },
218
- "template": {
198
+ "template-name": {
219
199
  "char": "t",
220
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
221
- "name": "template",
222
- "summary": "Template to use for file creation.",
223
- "default": "ApexTrigger",
200
+ "name": "template-name",
201
+ "required": true,
202
+ "summary": "Template to use when generating the site.",
224
203
  "hasDynamicHelp": false,
225
204
  "multiple": false,
226
205
  "options": [
227
- "ApexTrigger"
206
+ "Build Your Own (LWR)"
228
207
  ],
229
208
  "type": "option"
230
209
  },
231
- "output-dir": {
232
- "aliases": [
233
- "outputdir"
234
- ],
235
- "char": "d",
236
- "deprecateAliases": true,
237
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
238
- "name": "output-dir",
239
- "summary": "Directory for saving the created files.",
240
- "default": ".",
210
+ "url-path-prefix": {
211
+ "char": "p",
212
+ "name": "url-path-prefix",
213
+ "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
214
+ "default": "",
241
215
  "hasDynamicHelp": false,
242
216
  "multiple": false,
243
217
  "type": "option"
244
218
  },
245
- "api-version": {
246
- "aliases": [
247
- "apiversion"
248
- ],
249
- "deprecateAliases": true,
250
- "description": "Override the api version used for api requests made by this command",
251
- "name": "api-version",
219
+ "admin-email": {
220
+ "char": "e",
221
+ "name": "admin-email",
222
+ "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
252
223
  "hasDynamicHelp": false,
253
224
  "multiple": false,
254
225
  "type": "option"
255
226
  },
256
- "sobject": {
257
- "char": "s",
258
- "name": "sobject",
259
- "summary": "Salesforce object to generate a trigger on.",
260
- "default": "SOBJECT",
261
- "hasDynamicHelp": false,
262
- "multiple": false,
263
- "type": "option"
264
- },
265
- "event": {
266
- "aliases": [
267
- "triggerevents"
268
- ],
269
- "char": "e",
270
- "deprecateAliases": true,
271
- "name": "event",
272
- "summary": "Events that fire the trigger.",
273
- "default": [
274
- "before insert"
275
- ],
276
- "delimiter": ",",
277
- "hasDynamicHelp": false,
278
- "multiple": true,
279
- "options": [
280
- "before insert",
281
- "before update",
282
- "before delete",
283
- "after insert",
284
- "after update",
285
- "after delete",
286
- "after undelete"
287
- ],
288
- "type": "option"
289
- },
290
- "loglevel": {
291
- "deprecated": {
292
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
293
- },
294
- "hidden": true,
295
- "name": "loglevel",
227
+ "output-dir": {
228
+ "char": "d",
229
+ "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
230
+ "name": "output-dir",
231
+ "summary": "Directory to generate the site files in.",
296
232
  "hasDynamicHelp": false,
297
233
  "multiple": false,
298
234
  "type": "option"
299
235
  }
300
236
  },
301
- "hasDynamicHelp": false,
237
+ "hasDynamicHelp": true,
302
238
  "hiddenAliases": [],
303
- "id": "template:generate:apex:trigger",
239
+ "id": "template:generate:digital-experience:site",
304
240
  "pluginAlias": "@salesforce/plugin-templates",
305
241
  "pluginName": "@salesforce/plugin-templates",
306
242
  "pluginType": "core",
243
+ "state": "preview",
307
244
  "strict": true,
308
- "summary": "Generate an Apex trigger.",
245
+ "summary": "Generate an Experience Cloud site.",
309
246
  "enableJsonFlag": true,
310
247
  "isESM": true,
311
248
  "relativePath": [
@@ -313,75 +250,48 @@
313
250
  "commands",
314
251
  "template",
315
252
  "generate",
316
- "apex",
317
- "trigger.js"
318
- ],
319
- "aliasPermutations": [
320
- "force:apex:trigger:create",
321
- "apex:force:trigger:create",
322
- "apex:trigger:force:create",
323
- "apex:trigger:create:force",
324
- "force:trigger:apex:create",
325
- "trigger:force:apex:create",
326
- "trigger:apex:force:create",
327
- "trigger:apex:create:force",
328
- "force:trigger:create:apex",
329
- "trigger:force:create:apex",
330
- "trigger:create:force:apex",
331
- "trigger:create:apex:force",
332
- "force:apex:create:trigger",
333
- "apex:force:create:trigger",
334
- "apex:create:force:trigger",
335
- "apex:create:trigger:force",
336
- "force:create:apex:trigger",
337
- "create:force:apex:trigger",
338
- "create:apex:force:trigger",
339
- "create:apex:trigger:force",
340
- "force:create:trigger:apex",
341
- "create:force:trigger:apex",
342
- "create:trigger:force:apex",
343
- "create:trigger:apex:force",
344
- "apex:generate:trigger",
345
- "generate:apex:trigger",
346
- "generate:trigger:apex",
347
- "apex:trigger:generate",
348
- "trigger:apex:generate",
349
- "trigger:generate:apex"
253
+ "digital-experience",
254
+ "site.js"
350
255
  ],
256
+ "aliasPermutations": [],
351
257
  "permutations": [
352
- "template:generate:apex:trigger",
353
- "generate:template:apex:trigger",
354
- "generate:apex:template:trigger",
355
- "generate:apex:trigger:template",
356
- "template:apex:generate:trigger",
357
- "apex:template:generate:trigger",
358
- "apex:generate:template:trigger",
359
- "apex:generate:trigger:template",
360
- "template:apex:trigger:generate",
361
- "apex:template:trigger:generate",
362
- "apex:trigger:template:generate",
363
- "apex:trigger:generate:template",
364
- "template:generate:trigger:apex",
365
- "generate:template:trigger:apex",
366
- "generate:trigger:template:apex",
367
- "generate:trigger:apex:template",
368
- "template:trigger:generate:apex",
369
- "trigger:template:generate:apex",
370
- "trigger:generate:template:apex",
371
- "trigger:generate:apex:template",
372
- "template:trigger:apex:generate",
373
- "trigger:template:apex:generate",
374
- "trigger:apex:template:generate",
375
- "trigger:apex:generate:template"
258
+ "template:generate:digital-experience:site",
259
+ "generate:template:digital-experience:site",
260
+ "generate:digital-experience:template:site",
261
+ "generate:digital-experience:site:template",
262
+ "template:digital-experience:generate:site",
263
+ "digital-experience:template:generate:site",
264
+ "digital-experience:generate:template:site",
265
+ "digital-experience:generate:site:template",
266
+ "template:digital-experience:site:generate",
267
+ "digital-experience:template:site:generate",
268
+ "digital-experience:site:template:generate",
269
+ "digital-experience:site:generate:template",
270
+ "template:generate:site:digital-experience",
271
+ "generate:template:site:digital-experience",
272
+ "generate:site:template:digital-experience",
273
+ "generate:site:digital-experience:template",
274
+ "template:site:generate:digital-experience",
275
+ "site:template:generate:digital-experience",
276
+ "site:generate:template:digital-experience",
277
+ "site:generate:digital-experience:template",
278
+ "template:site:digital-experience:generate",
279
+ "site:template:digital-experience:generate",
280
+ "site:digital-experience:template:generate",
281
+ "site:digital-experience:generate:template"
376
282
  ]
377
283
  },
378
- "template:generate:digital-experience:site": {
379
- "aliases": [],
284
+ "template:generate:apex:class": {
285
+ "aliases": [
286
+ "force:apex:class:create",
287
+ "apex:generate:class"
288
+ ],
380
289
  "args": {},
381
- "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
290
+ "deprecateAliases": true,
291
+ "description": "Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called \"classes\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
382
292
  "examples": [
383
- "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
384
- "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
293
+ "Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyClass",
294
+ "Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n<%= config.bin %> <%= command.id %> --name MyClass --output-dir force-app/main/default/classes"
385
295
  ],
386
296
  "flags": {
387
297
  "json": {
@@ -399,72 +309,81 @@
399
309
  "multiple": false,
400
310
  "type": "option"
401
311
  },
402
- "target-org": {
403
- "char": "o",
404
- "name": "target-org",
405
- "noCacheDefault": true,
406
- "summary": "Username or alias of the target org.",
407
- "hasDynamicHelp": true,
408
- "multiple": false,
409
- "type": "option"
410
- },
411
312
  "name": {
313
+ "aliases": [
314
+ "classname"
315
+ ],
412
316
  "char": "n",
317
+ "deprecateAliases": true,
318
+ "description": "The name can be up to 40 characters and must start with a letter.",
413
319
  "name": "name",
414
320
  "required": true,
415
- "summary": "Name of the Experience Cloud site to generate.",
321
+ "summary": "Name of the generated Apex class.",
416
322
  "hasDynamicHelp": false,
417
323
  "multiple": false,
418
324
  "type": "option"
419
325
  },
420
- "template-name": {
326
+ "template": {
421
327
  "char": "t",
422
- "name": "template-name",
423
- "required": true,
424
- "summary": "Template to use when generating the site.",
328
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
329
+ "name": "template",
330
+ "summary": "Template to use for file creation.",
331
+ "default": "DefaultApexClass",
425
332
  "hasDynamicHelp": false,
426
333
  "multiple": false,
427
334
  "options": [
428
- "Build Your Own (LWR)"
335
+ "ApexException",
336
+ "ApexUnitTest",
337
+ "BasicUnitTest",
338
+ "DefaultApexClass",
339
+ "InboundEmailService"
429
340
  ],
430
341
  "type": "option"
431
342
  },
432
- "url-path-prefix": {
433
- "char": "p",
434
- "name": "url-path-prefix",
435
- "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
436
- "default": "",
343
+ "output-dir": {
344
+ "aliases": [
345
+ "outputdir"
346
+ ],
347
+ "char": "d",
348
+ "deprecateAliases": true,
349
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
350
+ "name": "output-dir",
351
+ "summary": "Directory for saving the created files.",
352
+ "default": ".",
437
353
  "hasDynamicHelp": false,
438
354
  "multiple": false,
439
355
  "type": "option"
440
356
  },
441
- "admin-email": {
442
- "char": "e",
443
- "name": "admin-email",
444
- "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
357
+ "api-version": {
358
+ "aliases": [
359
+ "apiversion"
360
+ ],
361
+ "deprecateAliases": true,
362
+ "description": "Override the api version used for api requests made by this command",
363
+ "name": "api-version",
445
364
  "hasDynamicHelp": false,
446
365
  "multiple": false,
447
366
  "type": "option"
448
367
  },
449
- "output-dir": {
450
- "char": "d",
451
- "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
452
- "name": "output-dir",
453
- "summary": "Directory to generate the site files in.",
368
+ "loglevel": {
369
+ "deprecated": {
370
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
371
+ },
372
+ "hidden": true,
373
+ "name": "loglevel",
454
374
  "hasDynamicHelp": false,
455
375
  "multiple": false,
456
376
  "type": "option"
457
377
  }
458
378
  },
459
- "hasDynamicHelp": true,
379
+ "hasDynamicHelp": false,
460
380
  "hiddenAliases": [],
461
- "id": "template:generate:digital-experience:site",
381
+ "id": "template:generate:apex:class",
462
382
  "pluginAlias": "@salesforce/plugin-templates",
463
383
  "pluginName": "@salesforce/plugin-templates",
464
384
  "pluginType": "core",
465
- "state": "preview",
466
385
  "strict": true,
467
- "summary": "Generate an Experience Cloud site.",
386
+ "summary": "Generate an Apex class.",
468
387
  "enableJsonFlag": true,
469
388
  "isESM": true,
470
389
  "relativePath": [
@@ -472,47 +391,80 @@
472
391
  "commands",
473
392
  "template",
474
393
  "generate",
475
- "digital-experience",
476
- "site.js"
394
+ "apex",
395
+ "class.js"
396
+ ],
397
+ "aliasPermutations": [
398
+ "force:apex:class:create",
399
+ "apex:force:class:create",
400
+ "apex:class:force:create",
401
+ "apex:class:create:force",
402
+ "force:class:apex:create",
403
+ "class:force:apex:create",
404
+ "class:apex:force:create",
405
+ "class:apex:create:force",
406
+ "force:class:create:apex",
407
+ "class:force:create:apex",
408
+ "class:create:force:apex",
409
+ "class:create:apex:force",
410
+ "force:apex:create:class",
411
+ "apex:force:create:class",
412
+ "apex:create:force:class",
413
+ "apex:create:class:force",
414
+ "force:create:apex:class",
415
+ "create:force:apex:class",
416
+ "create:apex:force:class",
417
+ "create:apex:class:force",
418
+ "force:create:class:apex",
419
+ "create:force:class:apex",
420
+ "create:class:force:apex",
421
+ "create:class:apex:force",
422
+ "apex:generate:class",
423
+ "generate:apex:class",
424
+ "generate:class:apex",
425
+ "apex:class:generate",
426
+ "class:apex:generate",
427
+ "class:generate:apex"
477
428
  ],
478
- "aliasPermutations": [],
479
429
  "permutations": [
480
- "template:generate:digital-experience:site",
481
- "generate:template:digital-experience:site",
482
- "generate:digital-experience:template:site",
483
- "generate:digital-experience:site:template",
484
- "template:digital-experience:generate:site",
485
- "digital-experience:template:generate:site",
486
- "digital-experience:generate:template:site",
487
- "digital-experience:generate:site:template",
488
- "template:digital-experience:site:generate",
489
- "digital-experience:template:site:generate",
490
- "digital-experience:site:template:generate",
491
- "digital-experience:site:generate:template",
492
- "template:generate:site:digital-experience",
493
- "generate:template:site:digital-experience",
494
- "generate:site:template:digital-experience",
495
- "generate:site:digital-experience:template",
496
- "template:site:generate:digital-experience",
497
- "site:template:generate:digital-experience",
498
- "site:generate:template:digital-experience",
499
- "site:generate:digital-experience:template",
500
- "template:site:digital-experience:generate",
501
- "site:template:digital-experience:generate",
502
- "site:digital-experience:template:generate",
503
- "site:digital-experience:generate:template"
430
+ "template:generate:apex:class",
431
+ "generate:template:apex:class",
432
+ "generate:apex:template:class",
433
+ "generate:apex:class:template",
434
+ "template:apex:generate:class",
435
+ "apex:template:generate:class",
436
+ "apex:generate:template:class",
437
+ "apex:generate:class:template",
438
+ "template:apex:class:generate",
439
+ "apex:template:class:generate",
440
+ "apex:class:template:generate",
441
+ "apex:class:generate:template",
442
+ "template:generate:class:apex",
443
+ "generate:template:class:apex",
444
+ "generate:class:template:apex",
445
+ "generate:class:apex:template",
446
+ "template:class:generate:apex",
447
+ "class:template:generate:apex",
448
+ "class:generate:template:apex",
449
+ "class:generate:apex:template",
450
+ "template:class:apex:generate",
451
+ "class:template:apex:generate",
452
+ "class:apex:template:generate",
453
+ "class:apex:generate:template"
504
454
  ]
505
455
  },
506
- "template:generate:analytics:template": {
456
+ "template:generate:apex:trigger": {
507
457
  "aliases": [
508
- "force:analytics:template:create",
509
- "analytics:generate:template"
458
+ "force:apex:trigger:create",
459
+ "apex:generate:trigger"
510
460
  ],
511
461
  "args": {},
512
462
  "deprecateAliases": true,
513
- "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
463
+ "description": "Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called \"triggers\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.\n\nIf you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.",
514
464
  "examples": [
515
- "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
465
+ "Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger",
466
+ "Similar to the previous example, but generate the files in the \"force-app/main/default/triggers\" directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger --output-dir force-app/main/default/triggers",
467
+ "Generate files for a trigger that fires on the Account object before and after an insert:\n<%= config.bin %> <%= command.id %> --name MyTrigger --sobject Account --event \"before insert,after insert\""
516
468
  ],
517
469
  "flags": {
518
470
  "json": {
@@ -530,6 +482,33 @@
530
482
  "multiple": false,
531
483
  "type": "option"
532
484
  },
485
+ "name": {
486
+ "aliases": [
487
+ "triggername"
488
+ ],
489
+ "char": "n",
490
+ "deprecateAliases": true,
491
+ "description": "The name can be up to 40 characters and must start with a letter.",
492
+ "name": "name",
493
+ "required": true,
494
+ "summary": "Name of the generated Apex trigger",
495
+ "hasDynamicHelp": false,
496
+ "multiple": false,
497
+ "type": "option"
498
+ },
499
+ "template": {
500
+ "char": "t",
501
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
502
+ "name": "template",
503
+ "summary": "Template to use for file creation.",
504
+ "default": "ApexTrigger",
505
+ "hasDynamicHelp": false,
506
+ "multiple": false,
507
+ "options": [
508
+ "ApexTrigger"
509
+ ],
510
+ "type": "option"
511
+ },
533
512
  "output-dir": {
534
513
  "aliases": [
535
514
  "outputdir"
@@ -555,17 +534,38 @@
555
534
  "multiple": false,
556
535
  "type": "option"
557
536
  },
558
- "name": {
537
+ "sobject": {
538
+ "char": "s",
539
+ "name": "sobject",
540
+ "summary": "Salesforce object to generate a trigger on.",
541
+ "default": "SOBJECT",
542
+ "hasDynamicHelp": false,
543
+ "multiple": false,
544
+ "type": "option"
545
+ },
546
+ "event": {
559
547
  "aliases": [
560
- "templatename"
548
+ "triggerevents"
561
549
  ],
562
- "char": "n",
550
+ "char": "e",
563
551
  "deprecateAliases": true,
564
- "name": "name",
565
- "required": true,
566
- "summary": "Name of the Analytics template.",
552
+ "name": "event",
553
+ "summary": "Events that fire the trigger.",
554
+ "default": [
555
+ "before insert"
556
+ ],
557
+ "delimiter": ",",
567
558
  "hasDynamicHelp": false,
568
- "multiple": false,
559
+ "multiple": true,
560
+ "options": [
561
+ "before insert",
562
+ "before update",
563
+ "before delete",
564
+ "after insert",
565
+ "after update",
566
+ "after delete",
567
+ "after undelete"
568
+ ],
569
569
  "type": "option"
570
570
  },
571
571
  "loglevel": {
@@ -581,12 +581,12 @@
581
581
  },
582
582
  "hasDynamicHelp": false,
583
583
  "hiddenAliases": [],
584
- "id": "template:generate:analytics:template",
584
+ "id": "template:generate:apex:trigger",
585
585
  "pluginAlias": "@salesforce/plugin-templates",
586
586
  "pluginName": "@salesforce/plugin-templates",
587
587
  "pluginType": "core",
588
588
  "strict": true,
589
- "summary": "Generate a simple Analytics template.",
589
+ "summary": "Generate an Apex trigger.",
590
590
  "enableJsonFlag": true,
591
591
  "isESM": true,
592
592
  "relativePath": [
@@ -594,66 +594,66 @@
594
594
  "commands",
595
595
  "template",
596
596
  "generate",
597
- "analytics",
598
- "template.js"
597
+ "apex",
598
+ "trigger.js"
599
599
  ],
600
600
  "aliasPermutations": [
601
- "force:analytics:template:create",
602
- "analytics:force:template:create",
603
- "analytics:template:force:create",
604
- "analytics:template:create:force",
605
- "force:template:analytics:create",
606
- "template:force:analytics:create",
607
- "template:analytics:force:create",
608
- "template:analytics:create:force",
609
- "force:template:create:analytics",
610
- "template:force:create:analytics",
611
- "template:create:force:analytics",
612
- "template:create:analytics:force",
613
- "force:analytics:create:template",
614
- "analytics:force:create:template",
615
- "analytics:create:force:template",
616
- "analytics:create:template:force",
617
- "force:create:analytics:template",
618
- "create:force:analytics:template",
619
- "create:analytics:force:template",
620
- "create:analytics:template:force",
621
- "force:create:template:analytics",
622
- "create:force:template:analytics",
623
- "create:template:force:analytics",
624
- "create:template:analytics:force",
625
- "analytics:generate:template",
626
- "generate:analytics:template",
627
- "generate:template:analytics",
628
- "analytics:template:generate",
629
- "template:analytics:generate",
630
- "template:generate:analytics"
601
+ "force:apex:trigger:create",
602
+ "apex:force:trigger:create",
603
+ "apex:trigger:force:create",
604
+ "apex:trigger:create:force",
605
+ "force:trigger:apex:create",
606
+ "trigger:force:apex:create",
607
+ "trigger:apex:force:create",
608
+ "trigger:apex:create:force",
609
+ "force:trigger:create:apex",
610
+ "trigger:force:create:apex",
611
+ "trigger:create:force:apex",
612
+ "trigger:create:apex:force",
613
+ "force:apex:create:trigger",
614
+ "apex:force:create:trigger",
615
+ "apex:create:force:trigger",
616
+ "apex:create:trigger:force",
617
+ "force:create:apex:trigger",
618
+ "create:force:apex:trigger",
619
+ "create:apex:force:trigger",
620
+ "create:apex:trigger:force",
621
+ "force:create:trigger:apex",
622
+ "create:force:trigger:apex",
623
+ "create:trigger:force:apex",
624
+ "create:trigger:apex:force",
625
+ "apex:generate:trigger",
626
+ "generate:apex:trigger",
627
+ "generate:trigger:apex",
628
+ "apex:trigger:generate",
629
+ "trigger:apex:generate",
630
+ "trigger:generate:apex"
631
631
  ],
632
632
  "permutations": [
633
- "template:generate:analytics:template",
634
- "generate:template:analytics:template",
635
- "generate:analytics:template:template",
636
- "generate:analytics:template:template",
637
- "template:analytics:generate:template",
638
- "analytics:template:generate:template",
639
- "analytics:generate:template:template",
640
- "analytics:generate:template:template",
641
- "template:analytics:template:generate",
642
- "analytics:template:template:generate",
643
- "analytics:template:template:generate",
644
- "analytics:template:generate:template",
645
- "template:generate:template:analytics",
646
- "generate:template:template:analytics",
647
- "generate:template:template:analytics",
648
- "generate:template:analytics:template",
649
- "template:template:generate:analytics",
650
- "template:template:generate:analytics",
651
- "template:generate:template:analytics",
652
- "template:generate:analytics:template",
653
- "template:template:analytics:generate",
654
- "template:template:analytics:generate",
655
- "template:analytics:template:generate",
656
- "template:analytics:generate:template"
633
+ "template:generate:apex:trigger",
634
+ "generate:template:apex:trigger",
635
+ "generate:apex:template:trigger",
636
+ "generate:apex:trigger:template",
637
+ "template:apex:generate:trigger",
638
+ "apex:template:generate:trigger",
639
+ "apex:generate:template:trigger",
640
+ "apex:generate:trigger:template",
641
+ "template:apex:trigger:generate",
642
+ "apex:template:trigger:generate",
643
+ "apex:trigger:template:generate",
644
+ "apex:trigger:generate:template",
645
+ "template:generate:trigger:apex",
646
+ "generate:template:trigger:apex",
647
+ "generate:trigger:template:apex",
648
+ "generate:trigger:apex:template",
649
+ "template:trigger:generate:apex",
650
+ "trigger:template:generate:apex",
651
+ "trigger:generate:template:apex",
652
+ "trigger:generate:apex:template",
653
+ "template:trigger:apex:generate",
654
+ "trigger:template:apex:generate",
655
+ "trigger:apex:template:generate",
656
+ "trigger:apex:generate:template"
657
657
  ]
658
658
  },
659
659
  "template:generate:flexipage": {
@@ -1913,16 +1913,18 @@
1913
1913
  "project:generate:template"
1914
1914
  ]
1915
1915
  },
1916
- "template:generate:ui-bundle": {
1916
+ "template:generate:static-resource": {
1917
1917
  "aliases": [
1918
- "ui-bundle:generate"
1918
+ "force:staticresource:create",
1919
+ "static-resource:generate"
1919
1920
  ],
1920
1921
  "args": {},
1921
- "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 speciic UI framework, such as React. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
1922
+ "deprecateAliases": true,
1923
+ "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.",
1922
1924
  "examples": [
1923
- "Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
1924
- "Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
1925
- "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"
1925
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
1926
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
1927
+ "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"
1926
1928
  ],
1927
1929
  "flags": {
1928
1930
  "json": {
@@ -1941,63 +1943,76 @@
1941
1943
  "type": "option"
1942
1944
  },
1943
1945
  "name": {
1946
+ "aliases": [
1947
+ "resourcename"
1948
+ ],
1944
1949
  "char": "n",
1950
+ "deprecateAliases": true,
1945
1951
  "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.",
1946
1952
  "name": "name",
1947
1953
  "required": true,
1948
- "summary": "API name of the generated UI bundle.",
1954
+ "summary": "Name of the generated static resource.",
1949
1955
  "hasDynamicHelp": false,
1950
1956
  "multiple": false,
1951
1957
  "type": "option"
1952
1958
  },
1953
- "template": {
1954
- "char": "t",
1955
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
1956
- "name": "template",
1957
- "summary": "Template to use when creating the files for a specific UI framework.",
1958
- "default": "default",
1959
- "hasDynamicHelp": false,
1960
- "multiple": false,
1961
- "options": [
1962
- "default",
1963
- "reactbasic"
1959
+ "type": {
1960
+ "aliases": [
1961
+ "contenttype"
1964
1962
  ],
1965
- "type": "option"
1966
- },
1967
- "label": {
1968
- "char": "l",
1969
- "description": "If not specified, the label is derived from the name.",
1970
- "name": "label",
1971
- "summary": "Master label for the UI bundle.",
1963
+ "deprecateAliases": true,
1964
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
1965
+ "name": "type",
1966
+ "summary": "Content type (mime type) of the generated static resource.",
1967
+ "default": "application/zip",
1972
1968
  "hasDynamicHelp": false,
1973
1969
  "multiple": false,
1974
1970
  "type": "option"
1975
1971
  },
1976
1972
  "output-dir": {
1973
+ "aliases": [
1974
+ "outputdir"
1975
+ ],
1977
1976
  "char": "d",
1978
- "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)",
1977
+ "deprecateAliases": true,
1978
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1979
1979
  "name": "output-dir",
1980
- "summary": "Directory into which the files are created.",
1980
+ "summary": "Directory for saving the created files.",
1981
+ "default": ".",
1981
1982
  "hasDynamicHelp": false,
1982
1983
  "multiple": false,
1983
1984
  "type": "option"
1984
1985
  },
1985
1986
  "api-version": {
1987
+ "aliases": [
1988
+ "apiversion"
1989
+ ],
1990
+ "deprecateAliases": true,
1986
1991
  "description": "Override the api version used for api requests made by this command",
1987
1992
  "name": "api-version",
1988
1993
  "hasDynamicHelp": false,
1989
1994
  "multiple": false,
1990
1995
  "type": "option"
1996
+ },
1997
+ "loglevel": {
1998
+ "deprecated": {
1999
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
2000
+ },
2001
+ "hidden": true,
2002
+ "name": "loglevel",
2003
+ "hasDynamicHelp": false,
2004
+ "multiple": false,
2005
+ "type": "option"
1991
2006
  }
1992
2007
  },
1993
2008
  "hasDynamicHelp": false,
1994
2009
  "hiddenAliases": [],
1995
- "id": "template:generate:ui-bundle",
2010
+ "id": "template:generate:static-resource",
1996
2011
  "pluginAlias": "@salesforce/plugin-templates",
1997
2012
  "pluginName": "@salesforce/plugin-templates",
1998
2013
  "pluginType": "core",
1999
2014
  "strict": true,
2000
- "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.",
2015
+ "summary": "Generate a static resource.",
2001
2016
  "enableJsonFlag": true,
2002
2017
  "isESM": true,
2003
2018
  "relativePath": [
@@ -2005,34 +2020,38 @@
2005
2020
  "commands",
2006
2021
  "template",
2007
2022
  "generate",
2008
- "ui-bundle",
2023
+ "static-resource",
2009
2024
  "index.js"
2010
2025
  ],
2011
2026
  "aliasPermutations": [
2012
- "ui-bundle:generate",
2013
- "generate:ui-bundle"
2027
+ "force:staticresource:create",
2028
+ "staticresource:force:create",
2029
+ "staticresource:create:force",
2030
+ "force:create:staticresource",
2031
+ "create:force:staticresource",
2032
+ "create:staticresource:force",
2033
+ "static-resource:generate",
2034
+ "generate:static-resource"
2014
2035
  ],
2015
2036
  "permutations": [
2016
- "template:generate:ui-bundle",
2017
- "generate:template:ui-bundle",
2018
- "generate:ui-bundle:template",
2019
- "template:ui-bundle:generate",
2020
- "ui-bundle:template:generate",
2021
- "ui-bundle:generate:template"
2037
+ "template:generate:static-resource",
2038
+ "generate:template:static-resource",
2039
+ "generate:static-resource:template",
2040
+ "template:static-resource:generate",
2041
+ "static-resource:template:generate",
2042
+ "static-resource:generate:template"
2022
2043
  ]
2023
2044
  },
2024
- "template:generate:static-resource": {
2045
+ "template:generate:ui-bundle": {
2025
2046
  "aliases": [
2026
- "force:staticresource:create",
2027
- "static-resource:generate"
2047
+ "ui-bundle:generate"
2028
2048
  ],
2029
2049
  "args": {},
2030
- "deprecateAliases": true,
2031
- "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.",
2050
+ "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 speciic UI framework, such as React. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
2032
2051
  "examples": [
2033
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
2034
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
2035
- "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"
2052
+ "Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
2053
+ "Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
2054
+ "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"
2036
2055
  ],
2037
2056
  "flags": {
2038
2057
  "json": {
@@ -2051,76 +2070,63 @@
2051
2070
  "type": "option"
2052
2071
  },
2053
2072
  "name": {
2054
- "aliases": [
2055
- "resourcename"
2056
- ],
2057
2073
  "char": "n",
2058
- "deprecateAliases": true,
2059
2074
  "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.",
2060
2075
  "name": "name",
2061
2076
  "required": true,
2062
- "summary": "Name of the generated static resource.",
2077
+ "summary": "API name of the generated UI bundle.",
2063
2078
  "hasDynamicHelp": false,
2064
2079
  "multiple": false,
2065
2080
  "type": "option"
2066
2081
  },
2067
- "type": {
2068
- "aliases": [
2069
- "contenttype"
2082
+ "template": {
2083
+ "char": "t",
2084
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
2085
+ "name": "template",
2086
+ "summary": "Template to use when creating the files for a specific UI framework.",
2087
+ "default": "default",
2088
+ "hasDynamicHelp": false,
2089
+ "multiple": false,
2090
+ "options": [
2091
+ "default",
2092
+ "reactbasic"
2070
2093
  ],
2071
- "deprecateAliases": true,
2072
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
2073
- "name": "type",
2074
- "summary": "Content type (mime type) of the generated static resource.",
2075
- "default": "application/zip",
2094
+ "type": "option"
2095
+ },
2096
+ "label": {
2097
+ "char": "l",
2098
+ "description": "If not specified, the label is derived from the name.",
2099
+ "name": "label",
2100
+ "summary": "Master label for the UI bundle.",
2076
2101
  "hasDynamicHelp": false,
2077
2102
  "multiple": false,
2078
2103
  "type": "option"
2079
2104
  },
2080
2105
  "output-dir": {
2081
- "aliases": [
2082
- "outputdir"
2083
- ],
2084
2106
  "char": "d",
2085
- "deprecateAliases": true,
2086
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2107
+ "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)",
2087
2108
  "name": "output-dir",
2088
- "summary": "Directory for saving the created files.",
2089
- "default": ".",
2109
+ "summary": "Directory into which the files are created.",
2090
2110
  "hasDynamicHelp": false,
2091
2111
  "multiple": false,
2092
2112
  "type": "option"
2093
2113
  },
2094
2114
  "api-version": {
2095
- "aliases": [
2096
- "apiversion"
2097
- ],
2098
- "deprecateAliases": true,
2099
2115
  "description": "Override the api version used for api requests made by this command",
2100
2116
  "name": "api-version",
2101
2117
  "hasDynamicHelp": false,
2102
2118
  "multiple": false,
2103
2119
  "type": "option"
2104
- },
2105
- "loglevel": {
2106
- "deprecated": {
2107
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
2108
- },
2109
- "hidden": true,
2110
- "name": "loglevel",
2111
- "hasDynamicHelp": false,
2112
- "multiple": false,
2113
- "type": "option"
2114
2120
  }
2115
2121
  },
2116
2122
  "hasDynamicHelp": false,
2117
2123
  "hiddenAliases": [],
2118
- "id": "template:generate:static-resource",
2124
+ "id": "template:generate:ui-bundle",
2119
2125
  "pluginAlias": "@salesforce/plugin-templates",
2120
2126
  "pluginName": "@salesforce/plugin-templates",
2121
2127
  "pluginType": "core",
2122
2128
  "strict": true,
2123
- "summary": "Generate a static resource.",
2129
+ "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.",
2124
2130
  "enableJsonFlag": true,
2125
2131
  "isESM": true,
2126
2132
  "relativePath": [
@@ -2128,26 +2134,20 @@
2128
2134
  "commands",
2129
2135
  "template",
2130
2136
  "generate",
2131
- "static-resource",
2137
+ "ui-bundle",
2132
2138
  "index.js"
2133
2139
  ],
2134
2140
  "aliasPermutations": [
2135
- "force:staticresource:create",
2136
- "staticresource:force:create",
2137
- "staticresource:create:force",
2138
- "force:create:staticresource",
2139
- "create:force:staticresource",
2140
- "create:staticresource:force",
2141
- "static-resource:generate",
2142
- "generate:static-resource"
2141
+ "ui-bundle:generate",
2142
+ "generate:ui-bundle"
2143
2143
  ],
2144
2144
  "permutations": [
2145
- "template:generate:static-resource",
2146
- "generate:template:static-resource",
2147
- "generate:static-resource:template",
2148
- "template:static-resource:generate",
2149
- "static-resource:template:generate",
2150
- "static-resource:generate:template"
2145
+ "template:generate:ui-bundle",
2146
+ "generate:template:ui-bundle",
2147
+ "generate:ui-bundle:template",
2148
+ "template:ui-bundle:generate",
2149
+ "ui-bundle:template:generate",
2150
+ "ui-bundle:generate:template"
2151
2151
  ]
2152
2152
  },
2153
2153
  "template:generate:visualforce:component": {
@@ -2506,5 +2506,5 @@
2506
2506
  ]
2507
2507
  }
2508
2508
  },
2509
- "version": "56.13.2"
2509
+ "version": "56.13.3"
2510
2510
  }