@salesforce/plugin-templates 56.6.0 → 56.7.1

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 (47) hide show
  1. package/README.md +258 -247
  2. package/lib/commands/{analytics/generate → template/generate/analytics}/template.js +3 -3
  3. package/lib/commands/template/generate/analytics/template.js.map +1 -0
  4. package/lib/commands/{lightning/generate → template/generate/lightning}/app.js +3 -3
  5. package/lib/commands/template/generate/lightning/app.js.map +1 -0
  6. package/lib/commands/{lightning/generate → template/generate/lightning}/component.js +3 -3
  7. package/lib/commands/template/generate/lightning/component.js.map +1 -0
  8. package/lib/commands/{lightning/generate → template/generate/lightning}/event.js +3 -3
  9. package/lib/commands/template/generate/lightning/event.js.map +1 -0
  10. package/lib/commands/{lightning/generate → template/generate/lightning}/interface.js +3 -3
  11. package/lib/commands/template/generate/lightning/interface.js.map +1 -0
  12. package/lib/commands/{lightning/generate → template/generate/lightning}/test.js +3 -3
  13. package/lib/commands/template/generate/lightning/test.js.map +1 -0
  14. package/lib/commands/{project/generate.js → template/generate/project/index.js} +4 -4
  15. package/lib/commands/template/generate/project/index.js.map +1 -0
  16. package/lib/commands/{static-resource/generate.js → template/generate/static-resource/index.js} +4 -4
  17. package/lib/commands/template/generate/static-resource/index.js.map +1 -0
  18. package/lib/commands/{visualforce/generate → template/generate/visualforce}/component.js +3 -3
  19. package/lib/commands/template/generate/visualforce/component.js.map +1 -0
  20. package/lib/commands/{visualforce/generate → template/generate/visualforce}/page.js +3 -3
  21. package/lib/commands/template/generate/visualforce/page.js.map +1 -0
  22. package/lib/commands/{webapp/generate.d.ts → template/generate/webapp/index.d.ts} +2 -0
  23. package/lib/commands/{webapp/generate.js → template/generate/webapp/index.js} +4 -2
  24. package/lib/commands/template/generate/webapp/index.js.map +1 -0
  25. package/oclif.manifest.json +873 -635
  26. package/package.json +22 -36
  27. package/lib/commands/analytics/generate/template.js.map +0 -1
  28. package/lib/commands/lightning/generate/app.js.map +0 -1
  29. package/lib/commands/lightning/generate/component.js.map +0 -1
  30. package/lib/commands/lightning/generate/event.js.map +0 -1
  31. package/lib/commands/lightning/generate/interface.js.map +0 -1
  32. package/lib/commands/lightning/generate/test.js.map +0 -1
  33. package/lib/commands/project/generate.js.map +0 -1
  34. package/lib/commands/static-resource/generate.js.map +0 -1
  35. package/lib/commands/visualforce/generate/component.js.map +0 -1
  36. package/lib/commands/visualforce/generate/page.js.map +0 -1
  37. package/lib/commands/webapp/generate.js.map +0 -1
  38. /package/lib/commands/{analytics/generate → template/generate/analytics}/template.d.ts +0 -0
  39. /package/lib/commands/{lightning/generate → template/generate/lightning}/app.d.ts +0 -0
  40. /package/lib/commands/{lightning/generate → template/generate/lightning}/component.d.ts +0 -0
  41. /package/lib/commands/{lightning/generate → template/generate/lightning}/event.d.ts +0 -0
  42. /package/lib/commands/{lightning/generate → template/generate/lightning}/interface.d.ts +0 -0
  43. /package/lib/commands/{lightning/generate → template/generate/lightning}/test.d.ts +0 -0
  44. /package/lib/commands/{project/generate.d.ts → template/generate/project/index.d.ts} +0 -0
  45. /package/lib/commands/{static-resource/generate.d.ts → template/generate/static-resource/index.d.ts} +0 -0
  46. /package/lib/commands/{visualforce/generate → template/generate/visualforce}/component.d.ts +0 -0
  47. /package/lib/commands/{visualforce/generate → template/generate/visualforce}/page.d.ts +0 -0
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "commands": {
3
- "project:generate": {
3
+ "template:generate:analytics:template": {
4
4
  "aliases": [
5
- "force:project:create"
5
+ "force:analytics:template:create",
6
+ "analytics:generate:template"
6
7
  ],
7
8
  "args": {},
8
9
  "deprecateAliases": true,
9
- "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
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.",
10
11
  "examples": [
11
- "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
12
- "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
13
- "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
14
- "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty"
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"
15
13
  ],
16
14
  "flags": {
17
15
  "json": {
@@ -29,35 +27,6 @@
29
27
  "multiple": false,
30
28
  "type": "option"
31
29
  },
32
- "name": {
33
- "aliases": [
34
- "projectname"
35
- ],
36
- "char": "n",
37
- "deprecateAliases": true,
38
- "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
39
- "name": "name",
40
- "required": true,
41
- "summary": "Name of the generated project.",
42
- "hasDynamicHelp": false,
43
- "multiple": false,
44
- "type": "option"
45
- },
46
- "template": {
47
- "char": "t",
48
- "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.",
49
- "name": "template",
50
- "summary": "Template to use for project creation.",
51
- "default": "standard",
52
- "hasDynamicHelp": false,
53
- "multiple": false,
54
- "options": [
55
- "standard",
56
- "empty",
57
- "analytics"
58
- ],
59
- "type": "option"
60
- },
61
30
  "output-dir": {
62
31
  "aliases": [
63
32
  "outputdir"
@@ -72,48 +41,26 @@
72
41
  "multiple": false,
73
42
  "type": "option"
74
43
  },
75
- "namespace": {
76
- "char": "s",
77
- "name": "namespace",
78
- "summary": "Namespace associated with this project and any connected scratch orgs.",
79
- "default": "",
80
- "hasDynamicHelp": false,
81
- "multiple": false,
82
- "type": "option"
83
- },
84
- "default-package-dir": {
44
+ "api-version": {
85
45
  "aliases": [
86
- "defaultpackagedir"
46
+ "apiversion"
87
47
  ],
88
- "char": "p",
89
48
  "deprecateAliases": true,
90
- "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
91
- "name": "default-package-dir",
92
- "summary": "Default package directory name.",
93
- "default": "force-app",
49
+ "description": "Override the api version used for api requests made by this command",
50
+ "name": "api-version",
94
51
  "hasDynamicHelp": false,
95
52
  "multiple": false,
96
53
  "type": "option"
97
54
  },
98
- "manifest": {
99
- "char": "x",
100
- "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
101
- "name": "manifest",
102
- "summary": "Generate a manifest (package.xml) for change-set based development.",
103
- "allowNo": false,
104
- "type": "boolean"
105
- },
106
- "login-url": {
55
+ "name": {
107
56
  "aliases": [
108
- "loginurl"
57
+ "templatename"
109
58
  ],
110
- "char": "l",
59
+ "char": "n",
111
60
  "deprecateAliases": true,
112
- "description": "Normally defaults to https://login.salesforce.com.",
113
- "hidden": true,
114
- "name": "login-url",
115
- "summary": "Salesforce instance login URL.",
116
- "default": "https://login.salesforce.com",
61
+ "name": "name",
62
+ "required": true,
63
+ "summary": "Name of the Analytics template.",
117
64
  "hasDynamicHelp": false,
118
65
  "multiple": false,
119
66
  "type": "option"
@@ -127,56 +74,96 @@
127
74
  "hasDynamicHelp": false,
128
75
  "multiple": false,
129
76
  "type": "option"
130
- },
131
- "api-version": {
132
- "description": "Override the api version used for api requests made by this command",
133
- "name": "api-version",
134
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
135
- "hasDynamicHelp": false,
136
- "multiple": false,
137
- "type": "option"
138
77
  }
139
78
  },
140
79
  "hasDynamicHelp": false,
141
80
  "hiddenAliases": [],
142
- "id": "project:generate",
81
+ "id": "template:generate:analytics:template",
143
82
  "pluginAlias": "@salesforce/plugin-templates",
144
83
  "pluginName": "@salesforce/plugin-templates",
145
84
  "pluginType": "core",
146
85
  "strict": true,
147
- "summary": "Generate a Salesforce DX project.",
86
+ "summary": "Generate a simple Analytics template.",
148
87
  "enableJsonFlag": true,
149
88
  "isESM": true,
150
89
  "relativePath": [
151
90
  "lib",
152
91
  "commands",
153
- "project",
154
- "generate.js"
92
+ "template",
93
+ "generate",
94
+ "analytics",
95
+ "template.js"
155
96
  ],
156
97
  "aliasPermutations": [
157
- "force:project:create",
158
- "project:force:create",
159
- "project:create:force",
160
- "force:create:project",
161
- "create:force:project",
162
- "create:project:force"
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"
163
128
  ],
164
129
  "permutations": [
165
- "project:generate",
166
- "generate:project"
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"
167
154
  ]
168
155
  },
169
- "static-resource:generate": {
156
+ "template:generate:apex:class": {
170
157
  "aliases": [
171
- "force:staticresource:create"
158
+ "force:apex:class:create",
159
+ "apex:generate:class"
172
160
  ],
173
161
  "args": {},
174
162
  "deprecateAliases": true,
175
- "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.",
163
+ "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.",
176
164
  "examples": [
177
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
178
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
179
- "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"
165
+ "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",
166
+ "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"
180
167
  ],
181
168
  "flags": {
182
169
  "json": {
@@ -196,29 +183,33 @@
196
183
  },
197
184
  "name": {
198
185
  "aliases": [
199
- "resourcename"
186
+ "classname"
200
187
  ],
201
188
  "char": "n",
202
189
  "deprecateAliases": true,
203
- "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.",
190
+ "description": "The name can be up to 40 characters and must start with a letter.",
204
191
  "name": "name",
205
192
  "required": true,
206
- "summary": "Name of the generated static resource.",
193
+ "summary": "Name of the generated Apex class.",
207
194
  "hasDynamicHelp": false,
208
195
  "multiple": false,
209
196
  "type": "option"
210
197
  },
211
- "type": {
212
- "aliases": [
213
- "contenttype"
214
- ],
215
- "deprecateAliases": true,
216
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
217
- "name": "type",
218
- "summary": "Content type (mime type) of the generated static resource.",
219
- "default": "application/zip",
198
+ "template": {
199
+ "char": "t",
200
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
201
+ "name": "template",
202
+ "summary": "Template to use for file creation.",
203
+ "default": "DefaultApexClass",
220
204
  "hasDynamicHelp": false,
221
205
  "multiple": false,
206
+ "options": [
207
+ "ApexException",
208
+ "ApexUnitTest",
209
+ "BasicUnitTest",
210
+ "DefaultApexClass",
211
+ "InboundEmailService"
212
+ ],
222
213
  "type": "option"
223
214
  },
224
215
  "output-dir": {
@@ -259,41 +250,93 @@
259
250
  },
260
251
  "hasDynamicHelp": false,
261
252
  "hiddenAliases": [],
262
- "id": "static-resource:generate",
253
+ "id": "template:generate:apex:class",
263
254
  "pluginAlias": "@salesforce/plugin-templates",
264
255
  "pluginName": "@salesforce/plugin-templates",
265
256
  "pluginType": "core",
266
257
  "strict": true,
267
- "summary": "Generate a static resource.",
258
+ "summary": "Generate an Apex class.",
268
259
  "enableJsonFlag": true,
269
260
  "isESM": true,
270
261
  "relativePath": [
271
262
  "lib",
272
263
  "commands",
273
- "static-resource",
274
- "generate.js"
264
+ "template",
265
+ "generate",
266
+ "apex",
267
+ "class.js"
275
268
  ],
276
269
  "aliasPermutations": [
277
- "force:staticresource:create",
278
- "staticresource:force:create",
279
- "staticresource:create:force",
280
- "force:create:staticresource",
281
- "create:force:staticresource",
282
- "create:staticresource:force"
270
+ "force:apex:class:create",
271
+ "apex:force:class:create",
272
+ "apex:class:force:create",
273
+ "apex:class:create:force",
274
+ "force:class:apex:create",
275
+ "class:force:apex:create",
276
+ "class:apex:force:create",
277
+ "class:apex:create:force",
278
+ "force:class:create:apex",
279
+ "class:force:create:apex",
280
+ "class:create:force:apex",
281
+ "class:create:apex:force",
282
+ "force:apex:create:class",
283
+ "apex:force:create:class",
284
+ "apex:create:force:class",
285
+ "apex:create:class:force",
286
+ "force:create:apex:class",
287
+ "create:force:apex:class",
288
+ "create:apex:force:class",
289
+ "create:apex:class:force",
290
+ "force:create:class:apex",
291
+ "create:force:class:apex",
292
+ "create:class:force:apex",
293
+ "create:class:apex:force",
294
+ "apex:generate:class",
295
+ "generate:apex:class",
296
+ "generate:class:apex",
297
+ "apex:class:generate",
298
+ "class:apex:generate",
299
+ "class:generate:apex"
283
300
  ],
284
301
  "permutations": [
285
- "static-resource:generate",
286
- "generate:static-resource"
302
+ "template:generate:apex:class",
303
+ "generate:template:apex:class",
304
+ "generate:apex:template:class",
305
+ "generate:apex:class:template",
306
+ "template:apex:generate:class",
307
+ "apex:template:generate:class",
308
+ "apex:generate:template:class",
309
+ "apex:generate:class:template",
310
+ "template:apex:class:generate",
311
+ "apex:template:class:generate",
312
+ "apex:class:template:generate",
313
+ "apex:class:generate:template",
314
+ "template:generate:class:apex",
315
+ "generate:template:class:apex",
316
+ "generate:class:template:apex",
317
+ "generate:class:apex:template",
318
+ "template:class:generate:apex",
319
+ "class:template:generate:apex",
320
+ "class:generate:template:apex",
321
+ "class:generate:apex:template",
322
+ "template:class:apex:generate",
323
+ "class:template:apex:generate",
324
+ "class:apex:template:generate",
325
+ "class:apex:generate:template"
287
326
  ]
288
327
  },
289
- "webapp:generate": {
290
- "aliases": [],
328
+ "template:generate:apex:trigger": {
329
+ "aliases": [
330
+ "force:apex:trigger:create",
331
+ "apex:generate:trigger"
332
+ ],
291
333
  "args": {},
292
- "description": "Generates a web application in the specified directory or the current working directory. The web application files are created in a folder with the designated name. Web application files must be contained in a parent directory called \"webapplications\" 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.",
334
+ "deprecateAliases": true,
335
+ "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.",
293
336
  "examples": [
294
- "Generate a web application called MyWebApp in the current directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp",
295
- "Generate a React-based web application:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
296
- "Generate the web application in the \"force-app/main/default/webapplications\" directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp --output-dir force-app/main/default/webapplications"
337
+ "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",
338
+ "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",
339
+ "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\""
297
340
  ],
298
341
  "flags": {
299
342
  "json": {
@@ -312,11 +355,15 @@
312
355
  "type": "option"
313
356
  },
314
357
  "name": {
358
+ "aliases": [
359
+ "triggername"
360
+ ],
315
361
  "char": "n",
316
- "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.",
362
+ "deprecateAliases": true,
363
+ "description": "The name can be up to 40 characters and must start with a letter.",
317
364
  "name": "name",
318
365
  "required": true,
319
- "summary": "Name of the generated web application.",
366
+ "summary": "Name of the generated Apex trigger",
320
367
  "hasDynamicHelp": false,
321
368
  "multiple": false,
322
369
  "type": "option"
@@ -326,73 +373,168 @@
326
373
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
327
374
  "name": "template",
328
375
  "summary": "Template to use for file creation.",
329
- "default": "default",
376
+ "default": "ApexTrigger",
330
377
  "hasDynamicHelp": false,
331
378
  "multiple": false,
332
379
  "options": [
333
- "default",
334
- "reactbasic"
380
+ "ApexTrigger"
335
381
  ],
336
382
  "type": "option"
337
383
  },
338
- "label": {
339
- "char": "l",
340
- "description": "If not specified, the label is derived from the name.",
341
- "name": "label",
342
- "summary": "Master label for the web application.",
343
- "hasDynamicHelp": false,
344
- "multiple": false,
345
- "type": "option"
346
- },
347
384
  "output-dir": {
385
+ "aliases": [
386
+ "outputdir"
387
+ ],
348
388
  "char": "d",
349
- "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 and defaults to the webapplications directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
389
+ "deprecateAliases": true,
390
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
350
391
  "name": "output-dir",
351
392
  "summary": "Directory for saving the created files.",
393
+ "default": ".",
352
394
  "hasDynamicHelp": false,
353
395
  "multiple": false,
354
396
  "type": "option"
355
397
  },
356
398
  "api-version": {
399
+ "aliases": [
400
+ "apiversion"
401
+ ],
402
+ "deprecateAliases": true,
357
403
  "description": "Override the api version used for api requests made by this command",
358
404
  "name": "api-version",
359
405
  "hasDynamicHelp": false,
360
406
  "multiple": false,
361
407
  "type": "option"
408
+ },
409
+ "sobject": {
410
+ "char": "s",
411
+ "name": "sobject",
412
+ "summary": "Salesforce object to generate a trigger on.",
413
+ "default": "SOBJECT",
414
+ "hasDynamicHelp": false,
415
+ "multiple": false,
416
+ "type": "option"
417
+ },
418
+ "event": {
419
+ "aliases": [
420
+ "triggerevents"
421
+ ],
422
+ "char": "e",
423
+ "deprecateAliases": true,
424
+ "name": "event",
425
+ "summary": "Events that fire the trigger.",
426
+ "default": [
427
+ "before insert"
428
+ ],
429
+ "delimiter": ",",
430
+ "hasDynamicHelp": false,
431
+ "multiple": true,
432
+ "options": [
433
+ "before insert",
434
+ "before update",
435
+ "before delete",
436
+ "after insert",
437
+ "after update",
438
+ "after delete",
439
+ "after undelete"
440
+ ],
441
+ "type": "option"
442
+ },
443
+ "loglevel": {
444
+ "deprecated": {
445
+ "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."
446
+ },
447
+ "hidden": true,
448
+ "name": "loglevel",
449
+ "hasDynamicHelp": false,
450
+ "multiple": false,
451
+ "type": "option"
362
452
  }
363
453
  },
364
454
  "hasDynamicHelp": false,
365
- "hidden": true,
366
455
  "hiddenAliases": [],
367
- "id": "webapp:generate",
456
+ "id": "template:generate:apex:trigger",
368
457
  "pluginAlias": "@salesforce/plugin-templates",
369
458
  "pluginName": "@salesforce/plugin-templates",
370
459
  "pluginType": "core",
371
460
  "strict": true,
372
- "summary": "Generate a web application.",
461
+ "summary": "Generate an Apex trigger.",
373
462
  "enableJsonFlag": true,
374
463
  "isESM": true,
375
464
  "relativePath": [
376
465
  "lib",
377
466
  "commands",
378
- "webapp",
379
- "generate.js"
467
+ "template",
468
+ "generate",
469
+ "apex",
470
+ "trigger.js"
471
+ ],
472
+ "aliasPermutations": [
473
+ "force:apex:trigger:create",
474
+ "apex:force:trigger:create",
475
+ "apex:trigger:force:create",
476
+ "apex:trigger:create:force",
477
+ "force:trigger:apex:create",
478
+ "trigger:force:apex:create",
479
+ "trigger:apex:force:create",
480
+ "trigger:apex:create:force",
481
+ "force:trigger:create:apex",
482
+ "trigger:force:create:apex",
483
+ "trigger:create:force:apex",
484
+ "trigger:create:apex:force",
485
+ "force:apex:create:trigger",
486
+ "apex:force:create:trigger",
487
+ "apex:create:force:trigger",
488
+ "apex:create:trigger:force",
489
+ "force:create:apex:trigger",
490
+ "create:force:apex:trigger",
491
+ "create:apex:force:trigger",
492
+ "create:apex:trigger:force",
493
+ "force:create:trigger:apex",
494
+ "create:force:trigger:apex",
495
+ "create:trigger:force:apex",
496
+ "create:trigger:apex:force",
497
+ "apex:generate:trigger",
498
+ "generate:apex:trigger",
499
+ "generate:trigger:apex",
500
+ "apex:trigger:generate",
501
+ "trigger:apex:generate",
502
+ "trigger:generate:apex"
380
503
  ],
381
- "aliasPermutations": [],
382
504
  "permutations": [
383
- "webapp:generate",
384
- "generate:webapp"
505
+ "template:generate:apex:trigger",
506
+ "generate:template:apex:trigger",
507
+ "generate:apex:template:trigger",
508
+ "generate:apex:trigger:template",
509
+ "template:apex:generate:trigger",
510
+ "apex:template:generate:trigger",
511
+ "apex:generate:template:trigger",
512
+ "apex:generate:trigger:template",
513
+ "template:apex:trigger:generate",
514
+ "apex:template:trigger:generate",
515
+ "apex:trigger:template:generate",
516
+ "apex:trigger:generate:template",
517
+ "template:generate:trigger:apex",
518
+ "generate:template:trigger:apex",
519
+ "generate:trigger:template:apex",
520
+ "generate:trigger:apex:template",
521
+ "template:trigger:generate:apex",
522
+ "trigger:template:generate:apex",
523
+ "trigger:generate:template:apex",
524
+ "trigger:generate:apex:template",
525
+ "template:trigger:apex:generate",
526
+ "trigger:template:apex:generate",
527
+ "trigger:apex:template:generate",
528
+ "trigger:apex:generate:template"
385
529
  ]
386
530
  },
387
- "analytics:generate:template": {
388
- "aliases": [
389
- "force:analytics:template:create"
390
- ],
531
+ "template:generate:digital-experience:site": {
532
+ "aliases": [],
391
533
  "args": {},
392
- "deprecateAliases": true,
393
- "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.",
534
+ "description": "Creates an Experience Cloud site with the specified template, name, and URL path prefix. The site includes all necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.",
394
535
  "examples": [
395
- "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"
536
+ "Generate an Experience Cloud site using the BuildYourOwnLWR template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template BuildYourOwnLWR --name mysite --url-path-prefix mysite",
537
+ "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template BuildYourOwnLWR --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
396
538
  ],
397
539
  "flags": {
398
540
  "json": {
@@ -410,110 +552,114 @@
410
552
  "multiple": false,
411
553
  "type": "option"
412
554
  },
413
- "output-dir": {
414
- "aliases": [
415
- "outputdir"
416
- ],
417
- "char": "d",
418
- "deprecateAliases": true,
419
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
420
- "name": "output-dir",
421
- "summary": "Directory for saving the created files.",
422
- "default": ".",
555
+ "target-org": {
556
+ "char": "o",
557
+ "name": "target-org",
558
+ "noCacheDefault": true,
559
+ "summary": "Username or alias of the target org.",
560
+ "hasDynamicHelp": true,
561
+ "multiple": false,
562
+ "type": "option"
563
+ },
564
+ "name": {
565
+ "char": "n",
566
+ "name": "name",
567
+ "required": true,
568
+ "summary": "Name of the Experience Cloud site to generate.",
423
569
  "hasDynamicHelp": false,
424
570
  "multiple": false,
425
571
  "type": "option"
426
572
  },
427
- "api-version": {
428
- "aliases": [
429
- "apiversion"
573
+ "template": {
574
+ "char": "t",
575
+ "name": "template",
576
+ "required": true,
577
+ "summary": "Template to use when generating the site.",
578
+ "hasDynamicHelp": false,
579
+ "multiple": false,
580
+ "options": [
581
+ "BuildYourOwnLWR"
430
582
  ],
431
- "deprecateAliases": true,
432
- "description": "Override the api version used for api requests made by this command",
433
- "name": "api-version",
583
+ "type": "option"
584
+ },
585
+ "url-path-prefix": {
586
+ "char": "p",
587
+ "name": "url-path-prefix",
588
+ "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
589
+ "default": "",
434
590
  "hasDynamicHelp": false,
435
591
  "multiple": false,
436
592
  "type": "option"
437
593
  },
438
- "name": {
439
- "aliases": [
440
- "templatename"
441
- ],
442
- "char": "n",
443
- "deprecateAliases": true,
444
- "name": "name",
445
- "required": true,
446
- "summary": "Name of the Analytics template.",
594
+ "admin-email": {
595
+ "char": "e",
596
+ "name": "admin-email",
597
+ "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
447
598
  "hasDynamicHelp": false,
448
599
  "multiple": false,
449
600
  "type": "option"
450
601
  },
451
- "loglevel": {
452
- "deprecated": {
453
- "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."
454
- },
455
- "hidden": true,
456
- "name": "loglevel",
602
+ "output-dir": {
603
+ "char": "d",
604
+ "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.",
605
+ "name": "output-dir",
606
+ "summary": "Directory to generate the site files in.",
457
607
  "hasDynamicHelp": false,
458
608
  "multiple": false,
459
609
  "type": "option"
460
610
  }
461
611
  },
462
- "hasDynamicHelp": false,
612
+ "hasDynamicHelp": true,
463
613
  "hiddenAliases": [],
464
- "id": "analytics:generate:template",
614
+ "id": "template:generate:digital-experience:site",
465
615
  "pluginAlias": "@salesforce/plugin-templates",
466
616
  "pluginName": "@salesforce/plugin-templates",
467
617
  "pluginType": "core",
618
+ "state": "preview",
468
619
  "strict": true,
469
- "summary": "Generate a simple Analytics template.",
620
+ "summary": "Generate an Experience Cloud site.",
470
621
  "enableJsonFlag": true,
471
622
  "isESM": true,
472
623
  "relativePath": [
473
624
  "lib",
474
625
  "commands",
475
- "analytics",
626
+ "template",
476
627
  "generate",
477
- "template.js"
478
- ],
479
- "aliasPermutations": [
480
- "force:analytics:template:create",
481
- "analytics:force:template:create",
482
- "analytics:template:force:create",
483
- "analytics:template:create:force",
484
- "force:template:analytics:create",
485
- "template:force:analytics:create",
486
- "template:analytics:force:create",
487
- "template:analytics:create:force",
488
- "force:template:create:analytics",
489
- "template:force:create:analytics",
490
- "template:create:force:analytics",
491
- "template:create:analytics:force",
492
- "force:analytics:create:template",
493
- "analytics:force:create:template",
494
- "analytics:create:force:template",
495
- "analytics:create:template:force",
496
- "force:create:analytics:template",
497
- "create:force:analytics:template",
498
- "create:analytics:force:template",
499
- "create:analytics:template:force",
500
- "force:create:template:analytics",
501
- "create:force:template:analytics",
502
- "create:template:force:analytics",
503
- "create:template:analytics:force"
628
+ "digital-experience",
629
+ "site.js"
504
630
  ],
631
+ "aliasPermutations": [],
505
632
  "permutations": [
506
- "analytics:generate:template",
507
- "generate:analytics:template",
508
- "generate:template:analytics",
509
- "analytics:template:generate",
510
- "template:analytics:generate",
511
- "template:generate:analytics"
633
+ "template:generate:digital-experience:site",
634
+ "generate:template:digital-experience:site",
635
+ "generate:digital-experience:template:site",
636
+ "generate:digital-experience:site:template",
637
+ "template:digital-experience:generate:site",
638
+ "digital-experience:template:generate:site",
639
+ "digital-experience:generate:template:site",
640
+ "digital-experience:generate:site:template",
641
+ "template:digital-experience:site:generate",
642
+ "digital-experience:template:site:generate",
643
+ "digital-experience:site:template:generate",
644
+ "digital-experience:site:generate:template",
645
+ "template:generate:site:digital-experience",
646
+ "generate:template:site:digital-experience",
647
+ "generate:site:template:digital-experience",
648
+ "generate:site:digital-experience:template",
649
+ "template:site:generate:digital-experience",
650
+ "site:template:generate:digital-experience",
651
+ "site:generate:template:digital-experience",
652
+ "site:generate:digital-experience:template",
653
+ "template:site:digital-experience:generate",
654
+ "site:template:digital-experience:generate",
655
+ "site:digital-experience:template:generate",
656
+ "site:digital-experience:generate:template"
512
657
  ]
513
658
  },
514
- "lightning:generate:app": {
659
+ "template:generate:lightning:app": {
515
660
  "aliases": [
516
- "force:lightning:app:create"
661
+ "force:lightning:app:create",
662
+ "lightning:generate:app"
517
663
  ],
518
664
  "args": {},
519
665
  "deprecateAliases": true,
@@ -611,7 +757,7 @@
611
757
  },
612
758
  "hasDynamicHelp": false,
613
759
  "hiddenAliases": [],
614
- "id": "lightning:generate:app",
760
+ "id": "template:generate:lightning:app",
615
761
  "pluginAlias": "@salesforce/plugin-templates",
616
762
  "pluginName": "@salesforce/plugin-templates",
617
763
  "pluginType": "core",
@@ -622,8 +768,9 @@
622
768
  "relativePath": [
623
769
  "lib",
624
770
  "commands",
625
- "lightning",
771
+ "template",
626
772
  "generate",
773
+ "lightning",
627
774
  "app.js"
628
775
  ],
629
776
  "aliasPermutations": [
@@ -650,20 +797,45 @@
650
797
  "force:create:app:lightning",
651
798
  "create:force:app:lightning",
652
799
  "create:app:force:lightning",
653
- "create:app:lightning:force"
654
- ],
655
- "permutations": [
800
+ "create:app:lightning:force",
656
801
  "lightning:generate:app",
657
802
  "generate:lightning:app",
658
803
  "generate:app:lightning",
659
804
  "lightning:app:generate",
660
805
  "app:lightning:generate",
661
806
  "app:generate:lightning"
807
+ ],
808
+ "permutations": [
809
+ "template:generate:lightning:app",
810
+ "generate:template:lightning:app",
811
+ "generate:lightning:template:app",
812
+ "generate:lightning:app:template",
813
+ "template:lightning:generate:app",
814
+ "lightning:template:generate:app",
815
+ "lightning:generate:template:app",
816
+ "lightning:generate:app:template",
817
+ "template:lightning:app:generate",
818
+ "lightning:template:app:generate",
819
+ "lightning:app:template:generate",
820
+ "lightning:app:generate:template",
821
+ "template:generate:app:lightning",
822
+ "generate:template:app:lightning",
823
+ "generate:app:template:lightning",
824
+ "generate:app:lightning:template",
825
+ "template:app:generate:lightning",
826
+ "app:template:generate:lightning",
827
+ "app:generate:template:lightning",
828
+ "app:generate:lightning:template",
829
+ "template:app:lightning:generate",
830
+ "app:template:lightning:generate",
831
+ "app:lightning:template:generate",
832
+ "app:lightning:generate:template"
662
833
  ]
663
834
  },
664
- "lightning:generate:component": {
835
+ "template:generate:lightning:component": {
665
836
  "aliases": [
666
- "force:lightning:component:create"
837
+ "force:lightning:component:create",
838
+ "lightning:generate:component"
667
839
  ],
668
840
  "args": {},
669
841
  "deprecateAliases": true,
@@ -777,7 +949,7 @@
777
949
  },
778
950
  "hasDynamicHelp": false,
779
951
  "hiddenAliases": [],
780
- "id": "lightning:generate:component",
952
+ "id": "template:generate:lightning:component",
781
953
  "pluginAlias": "@salesforce/plugin-templates",
782
954
  "pluginName": "@salesforce/plugin-templates",
783
955
  "pluginType": "core",
@@ -788,8 +960,9 @@
788
960
  "relativePath": [
789
961
  "lib",
790
962
  "commands",
791
- "lightning",
963
+ "template",
792
964
  "generate",
965
+ "lightning",
793
966
  "component.js"
794
967
  ],
795
968
  "aliasPermutations": [
@@ -816,20 +989,45 @@
816
989
  "force:create:component:lightning",
817
990
  "create:force:component:lightning",
818
991
  "create:component:force:lightning",
819
- "create:component:lightning:force"
820
- ],
821
- "permutations": [
992
+ "create:component:lightning:force",
822
993
  "lightning:generate:component",
823
994
  "generate:lightning:component",
824
995
  "generate:component:lightning",
825
996
  "lightning:component:generate",
826
997
  "component:lightning:generate",
827
998
  "component:generate:lightning"
999
+ ],
1000
+ "permutations": [
1001
+ "template:generate:lightning:component",
1002
+ "generate:template:lightning:component",
1003
+ "generate:lightning:template:component",
1004
+ "generate:lightning:component:template",
1005
+ "template:lightning:generate:component",
1006
+ "lightning:template:generate:component",
1007
+ "lightning:generate:template:component",
1008
+ "lightning:generate:component:template",
1009
+ "template:lightning:component:generate",
1010
+ "lightning:template:component:generate",
1011
+ "lightning:component:template:generate",
1012
+ "lightning:component:generate:template",
1013
+ "template:generate:component:lightning",
1014
+ "generate:template:component:lightning",
1015
+ "generate:component:template:lightning",
1016
+ "generate:component:lightning:template",
1017
+ "template:component:generate:lightning",
1018
+ "component:template:generate:lightning",
1019
+ "component:generate:template:lightning",
1020
+ "component:generate:lightning:template",
1021
+ "template:component:lightning:generate",
1022
+ "component:template:lightning:generate",
1023
+ "component:lightning:template:generate",
1024
+ "component:lightning:generate:template"
828
1025
  ]
829
1026
  },
830
- "lightning:generate:event": {
1027
+ "template:generate:lightning:event": {
831
1028
  "aliases": [
832
- "force:lightning:event:create"
1029
+ "force:lightning:event:create",
1030
+ "lightning:generate:event"
833
1031
  ],
834
1032
  "args": {},
835
1033
  "deprecateAliases": true,
@@ -927,7 +1125,7 @@
927
1125
  },
928
1126
  "hasDynamicHelp": false,
929
1127
  "hiddenAliases": [],
930
- "id": "lightning:generate:event",
1128
+ "id": "template:generate:lightning:event",
931
1129
  "pluginAlias": "@salesforce/plugin-templates",
932
1130
  "pluginName": "@salesforce/plugin-templates",
933
1131
  "pluginType": "core",
@@ -938,8 +1136,9 @@
938
1136
  "relativePath": [
939
1137
  "lib",
940
1138
  "commands",
941
- "lightning",
1139
+ "template",
942
1140
  "generate",
1141
+ "lightning",
943
1142
  "event.js"
944
1143
  ],
945
1144
  "aliasPermutations": [
@@ -966,20 +1165,45 @@
966
1165
  "force:create:event:lightning",
967
1166
  "create:force:event:lightning",
968
1167
  "create:event:force:lightning",
969
- "create:event:lightning:force"
970
- ],
971
- "permutations": [
1168
+ "create:event:lightning:force",
972
1169
  "lightning:generate:event",
973
1170
  "generate:lightning:event",
974
1171
  "generate:event:lightning",
975
1172
  "lightning:event:generate",
976
1173
  "event:lightning:generate",
977
1174
  "event:generate:lightning"
1175
+ ],
1176
+ "permutations": [
1177
+ "template:generate:lightning:event",
1178
+ "generate:template:lightning:event",
1179
+ "generate:lightning:template:event",
1180
+ "generate:lightning:event:template",
1181
+ "template:lightning:generate:event",
1182
+ "lightning:template:generate:event",
1183
+ "lightning:generate:template:event",
1184
+ "lightning:generate:event:template",
1185
+ "template:lightning:event:generate",
1186
+ "lightning:template:event:generate",
1187
+ "lightning:event:template:generate",
1188
+ "lightning:event:generate:template",
1189
+ "template:generate:event:lightning",
1190
+ "generate:template:event:lightning",
1191
+ "generate:event:template:lightning",
1192
+ "generate:event:lightning:template",
1193
+ "template:event:generate:lightning",
1194
+ "event:template:generate:lightning",
1195
+ "event:generate:template:lightning",
1196
+ "event:generate:lightning:template",
1197
+ "template:event:lightning:generate",
1198
+ "event:template:lightning:generate",
1199
+ "event:lightning:template:generate",
1200
+ "event:lightning:generate:template"
978
1201
  ]
979
1202
  },
980
- "lightning:generate:interface": {
1203
+ "template:generate:lightning:interface": {
981
1204
  "aliases": [
982
- "force:lightning:interface:create"
1205
+ "force:lightning:interface:create",
1206
+ "lightning:generate:interface"
983
1207
  ],
984
1208
  "args": {},
985
1209
  "deprecateAliases": true,
@@ -1077,7 +1301,7 @@
1077
1301
  },
1078
1302
  "hasDynamicHelp": false,
1079
1303
  "hiddenAliases": [],
1080
- "id": "lightning:generate:interface",
1304
+ "id": "template:generate:lightning:interface",
1081
1305
  "pluginAlias": "@salesforce/plugin-templates",
1082
1306
  "pluginName": "@salesforce/plugin-templates",
1083
1307
  "pluginType": "core",
@@ -1088,8 +1312,9 @@
1088
1312
  "relativePath": [
1089
1313
  "lib",
1090
1314
  "commands",
1091
- "lightning",
1315
+ "template",
1092
1316
  "generate",
1317
+ "lightning",
1093
1318
  "interface.js"
1094
1319
  ],
1095
1320
  "aliasPermutations": [
@@ -1116,20 +1341,45 @@
1116
1341
  "force:create:interface:lightning",
1117
1342
  "create:force:interface:lightning",
1118
1343
  "create:interface:force:lightning",
1119
- "create:interface:lightning:force"
1120
- ],
1121
- "permutations": [
1344
+ "create:interface:lightning:force",
1122
1345
  "lightning:generate:interface",
1123
1346
  "generate:lightning:interface",
1124
1347
  "generate:interface:lightning",
1125
1348
  "lightning:interface:generate",
1126
1349
  "interface:lightning:generate",
1127
1350
  "interface:generate:lightning"
1351
+ ],
1352
+ "permutations": [
1353
+ "template:generate:lightning:interface",
1354
+ "generate:template:lightning:interface",
1355
+ "generate:lightning:template:interface",
1356
+ "generate:lightning:interface:template",
1357
+ "template:lightning:generate:interface",
1358
+ "lightning:template:generate:interface",
1359
+ "lightning:generate:template:interface",
1360
+ "lightning:generate:interface:template",
1361
+ "template:lightning:interface:generate",
1362
+ "lightning:template:interface:generate",
1363
+ "lightning:interface:template:generate",
1364
+ "lightning:interface:generate:template",
1365
+ "template:generate:interface:lightning",
1366
+ "generate:template:interface:lightning",
1367
+ "generate:interface:template:lightning",
1368
+ "generate:interface:lightning:template",
1369
+ "template:interface:generate:lightning",
1370
+ "interface:template:generate:lightning",
1371
+ "interface:generate:template:lightning",
1372
+ "interface:generate:lightning:template",
1373
+ "template:interface:lightning:generate",
1374
+ "interface:template:lightning:generate",
1375
+ "interface:lightning:template:generate",
1376
+ "interface:lightning:generate:template"
1128
1377
  ]
1129
1378
  },
1130
- "lightning:generate:test": {
1379
+ "template:generate:lightning:test": {
1131
1380
  "aliases": [
1132
- "force:lightning:test:create"
1381
+ "force:lightning:test:create",
1382
+ "lightning:generate:test"
1133
1383
  ],
1134
1384
  "args": {},
1135
1385
  "deprecateAliases": true,
@@ -1227,7 +1477,7 @@
1227
1477
  },
1228
1478
  "hasDynamicHelp": false,
1229
1479
  "hiddenAliases": [],
1230
- "id": "lightning:generate:test",
1480
+ "id": "template:generate:lightning:test",
1231
1481
  "pluginAlias": "@salesforce/plugin-templates",
1232
1482
  "pluginName": "@salesforce/plugin-templates",
1233
1483
  "pluginType": "core",
@@ -1238,8 +1488,9 @@
1238
1488
  "relativePath": [
1239
1489
  "lib",
1240
1490
  "commands",
1241
- "lightning",
1491
+ "template",
1242
1492
  "generate",
1493
+ "lightning",
1243
1494
  "test.js"
1244
1495
  ],
1245
1496
  "aliasPermutations": [
@@ -1266,27 +1517,54 @@
1266
1517
  "force:create:test:lightning",
1267
1518
  "create:force:test:lightning",
1268
1519
  "create:test:force:lightning",
1269
- "create:test:lightning:force"
1270
- ],
1271
- "permutations": [
1520
+ "create:test:lightning:force",
1272
1521
  "lightning:generate:test",
1273
1522
  "generate:lightning:test",
1274
1523
  "generate:test:lightning",
1275
1524
  "lightning:test:generate",
1276
1525
  "test:lightning:generate",
1277
1526
  "test:generate:lightning"
1527
+ ],
1528
+ "permutations": [
1529
+ "template:generate:lightning:test",
1530
+ "generate:template:lightning:test",
1531
+ "generate:lightning:template:test",
1532
+ "generate:lightning:test:template",
1533
+ "template:lightning:generate:test",
1534
+ "lightning:template:generate:test",
1535
+ "lightning:generate:template:test",
1536
+ "lightning:generate:test:template",
1537
+ "template:lightning:test:generate",
1538
+ "lightning:template:test:generate",
1539
+ "lightning:test:template:generate",
1540
+ "lightning:test:generate:template",
1541
+ "template:generate:test:lightning",
1542
+ "generate:template:test:lightning",
1543
+ "generate:test:template:lightning",
1544
+ "generate:test:lightning:template",
1545
+ "template:test:generate:lightning",
1546
+ "test:template:generate:lightning",
1547
+ "test:generate:template:lightning",
1548
+ "test:generate:lightning:template",
1549
+ "template:test:lightning:generate",
1550
+ "test:template:lightning:generate",
1551
+ "test:lightning:template:generate",
1552
+ "test:lightning:generate:template"
1278
1553
  ]
1279
1554
  },
1280
- "visualforce:generate:component": {
1555
+ "template:generate:project": {
1281
1556
  "aliases": [
1282
- "force:visualforce:component:create"
1557
+ "force:project:create",
1558
+ "project:generate"
1283
1559
  ],
1284
1560
  "args": {},
1285
1561
  "deprecateAliases": true,
1286
- "description": "The command generates the .Component file and associated metadata file in the specified directory or the current working directory by default.",
1562
+ "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
1287
1563
  "examples": [
1288
- "Generate the metadata files for a Visualforce component in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel",
1289
- "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"
1564
+ "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
1565
+ "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
1566
+ "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
1567
+ "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty"
1290
1568
  ],
1291
1569
  "flags": {
1292
1570
  "json": {
@@ -1306,28 +1584,30 @@
1306
1584
  },
1307
1585
  "name": {
1308
1586
  "aliases": [
1309
- "componentname"
1587
+ "projectname"
1310
1588
  ],
1311
1589
  "char": "n",
1312
1590
  "deprecateAliases": true,
1313
- "description": "The name can be up to 40 characters and must start with a letter.",
1591
+ "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
1314
1592
  "name": "name",
1315
1593
  "required": true,
1316
- "summary": "Name of the generated Visualforce Component.",
1594
+ "summary": "Name of the generated project.",
1317
1595
  "hasDynamicHelp": false,
1318
1596
  "multiple": false,
1319
1597
  "type": "option"
1320
1598
  },
1321
1599
  "template": {
1322
1600
  "char": "t",
1323
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
1601
+ "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.",
1324
1602
  "name": "template",
1325
- "summary": "Template to use for file creation.",
1326
- "default": "DefaultVFComponent",
1603
+ "summary": "Template to use for project creation.",
1604
+ "default": "standard",
1327
1605
  "hasDynamicHelp": false,
1328
1606
  "multiple": false,
1329
1607
  "options": [
1330
- "DefaultVFComponent"
1608
+ "standard",
1609
+ "empty",
1610
+ "analytics"
1331
1611
  ],
1332
1612
  "type": "option"
1333
1613
  },
@@ -1345,22 +1625,48 @@
1345
1625
  "multiple": false,
1346
1626
  "type": "option"
1347
1627
  },
1348
- "api-version": {
1628
+ "namespace": {
1629
+ "char": "s",
1630
+ "name": "namespace",
1631
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
1632
+ "default": "",
1633
+ "hasDynamicHelp": false,
1634
+ "multiple": false,
1635
+ "type": "option"
1636
+ },
1637
+ "default-package-dir": {
1349
1638
  "aliases": [
1350
- "apiversion"
1639
+ "defaultpackagedir"
1351
1640
  ],
1641
+ "char": "p",
1352
1642
  "deprecateAliases": true,
1353
- "description": "Override the api version used for api requests made by this command",
1354
- "name": "api-version",
1643
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1644
+ "name": "default-package-dir",
1645
+ "summary": "Default package directory name.",
1646
+ "default": "force-app",
1355
1647
  "hasDynamicHelp": false,
1356
1648
  "multiple": false,
1357
1649
  "type": "option"
1358
1650
  },
1359
- "label": {
1651
+ "manifest": {
1652
+ "char": "x",
1653
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1654
+ "name": "manifest",
1655
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
1656
+ "allowNo": false,
1657
+ "type": "boolean"
1658
+ },
1659
+ "login-url": {
1660
+ "aliases": [
1661
+ "loginurl"
1662
+ ],
1360
1663
  "char": "l",
1361
- "name": "label",
1362
- "required": true,
1363
- "summary": "Visualforce Component label.",
1664
+ "deprecateAliases": true,
1665
+ "description": "Normally defaults to https://login.salesforce.com.",
1666
+ "hidden": true,
1667
+ "name": "login-url",
1668
+ "summary": "Salesforce instance login URL.",
1669
+ "default": "https://login.salesforce.com",
1364
1670
  "hasDynamicHelp": false,
1365
1671
  "multiple": false,
1366
1672
  "type": "option"
@@ -1374,70 +1680,65 @@
1374
1680
  "hasDynamicHelp": false,
1375
1681
  "multiple": false,
1376
1682
  "type": "option"
1683
+ },
1684
+ "api-version": {
1685
+ "description": "Override the api version used for api requests made by this command",
1686
+ "name": "api-version",
1687
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
1688
+ "hasDynamicHelp": false,
1689
+ "multiple": false,
1690
+ "type": "option"
1377
1691
  }
1378
1692
  },
1379
1693
  "hasDynamicHelp": false,
1380
1694
  "hiddenAliases": [],
1381
- "id": "visualforce:generate:component",
1695
+ "id": "template:generate:project",
1382
1696
  "pluginAlias": "@salesforce/plugin-templates",
1383
1697
  "pluginName": "@salesforce/plugin-templates",
1384
1698
  "pluginType": "core",
1385
1699
  "strict": true,
1386
- "summary": "Generate a Visualforce Component.",
1700
+ "summary": "Generate a Salesforce DX project.",
1387
1701
  "enableJsonFlag": true,
1388
1702
  "isESM": true,
1389
1703
  "relativePath": [
1390
1704
  "lib",
1391
1705
  "commands",
1392
- "visualforce",
1706
+ "template",
1393
1707
  "generate",
1394
- "component.js"
1708
+ "project",
1709
+ "index.js"
1395
1710
  ],
1396
1711
  "aliasPermutations": [
1397
- "force:visualforce:component:create",
1398
- "visualforce:force:component:create",
1399
- "visualforce:component:force:create",
1400
- "visualforce:component:create:force",
1401
- "force:component:visualforce:create",
1402
- "component:force:visualforce:create",
1403
- "component:visualforce:force:create",
1404
- "component:visualforce:create:force",
1405
- "force:component:create:visualforce",
1406
- "component:force:create:visualforce",
1407
- "component:create:force:visualforce",
1408
- "component:create:visualforce:force",
1409
- "force:visualforce:create:component",
1410
- "visualforce:force:create:component",
1411
- "visualforce:create:force:component",
1412
- "visualforce:create:component:force",
1413
- "force:create:visualforce:component",
1414
- "create:force:visualforce:component",
1415
- "create:visualforce:force:component",
1416
- "create:visualforce:component:force",
1417
- "force:create:component:visualforce",
1418
- "create:force:component:visualforce",
1419
- "create:component:force:visualforce",
1420
- "create:component:visualforce:force"
1712
+ "force:project:create",
1713
+ "project:force:create",
1714
+ "project:create:force",
1715
+ "force:create:project",
1716
+ "create:force:project",
1717
+ "create:project:force",
1718
+ "project:generate",
1719
+ "generate:project"
1421
1720
  ],
1422
1721
  "permutations": [
1423
- "visualforce:generate:component",
1424
- "generate:visualforce:component",
1425
- "generate:component:visualforce",
1426
- "visualforce:component:generate",
1427
- "component:visualforce:generate",
1428
- "component:generate:visualforce"
1722
+ "template:generate:project",
1723
+ "generate:template:project",
1724
+ "generate:project:template",
1725
+ "template:project:generate",
1726
+ "project:template:generate",
1727
+ "project:generate:template"
1429
1728
  ]
1430
1729
  },
1431
- "visualforce:generate:page": {
1730
+ "template:generate:static-resource": {
1432
1731
  "aliases": [
1433
- "force:visualforce:page:create"
1732
+ "force:staticresource:create",
1733
+ "static-resource:generate"
1434
1734
  ],
1435
1735
  "args": {},
1436
1736
  "deprecateAliases": true,
1437
- "description": "The command generates the .Page file and associated metadata file in the specified directory or the current working directory by default.",
1737
+ "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.",
1438
1738
  "examples": [
1439
- "Generate the metadata files for a Visualforce page in the current directory:\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel",
1440
- "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"
1739
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
1740
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
1741
+ "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"
1441
1742
  ],
1442
1743
  "flags": {
1443
1744
  "json": {
@@ -1457,30 +1758,29 @@
1457
1758
  },
1458
1759
  "name": {
1459
1760
  "aliases": [
1460
- "pagename"
1761
+ "resourcename"
1461
1762
  ],
1462
1763
  "char": "n",
1463
1764
  "deprecateAliases": true,
1464
- "description": "The name can be up to 40 characters and must start with a letter.",
1765
+ "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.",
1465
1766
  "name": "name",
1466
1767
  "required": true,
1467
- "summary": "Name of the generated Visualforce Page.",
1768
+ "summary": "Name of the generated static resource.",
1468
1769
  "hasDynamicHelp": false,
1469
1770
  "multiple": false,
1470
1771
  "type": "option"
1471
1772
  },
1472
- "template": {
1473
- "char": "t",
1474
- "description": "Supplied parameter values or default values are filled into a copy of the template.",
1475
- "hidden": true,
1476
- "name": "template",
1477
- "summary": "Template to use for file creation.",
1478
- "default": "DefaultVFPage",
1773
+ "type": {
1774
+ "aliases": [
1775
+ "contenttype"
1776
+ ],
1777
+ "deprecateAliases": true,
1778
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
1779
+ "name": "type",
1780
+ "summary": "Content type (mime type) of the generated static resource.",
1781
+ "default": "application/zip",
1479
1782
  "hasDynamicHelp": false,
1480
1783
  "multiple": false,
1481
- "options": [
1482
- "DefaultVFPage"
1483
- ],
1484
1784
  "type": "option"
1485
1785
  },
1486
1786
  "output-dir": {
@@ -1508,15 +1808,6 @@
1508
1808
  "multiple": false,
1509
1809
  "type": "option"
1510
1810
  },
1511
- "label": {
1512
- "char": "l",
1513
- "name": "label",
1514
- "required": true,
1515
- "summary": "Visualforce Page label.",
1516
- "hasDynamicHelp": false,
1517
- "multiple": false,
1518
- "type": "option"
1519
- },
1520
1811
  "loglevel": {
1521
1812
  "deprecated": {
1522
1813
  "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."
@@ -1530,63 +1821,52 @@
1530
1821
  },
1531
1822
  "hasDynamicHelp": false,
1532
1823
  "hiddenAliases": [],
1533
- "id": "visualforce:generate:page",
1824
+ "id": "template:generate:static-resource",
1534
1825
  "pluginAlias": "@salesforce/plugin-templates",
1535
1826
  "pluginName": "@salesforce/plugin-templates",
1536
1827
  "pluginType": "core",
1537
1828
  "strict": true,
1538
- "summary": "Generate a Visualforce Page.",
1829
+ "summary": "Generate a static resource.",
1539
1830
  "enableJsonFlag": true,
1540
1831
  "isESM": true,
1541
1832
  "relativePath": [
1542
1833
  "lib",
1543
1834
  "commands",
1544
- "visualforce",
1835
+ "template",
1545
1836
  "generate",
1546
- "page.js"
1837
+ "static-resource",
1838
+ "index.js"
1547
1839
  ],
1548
1840
  "aliasPermutations": [
1549
- "force:visualforce:page:create",
1550
- "visualforce:force:page:create",
1551
- "visualforce:page:force:create",
1552
- "visualforce:page:create:force",
1553
- "force:page:visualforce:create",
1554
- "page:force:visualforce:create",
1555
- "page:visualforce:force:create",
1556
- "page:visualforce:create:force",
1557
- "force:page:create:visualforce",
1558
- "page:force:create:visualforce",
1559
- "page:create:force:visualforce",
1560
- "page:create:visualforce:force",
1561
- "force:visualforce:create:page",
1562
- "visualforce:force:create:page",
1563
- "visualforce:create:force:page",
1564
- "visualforce:create:page:force",
1565
- "force:create:visualforce:page",
1566
- "create:force:visualforce:page",
1567
- "create:visualforce:force:page",
1568
- "create:visualforce:page:force",
1569
- "force:create:page:visualforce",
1570
- "create:force:page:visualforce",
1571
- "create:page:force:visualforce",
1572
- "create:page:visualforce:force"
1841
+ "force:staticresource:create",
1842
+ "staticresource:force:create",
1843
+ "staticresource:create:force",
1844
+ "force:create:staticresource",
1845
+ "create:force:staticresource",
1846
+ "create:staticresource:force",
1847
+ "static-resource:generate",
1848
+ "generate:static-resource"
1573
1849
  ],
1574
1850
  "permutations": [
1575
- "visualforce:generate:page",
1576
- "generate:visualforce:page",
1577
- "generate:page:visualforce",
1578
- "visualforce:page:generate",
1579
- "page:visualforce:generate",
1580
- "page:generate:visualforce"
1851
+ "template:generate:static-resource",
1852
+ "generate:template:static-resource",
1853
+ "generate:static-resource:template",
1854
+ "template:static-resource:generate",
1855
+ "static-resource:template:generate",
1856
+ "static-resource:generate:template"
1581
1857
  ]
1582
1858
  },
1583
- "template:generate:digital-experience:site": {
1584
- "aliases": [],
1859
+ "template:generate:visualforce:component": {
1860
+ "aliases": [
1861
+ "force:visualforce:component:create",
1862
+ "visualforce:generate:component"
1863
+ ],
1585
1864
  "args": {},
1586
- "description": "Creates an Experience Cloud site with the specified template, name, and URL path prefix. The site includes all necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.",
1865
+ "deprecateAliases": true,
1866
+ "description": "The command generates the .Component file and associated metadata file in the specified directory or the current working directory by default.",
1587
1867
  "examples": [
1588
- "Generate an Experience Cloud site using the BuildYourOwnLWR template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template BuildYourOwnLWR --name mysite --url-path-prefix mysite",
1589
- "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template BuildYourOwnLWR --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
1868
+ "Generate the metadata files for a Visualforce component in the current directory:\n<%= config.bin %> <%= command.id %> --name mycomponent --label mylabel",
1869
+ "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"
1590
1870
  ],
1591
1871
  "flags": {
1592
1872
  "json": {
@@ -1604,72 +1884,86 @@
1604
1884
  "multiple": false,
1605
1885
  "type": "option"
1606
1886
  },
1607
- "target-org": {
1608
- "char": "o",
1609
- "name": "target-org",
1610
- "noCacheDefault": true,
1611
- "summary": "Username or alias of the target org.",
1612
- "hasDynamicHelp": true,
1613
- "multiple": false,
1614
- "type": "option"
1615
- },
1616
1887
  "name": {
1888
+ "aliases": [
1889
+ "componentname"
1890
+ ],
1617
1891
  "char": "n",
1892
+ "deprecateAliases": true,
1893
+ "description": "The name can be up to 40 characters and must start with a letter.",
1618
1894
  "name": "name",
1619
1895
  "required": true,
1620
- "summary": "Name of the Experience Cloud site to generate.",
1896
+ "summary": "Name of the generated Visualforce Component.",
1621
1897
  "hasDynamicHelp": false,
1622
1898
  "multiple": false,
1623
1899
  "type": "option"
1624
1900
  },
1625
1901
  "template": {
1626
1902
  "char": "t",
1903
+ "description": "Supplied parameter values or default values are filled into a copy of the template.",
1627
1904
  "name": "template",
1628
- "required": true,
1629
- "summary": "Template to use when generating the site.",
1905
+ "summary": "Template to use for file creation.",
1906
+ "default": "DefaultVFComponent",
1630
1907
  "hasDynamicHelp": false,
1631
1908
  "multiple": false,
1632
1909
  "options": [
1633
- "BuildYourOwnLWR"
1910
+ "DefaultVFComponent"
1634
1911
  ],
1635
1912
  "type": "option"
1636
1913
  },
1637
- "url-path-prefix": {
1638
- "char": "p",
1639
- "name": "url-path-prefix",
1640
- "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
1641
- "default": "",
1914
+ "output-dir": {
1915
+ "aliases": [
1916
+ "outputdir"
1917
+ ],
1918
+ "char": "d",
1919
+ "deprecateAliases": true,
1920
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1921
+ "name": "output-dir",
1922
+ "summary": "Directory for saving the created files.",
1923
+ "default": ".",
1642
1924
  "hasDynamicHelp": false,
1643
1925
  "multiple": false,
1644
1926
  "type": "option"
1645
1927
  },
1646
- "admin-email": {
1647
- "char": "e",
1648
- "name": "admin-email",
1649
- "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
1928
+ "api-version": {
1929
+ "aliases": [
1930
+ "apiversion"
1931
+ ],
1932
+ "deprecateAliases": true,
1933
+ "description": "Override the api version used for api requests made by this command",
1934
+ "name": "api-version",
1650
1935
  "hasDynamicHelp": false,
1651
1936
  "multiple": false,
1652
1937
  "type": "option"
1653
1938
  },
1654
- "output-dir": {
1655
- "char": "d",
1656
- "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.",
1657
- "name": "output-dir",
1658
- "summary": "Directory to generate the site files in.",
1939
+ "label": {
1940
+ "char": "l",
1941
+ "name": "label",
1942
+ "required": true,
1943
+ "summary": "Visualforce Component label.",
1944
+ "hasDynamicHelp": false,
1945
+ "multiple": false,
1946
+ "type": "option"
1947
+ },
1948
+ "loglevel": {
1949
+ "deprecated": {
1950
+ "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."
1951
+ },
1952
+ "hidden": true,
1953
+ "name": "loglevel",
1659
1954
  "hasDynamicHelp": false,
1660
1955
  "multiple": false,
1661
1956
  "type": "option"
1662
1957
  }
1663
1958
  },
1664
- "hasDynamicHelp": true,
1959
+ "hasDynamicHelp": false,
1665
1960
  "hiddenAliases": [],
1666
- "id": "template:generate:digital-experience:site",
1961
+ "id": "template:generate:visualforce:component",
1667
1962
  "pluginAlias": "@salesforce/plugin-templates",
1668
1963
  "pluginName": "@salesforce/plugin-templates",
1669
1964
  "pluginType": "core",
1670
- "state": "preview",
1671
1965
  "strict": true,
1672
- "summary": "Generate an Experience Cloud site.",
1966
+ "summary": "Generate a Visualforce Component.",
1673
1967
  "enableJsonFlag": true,
1674
1968
  "isESM": true,
1675
1969
  "relativePath": [
@@ -1677,48 +1971,79 @@
1677
1971
  "commands",
1678
1972
  "template",
1679
1973
  "generate",
1680
- "digital-experience",
1681
- "site.js"
1974
+ "visualforce",
1975
+ "component.js"
1976
+ ],
1977
+ "aliasPermutations": [
1978
+ "force:visualforce:component:create",
1979
+ "visualforce:force:component:create",
1980
+ "visualforce:component:force:create",
1981
+ "visualforce:component:create:force",
1982
+ "force:component:visualforce:create",
1983
+ "component:force:visualforce:create",
1984
+ "component:visualforce:force:create",
1985
+ "component:visualforce:create:force",
1986
+ "force:component:create:visualforce",
1987
+ "component:force:create:visualforce",
1988
+ "component:create:force:visualforce",
1989
+ "component:create:visualforce:force",
1990
+ "force:visualforce:create:component",
1991
+ "visualforce:force:create:component",
1992
+ "visualforce:create:force:component",
1993
+ "visualforce:create:component:force",
1994
+ "force:create:visualforce:component",
1995
+ "create:force:visualforce:component",
1996
+ "create:visualforce:force:component",
1997
+ "create:visualforce:component:force",
1998
+ "force:create:component:visualforce",
1999
+ "create:force:component:visualforce",
2000
+ "create:component:force:visualforce",
2001
+ "create:component:visualforce:force",
2002
+ "visualforce:generate:component",
2003
+ "generate:visualforce:component",
2004
+ "generate:component:visualforce",
2005
+ "visualforce:component:generate",
2006
+ "component:visualforce:generate",
2007
+ "component:generate:visualforce"
1682
2008
  ],
1683
- "aliasPermutations": [],
1684
2009
  "permutations": [
1685
- "template:generate:digital-experience:site",
1686
- "generate:template:digital-experience:site",
1687
- "generate:digital-experience:template:site",
1688
- "generate:digital-experience:site:template",
1689
- "template:digital-experience:generate:site",
1690
- "digital-experience:template:generate:site",
1691
- "digital-experience:generate:template:site",
1692
- "digital-experience:generate:site:template",
1693
- "template:digital-experience:site:generate",
1694
- "digital-experience:template:site:generate",
1695
- "digital-experience:site:template:generate",
1696
- "digital-experience:site:generate:template",
1697
- "template:generate:site:digital-experience",
1698
- "generate:template:site:digital-experience",
1699
- "generate:site:template:digital-experience",
1700
- "generate:site:digital-experience:template",
1701
- "template:site:generate:digital-experience",
1702
- "site:template:generate:digital-experience",
1703
- "site:generate:template:digital-experience",
1704
- "site:generate:digital-experience:template",
1705
- "template:site:digital-experience:generate",
1706
- "site:template:digital-experience:generate",
1707
- "site:digital-experience:template:generate",
1708
- "site:digital-experience:generate:template"
2010
+ "template:generate:visualforce:component",
2011
+ "generate:template:visualforce:component",
2012
+ "generate:visualforce:template:component",
2013
+ "generate:visualforce:component:template",
2014
+ "template:visualforce:generate:component",
2015
+ "visualforce:template:generate:component",
2016
+ "visualforce:generate:template:component",
2017
+ "visualforce:generate:component:template",
2018
+ "template:visualforce:component:generate",
2019
+ "visualforce:template:component:generate",
2020
+ "visualforce:component:template:generate",
2021
+ "visualforce:component:generate:template",
2022
+ "template:generate:component:visualforce",
2023
+ "generate:template:component:visualforce",
2024
+ "generate:component:template:visualforce",
2025
+ "generate:component:visualforce:template",
2026
+ "template:component:generate:visualforce",
2027
+ "component:template:generate:visualforce",
2028
+ "component:generate:template:visualforce",
2029
+ "component:generate:visualforce:template",
2030
+ "template:component:visualforce:generate",
2031
+ "component:template:visualforce:generate",
2032
+ "component:visualforce:template:generate",
2033
+ "component:visualforce:generate:template"
1709
2034
  ]
1710
2035
  },
1711
- "template:generate:apex:class": {
2036
+ "template:generate:visualforce:page": {
1712
2037
  "aliases": [
1713
- "force:apex:class:create",
1714
- "apex:generate:class"
2038
+ "force:visualforce:page:create",
2039
+ "visualforce:generate:page"
1715
2040
  ],
1716
2041
  "args": {},
1717
2042
  "deprecateAliases": true,
1718
- "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.",
2043
+ "description": "The command generates the .Page file and associated metadata file in the specified directory or the current working directory by default.",
1719
2044
  "examples": [
1720
- "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",
1721
- "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"
2045
+ "Generate the metadata files for a Visualforce page in the current directory:\n<%= config.bin %> <%= command.id %> --name mypage --label mylabel",
2046
+ "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"
1722
2047
  ],
1723
2048
  "flags": {
1724
2049
  "json": {
@@ -1738,14 +2063,14 @@
1738
2063
  },
1739
2064
  "name": {
1740
2065
  "aliases": [
1741
- "classname"
2066
+ "pagename"
1742
2067
  ],
1743
2068
  "char": "n",
1744
2069
  "deprecateAliases": true,
1745
2070
  "description": "The name can be up to 40 characters and must start with a letter.",
1746
2071
  "name": "name",
1747
2072
  "required": true,
1748
- "summary": "Name of the generated Apex class.",
2073
+ "summary": "Name of the generated Visualforce Page.",
1749
2074
  "hasDynamicHelp": false,
1750
2075
  "multiple": false,
1751
2076
  "type": "option"
@@ -1753,17 +2078,14 @@
1753
2078
  "template": {
1754
2079
  "char": "t",
1755
2080
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
2081
+ "hidden": true,
1756
2082
  "name": "template",
1757
2083
  "summary": "Template to use for file creation.",
1758
- "default": "DefaultApexClass",
2084
+ "default": "DefaultVFPage",
1759
2085
  "hasDynamicHelp": false,
1760
2086
  "multiple": false,
1761
2087
  "options": [
1762
- "ApexException",
1763
- "ApexUnitTest",
1764
- "BasicUnitTest",
1765
- "DefaultApexClass",
1766
- "InboundEmailService"
2088
+ "DefaultVFPage"
1767
2089
  ],
1768
2090
  "type": "option"
1769
2091
  },
@@ -1792,6 +2114,15 @@
1792
2114
  "multiple": false,
1793
2115
  "type": "option"
1794
2116
  },
2117
+ "label": {
2118
+ "char": "l",
2119
+ "name": "label",
2120
+ "required": true,
2121
+ "summary": "Visualforce Page label.",
2122
+ "hasDynamicHelp": false,
2123
+ "multiple": false,
2124
+ "type": "option"
2125
+ },
1795
2126
  "loglevel": {
1796
2127
  "deprecated": {
1797
2128
  "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."
@@ -1805,12 +2136,12 @@
1805
2136
  },
1806
2137
  "hasDynamicHelp": false,
1807
2138
  "hiddenAliases": [],
1808
- "id": "template:generate:apex:class",
2139
+ "id": "template:generate:visualforce:page",
1809
2140
  "pluginAlias": "@salesforce/plugin-templates",
1810
2141
  "pluginName": "@salesforce/plugin-templates",
1811
2142
  "pluginType": "core",
1812
2143
  "strict": true,
1813
- "summary": "Generate an Apex class.",
2144
+ "summary": "Generate a Visualforce Page.",
1814
2145
  "enableJsonFlag": true,
1815
2146
  "isESM": true,
1816
2147
  "relativePath": [
@@ -1818,80 +2149,79 @@
1818
2149
  "commands",
1819
2150
  "template",
1820
2151
  "generate",
1821
- "apex",
1822
- "class.js"
2152
+ "visualforce",
2153
+ "page.js"
1823
2154
  ],
1824
2155
  "aliasPermutations": [
1825
- "force:apex:class:create",
1826
- "apex:force:class:create",
1827
- "apex:class:force:create",
1828
- "apex:class:create:force",
1829
- "force:class:apex:create",
1830
- "class:force:apex:create",
1831
- "class:apex:force:create",
1832
- "class:apex:create:force",
1833
- "force:class:create:apex",
1834
- "class:force:create:apex",
1835
- "class:create:force:apex",
1836
- "class:create:apex:force",
1837
- "force:apex:create:class",
1838
- "apex:force:create:class",
1839
- "apex:create:force:class",
1840
- "apex:create:class:force",
1841
- "force:create:apex:class",
1842
- "create:force:apex:class",
1843
- "create:apex:force:class",
1844
- "create:apex:class:force",
1845
- "force:create:class:apex",
1846
- "create:force:class:apex",
1847
- "create:class:force:apex",
1848
- "create:class:apex:force",
1849
- "apex:generate:class",
1850
- "generate:apex:class",
1851
- "generate:class:apex",
1852
- "apex:class:generate",
1853
- "class:apex:generate",
1854
- "class:generate:apex"
2156
+ "force:visualforce:page:create",
2157
+ "visualforce:force:page:create",
2158
+ "visualforce:page:force:create",
2159
+ "visualforce:page:create:force",
2160
+ "force:page:visualforce:create",
2161
+ "page:force:visualforce:create",
2162
+ "page:visualforce:force:create",
2163
+ "page:visualforce:create:force",
2164
+ "force:page:create:visualforce",
2165
+ "page:force:create:visualforce",
2166
+ "page:create:force:visualforce",
2167
+ "page:create:visualforce:force",
2168
+ "force:visualforce:create:page",
2169
+ "visualforce:force:create:page",
2170
+ "visualforce:create:force:page",
2171
+ "visualforce:create:page:force",
2172
+ "force:create:visualforce:page",
2173
+ "create:force:visualforce:page",
2174
+ "create:visualforce:force:page",
2175
+ "create:visualforce:page:force",
2176
+ "force:create:page:visualforce",
2177
+ "create:force:page:visualforce",
2178
+ "create:page:force:visualforce",
2179
+ "create:page:visualforce:force",
2180
+ "visualforce:generate:page",
2181
+ "generate:visualforce:page",
2182
+ "generate:page:visualforce",
2183
+ "visualforce:page:generate",
2184
+ "page:visualforce:generate",
2185
+ "page:generate:visualforce"
1855
2186
  ],
1856
2187
  "permutations": [
1857
- "template:generate:apex:class",
1858
- "generate:template:apex:class",
1859
- "generate:apex:template:class",
1860
- "generate:apex:class:template",
1861
- "template:apex:generate:class",
1862
- "apex:template:generate:class",
1863
- "apex:generate:template:class",
1864
- "apex:generate:class:template",
1865
- "template:apex:class:generate",
1866
- "apex:template:class:generate",
1867
- "apex:class:template:generate",
1868
- "apex:class:generate:template",
1869
- "template:generate:class:apex",
1870
- "generate:template:class:apex",
1871
- "generate:class:template:apex",
1872
- "generate:class:apex:template",
1873
- "template:class:generate:apex",
1874
- "class:template:generate:apex",
1875
- "class:generate:template:apex",
1876
- "class:generate:apex:template",
1877
- "template:class:apex:generate",
1878
- "class:template:apex:generate",
1879
- "class:apex:template:generate",
1880
- "class:apex:generate:template"
2188
+ "template:generate:visualforce:page",
2189
+ "generate:template:visualforce:page",
2190
+ "generate:visualforce:template:page",
2191
+ "generate:visualforce:page:template",
2192
+ "template:visualforce:generate:page",
2193
+ "visualforce:template:generate:page",
2194
+ "visualforce:generate:template:page",
2195
+ "visualforce:generate:page:template",
2196
+ "template:visualforce:page:generate",
2197
+ "visualforce:template:page:generate",
2198
+ "visualforce:page:template:generate",
2199
+ "visualforce:page:generate:template",
2200
+ "template:generate:page:visualforce",
2201
+ "generate:template:page:visualforce",
2202
+ "generate:page:template:visualforce",
2203
+ "generate:page:visualforce:template",
2204
+ "template:page:generate:visualforce",
2205
+ "page:template:generate:visualforce",
2206
+ "page:generate:template:visualforce",
2207
+ "page:generate:visualforce:template",
2208
+ "template:page:visualforce:generate",
2209
+ "page:template:visualforce:generate",
2210
+ "page:visualforce:template:generate",
2211
+ "page:visualforce:generate:template"
1881
2212
  ]
1882
2213
  },
1883
- "template:generate:apex:trigger": {
2214
+ "template:generate:webapp": {
1884
2215
  "aliases": [
1885
- "force:apex:trigger:create",
1886
- "apex:generate:trigger"
2216
+ "webapp:generate"
1887
2217
  ],
1888
2218
  "args": {},
1889
2219
  "deprecateAliases": true,
1890
- "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.",
2220
+ "description": "Generates a web application in the specified directory or the current working directory. The web application files are created in a folder with the designated name. Web application files must be contained in a parent directory called \"webapplications\" 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.",
1891
2221
  "examples": [
1892
- "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",
1893
- "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",
1894
- "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\""
2222
+ "Generate a web application called MyWebApp in the current directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp",
2223
+ "Generate a React-based web application:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
2224
+ "Generate the web application in the \"force-app/main/default/webapplications\" directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp --output-dir force-app/main/default/webapplications"
1895
2225
  ],
1896
2226
  "flags": {
1897
2227
  "json": {
@@ -1910,15 +2240,11 @@
1910
2240
  "type": "option"
1911
2241
  },
1912
2242
  "name": {
1913
- "aliases": [
1914
- "triggername"
1915
- ],
1916
2243
  "char": "n",
1917
- "deprecateAliases": true,
1918
- "description": "The name can be up to 40 characters and must start with a letter.",
2244
+ "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.",
1919
2245
  "name": "name",
1920
2246
  "required": true,
1921
- "summary": "Name of the generated Apex trigger",
2247
+ "summary": "Name of the generated web application.",
1922
2248
  "hasDynamicHelp": false,
1923
2249
  "multiple": false,
1924
2250
  "type": "option"
@@ -1928,92 +2254,50 @@
1928
2254
  "description": "Supplied parameter values or default values are filled into a copy of the template.",
1929
2255
  "name": "template",
1930
2256
  "summary": "Template to use for file creation.",
1931
- "default": "ApexTrigger",
2257
+ "default": "default",
1932
2258
  "hasDynamicHelp": false,
1933
2259
  "multiple": false,
1934
2260
  "options": [
1935
- "ApexTrigger"
2261
+ "default",
2262
+ "reactbasic"
1936
2263
  ],
1937
2264
  "type": "option"
1938
2265
  },
2266
+ "label": {
2267
+ "char": "l",
2268
+ "description": "If not specified, the label is derived from the name.",
2269
+ "name": "label",
2270
+ "summary": "Master label for the web application.",
2271
+ "hasDynamicHelp": false,
2272
+ "multiple": false,
2273
+ "type": "option"
2274
+ },
1939
2275
  "output-dir": {
1940
- "aliases": [
1941
- "outputdir"
1942
- ],
1943
2276
  "char": "d",
1944
- "deprecateAliases": true,
1945
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2277
+ "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 and defaults to the webapplications directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
1946
2278
  "name": "output-dir",
1947
2279
  "summary": "Directory for saving the created files.",
1948
- "default": ".",
1949
2280
  "hasDynamicHelp": false,
1950
2281
  "multiple": false,
1951
2282
  "type": "option"
1952
2283
  },
1953
2284
  "api-version": {
1954
- "aliases": [
1955
- "apiversion"
1956
- ],
1957
- "deprecateAliases": true,
1958
2285
  "description": "Override the api version used for api requests made by this command",
1959
2286
  "name": "api-version",
1960
2287
  "hasDynamicHelp": false,
1961
2288
  "multiple": false,
1962
2289
  "type": "option"
1963
- },
1964
- "sobject": {
1965
- "char": "s",
1966
- "name": "sobject",
1967
- "summary": "Salesforce object to generate a trigger on.",
1968
- "default": "SOBJECT",
1969
- "hasDynamicHelp": false,
1970
- "multiple": false,
1971
- "type": "option"
1972
- },
1973
- "event": {
1974
- "aliases": [
1975
- "triggerevents"
1976
- ],
1977
- "char": "e",
1978
- "deprecateAliases": true,
1979
- "name": "event",
1980
- "summary": "Events that fire the trigger.",
1981
- "default": [
1982
- "before insert"
1983
- ],
1984
- "delimiter": ",",
1985
- "hasDynamicHelp": false,
1986
- "multiple": true,
1987
- "options": [
1988
- "before insert",
1989
- "before update",
1990
- "before delete",
1991
- "after insert",
1992
- "after update",
1993
- "after delete",
1994
- "after undelete"
1995
- ],
1996
- "type": "option"
1997
- },
1998
- "loglevel": {
1999
- "deprecated": {
2000
- "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."
2001
- },
2002
- "hidden": true,
2003
- "name": "loglevel",
2004
- "hasDynamicHelp": false,
2005
- "multiple": false,
2006
- "type": "option"
2007
2290
  }
2008
2291
  },
2009
2292
  "hasDynamicHelp": false,
2293
+ "hidden": true,
2010
2294
  "hiddenAliases": [],
2011
- "id": "template:generate:apex:trigger",
2295
+ "id": "template:generate:webapp",
2012
2296
  "pluginAlias": "@salesforce/plugin-templates",
2013
2297
  "pluginName": "@salesforce/plugin-templates",
2014
2298
  "pluginType": "core",
2015
2299
  "strict": true,
2016
- "summary": "Generate an Apex trigger.",
2300
+ "summary": "Generate a web application.",
2017
2301
  "enableJsonFlag": true,
2018
2302
  "isESM": true,
2019
2303
  "relativePath": [
@@ -2021,68 +2305,22 @@
2021
2305
  "commands",
2022
2306
  "template",
2023
2307
  "generate",
2024
- "apex",
2025
- "trigger.js"
2308
+ "webapp",
2309
+ "index.js"
2026
2310
  ],
2027
2311
  "aliasPermutations": [
2028
- "force:apex:trigger:create",
2029
- "apex:force:trigger:create",
2030
- "apex:trigger:force:create",
2031
- "apex:trigger:create:force",
2032
- "force:trigger:apex:create",
2033
- "trigger:force:apex:create",
2034
- "trigger:apex:force:create",
2035
- "trigger:apex:create:force",
2036
- "force:trigger:create:apex",
2037
- "trigger:force:create:apex",
2038
- "trigger:create:force:apex",
2039
- "trigger:create:apex:force",
2040
- "force:apex:create:trigger",
2041
- "apex:force:create:trigger",
2042
- "apex:create:force:trigger",
2043
- "apex:create:trigger:force",
2044
- "force:create:apex:trigger",
2045
- "create:force:apex:trigger",
2046
- "create:apex:force:trigger",
2047
- "create:apex:trigger:force",
2048
- "force:create:trigger:apex",
2049
- "create:force:trigger:apex",
2050
- "create:trigger:force:apex",
2051
- "create:trigger:apex:force",
2052
- "apex:generate:trigger",
2053
- "generate:apex:trigger",
2054
- "generate:trigger:apex",
2055
- "apex:trigger:generate",
2056
- "trigger:apex:generate",
2057
- "trigger:generate:apex"
2312
+ "webapp:generate",
2313
+ "generate:webapp"
2058
2314
  ],
2059
2315
  "permutations": [
2060
- "template:generate:apex:trigger",
2061
- "generate:template:apex:trigger",
2062
- "generate:apex:template:trigger",
2063
- "generate:apex:trigger:template",
2064
- "template:apex:generate:trigger",
2065
- "apex:template:generate:trigger",
2066
- "apex:generate:template:trigger",
2067
- "apex:generate:trigger:template",
2068
- "template:apex:trigger:generate",
2069
- "apex:template:trigger:generate",
2070
- "apex:trigger:template:generate",
2071
- "apex:trigger:generate:template",
2072
- "template:generate:trigger:apex",
2073
- "generate:template:trigger:apex",
2074
- "generate:trigger:template:apex",
2075
- "generate:trigger:apex:template",
2076
- "template:trigger:generate:apex",
2077
- "trigger:template:generate:apex",
2078
- "trigger:generate:template:apex",
2079
- "trigger:generate:apex:template",
2080
- "template:trigger:apex:generate",
2081
- "trigger:template:apex:generate",
2082
- "trigger:apex:template:generate",
2083
- "trigger:apex:generate:template"
2316
+ "template:generate:webapp",
2317
+ "generate:template:webapp",
2318
+ "generate:webapp:template",
2319
+ "template:webapp:generate",
2320
+ "webapp:template:generate",
2321
+ "webapp:generate:template"
2084
2322
  ]
2085
2323
  }
2086
2324
  },
2087
- "version": "56.6.0"
2325
+ "version": "56.7.1"
2088
2326
  }