@salesforce/plugin-templates 56.13.3 → 56.13.4
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.
package/README.md
CHANGED
|
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
|
|
|
177
177
|
directory.
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
180
|
+
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/analytics/template.ts)_
|
|
181
181
|
|
|
182
182
|
## `sf template generate apex class`
|
|
183
183
|
|
|
@@ -237,7 +237,7 @@ FLAG DESCRIPTIONS
|
|
|
237
237
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
-
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
240
|
+
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/apex/class.ts)_
|
|
241
241
|
|
|
242
242
|
## `sf template generate apex trigger`
|
|
243
243
|
|
|
@@ -307,7 +307,7 @@ FLAG DESCRIPTIONS
|
|
|
307
307
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
310
|
+
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/apex/trigger.ts)_
|
|
311
311
|
|
|
312
312
|
## `sf template generate digital-experience site`
|
|
313
313
|
|
|
@@ -361,7 +361,7 @@ FLAG DESCRIPTIONS
|
|
|
361
361
|
project, defaults to the current directory.
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
364
|
+
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/digital-experience/site.ts)_
|
|
365
365
|
|
|
366
366
|
## `sf template generate flexipage`
|
|
367
367
|
|
|
@@ -443,7 +443,7 @@ FLAG DESCRIPTIONS
|
|
|
443
443
|
'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
|
|
444
444
|
```
|
|
445
445
|
|
|
446
|
-
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
446
|
+
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/flexipage/index.ts)_
|
|
447
447
|
|
|
448
448
|
## `sf template generate lightning app`
|
|
449
449
|
|
|
@@ -499,7 +499,7 @@ FLAG DESCRIPTIONS
|
|
|
499
499
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
500
500
|
```
|
|
501
501
|
|
|
502
|
-
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
502
|
+
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/app.ts)_
|
|
503
503
|
|
|
504
504
|
## `sf template generate lightning component`
|
|
505
505
|
|
|
@@ -569,7 +569,7 @@ FLAG DESCRIPTIONS
|
|
|
569
569
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
570
570
|
```
|
|
571
571
|
|
|
572
|
-
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
572
|
+
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/component.ts)_
|
|
573
573
|
|
|
574
574
|
## `sf template generate lightning event`
|
|
575
575
|
|
|
@@ -625,7 +625,7 @@ FLAG DESCRIPTIONS
|
|
|
625
625
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
626
626
|
```
|
|
627
627
|
|
|
628
|
-
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
628
|
+
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/event.ts)_
|
|
629
629
|
|
|
630
630
|
## `sf template generate lightning interface`
|
|
631
631
|
|
|
@@ -681,7 +681,7 @@ FLAG DESCRIPTIONS
|
|
|
681
681
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
682
682
|
```
|
|
683
683
|
|
|
684
|
-
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
684
|
+
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/interface.ts)_
|
|
685
685
|
|
|
686
686
|
## `sf template generate lightning test`
|
|
687
687
|
|
|
@@ -737,7 +737,7 @@ FLAG DESCRIPTIONS
|
|
|
737
737
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
738
738
|
```
|
|
739
739
|
|
|
740
|
-
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
740
|
+
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/test.ts)_
|
|
741
741
|
|
|
742
742
|
## `sf template generate project`
|
|
743
743
|
|
|
@@ -850,7 +850,7 @@ FLAG DESCRIPTIONS
|
|
|
850
850
|
Override the api version used for api requests made by this command
|
|
851
851
|
```
|
|
852
852
|
|
|
853
|
-
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
853
|
+
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/project/index.ts)_
|
|
854
854
|
|
|
855
855
|
## `sf template generate static-resource`
|
|
856
856
|
|
|
@@ -913,7 +913,7 @@ FLAG DESCRIPTIONS
|
|
|
913
913
|
etc.
|
|
914
914
|
```
|
|
915
915
|
|
|
916
|
-
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
916
|
+
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/static-resource/index.ts)_
|
|
917
917
|
|
|
918
918
|
## `sf template generate ui-bundle`
|
|
919
919
|
|
|
@@ -952,9 +952,6 @@ DESCRIPTION
|
|
|
952
952
|
Use the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out
|
|
953
953
|
the README.md file in the generated "uiBundles/<bundlename>" directory for more information about the template.
|
|
954
954
|
|
|
955
|
-
ALIASES
|
|
956
|
-
$ sf ui-bundle generate
|
|
957
|
-
|
|
958
955
|
EXAMPLES
|
|
959
956
|
Generate a UI bundle called MyUiBundle in the current directory:
|
|
960
957
|
|
|
@@ -1000,7 +997,7 @@ FLAG DESCRIPTIONS
|
|
|
1000
997
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1001
998
|
```
|
|
1002
999
|
|
|
1003
|
-
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
1000
|
+
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/ui-bundle/index.ts)_
|
|
1004
1001
|
|
|
1005
1002
|
## `sf template generate visualforce component`
|
|
1006
1003
|
|
|
@@ -1057,7 +1054,7 @@ FLAG DESCRIPTIONS
|
|
|
1057
1054
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1058
1055
|
```
|
|
1059
1056
|
|
|
1060
|
-
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
1057
|
+
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/visualforce/component.ts)_
|
|
1061
1058
|
|
|
1062
1059
|
## `sf template generate visualforce page`
|
|
1063
1060
|
|
|
@@ -1108,6 +1105,6 @@ FLAG DESCRIPTIONS
|
|
|
1108
1105
|
The name can be up to 40 characters and must start with a letter.
|
|
1109
1106
|
```
|
|
1110
1107
|
|
|
1111
|
-
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.
|
|
1108
|
+
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/visualforce/page.ts)_
|
|
1112
1109
|
|
|
1113
1110
|
<!-- commandsstop -->
|
|
@@ -5,7 +5,6 @@ export default class UiBundleGenerate extends SfCommand<CreateOutput> {
|
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
|
-
static readonly aliases: string[];
|
|
9
8
|
static readonly flags: {
|
|
10
9
|
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
10
|
template: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -16,7 +16,6 @@ export default class UiBundleGenerate extends SfCommand {
|
|
|
16
16
|
static summary = messages.getMessage('summary');
|
|
17
17
|
static description = messages.getMessage('description');
|
|
18
18
|
static examples = messages.getMessages('examples');
|
|
19
|
-
static aliases = ['ui-bundle:generate'];
|
|
20
19
|
static flags = {
|
|
21
20
|
name: Flags.string({
|
|
22
21
|
char: 'n',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-bundle/index.ts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BAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"template:generate:
|
|
3
|
+
"template:generate:apex:class": {
|
|
4
4
|
"aliases": [
|
|
5
|
-
"force:
|
|
6
|
-
"
|
|
5
|
+
"force:apex:class:create",
|
|
6
|
+
"apex:generate:class"
|
|
7
7
|
],
|
|
8
8
|
"args": {},
|
|
9
9
|
"deprecateAliases": true,
|
|
10
|
-
"description": "
|
|
10
|
+
"description": "Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called \"classes\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
11
11
|
"examples": [
|
|
12
|
-
"Generate
|
|
12
|
+
"Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyClass",
|
|
13
|
+
"Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n<%= config.bin %> <%= command.id %> --name MyClass --output-dir force-app/main/default/classes"
|
|
13
14
|
],
|
|
14
15
|
"flags": {
|
|
15
16
|
"json": {
|
|
@@ -27,6 +28,37 @@
|
|
|
27
28
|
"multiple": false,
|
|
28
29
|
"type": "option"
|
|
29
30
|
},
|
|
31
|
+
"name": {
|
|
32
|
+
"aliases": [
|
|
33
|
+
"classname"
|
|
34
|
+
],
|
|
35
|
+
"char": "n",
|
|
36
|
+
"deprecateAliases": true,
|
|
37
|
+
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
38
|
+
"name": "name",
|
|
39
|
+
"required": true,
|
|
40
|
+
"summary": "Name of the generated Apex class.",
|
|
41
|
+
"hasDynamicHelp": false,
|
|
42
|
+
"multiple": false,
|
|
43
|
+
"type": "option"
|
|
44
|
+
},
|
|
45
|
+
"template": {
|
|
46
|
+
"char": "t",
|
|
47
|
+
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
48
|
+
"name": "template",
|
|
49
|
+
"summary": "Template to use for file creation.",
|
|
50
|
+
"default": "DefaultApexClass",
|
|
51
|
+
"hasDynamicHelp": false,
|
|
52
|
+
"multiple": false,
|
|
53
|
+
"options": [
|
|
54
|
+
"ApexException",
|
|
55
|
+
"ApexUnitTest",
|
|
56
|
+
"BasicUnitTest",
|
|
57
|
+
"DefaultApexClass",
|
|
58
|
+
"InboundEmailService"
|
|
59
|
+
],
|
|
60
|
+
"type": "option"
|
|
61
|
+
},
|
|
30
62
|
"output-dir": {
|
|
31
63
|
"aliases": [
|
|
32
64
|
"outputdir"
|
|
@@ -52,19 +84,6 @@
|
|
|
52
84
|
"multiple": false,
|
|
53
85
|
"type": "option"
|
|
54
86
|
},
|
|
55
|
-
"name": {
|
|
56
|
-
"aliases": [
|
|
57
|
-
"templatename"
|
|
58
|
-
],
|
|
59
|
-
"char": "n",
|
|
60
|
-
"deprecateAliases": true,
|
|
61
|
-
"name": "name",
|
|
62
|
-
"required": true,
|
|
63
|
-
"summary": "Name of the Analytics template.",
|
|
64
|
-
"hasDynamicHelp": false,
|
|
65
|
-
"multiple": false,
|
|
66
|
-
"type": "option"
|
|
67
|
-
},
|
|
68
87
|
"loglevel": {
|
|
69
88
|
"deprecated": {
|
|
70
89
|
"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."
|
|
@@ -78,12 +97,12 @@
|
|
|
78
97
|
},
|
|
79
98
|
"hasDynamicHelp": false,
|
|
80
99
|
"hiddenAliases": [],
|
|
81
|
-
"id": "template:generate:
|
|
100
|
+
"id": "template:generate:apex:class",
|
|
82
101
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
83
102
|
"pluginName": "@salesforce/plugin-templates",
|
|
84
103
|
"pluginType": "core",
|
|
85
104
|
"strict": true,
|
|
86
|
-
"summary": "Generate
|
|
105
|
+
"summary": "Generate an Apex class.",
|
|
87
106
|
"enableJsonFlag": true,
|
|
88
107
|
"isESM": true,
|
|
89
108
|
"relativePath": [
|
|
@@ -91,75 +110,80 @@
|
|
|
91
110
|
"commands",
|
|
92
111
|
"template",
|
|
93
112
|
"generate",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
113
|
+
"apex",
|
|
114
|
+
"class.js"
|
|
96
115
|
],
|
|
97
116
|
"aliasPermutations": [
|
|
98
|
-
"force:
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"force:
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"force:
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"force:
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"force:create:
|
|
115
|
-
"create:force:
|
|
116
|
-
"create:
|
|
117
|
-
"create:
|
|
118
|
-
"force:create:
|
|
119
|
-
"create:force:
|
|
120
|
-
"create:
|
|
121
|
-
"create:
|
|
122
|
-
"
|
|
123
|
-
"generate:
|
|
124
|
-
"generate:
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
117
|
+
"force:apex:class:create",
|
|
118
|
+
"apex:force:class:create",
|
|
119
|
+
"apex:class:force:create",
|
|
120
|
+
"apex:class:create:force",
|
|
121
|
+
"force:class:apex:create",
|
|
122
|
+
"class:force:apex:create",
|
|
123
|
+
"class:apex:force:create",
|
|
124
|
+
"class:apex:create:force",
|
|
125
|
+
"force:class:create:apex",
|
|
126
|
+
"class:force:create:apex",
|
|
127
|
+
"class:create:force:apex",
|
|
128
|
+
"class:create:apex:force",
|
|
129
|
+
"force:apex:create:class",
|
|
130
|
+
"apex:force:create:class",
|
|
131
|
+
"apex:create:force:class",
|
|
132
|
+
"apex:create:class:force",
|
|
133
|
+
"force:create:apex:class",
|
|
134
|
+
"create:force:apex:class",
|
|
135
|
+
"create:apex:force:class",
|
|
136
|
+
"create:apex:class:force",
|
|
137
|
+
"force:create:class:apex",
|
|
138
|
+
"create:force:class:apex",
|
|
139
|
+
"create:class:force:apex",
|
|
140
|
+
"create:class:apex:force",
|
|
141
|
+
"apex:generate:class",
|
|
142
|
+
"generate:apex:class",
|
|
143
|
+
"generate:class:apex",
|
|
144
|
+
"apex:class:generate",
|
|
145
|
+
"class:apex:generate",
|
|
146
|
+
"class:generate:apex"
|
|
128
147
|
],
|
|
129
148
|
"permutations": [
|
|
130
|
-
"template:generate:
|
|
131
|
-
"generate:template:
|
|
132
|
-
"generate:
|
|
133
|
-
"generate:
|
|
134
|
-
"template:
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"template:
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"template:generate:
|
|
143
|
-
"generate:template:
|
|
144
|
-
"generate:
|
|
145
|
-
"generate:
|
|
146
|
-
"template:
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"template:
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
149
|
+
"template:generate:apex:class",
|
|
150
|
+
"generate:template:apex:class",
|
|
151
|
+
"generate:apex:template:class",
|
|
152
|
+
"generate:apex:class:template",
|
|
153
|
+
"template:apex:generate:class",
|
|
154
|
+
"apex:template:generate:class",
|
|
155
|
+
"apex:generate:template:class",
|
|
156
|
+
"apex:generate:class:template",
|
|
157
|
+
"template:apex:class:generate",
|
|
158
|
+
"apex:template:class:generate",
|
|
159
|
+
"apex:class:template:generate",
|
|
160
|
+
"apex:class:generate:template",
|
|
161
|
+
"template:generate:class:apex",
|
|
162
|
+
"generate:template:class:apex",
|
|
163
|
+
"generate:class:template:apex",
|
|
164
|
+
"generate:class:apex:template",
|
|
165
|
+
"template:class:generate:apex",
|
|
166
|
+
"class:template:generate:apex",
|
|
167
|
+
"class:generate:template:apex",
|
|
168
|
+
"class:generate:apex:template",
|
|
169
|
+
"template:class:apex:generate",
|
|
170
|
+
"class:template:apex:generate",
|
|
171
|
+
"class:apex:template:generate",
|
|
172
|
+
"class:apex:generate:template"
|
|
154
173
|
]
|
|
155
174
|
},
|
|
156
|
-
"template:generate:
|
|
157
|
-
"aliases": [
|
|
175
|
+
"template:generate:apex:trigger": {
|
|
176
|
+
"aliases": [
|
|
177
|
+
"force:apex:trigger:create",
|
|
178
|
+
"apex:generate:trigger"
|
|
179
|
+
],
|
|
158
180
|
"args": {},
|
|
159
|
-
"
|
|
181
|
+
"deprecateAliases": true,
|
|
182
|
+
"description": "Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called \"triggers\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.\n\nIf you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.",
|
|
160
183
|
"examples": [
|
|
161
|
-
"Generate
|
|
162
|
-
"
|
|
184
|
+
"Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in the current directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger",
|
|
185
|
+
"Similar to the previous example, but generate the files in the \"force-app/main/default/triggers\" directory:\n<%= config.bin %> <%= command.id %> --name MyTrigger --output-dir force-app/main/default/triggers",
|
|
186
|
+
"Generate files for a trigger that fires on the Account object before and after an insert:\n<%= config.bin %> <%= command.id %> --name MyTrigger --sobject Account --event \"before insert,after insert\""
|
|
163
187
|
],
|
|
164
188
|
"flags": {
|
|
165
189
|
"json": {
|
|
@@ -177,72 +201,111 @@
|
|
|
177
201
|
"multiple": false,
|
|
178
202
|
"type": "option"
|
|
179
203
|
},
|
|
180
|
-
"target-org": {
|
|
181
|
-
"char": "o",
|
|
182
|
-
"name": "target-org",
|
|
183
|
-
"noCacheDefault": true,
|
|
184
|
-
"summary": "Username or alias of the target org.",
|
|
185
|
-
"hasDynamicHelp": true,
|
|
186
|
-
"multiple": false,
|
|
187
|
-
"type": "option"
|
|
188
|
-
},
|
|
189
204
|
"name": {
|
|
205
|
+
"aliases": [
|
|
206
|
+
"triggername"
|
|
207
|
+
],
|
|
190
208
|
"char": "n",
|
|
209
|
+
"deprecateAliases": true,
|
|
210
|
+
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
191
211
|
"name": "name",
|
|
192
212
|
"required": true,
|
|
193
|
-
"summary": "Name of the
|
|
213
|
+
"summary": "Name of the generated Apex trigger",
|
|
194
214
|
"hasDynamicHelp": false,
|
|
195
215
|
"multiple": false,
|
|
196
216
|
"type": "option"
|
|
197
217
|
},
|
|
198
|
-
"template
|
|
218
|
+
"template": {
|
|
199
219
|
"char": "t",
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"summary": "Template to use
|
|
220
|
+
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
221
|
+
"name": "template",
|
|
222
|
+
"summary": "Template to use for file creation.",
|
|
223
|
+
"default": "ApexTrigger",
|
|
203
224
|
"hasDynamicHelp": false,
|
|
204
225
|
"multiple": false,
|
|
205
226
|
"options": [
|
|
206
|
-
"
|
|
227
|
+
"ApexTrigger"
|
|
207
228
|
],
|
|
208
229
|
"type": "option"
|
|
209
230
|
},
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
231
|
+
"output-dir": {
|
|
232
|
+
"aliases": [
|
|
233
|
+
"outputdir"
|
|
234
|
+
],
|
|
235
|
+
"char": "d",
|
|
236
|
+
"deprecateAliases": true,
|
|
237
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
238
|
+
"name": "output-dir",
|
|
239
|
+
"summary": "Directory for saving the created files.",
|
|
240
|
+
"default": ".",
|
|
215
241
|
"hasDynamicHelp": false,
|
|
216
242
|
"multiple": false,
|
|
217
243
|
"type": "option"
|
|
218
244
|
},
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
245
|
+
"api-version": {
|
|
246
|
+
"aliases": [
|
|
247
|
+
"apiversion"
|
|
248
|
+
],
|
|
249
|
+
"deprecateAliases": true,
|
|
250
|
+
"description": "Override the api version used for api requests made by this command",
|
|
251
|
+
"name": "api-version",
|
|
223
252
|
"hasDynamicHelp": false,
|
|
224
253
|
"multiple": false,
|
|
225
254
|
"type": "option"
|
|
226
255
|
},
|
|
227
|
-
"
|
|
228
|
-
"char": "
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"
|
|
256
|
+
"sobject": {
|
|
257
|
+
"char": "s",
|
|
258
|
+
"name": "sobject",
|
|
259
|
+
"summary": "Salesforce object to generate a trigger on.",
|
|
260
|
+
"default": "SOBJECT",
|
|
261
|
+
"hasDynamicHelp": false,
|
|
262
|
+
"multiple": false,
|
|
263
|
+
"type": "option"
|
|
264
|
+
},
|
|
265
|
+
"event": {
|
|
266
|
+
"aliases": [
|
|
267
|
+
"triggerevents"
|
|
268
|
+
],
|
|
269
|
+
"char": "e",
|
|
270
|
+
"deprecateAliases": true,
|
|
271
|
+
"name": "event",
|
|
272
|
+
"summary": "Events that fire the trigger.",
|
|
273
|
+
"default": [
|
|
274
|
+
"before insert"
|
|
275
|
+
],
|
|
276
|
+
"delimiter": ",",
|
|
277
|
+
"hasDynamicHelp": false,
|
|
278
|
+
"multiple": true,
|
|
279
|
+
"options": [
|
|
280
|
+
"before insert",
|
|
281
|
+
"before update",
|
|
282
|
+
"before delete",
|
|
283
|
+
"after insert",
|
|
284
|
+
"after update",
|
|
285
|
+
"after delete",
|
|
286
|
+
"after undelete"
|
|
287
|
+
],
|
|
288
|
+
"type": "option"
|
|
289
|
+
},
|
|
290
|
+
"loglevel": {
|
|
291
|
+
"deprecated": {
|
|
292
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
293
|
+
},
|
|
294
|
+
"hidden": true,
|
|
295
|
+
"name": "loglevel",
|
|
232
296
|
"hasDynamicHelp": false,
|
|
233
297
|
"multiple": false,
|
|
234
298
|
"type": "option"
|
|
235
299
|
}
|
|
236
300
|
},
|
|
237
|
-
"hasDynamicHelp":
|
|
301
|
+
"hasDynamicHelp": false,
|
|
238
302
|
"hiddenAliases": [],
|
|
239
|
-
"id": "template:generate:
|
|
303
|
+
"id": "template:generate:apex:trigger",
|
|
240
304
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
241
305
|
"pluginName": "@salesforce/plugin-templates",
|
|
242
306
|
"pluginType": "core",
|
|
243
|
-
"state": "preview",
|
|
244
307
|
"strict": true,
|
|
245
|
-
"summary": "Generate an
|
|
308
|
+
"summary": "Generate an Apex trigger.",
|
|
246
309
|
"enableJsonFlag": true,
|
|
247
310
|
"isESM": true,
|
|
248
311
|
"relativePath": [
|
|
@@ -250,48 +313,78 @@
|
|
|
250
313
|
"commands",
|
|
251
314
|
"template",
|
|
252
315
|
"generate",
|
|
253
|
-
"
|
|
254
|
-
"
|
|
316
|
+
"apex",
|
|
317
|
+
"trigger.js"
|
|
318
|
+
],
|
|
319
|
+
"aliasPermutations": [
|
|
320
|
+
"force:apex:trigger:create",
|
|
321
|
+
"apex:force:trigger:create",
|
|
322
|
+
"apex:trigger:force:create",
|
|
323
|
+
"apex:trigger:create:force",
|
|
324
|
+
"force:trigger:apex:create",
|
|
325
|
+
"trigger:force:apex:create",
|
|
326
|
+
"trigger:apex:force:create",
|
|
327
|
+
"trigger:apex:create:force",
|
|
328
|
+
"force:trigger:create:apex",
|
|
329
|
+
"trigger:force:create:apex",
|
|
330
|
+
"trigger:create:force:apex",
|
|
331
|
+
"trigger:create:apex:force",
|
|
332
|
+
"force:apex:create:trigger",
|
|
333
|
+
"apex:force:create:trigger",
|
|
334
|
+
"apex:create:force:trigger",
|
|
335
|
+
"apex:create:trigger:force",
|
|
336
|
+
"force:create:apex:trigger",
|
|
337
|
+
"create:force:apex:trigger",
|
|
338
|
+
"create:apex:force:trigger",
|
|
339
|
+
"create:apex:trigger:force",
|
|
340
|
+
"force:create:trigger:apex",
|
|
341
|
+
"create:force:trigger:apex",
|
|
342
|
+
"create:trigger:force:apex",
|
|
343
|
+
"create:trigger:apex:force",
|
|
344
|
+
"apex:generate:trigger",
|
|
345
|
+
"generate:apex:trigger",
|
|
346
|
+
"generate:trigger:apex",
|
|
347
|
+
"apex:trigger:generate",
|
|
348
|
+
"trigger:apex:generate",
|
|
349
|
+
"trigger:generate:apex"
|
|
255
350
|
],
|
|
256
|
-
"aliasPermutations": [],
|
|
257
351
|
"permutations": [
|
|
258
|
-
"template:generate:
|
|
259
|
-
"generate:template:
|
|
260
|
-
"generate:
|
|
261
|
-
"generate:
|
|
262
|
-
"template:
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"template:
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"template:generate:
|
|
271
|
-
"generate:template:
|
|
272
|
-
"generate:
|
|
273
|
-
"generate:
|
|
274
|
-
"template:
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"template:
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
352
|
+
"template:generate:apex:trigger",
|
|
353
|
+
"generate:template:apex:trigger",
|
|
354
|
+
"generate:apex:template:trigger",
|
|
355
|
+
"generate:apex:trigger:template",
|
|
356
|
+
"template:apex:generate:trigger",
|
|
357
|
+
"apex:template:generate:trigger",
|
|
358
|
+
"apex:generate:template:trigger",
|
|
359
|
+
"apex:generate:trigger:template",
|
|
360
|
+
"template:apex:trigger:generate",
|
|
361
|
+
"apex:template:trigger:generate",
|
|
362
|
+
"apex:trigger:template:generate",
|
|
363
|
+
"apex:trigger:generate:template",
|
|
364
|
+
"template:generate:trigger:apex",
|
|
365
|
+
"generate:template:trigger:apex",
|
|
366
|
+
"generate:trigger:template:apex",
|
|
367
|
+
"generate:trigger:apex:template",
|
|
368
|
+
"template:trigger:generate:apex",
|
|
369
|
+
"trigger:template:generate:apex",
|
|
370
|
+
"trigger:generate:template:apex",
|
|
371
|
+
"trigger:generate:apex:template",
|
|
372
|
+
"template:trigger:apex:generate",
|
|
373
|
+
"trigger:template:apex:generate",
|
|
374
|
+
"trigger:apex:template:generate",
|
|
375
|
+
"trigger:apex:generate:template"
|
|
282
376
|
]
|
|
283
377
|
},
|
|
284
|
-
"template:generate:
|
|
378
|
+
"template:generate:analytics:template": {
|
|
285
379
|
"aliases": [
|
|
286
|
-
"force:
|
|
287
|
-
"
|
|
380
|
+
"force:analytics:template:create",
|
|
381
|
+
"analytics:generate:template"
|
|
288
382
|
],
|
|
289
383
|
"args": {},
|
|
290
384
|
"deprecateAliases": true,
|
|
291
|
-
"description": "
|
|
385
|
+
"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.",
|
|
292
386
|
"examples": [
|
|
293
|
-
"Generate
|
|
294
|
-
"Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n<%= config.bin %> <%= command.id %> --name MyClass --output-dir force-app/main/default/classes"
|
|
387
|
+
"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"
|
|
295
388
|
],
|
|
296
389
|
"flags": {
|
|
297
390
|
"json": {
|
|
@@ -309,37 +402,6 @@
|
|
|
309
402
|
"multiple": false,
|
|
310
403
|
"type": "option"
|
|
311
404
|
},
|
|
312
|
-
"name": {
|
|
313
|
-
"aliases": [
|
|
314
|
-
"classname"
|
|
315
|
-
],
|
|
316
|
-
"char": "n",
|
|
317
|
-
"deprecateAliases": true,
|
|
318
|
-
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
319
|
-
"name": "name",
|
|
320
|
-
"required": true,
|
|
321
|
-
"summary": "Name of the generated Apex class.",
|
|
322
|
-
"hasDynamicHelp": false,
|
|
323
|
-
"multiple": false,
|
|
324
|
-
"type": "option"
|
|
325
|
-
},
|
|
326
|
-
"template": {
|
|
327
|
-
"char": "t",
|
|
328
|
-
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
329
|
-
"name": "template",
|
|
330
|
-
"summary": "Template to use for file creation.",
|
|
331
|
-
"default": "DefaultApexClass",
|
|
332
|
-
"hasDynamicHelp": false,
|
|
333
|
-
"multiple": false,
|
|
334
|
-
"options": [
|
|
335
|
-
"ApexException",
|
|
336
|
-
"ApexUnitTest",
|
|
337
|
-
"BasicUnitTest",
|
|
338
|
-
"DefaultApexClass",
|
|
339
|
-
"InboundEmailService"
|
|
340
|
-
],
|
|
341
|
-
"type": "option"
|
|
342
|
-
},
|
|
343
405
|
"output-dir": {
|
|
344
406
|
"aliases": [
|
|
345
407
|
"outputdir"
|
|
@@ -365,6 +427,19 @@
|
|
|
365
427
|
"multiple": false,
|
|
366
428
|
"type": "option"
|
|
367
429
|
},
|
|
430
|
+
"name": {
|
|
431
|
+
"aliases": [
|
|
432
|
+
"templatename"
|
|
433
|
+
],
|
|
434
|
+
"char": "n",
|
|
435
|
+
"deprecateAliases": true,
|
|
436
|
+
"name": "name",
|
|
437
|
+
"required": true,
|
|
438
|
+
"summary": "Name of the Analytics template.",
|
|
439
|
+
"hasDynamicHelp": false,
|
|
440
|
+
"multiple": false,
|
|
441
|
+
"type": "option"
|
|
442
|
+
},
|
|
368
443
|
"loglevel": {
|
|
369
444
|
"deprecated": {
|
|
370
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."
|
|
@@ -378,12 +453,12 @@
|
|
|
378
453
|
},
|
|
379
454
|
"hasDynamicHelp": false,
|
|
380
455
|
"hiddenAliases": [],
|
|
381
|
-
"id": "template:generate:
|
|
456
|
+
"id": "template:generate:analytics:template",
|
|
382
457
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
383
458
|
"pluginName": "@salesforce/plugin-templates",
|
|
384
459
|
"pluginType": "core",
|
|
385
460
|
"strict": true,
|
|
386
|
-
"summary": "Generate
|
|
461
|
+
"summary": "Generate a simple Analytics template.",
|
|
387
462
|
"enableJsonFlag": true,
|
|
388
463
|
"isESM": true,
|
|
389
464
|
"relativePath": [
|
|
@@ -391,80 +466,75 @@
|
|
|
391
466
|
"commands",
|
|
392
467
|
"template",
|
|
393
468
|
"generate",
|
|
394
|
-
"
|
|
395
|
-
"
|
|
469
|
+
"analytics",
|
|
470
|
+
"template.js"
|
|
396
471
|
],
|
|
397
472
|
"aliasPermutations": [
|
|
398
|
-
"force:
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"force:
|
|
403
|
-
"
|
|
404
|
-
"
|
|
405
|
-
"
|
|
406
|
-
"force:
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"force:
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"force:create:
|
|
415
|
-
"create:force:
|
|
416
|
-
"create:
|
|
417
|
-
"create:
|
|
418
|
-
"force:create:
|
|
419
|
-
"create:force:
|
|
420
|
-
"create:
|
|
421
|
-
"create:
|
|
422
|
-
"
|
|
423
|
-
"generate:
|
|
424
|
-
"generate:
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
],
|
|
429
|
-
"permutations": [
|
|
430
|
-
"template:generate:
|
|
431
|
-
"generate:template:
|
|
432
|
-
"generate:
|
|
433
|
-
"generate:
|
|
434
|
-
"template:
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
"template:
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"
|
|
442
|
-
"template:generate:
|
|
443
|
-
"generate:template:
|
|
444
|
-
"generate:
|
|
445
|
-
"generate:
|
|
446
|
-
"template:
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"template:
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
"
|
|
473
|
+
"force:analytics:template:create",
|
|
474
|
+
"analytics:force:template:create",
|
|
475
|
+
"analytics:template:force:create",
|
|
476
|
+
"analytics:template:create:force",
|
|
477
|
+
"force:template:analytics:create",
|
|
478
|
+
"template:force:analytics:create",
|
|
479
|
+
"template:analytics:force:create",
|
|
480
|
+
"template:analytics:create:force",
|
|
481
|
+
"force:template:create:analytics",
|
|
482
|
+
"template:force:create:analytics",
|
|
483
|
+
"template:create:force:analytics",
|
|
484
|
+
"template:create:analytics:force",
|
|
485
|
+
"force:analytics:create:template",
|
|
486
|
+
"analytics:force:create:template",
|
|
487
|
+
"analytics:create:force:template",
|
|
488
|
+
"analytics:create:template:force",
|
|
489
|
+
"force:create:analytics:template",
|
|
490
|
+
"create:force:analytics:template",
|
|
491
|
+
"create:analytics:force:template",
|
|
492
|
+
"create:analytics:template:force",
|
|
493
|
+
"force:create:template:analytics",
|
|
494
|
+
"create:force:template:analytics",
|
|
495
|
+
"create:template:force:analytics",
|
|
496
|
+
"create:template:analytics:force",
|
|
497
|
+
"analytics:generate:template",
|
|
498
|
+
"generate:analytics:template",
|
|
499
|
+
"generate:template:analytics",
|
|
500
|
+
"analytics:template:generate",
|
|
501
|
+
"template:analytics:generate",
|
|
502
|
+
"template:generate:analytics"
|
|
503
|
+
],
|
|
504
|
+
"permutations": [
|
|
505
|
+
"template:generate:analytics:template",
|
|
506
|
+
"generate:template:analytics:template",
|
|
507
|
+
"generate:analytics:template:template",
|
|
508
|
+
"generate:analytics:template:template",
|
|
509
|
+
"template:analytics:generate:template",
|
|
510
|
+
"analytics:template:generate:template",
|
|
511
|
+
"analytics:generate:template:template",
|
|
512
|
+
"analytics:generate:template:template",
|
|
513
|
+
"template:analytics:template:generate",
|
|
514
|
+
"analytics:template:template:generate",
|
|
515
|
+
"analytics:template:template:generate",
|
|
516
|
+
"analytics:template:generate:template",
|
|
517
|
+
"template:generate:template:analytics",
|
|
518
|
+
"generate:template:template:analytics",
|
|
519
|
+
"generate:template:template:analytics",
|
|
520
|
+
"generate:template:analytics:template",
|
|
521
|
+
"template:template:generate:analytics",
|
|
522
|
+
"template:template:generate:analytics",
|
|
523
|
+
"template:generate:template:analytics",
|
|
524
|
+
"template:generate:analytics:template",
|
|
525
|
+
"template:template:analytics:generate",
|
|
526
|
+
"template:template:analytics:generate",
|
|
527
|
+
"template:analytics:template:generate",
|
|
528
|
+
"template:analytics:generate:template"
|
|
454
529
|
]
|
|
455
530
|
},
|
|
456
|
-
"template:generate:
|
|
457
|
-
"aliases": [
|
|
458
|
-
"force:apex:trigger:create",
|
|
459
|
-
"apex:generate:trigger"
|
|
460
|
-
],
|
|
531
|
+
"template:generate:digital-experience:site": {
|
|
532
|
+
"aliases": [],
|
|
461
533
|
"args": {},
|
|
462
|
-
"
|
|
463
|
-
"description": "Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called \"triggers\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.\n\nIf you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.",
|
|
534
|
+
"description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
|
|
464
535
|
"examples": [
|
|
465
|
-
"Generate
|
|
466
|
-
"
|
|
467
|
-
"Generate files for a trigger that fires on the Account object before and after an insert:\n<%= config.bin %> <%= command.id %> --name MyTrigger --sobject Account --event \"before insert,after insert\""
|
|
536
|
+
"Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
|
|
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-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
|
|
468
538
|
],
|
|
469
539
|
"flags": {
|
|
470
540
|
"json": {
|
|
@@ -482,111 +552,72 @@
|
|
|
482
552
|
"multiple": false,
|
|
483
553
|
"type": "option"
|
|
484
554
|
},
|
|
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
|
+
},
|
|
485
564
|
"name": {
|
|
486
|
-
"aliases": [
|
|
487
|
-
"triggername"
|
|
488
|
-
],
|
|
489
565
|
"char": "n",
|
|
490
|
-
"deprecateAliases": true,
|
|
491
|
-
"description": "The name can be up to 40 characters and must start with a letter.",
|
|
492
566
|
"name": "name",
|
|
493
567
|
"required": true,
|
|
494
|
-
"summary": "Name of the
|
|
568
|
+
"summary": "Name of the Experience Cloud site to generate.",
|
|
495
569
|
"hasDynamicHelp": false,
|
|
496
570
|
"multiple": false,
|
|
497
571
|
"type": "option"
|
|
498
572
|
},
|
|
499
|
-
"template": {
|
|
573
|
+
"template-name": {
|
|
500
574
|
"char": "t",
|
|
501
|
-
"
|
|
502
|
-
"
|
|
503
|
-
"summary": "Template to use
|
|
504
|
-
"default": "ApexTrigger",
|
|
575
|
+
"name": "template-name",
|
|
576
|
+
"required": true,
|
|
577
|
+
"summary": "Template to use when generating the site.",
|
|
505
578
|
"hasDynamicHelp": false,
|
|
506
579
|
"multiple": false,
|
|
507
580
|
"options": [
|
|
508
|
-
"
|
|
509
|
-
],
|
|
510
|
-
"type": "option"
|
|
511
|
-
},
|
|
512
|
-
"output-dir": {
|
|
513
|
-
"aliases": [
|
|
514
|
-
"outputdir"
|
|
515
|
-
],
|
|
516
|
-
"char": "d",
|
|
517
|
-
"deprecateAliases": true,
|
|
518
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
519
|
-
"name": "output-dir",
|
|
520
|
-
"summary": "Directory for saving the created files.",
|
|
521
|
-
"default": ".",
|
|
522
|
-
"hasDynamicHelp": false,
|
|
523
|
-
"multiple": false,
|
|
524
|
-
"type": "option"
|
|
525
|
-
},
|
|
526
|
-
"api-version": {
|
|
527
|
-
"aliases": [
|
|
528
|
-
"apiversion"
|
|
581
|
+
"Build Your Own (LWR)"
|
|
529
582
|
],
|
|
530
|
-
"deprecateAliases": true,
|
|
531
|
-
"description": "Override the api version used for api requests made by this command",
|
|
532
|
-
"name": "api-version",
|
|
533
|
-
"hasDynamicHelp": false,
|
|
534
|
-
"multiple": false,
|
|
535
583
|
"type": "option"
|
|
536
584
|
},
|
|
537
|
-
"
|
|
538
|
-
"char": "
|
|
539
|
-
"name": "
|
|
540
|
-
"summary": "
|
|
541
|
-
"default": "
|
|
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": "",
|
|
542
590
|
"hasDynamicHelp": false,
|
|
543
591
|
"multiple": false,
|
|
544
592
|
"type": "option"
|
|
545
593
|
},
|
|
546
|
-
"
|
|
547
|
-
"aliases": [
|
|
548
|
-
"triggerevents"
|
|
549
|
-
],
|
|
594
|
+
"admin-email": {
|
|
550
595
|
"char": "e",
|
|
551
|
-
"
|
|
552
|
-
"
|
|
553
|
-
"summary": "Events that fire the trigger.",
|
|
554
|
-
"default": [
|
|
555
|
-
"before insert"
|
|
556
|
-
],
|
|
557
|
-
"delimiter": ",",
|
|
596
|
+
"name": "admin-email",
|
|
597
|
+
"summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
|
|
558
598
|
"hasDynamicHelp": false,
|
|
559
|
-
"multiple":
|
|
560
|
-
"options": [
|
|
561
|
-
"before insert",
|
|
562
|
-
"before update",
|
|
563
|
-
"before delete",
|
|
564
|
-
"after insert",
|
|
565
|
-
"after update",
|
|
566
|
-
"after delete",
|
|
567
|
-
"after undelete"
|
|
568
|
-
],
|
|
599
|
+
"multiple": false,
|
|
569
600
|
"type": "option"
|
|
570
601
|
},
|
|
571
|
-
"
|
|
572
|
-
"
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
"
|
|
576
|
-
"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.",
|
|
577
607
|
"hasDynamicHelp": false,
|
|
578
608
|
"multiple": false,
|
|
579
609
|
"type": "option"
|
|
580
610
|
}
|
|
581
611
|
},
|
|
582
|
-
"hasDynamicHelp":
|
|
612
|
+
"hasDynamicHelp": true,
|
|
583
613
|
"hiddenAliases": [],
|
|
584
|
-
"id": "template:generate:
|
|
614
|
+
"id": "template:generate:digital-experience:site",
|
|
585
615
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
586
616
|
"pluginName": "@salesforce/plugin-templates",
|
|
587
617
|
"pluginType": "core",
|
|
618
|
+
"state": "preview",
|
|
588
619
|
"strict": true,
|
|
589
|
-
"summary": "Generate an
|
|
620
|
+
"summary": "Generate an Experience Cloud site.",
|
|
590
621
|
"enableJsonFlag": true,
|
|
591
622
|
"isESM": true,
|
|
592
623
|
"relativePath": [
|
|
@@ -594,66 +625,35 @@
|
|
|
594
625
|
"commands",
|
|
595
626
|
"template",
|
|
596
627
|
"generate",
|
|
597
|
-
"
|
|
598
|
-
"
|
|
599
|
-
],
|
|
600
|
-
"aliasPermutations": [
|
|
601
|
-
"force:apex:trigger:create",
|
|
602
|
-
"apex:force:trigger:create",
|
|
603
|
-
"apex:trigger:force:create",
|
|
604
|
-
"apex:trigger:create:force",
|
|
605
|
-
"force:trigger:apex:create",
|
|
606
|
-
"trigger:force:apex:create",
|
|
607
|
-
"trigger:apex:force:create",
|
|
608
|
-
"trigger:apex:create:force",
|
|
609
|
-
"force:trigger:create:apex",
|
|
610
|
-
"trigger:force:create:apex",
|
|
611
|
-
"trigger:create:force:apex",
|
|
612
|
-
"trigger:create:apex:force",
|
|
613
|
-
"force:apex:create:trigger",
|
|
614
|
-
"apex:force:create:trigger",
|
|
615
|
-
"apex:create:force:trigger",
|
|
616
|
-
"apex:create:trigger:force",
|
|
617
|
-
"force:create:apex:trigger",
|
|
618
|
-
"create:force:apex:trigger",
|
|
619
|
-
"create:apex:force:trigger",
|
|
620
|
-
"create:apex:trigger:force",
|
|
621
|
-
"force:create:trigger:apex",
|
|
622
|
-
"create:force:trigger:apex",
|
|
623
|
-
"create:trigger:force:apex",
|
|
624
|
-
"create:trigger:apex:force",
|
|
625
|
-
"apex:generate:trigger",
|
|
626
|
-
"generate:apex:trigger",
|
|
627
|
-
"generate:trigger:apex",
|
|
628
|
-
"apex:trigger:generate",
|
|
629
|
-
"trigger:apex:generate",
|
|
630
|
-
"trigger:generate:apex"
|
|
628
|
+
"digital-experience",
|
|
629
|
+
"site.js"
|
|
631
630
|
],
|
|
631
|
+
"aliasPermutations": [],
|
|
632
632
|
"permutations": [
|
|
633
|
-
"template:generate:
|
|
634
|
-
"generate:template:
|
|
635
|
-
"generate:
|
|
636
|
-
"generate:
|
|
637
|
-
"template:
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
"template:
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"
|
|
645
|
-
"template:generate:
|
|
646
|
-
"generate:template:
|
|
647
|
-
"generate:
|
|
648
|
-
"generate:
|
|
649
|
-
"template:
|
|
650
|
-
"
|
|
651
|
-
"
|
|
652
|
-
"
|
|
653
|
-
"template:
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"
|
|
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"
|
|
657
657
|
]
|
|
658
658
|
},
|
|
659
659
|
"template:generate:flexipage": {
|
|
@@ -2043,9 +2043,7 @@
|
|
|
2043
2043
|
]
|
|
2044
2044
|
},
|
|
2045
2045
|
"template:generate:ui-bundle": {
|
|
2046
|
-
"aliases": [
|
|
2047
|
-
"ui-bundle:generate"
|
|
2048
|
-
],
|
|
2046
|
+
"aliases": [],
|
|
2049
2047
|
"args": {},
|
|
2050
2048
|
"description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
|
|
2051
2049
|
"examples": [
|
|
@@ -2137,10 +2135,7 @@
|
|
|
2137
2135
|
"ui-bundle",
|
|
2138
2136
|
"index.js"
|
|
2139
2137
|
],
|
|
2140
|
-
"aliasPermutations": [
|
|
2141
|
-
"ui-bundle:generate",
|
|
2142
|
-
"generate:ui-bundle"
|
|
2143
|
-
],
|
|
2138
|
+
"aliasPermutations": [],
|
|
2144
2139
|
"permutations": [
|
|
2145
2140
|
"template:generate:ui-bundle",
|
|
2146
2141
|
"generate:template:ui-bundle",
|
|
@@ -2506,5 +2501,5 @@
|
|
|
2506
2501
|
]
|
|
2507
2502
|
}
|
|
2508
2503
|
},
|
|
2509
|
-
"version": "56.13.
|
|
2504
|
+
"version": "56.13.4"
|
|
2510
2505
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-templates",
|
|
3
3
|
"description": "Commands to create metadata from a default or custom template",
|
|
4
|
-
"version": "56.13.
|
|
4
|
+
"version": "56.13.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -90,9 +90,6 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
},
|
|
94
|
-
"ui-bundle": {
|
|
95
|
-
"description": "Work with UI bundles."
|
|
96
93
|
}
|
|
97
94
|
},
|
|
98
95
|
"flexibleTaxonomy": true,
|
|
@@ -252,7 +249,7 @@
|
|
|
252
249
|
"exports": "./lib/index.js",
|
|
253
250
|
"type": "module",
|
|
254
251
|
"sfdx": {
|
|
255
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.
|
|
256
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.
|
|
252
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.4.crt",
|
|
253
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.4.sig"
|
|
257
254
|
}
|
|
258
255
|
}
|