@salesforce/plugin-custom-metadata 2.2.12 → 3.0.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.
- package/README.md +46 -46
- package/lib/commands/cmdt/generate/field.d.ts +7 -7
- package/lib/commands/cmdt/generate/field.js +76 -79
- package/lib/commands/cmdt/generate/field.js.map +1 -1
- package/lib/commands/cmdt/generate/fromorg.d.ts +11 -11
- package/lib/commands/cmdt/generate/fromorg.js +87 -92
- package/lib/commands/cmdt/generate/fromorg.js.map +1 -1
- package/lib/commands/cmdt/generate/object.d.ts +6 -6
- package/lib/commands/cmdt/generate/object.js +55 -58
- package/lib/commands/cmdt/generate/object.js.map +1 -1
- package/lib/commands/cmdt/generate/record.d.ts +7 -7
- package/lib/commands/cmdt/generate/record.js +64 -68
- package/lib/commands/cmdt/generate/record.js.map +1 -1
- package/lib/commands/cmdt/generate/records.d.ts +7 -7
- package/lib/commands/cmdt/generate/records.js +58 -60
- package/lib/commands/cmdt/generate/records.js.map +1 -1
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/lib/shared/helpers/createUtil.d.ts +2 -2
- package/lib/shared/helpers/createUtil.js +17 -27
- package/lib/shared/helpers/createUtil.js.map +1 -1
- package/lib/shared/helpers/fileWriter.d.ts +2 -2
- package/lib/shared/helpers/fileWriter.js +4 -9
- package/lib/shared/helpers/fileWriter.js.map +1 -1
- package/lib/shared/helpers/metadataUtil.js +5 -12
- package/lib/shared/helpers/metadataUtil.js.map +1 -1
- package/lib/shared/helpers/validationUtil.js +15 -21
- package/lib/shared/helpers/validationUtil.js.map +1 -1
- package/lib/shared/interfaces/createConfig.js +1 -2
- package/lib/shared/interfaces/createConfig.js.map +1 -1
- package/lib/shared/templates/templates.js +13 -18
- package/lib/shared/templates/templates.js.map +1 -1
- package/oclif.lock +365 -450
- package/oclif.manifest.json +520 -268
- package/package.json +31 -48
package/oclif.manifest.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.2.12",
|
|
3
2
|
"commands": {
|
|
4
3
|
"cmdt:generate:field": {
|
|
5
|
-
"id": "cmdt:generate:field",
|
|
6
|
-
"summary": "Generate a field for a custom metadata type based on the provided field type.",
|
|
7
|
-
"description": "Similar to a custom object, a custom metadata type has a list of custom fields that represent aspects of the metadata.\n\nThis command creates a metadata file that describes the new custom metadata type field. By default, the file is created in a \"fields\" directory in the current directory. Use the --output-directory to generate the file in the directory that contains the custom metadata type metdata files, such as \"force-app/main/default/objects/MyCmdt__mdt\" for the custom metadata type called MyCmdt.",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
10
|
-
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
11
|
-
"pluginType": "core",
|
|
12
4
|
"aliases": [
|
|
13
5
|
"force:cmdt:field:create",
|
|
14
6
|
"cmdt:field:create"
|
|
15
7
|
],
|
|
8
|
+
"args": {},
|
|
9
|
+
"description": "Similar to a custom object, a custom metadata type has a list of custom fields that represent aspects of the metadata.\n\nThis command creates a metadata file that describes the new custom metadata type field. By default, the file is created in a \"fields\" directory in the current directory. Use the --output-directory to generate the file in the directory that contains the custom metadata type metdata files, such as \"force-app/main/default/objects/MyCmdt__mdt\" for the custom metadata type called MyCmdt.",
|
|
16
10
|
"examples": [
|
|
17
11
|
"Generate a metadata file for a custom checkbox field and add the file to the MyCmdt__mdt/fields directory:\n<%= config.bin %> <%= command.id %> --name MyCheckboxField --type Checkbox --output-directory force-app/main/default/objects/MyCmdt__mdt",
|
|
18
12
|
"Generate a metadata file for a custom picklist field and add a few values:\n<%= config.bin %> <%= command.id %> --name MyPicklistField --type Picklist --picklist-values A --picklist-values B --picklist-values C --output-directory force-app/main/default/objects/MyCmdt__mdt",
|
|
@@ -20,39 +14,44 @@
|
|
|
20
14
|
],
|
|
21
15
|
"flags": {
|
|
22
16
|
"json": {
|
|
23
|
-
"name": "json",
|
|
24
|
-
"type": "boolean",
|
|
25
17
|
"description": "Format output as json.",
|
|
26
18
|
"helpGroup": "GLOBAL",
|
|
27
|
-
"
|
|
19
|
+
"name": "json",
|
|
20
|
+
"allowNo": false,
|
|
21
|
+
"type": "boolean"
|
|
28
22
|
},
|
|
29
23
|
"loglevel": {
|
|
30
|
-
"name": "loglevel",
|
|
31
|
-
"type": "option",
|
|
32
|
-
"hidden": true,
|
|
33
|
-
"multiple": false,
|
|
34
24
|
"deprecated": {
|
|
35
25
|
"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."
|
|
36
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"hidden": true,
|
|
28
|
+
"name": "loglevel",
|
|
29
|
+
"hasDynamicHelp": false,
|
|
30
|
+
"multiple": false,
|
|
31
|
+
"type": "option"
|
|
37
32
|
},
|
|
38
33
|
"name": {
|
|
39
|
-
"
|
|
40
|
-
|
|
34
|
+
"aliases": [
|
|
35
|
+
"fieldname"
|
|
36
|
+
],
|
|
41
37
|
"char": "n",
|
|
42
|
-
"
|
|
38
|
+
"name": "name",
|
|
43
39
|
"required": true,
|
|
40
|
+
"summary": "Unique name for the field.",
|
|
41
|
+
"hasDynamicHelp": false,
|
|
44
42
|
"multiple": false,
|
|
45
|
-
"
|
|
46
|
-
"fieldname"
|
|
47
|
-
]
|
|
43
|
+
"type": "option"
|
|
48
44
|
},
|
|
49
45
|
"type": {
|
|
50
|
-
"
|
|
51
|
-
|
|
46
|
+
"aliases": [
|
|
47
|
+
"fieldtype"
|
|
48
|
+
],
|
|
52
49
|
"char": "f",
|
|
53
|
-
"summary": "Type of the field.",
|
|
54
50
|
"description": "You can't use this command to create a custom metadata type field of type \"Metadata Relationship\". Use the Salesforce Setup UI instead.",
|
|
51
|
+
"name": "type",
|
|
55
52
|
"required": true,
|
|
53
|
+
"summary": "Type of the field.",
|
|
54
|
+
"hasDynamicHelp": false,
|
|
56
55
|
"multiple": false,
|
|
57
56
|
"options": [
|
|
58
57
|
"Checkbox",
|
|
@@ -68,68 +67,122 @@
|
|
|
68
67
|
"LongTextArea",
|
|
69
68
|
"Url"
|
|
70
69
|
],
|
|
71
|
-
"
|
|
72
|
-
"fieldtype"
|
|
73
|
-
]
|
|
70
|
+
"type": "option"
|
|
74
71
|
},
|
|
75
72
|
"picklist-values": {
|
|
76
|
-
"name": "picklist-values",
|
|
77
|
-
"type": "option",
|
|
78
|
-
"char": "p",
|
|
79
|
-
"summary": "Picklist values; required for picklist fields.",
|
|
80
|
-
"multiple": true,
|
|
81
73
|
"aliases": [
|
|
82
74
|
"picklistvalues"
|
|
83
75
|
],
|
|
84
|
-
"
|
|
76
|
+
"char": "p",
|
|
77
|
+
"name": "picklist-values",
|
|
78
|
+
"summary": "Picklist values; required for picklist fields.",
|
|
79
|
+
"delimiter": ",",
|
|
80
|
+
"hasDynamicHelp": false,
|
|
81
|
+
"multiple": true,
|
|
82
|
+
"type": "option"
|
|
85
83
|
},
|
|
86
84
|
"decimal-places": {
|
|
87
|
-
"
|
|
88
|
-
|
|
85
|
+
"aliases": [
|
|
86
|
+
"decimalplaces"
|
|
87
|
+
],
|
|
89
88
|
"char": "s",
|
|
90
|
-
"summary": "Number of decimal places to use for number or percent fields.",
|
|
91
89
|
"description": "The value must be greater than or equal to zero. Default value is 0.",
|
|
92
|
-
"
|
|
90
|
+
"name": "decimal-places",
|
|
91
|
+
"summary": "Number of decimal places to use for number or percent fields.",
|
|
93
92
|
"default": 0,
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
"hasDynamicHelp": false,
|
|
94
|
+
"multiple": false,
|
|
95
|
+
"type": "option"
|
|
97
96
|
},
|
|
98
97
|
"label": {
|
|
99
|
-
"name": "label",
|
|
100
|
-
"type": "option",
|
|
101
98
|
"char": "l",
|
|
99
|
+
"name": "label",
|
|
102
100
|
"summary": "Label for the field.",
|
|
103
|
-
"
|
|
101
|
+
"hasDynamicHelp": false,
|
|
102
|
+
"multiple": false,
|
|
103
|
+
"type": "option"
|
|
104
104
|
},
|
|
105
105
|
"output-directory": {
|
|
106
|
-
"name": "output-directory",
|
|
107
|
-
"type": "option",
|
|
108
|
-
"char": "d",
|
|
109
|
-
"summary": "Directory to store newly-created field definition files.",
|
|
110
|
-
"description": "New files are automatically created in the \"fields\" directory. The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
111
|
-
"multiple": false,
|
|
112
|
-
"default": "",
|
|
113
106
|
"aliases": [
|
|
114
107
|
"outputdir",
|
|
115
108
|
"outputdirectory"
|
|
116
|
-
]
|
|
109
|
+
],
|
|
110
|
+
"char": "d",
|
|
111
|
+
"description": "New files are automatically created in the \"fields\" directory. The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
112
|
+
"name": "output-directory",
|
|
113
|
+
"summary": "Directory to store newly-created field definition files.",
|
|
114
|
+
"default": "",
|
|
115
|
+
"hasDynamicHelp": false,
|
|
116
|
+
"multiple": false,
|
|
117
|
+
"type": "option"
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
"cmdt:generate:fromorg": {
|
|
123
|
-
"id": "cmdt:generate:fromorg",
|
|
124
|
-
"summary": "Generate a custom metadata type and all its records from a Salesforce object.",
|
|
125
|
-
"description": "Use this command to migrate existing custom objects or custom settings in an org to custom metadata types. If a field of the Salesforce object is of an unsupported type, the field type is automatically converted to text. Run \"<%= config.bin %> cmdt generate field --help\" to see the list of supported cmdt field types, listed in the --type flag summary. Use the --ignore-unsupported to ignore these fields.\n\nThis command creates the metadata files that describe the new custom metadata type and its fields in the \"force-app/main/default/objects/TypeName__mdt\" directory by default, where \"TypeName\" is the value of the required --dev-name flag. Use --type-output-directory to create them in a different directory.",
|
|
126
|
-
"strict": true,
|
|
127
|
-
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
120
|
+
"hasDynamicHelp": false,
|
|
121
|
+
"hiddenAliases": [],
|
|
122
|
+
"id": "cmdt:generate:field",
|
|
128
123
|
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
124
|
+
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
129
125
|
"pluginType": "core",
|
|
126
|
+
"strict": true,
|
|
127
|
+
"summary": "Generate a field for a custom metadata type based on the provided field type.",
|
|
128
|
+
"enableJsonFlag": true,
|
|
129
|
+
"SF_ENV": "SF_ENV",
|
|
130
|
+
"requiresProject": true,
|
|
131
|
+
"isESM": true,
|
|
132
|
+
"relativePath": [
|
|
133
|
+
"lib",
|
|
134
|
+
"commands",
|
|
135
|
+
"cmdt",
|
|
136
|
+
"generate",
|
|
137
|
+
"field.js"
|
|
138
|
+
],
|
|
139
|
+
"aliasPermutations": [
|
|
140
|
+
"force:cmdt:field:create",
|
|
141
|
+
"cmdt:force:field:create",
|
|
142
|
+
"cmdt:field:force:create",
|
|
143
|
+
"cmdt:field:create:force",
|
|
144
|
+
"force:field:cmdt:create",
|
|
145
|
+
"field:force:cmdt:create",
|
|
146
|
+
"field:cmdt:force:create",
|
|
147
|
+
"field:cmdt:create:force",
|
|
148
|
+
"force:field:create:cmdt",
|
|
149
|
+
"field:force:create:cmdt",
|
|
150
|
+
"field:create:force:cmdt",
|
|
151
|
+
"field:create:cmdt:force",
|
|
152
|
+
"force:cmdt:create:field",
|
|
153
|
+
"cmdt:force:create:field",
|
|
154
|
+
"cmdt:create:force:field",
|
|
155
|
+
"cmdt:create:field:force",
|
|
156
|
+
"force:create:cmdt:field",
|
|
157
|
+
"create:force:cmdt:field",
|
|
158
|
+
"create:cmdt:force:field",
|
|
159
|
+
"create:cmdt:field:force",
|
|
160
|
+
"force:create:field:cmdt",
|
|
161
|
+
"create:force:field:cmdt",
|
|
162
|
+
"create:field:force:cmdt",
|
|
163
|
+
"create:field:cmdt:force",
|
|
164
|
+
"cmdt:field:create",
|
|
165
|
+
"field:cmdt:create",
|
|
166
|
+
"field:create:cmdt",
|
|
167
|
+
"cmdt:create:field",
|
|
168
|
+
"create:cmdt:field",
|
|
169
|
+
"create:field:cmdt"
|
|
170
|
+
],
|
|
171
|
+
"permutations": [
|
|
172
|
+
"cmdt:generate:field",
|
|
173
|
+
"generate:cmdt:field",
|
|
174
|
+
"generate:field:cmdt",
|
|
175
|
+
"cmdt:field:generate",
|
|
176
|
+
"field:cmdt:generate",
|
|
177
|
+
"field:generate:cmdt"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"cmdt:generate:fromorg": {
|
|
130
181
|
"aliases": [
|
|
131
182
|
"force:cmdt:generate"
|
|
132
183
|
],
|
|
184
|
+
"args": {},
|
|
185
|
+
"description": "Use this command to migrate existing custom objects or custom settings in an org to custom metadata types. If a field of the Salesforce object is of an unsupported type, the field type is automatically converted to text. Run \"<%= config.bin %> cmdt generate field --help\" to see the list of supported cmdt field types, listed in the --type flag summary. Use the --ignore-unsupported to ignore these fields.\n\nThis command creates the metadata files that describe the new custom metadata type and its fields in the \"force-app/main/default/objects/TypeName__mdt\" directory by default, where \"TypeName\" is the value of the required --dev-name flag. Use --type-output-directory to create them in a different directory.",
|
|
133
186
|
"examples": [
|
|
134
187
|
"Generate a custom metadata type from a custom object called MySourceObject__c in your default org:\n<%= config.bin %> <%= command.id %> --dev-name MyCMDT --sobject MySourceObject__c",
|
|
135
188
|
"Generate a custom metadata type from a custom object in an org with alias my-scratch-org; ignore unsupported field types instead of converting them to text:\n<%= config.bin %> <%= command.id %> --dev-name MyCMDT --sobject MySourceObject__c --ignore-unsupported --target-org my-scratch-org",
|
|
@@ -140,423 +193,622 @@
|
|
|
140
193
|
],
|
|
141
194
|
"flags": {
|
|
142
195
|
"json": {
|
|
143
|
-
"name": "json",
|
|
144
|
-
"type": "boolean",
|
|
145
196
|
"description": "Format output as json.",
|
|
146
197
|
"helpGroup": "GLOBAL",
|
|
147
|
-
"
|
|
198
|
+
"name": "json",
|
|
199
|
+
"allowNo": false,
|
|
200
|
+
"type": "boolean"
|
|
148
201
|
},
|
|
149
202
|
"target-org": {
|
|
150
|
-
"name": "target-org",
|
|
151
|
-
"type": "option",
|
|
152
|
-
"char": "o",
|
|
153
|
-
"summary": "Username or alias of the target org.",
|
|
154
|
-
"required": true,
|
|
155
|
-
"multiple": false,
|
|
156
203
|
"aliases": [
|
|
157
204
|
"targetusername",
|
|
158
205
|
"u"
|
|
159
|
-
]
|
|
206
|
+
],
|
|
207
|
+
"char": "o",
|
|
208
|
+
"deprecateAliases": true,
|
|
209
|
+
"name": "target-org",
|
|
210
|
+
"noCacheDefault": true,
|
|
211
|
+
"required": true,
|
|
212
|
+
"summary": "Username or alias of the target org.",
|
|
213
|
+
"hasDynamicHelp": true,
|
|
214
|
+
"multiple": false,
|
|
215
|
+
"type": "option"
|
|
160
216
|
},
|
|
161
217
|
"api-version": {
|
|
162
|
-
"name": "api-version",
|
|
163
|
-
"type": "option",
|
|
164
|
-
"description": "Override the api version used for api requests made by this command",
|
|
165
|
-
"multiple": false,
|
|
166
218
|
"aliases": [
|
|
167
219
|
"apiversion"
|
|
168
|
-
]
|
|
220
|
+
],
|
|
221
|
+
"deprecateAliases": true,
|
|
222
|
+
"description": "Override the api version used for api requests made by this command",
|
|
223
|
+
"name": "api-version",
|
|
224
|
+
"hasDynamicHelp": false,
|
|
225
|
+
"multiple": false,
|
|
226
|
+
"type": "option"
|
|
169
227
|
},
|
|
170
228
|
"loglevel": {
|
|
171
|
-
"name": "loglevel",
|
|
172
|
-
"type": "option",
|
|
173
|
-
"hidden": true,
|
|
174
|
-
"multiple": false,
|
|
175
229
|
"deprecated": {
|
|
176
230
|
"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."
|
|
177
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"hidden": true,
|
|
233
|
+
"name": "loglevel",
|
|
234
|
+
"hasDynamicHelp": false,
|
|
235
|
+
"multiple": false,
|
|
236
|
+
"type": "option"
|
|
178
237
|
},
|
|
179
238
|
"dev-name": {
|
|
180
|
-
"
|
|
181
|
-
|
|
239
|
+
"aliases": [
|
|
240
|
+
"devname"
|
|
241
|
+
],
|
|
182
242
|
"char": "n",
|
|
183
|
-
"
|
|
243
|
+
"name": "dev-name",
|
|
184
244
|
"required": true,
|
|
245
|
+
"summary": "Name of the custom metadata type.",
|
|
246
|
+
"hasDynamicHelp": false,
|
|
185
247
|
"multiple": false,
|
|
186
|
-
"
|
|
187
|
-
"devname"
|
|
188
|
-
]
|
|
248
|
+
"type": "option"
|
|
189
249
|
},
|
|
190
250
|
"label": {
|
|
191
|
-
"name": "label",
|
|
192
|
-
"type": "option",
|
|
193
251
|
"char": "l",
|
|
252
|
+
"name": "label",
|
|
194
253
|
"summary": "Label for the custom metadata type.",
|
|
195
|
-
"
|
|
254
|
+
"hasDynamicHelp": false,
|
|
255
|
+
"multiple": false,
|
|
256
|
+
"type": "option"
|
|
196
257
|
},
|
|
197
258
|
"plural-label": {
|
|
198
|
-
"
|
|
199
|
-
|
|
259
|
+
"aliases": [
|
|
260
|
+
"plurallabel"
|
|
261
|
+
],
|
|
200
262
|
"char": "p",
|
|
263
|
+
"name": "plural-label",
|
|
201
264
|
"summary": "Plural version of the label value; if blank, uses label.",
|
|
265
|
+
"hasDynamicHelp": false,
|
|
202
266
|
"multiple": false,
|
|
203
|
-
"
|
|
204
|
-
"plurallabel"
|
|
205
|
-
]
|
|
267
|
+
"type": "option"
|
|
206
268
|
},
|
|
207
269
|
"visibility": {
|
|
208
|
-
"name": "visibility",
|
|
209
|
-
"type": "option",
|
|
210
270
|
"char": "v",
|
|
211
|
-
"summary": "Who can see the custom metadata type.",
|
|
212
271
|
"description": "For more information on what each option means, see this topic in Salesforce Help: https://help.salesforce.com/s/articleView?id=sf.custommetadatatypes_ui_create.htm&type=5.",
|
|
272
|
+
"name": "visibility",
|
|
273
|
+
"summary": "Who can see the custom metadata type.",
|
|
274
|
+
"default": "Public",
|
|
275
|
+
"hasDynamicHelp": false,
|
|
213
276
|
"multiple": false,
|
|
214
277
|
"options": [
|
|
215
278
|
"PackageProtected",
|
|
216
279
|
"Protected",
|
|
217
280
|
"Public"
|
|
218
281
|
],
|
|
219
|
-
"
|
|
282
|
+
"type": "option"
|
|
220
283
|
},
|
|
221
284
|
"sobject": {
|
|
222
|
-
"
|
|
223
|
-
|
|
285
|
+
"aliases": [
|
|
286
|
+
"sobjectname"
|
|
287
|
+
],
|
|
224
288
|
"char": "s",
|
|
225
|
-
"
|
|
289
|
+
"name": "sobject",
|
|
226
290
|
"required": true,
|
|
291
|
+
"summary": "API name of the source Salesforce object used to generate the custom metadata type.",
|
|
292
|
+
"hasDynamicHelp": false,
|
|
227
293
|
"multiple": false,
|
|
228
|
-
"
|
|
229
|
-
"sobjectname"
|
|
230
|
-
]
|
|
294
|
+
"type": "option"
|
|
231
295
|
},
|
|
232
296
|
"ignore-unsupported": {
|
|
233
|
-
"
|
|
234
|
-
|
|
297
|
+
"aliases": [
|
|
298
|
+
"ignoreunsupported"
|
|
299
|
+
],
|
|
235
300
|
"char": "i",
|
|
236
|
-
"summary": "Ignore unsupported field types.",
|
|
237
301
|
"description": "In this context, \"ignore\" means that the fields aren't created. The default behavior is to create fields of type text and convert the field values to text.",
|
|
302
|
+
"name": "ignore-unsupported",
|
|
303
|
+
"summary": "Ignore unsupported field types.",
|
|
238
304
|
"allowNo": false,
|
|
239
|
-
"
|
|
240
|
-
"ignoreunsupported"
|
|
241
|
-
]
|
|
305
|
+
"type": "boolean"
|
|
242
306
|
},
|
|
243
307
|
"type-output-directory": {
|
|
244
|
-
"
|
|
245
|
-
|
|
308
|
+
"aliases": [
|
|
309
|
+
"typeoutputdir"
|
|
310
|
+
],
|
|
246
311
|
"char": "d",
|
|
312
|
+
"name": "type-output-directory",
|
|
247
313
|
"summary": "Directory to store newly-created custom metadata type files.",
|
|
248
|
-
"multiple": false,
|
|
249
314
|
"default": "force-app/main/default/objects",
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
315
|
+
"hasDynamicHelp": false,
|
|
316
|
+
"multiple": false,
|
|
317
|
+
"type": "option"
|
|
253
318
|
},
|
|
254
319
|
"records-output-dir": {
|
|
255
|
-
"
|
|
256
|
-
|
|
320
|
+
"aliases": [
|
|
321
|
+
"recordsoutputdir"
|
|
322
|
+
],
|
|
257
323
|
"char": "r",
|
|
324
|
+
"name": "records-output-dir",
|
|
258
325
|
"summary": "Directory to store newly-created custom metadata record files.",
|
|
259
|
-
"multiple": false,
|
|
260
326
|
"default": "force-app/main/default/customMetadata",
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
327
|
+
"hasDynamicHelp": false,
|
|
328
|
+
"multiple": false,
|
|
329
|
+
"type": "option"
|
|
264
330
|
}
|
|
265
331
|
},
|
|
266
|
-
"
|
|
332
|
+
"hasDynamicHelp": true,
|
|
333
|
+
"hiddenAliases": [],
|
|
334
|
+
"id": "cmdt:generate:fromorg",
|
|
335
|
+
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
336
|
+
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
337
|
+
"pluginType": "core",
|
|
338
|
+
"strict": true,
|
|
339
|
+
"summary": "Generate a custom metadata type and all its records from a Salesforce object.",
|
|
340
|
+
"enableJsonFlag": true,
|
|
341
|
+
"SF_ENV": "SF_ENV",
|
|
267
342
|
"requiresProject": true,
|
|
268
|
-
"
|
|
343
|
+
"isESM": true,
|
|
344
|
+
"relativePath": [
|
|
345
|
+
"lib",
|
|
346
|
+
"commands",
|
|
347
|
+
"cmdt",
|
|
348
|
+
"generate",
|
|
349
|
+
"fromorg.js"
|
|
350
|
+
],
|
|
351
|
+
"aliasPermutations": [
|
|
352
|
+
"force:cmdt:generate",
|
|
353
|
+
"cmdt:force:generate",
|
|
354
|
+
"cmdt:generate:force",
|
|
355
|
+
"force:generate:cmdt",
|
|
356
|
+
"generate:force:cmdt",
|
|
357
|
+
"generate:cmdt:force"
|
|
358
|
+
],
|
|
359
|
+
"permutations": [
|
|
360
|
+
"cmdt:generate:fromorg",
|
|
361
|
+
"generate:cmdt:fromorg",
|
|
362
|
+
"generate:fromorg:cmdt",
|
|
363
|
+
"cmdt:fromorg:generate",
|
|
364
|
+
"fromorg:cmdt:generate",
|
|
365
|
+
"fromorg:generate:cmdt"
|
|
366
|
+
]
|
|
269
367
|
},
|
|
270
368
|
"cmdt:generate:object": {
|
|
271
|
-
"id": "cmdt:generate:object",
|
|
272
|
-
"summary": "Generate a new custom metadata type in the current project.",
|
|
273
|
-
"description": "This command creates a metadata file that describes the new custom metadata type. By default, the file is created in the MyCustomType__mdt directory in the current directory, where MyCustomType is the value of the required --type-name flag. Use the --output-directory to generate the file in a package directory with other custom metadata types, such as \"force-app/main/default/objects\".",
|
|
274
|
-
"strict": true,
|
|
275
|
-
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
276
|
-
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
277
|
-
"pluginType": "core",
|
|
278
369
|
"aliases": [
|
|
279
370
|
"force:cmdt:create",
|
|
280
371
|
"cmdt:create"
|
|
281
372
|
],
|
|
373
|
+
"args": {},
|
|
374
|
+
"description": "This command creates a metadata file that describes the new custom metadata type. By default, the file is created in the MyCustomType__mdt directory in the current directory, where MyCustomType is the value of the required --type-name flag. Use the --output-directory to generate the file in a package directory with other custom metadata types, such as \"force-app/main/default/objects\".",
|
|
282
375
|
"examples": [
|
|
283
376
|
"Generate a custom metadata type with developer name 'MyCustomType'; this name is also used as the label:\n<%= config.bin %> <%= command.id %> --type-name MyCustomType",
|
|
284
377
|
"Generate a protected custom metadata type with a specific label:\n<%= config.bin %> <%= command.id %> --type-name MyCustomType --label \"Custom Type\" --plural-label \"Custom Types\" --visibility Protected"
|
|
285
378
|
],
|
|
286
379
|
"flags": {
|
|
287
380
|
"json": {
|
|
288
|
-
"name": "json",
|
|
289
|
-
"type": "boolean",
|
|
290
381
|
"description": "Format output as json.",
|
|
291
382
|
"helpGroup": "GLOBAL",
|
|
292
|
-
"
|
|
383
|
+
"name": "json",
|
|
384
|
+
"allowNo": false,
|
|
385
|
+
"type": "boolean"
|
|
293
386
|
},
|
|
294
387
|
"loglevel": {
|
|
295
|
-
"name": "loglevel",
|
|
296
|
-
"type": "option",
|
|
297
|
-
"hidden": true,
|
|
298
|
-
"multiple": false,
|
|
299
388
|
"deprecated": {
|
|
300
389
|
"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."
|
|
301
|
-
}
|
|
390
|
+
},
|
|
391
|
+
"hidden": true,
|
|
392
|
+
"name": "loglevel",
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
302
396
|
},
|
|
303
397
|
"type-name": {
|
|
304
|
-
"
|
|
305
|
-
|
|
398
|
+
"aliases": [
|
|
399
|
+
"typename"
|
|
400
|
+
],
|
|
306
401
|
"char": "n",
|
|
307
|
-
"summary": "Unique object name for the custom metadata type.",
|
|
308
402
|
"description": "The 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.",
|
|
403
|
+
"name": "type-name",
|
|
309
404
|
"required": true,
|
|
405
|
+
"summary": "Unique object name for the custom metadata type.",
|
|
406
|
+
"hasDynamicHelp": false,
|
|
310
407
|
"multiple": false,
|
|
311
|
-
"
|
|
312
|
-
"typename"
|
|
313
|
-
]
|
|
408
|
+
"type": "option"
|
|
314
409
|
},
|
|
315
410
|
"label": {
|
|
316
|
-
"name": "label",
|
|
317
|
-
"type": "option",
|
|
318
411
|
"char": "l",
|
|
412
|
+
"name": "label",
|
|
319
413
|
"summary": "Label for the custom metadata type.",
|
|
320
|
-
"
|
|
414
|
+
"hasDynamicHelp": false,
|
|
415
|
+
"multiple": false,
|
|
416
|
+
"type": "option"
|
|
321
417
|
},
|
|
322
418
|
"plural-label": {
|
|
323
|
-
"
|
|
324
|
-
|
|
419
|
+
"aliases": [
|
|
420
|
+
"plurallabel"
|
|
421
|
+
],
|
|
325
422
|
"char": "p",
|
|
423
|
+
"name": "plural-label",
|
|
326
424
|
"summary": "Plural version of the label value; if blank, uses label.",
|
|
425
|
+
"hasDynamicHelp": false,
|
|
327
426
|
"multiple": false,
|
|
328
|
-
"
|
|
329
|
-
"plurallabel"
|
|
330
|
-
]
|
|
427
|
+
"type": "option"
|
|
331
428
|
},
|
|
332
429
|
"visibility": {
|
|
333
|
-
"name": "visibility",
|
|
334
|
-
"type": "option",
|
|
335
430
|
"char": "v",
|
|
336
|
-
"summary": "Who can see the custom metadata type.",
|
|
337
431
|
"description": "For more information on what each option means, see this topic in Salesforce Help: https://help.salesforce.com/s/articleView?id=sf.custommetadatatypes_ui_create.htm&type=5.",
|
|
432
|
+
"name": "visibility",
|
|
433
|
+
"summary": "Who can see the custom metadata type.",
|
|
434
|
+
"default": "Public",
|
|
435
|
+
"hasDynamicHelp": false,
|
|
338
436
|
"multiple": false,
|
|
339
437
|
"options": [
|
|
340
438
|
"PackageProtected",
|
|
341
439
|
"Protected",
|
|
342
440
|
"Public"
|
|
343
441
|
],
|
|
344
|
-
"
|
|
442
|
+
"type": "option"
|
|
345
443
|
},
|
|
346
444
|
"output-directory": {
|
|
347
|
-
"name": "output-directory",
|
|
348
|
-
"type": "option",
|
|
349
|
-
"char": "d",
|
|
350
|
-
"summary": "Directory to store the newly-created custom metadata type files",
|
|
351
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
352
|
-
"multiple": false,
|
|
353
|
-
"default": "",
|
|
354
445
|
"aliases": [
|
|
355
446
|
"outputdir",
|
|
356
447
|
"outputdirectory"
|
|
357
|
-
]
|
|
448
|
+
],
|
|
449
|
+
"char": "d",
|
|
450
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
451
|
+
"name": "output-directory",
|
|
452
|
+
"summary": "Directory to store the newly-created custom metadata type files",
|
|
453
|
+
"default": "",
|
|
454
|
+
"hasDynamicHelp": false,
|
|
455
|
+
"multiple": false,
|
|
456
|
+
"type": "option"
|
|
358
457
|
}
|
|
359
458
|
},
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
|
|
363
|
-
"cmdt:generate:record": {
|
|
364
|
-
"id": "cmdt:generate:record",
|
|
365
|
-
"summary": "Generate a new record for a given custom metadata type in the current project.",
|
|
366
|
-
"description": "The custom metadata type must already exist in your project. You must specify a name for the new record. Use name=value pairs to specify the values for the fields, such as MyTextField=\"some text here\" or MyNumberField=32.",
|
|
367
|
-
"strict": false,
|
|
368
|
-
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"hiddenAliases": [],
|
|
461
|
+
"id": "cmdt:generate:object",
|
|
369
462
|
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
463
|
+
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
370
464
|
"pluginType": "core",
|
|
465
|
+
"strict": true,
|
|
466
|
+
"summary": "Generate a new custom metadata type in the current project.",
|
|
467
|
+
"enableJsonFlag": true,
|
|
468
|
+
"SF_ENV": "SF_ENV",
|
|
469
|
+
"requiresProject": true,
|
|
470
|
+
"isESM": true,
|
|
471
|
+
"relativePath": [
|
|
472
|
+
"lib",
|
|
473
|
+
"commands",
|
|
474
|
+
"cmdt",
|
|
475
|
+
"generate",
|
|
476
|
+
"object.js"
|
|
477
|
+
],
|
|
478
|
+
"aliasPermutations": [
|
|
479
|
+
"force:cmdt:create",
|
|
480
|
+
"cmdt:force:create",
|
|
481
|
+
"cmdt:create:force",
|
|
482
|
+
"force:create:cmdt",
|
|
483
|
+
"create:force:cmdt",
|
|
484
|
+
"create:cmdt:force",
|
|
485
|
+
"cmdt:create",
|
|
486
|
+
"create:cmdt"
|
|
487
|
+
],
|
|
488
|
+
"permutations": [
|
|
489
|
+
"cmdt:generate:object",
|
|
490
|
+
"generate:cmdt:object",
|
|
491
|
+
"generate:object:cmdt",
|
|
492
|
+
"cmdt:object:generate",
|
|
493
|
+
"object:cmdt:generate",
|
|
494
|
+
"object:generate:cmdt"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"cmdt:generate:record": {
|
|
371
498
|
"aliases": [
|
|
372
499
|
"force:cmdt:record:create",
|
|
373
500
|
"cmdt:record:create"
|
|
374
501
|
],
|
|
502
|
+
"args": {},
|
|
503
|
+
"description": "The custom metadata type must already exist in your project. You must specify a name for the new record. Use name=value pairs to specify the values for the fields, such as MyTextField=\"some text here\" or MyNumberField=32.",
|
|
375
504
|
"examples": [
|
|
376
505
|
"Create a record metadata file for custom metadata type 'MyCMT' with specified values for two custom fields:\n<%= config.bin %> <%= command.id %> --type-name MyCMT__mdt --record-name MyRecord My_Custom_Field_1=Foo My_Custom_Field_2=Bar",
|
|
377
506
|
"Create a protected record metadata file for custom metadata type 'MyCMT' with a specific label and values specified for two custom fields:\n<%= config.bin %> <%= command.id %> --type-name MyCMT__mdt --record-name MyRecord --label \"My Record\" --protected true My_Custom_Field_1=Foo My_Custom_Field_2=Bar"
|
|
378
507
|
],
|
|
379
508
|
"flags": {
|
|
380
509
|
"json": {
|
|
381
|
-
"name": "json",
|
|
382
|
-
"type": "boolean",
|
|
383
510
|
"description": "Format output as json.",
|
|
384
511
|
"helpGroup": "GLOBAL",
|
|
385
|
-
"
|
|
512
|
+
"name": "json",
|
|
513
|
+
"allowNo": false,
|
|
514
|
+
"type": "boolean"
|
|
386
515
|
},
|
|
387
516
|
"loglevel": {
|
|
388
|
-
"name": "loglevel",
|
|
389
|
-
"type": "option",
|
|
390
|
-
"hidden": true,
|
|
391
|
-
"multiple": false,
|
|
392
517
|
"deprecated": {
|
|
393
518
|
"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."
|
|
394
|
-
}
|
|
519
|
+
},
|
|
520
|
+
"hidden": true,
|
|
521
|
+
"name": "loglevel",
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"type": "option"
|
|
395
525
|
},
|
|
396
526
|
"type-name": {
|
|
397
|
-
"
|
|
398
|
-
|
|
527
|
+
"aliases": [
|
|
528
|
+
"typename"
|
|
529
|
+
],
|
|
399
530
|
"char": "t",
|
|
400
|
-
"
|
|
531
|
+
"name": "type-name",
|
|
401
532
|
"required": true,
|
|
533
|
+
"summary": "API name of the custom metadata type to create a record for; must end in \"__mdt\".",
|
|
534
|
+
"hasDynamicHelp": false,
|
|
402
535
|
"multiple": false,
|
|
403
|
-
"
|
|
404
|
-
"typename"
|
|
405
|
-
]
|
|
536
|
+
"type": "option"
|
|
406
537
|
},
|
|
407
538
|
"record-name": {
|
|
408
|
-
"
|
|
409
|
-
|
|
539
|
+
"aliases": [
|
|
540
|
+
"recordname"
|
|
541
|
+
],
|
|
410
542
|
"char": "n",
|
|
411
|
-
"
|
|
543
|
+
"name": "record-name",
|
|
412
544
|
"required": true,
|
|
545
|
+
"summary": "Name of the new record.",
|
|
546
|
+
"hasDynamicHelp": false,
|
|
413
547
|
"multiple": false,
|
|
414
|
-
"
|
|
415
|
-
"recordname"
|
|
416
|
-
]
|
|
548
|
+
"type": "option"
|
|
417
549
|
},
|
|
418
550
|
"label": {
|
|
419
|
-
"name": "label",
|
|
420
|
-
"type": "option",
|
|
421
551
|
"char": "l",
|
|
552
|
+
"name": "label",
|
|
422
553
|
"summary": "Label for the new record.",
|
|
423
|
-
"
|
|
554
|
+
"hasDynamicHelp": false,
|
|
555
|
+
"multiple": false,
|
|
556
|
+
"type": "option"
|
|
424
557
|
},
|
|
425
558
|
"protected": {
|
|
426
|
-
"name": "protected",
|
|
427
|
-
"type": "option",
|
|
428
559
|
"char": "p",
|
|
429
|
-
"summary": "Protect the record when it's in a managed package.",
|
|
430
560
|
"description": "Protected records can only be accessed by code in the same managed package namespace.",
|
|
561
|
+
"name": "protected",
|
|
562
|
+
"summary": "Protect the record when it's in a managed package.",
|
|
563
|
+
"default": "false",
|
|
564
|
+
"hasDynamicHelp": false,
|
|
431
565
|
"multiple": false,
|
|
432
566
|
"options": [
|
|
433
567
|
"true",
|
|
434
568
|
"false"
|
|
435
569
|
],
|
|
436
|
-
"
|
|
570
|
+
"type": "option"
|
|
437
571
|
},
|
|
438
572
|
"input-directory": {
|
|
439
|
-
"name": "input-directory",
|
|
440
|
-
"type": "option",
|
|
441
|
-
"char": "i",
|
|
442
|
-
"summary": "Directory from which to get the custom metadata type definition from.",
|
|
443
|
-
"multiple": false,
|
|
444
|
-
"default": "force-app/main/default/objects",
|
|
445
573
|
"aliases": [
|
|
446
574
|
"inputdir",
|
|
447
575
|
"inputdirectory"
|
|
448
|
-
]
|
|
576
|
+
],
|
|
577
|
+
"char": "i",
|
|
578
|
+
"name": "input-directory",
|
|
579
|
+
"summary": "Directory from which to get the custom metadata type definition from.",
|
|
580
|
+
"default": "force-app/main/default/objects",
|
|
581
|
+
"hasDynamicHelp": false,
|
|
582
|
+
"multiple": false,
|
|
583
|
+
"type": "option"
|
|
449
584
|
},
|
|
450
585
|
"output-directory": {
|
|
451
|
-
"name": "output-directory",
|
|
452
|
-
"type": "option",
|
|
453
|
-
"char": "d",
|
|
454
|
-
"summary": "Directory to store newly-created custom metadata record files.",
|
|
455
|
-
"multiple": false,
|
|
456
|
-
"default": "force-app/main/default/customMetadata",
|
|
457
586
|
"aliases": [
|
|
458
587
|
"outputdir",
|
|
459
588
|
"outputdirectory"
|
|
460
|
-
]
|
|
589
|
+
],
|
|
590
|
+
"char": "d",
|
|
591
|
+
"name": "output-directory",
|
|
592
|
+
"summary": "Directory to store newly-created custom metadata record files.",
|
|
593
|
+
"default": "force-app/main/default/customMetadata",
|
|
594
|
+
"hasDynamicHelp": false,
|
|
595
|
+
"multiple": false,
|
|
596
|
+
"type": "option"
|
|
461
597
|
}
|
|
462
598
|
},
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
|
|
466
|
-
"cmdt:generate:records": {
|
|
467
|
-
"id": "cmdt:generate:records",
|
|
468
|
-
"summary": "Generate new custom metadata type records from a CSV file.",
|
|
469
|
-
"description": "The custom metadata type must already exist in your project. By default, the Name column is used to determine the record name; use the --name-column flag to specify a different column.",
|
|
470
|
-
"strict": true,
|
|
471
|
-
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
599
|
+
"hasDynamicHelp": false,
|
|
600
|
+
"hiddenAliases": [],
|
|
601
|
+
"id": "cmdt:generate:record",
|
|
472
602
|
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
603
|
+
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
473
604
|
"pluginType": "core",
|
|
605
|
+
"strict": false,
|
|
606
|
+
"summary": "Generate a new record for a given custom metadata type in the current project.",
|
|
607
|
+
"enableJsonFlag": true,
|
|
608
|
+
"SF_ENV": "SF_ENV",
|
|
609
|
+
"requiresProject": true,
|
|
610
|
+
"isESM": true,
|
|
611
|
+
"relativePath": [
|
|
612
|
+
"lib",
|
|
613
|
+
"commands",
|
|
614
|
+
"cmdt",
|
|
615
|
+
"generate",
|
|
616
|
+
"record.js"
|
|
617
|
+
],
|
|
618
|
+
"aliasPermutations": [
|
|
619
|
+
"force:cmdt:record:create",
|
|
620
|
+
"cmdt:force:record:create",
|
|
621
|
+
"cmdt:record:force:create",
|
|
622
|
+
"cmdt:record:create:force",
|
|
623
|
+
"force:record:cmdt:create",
|
|
624
|
+
"record:force:cmdt:create",
|
|
625
|
+
"record:cmdt:force:create",
|
|
626
|
+
"record:cmdt:create:force",
|
|
627
|
+
"force:record:create:cmdt",
|
|
628
|
+
"record:force:create:cmdt",
|
|
629
|
+
"record:create:force:cmdt",
|
|
630
|
+
"record:create:cmdt:force",
|
|
631
|
+
"force:cmdt:create:record",
|
|
632
|
+
"cmdt:force:create:record",
|
|
633
|
+
"cmdt:create:force:record",
|
|
634
|
+
"cmdt:create:record:force",
|
|
635
|
+
"force:create:cmdt:record",
|
|
636
|
+
"create:force:cmdt:record",
|
|
637
|
+
"create:cmdt:force:record",
|
|
638
|
+
"create:cmdt:record:force",
|
|
639
|
+
"force:create:record:cmdt",
|
|
640
|
+
"create:force:record:cmdt",
|
|
641
|
+
"create:record:force:cmdt",
|
|
642
|
+
"create:record:cmdt:force",
|
|
643
|
+
"cmdt:record:create",
|
|
644
|
+
"record:cmdt:create",
|
|
645
|
+
"record:create:cmdt",
|
|
646
|
+
"cmdt:create:record",
|
|
647
|
+
"create:cmdt:record",
|
|
648
|
+
"create:record:cmdt"
|
|
649
|
+
],
|
|
650
|
+
"permutations": [
|
|
651
|
+
"cmdt:generate:record",
|
|
652
|
+
"generate:cmdt:record",
|
|
653
|
+
"generate:record:cmdt",
|
|
654
|
+
"cmdt:record:generate",
|
|
655
|
+
"record:cmdt:generate",
|
|
656
|
+
"record:generate:cmdt"
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
"cmdt:generate:records": {
|
|
474
660
|
"aliases": [
|
|
475
661
|
"force:cmdt:record:insert",
|
|
476
662
|
"cmdt:record:insert"
|
|
477
663
|
],
|
|
664
|
+
"args": {},
|
|
665
|
+
"description": "The custom metadata type must already exist in your project. By default, the Name column is used to determine the record name; use the --name-column flag to specify a different column.",
|
|
478
666
|
"examples": [
|
|
479
667
|
"Generate record metadata files from values in a CSV file for the custom metadata type MyCmdt. Use 'Name' as the column that specifies the record name:\n<%= config.bin %> <%= command.id %> --csv path/to/my.csv --type-name MyCmdt",
|
|
480
668
|
"Generate record metadata files from a CSV file in the directory different from the default, and use 'PrimaryKey' as the column that specifies the record name:\n<%= config.bin %> <%= command.id %> --csv path/to/my.csv --type-name MyCmdt --input-directory path/to/my/cmdt/directory --name-column \"PrimaryKey\""
|
|
481
669
|
],
|
|
482
670
|
"flags": {
|
|
483
671
|
"json": {
|
|
484
|
-
"name": "json",
|
|
485
|
-
"type": "boolean",
|
|
486
672
|
"description": "Format output as json.",
|
|
487
673
|
"helpGroup": "GLOBAL",
|
|
488
|
-
"
|
|
674
|
+
"name": "json",
|
|
675
|
+
"allowNo": false,
|
|
676
|
+
"type": "boolean"
|
|
489
677
|
},
|
|
490
678
|
"loglevel": {
|
|
491
|
-
"name": "loglevel",
|
|
492
|
-
"type": "option",
|
|
493
|
-
"hidden": true,
|
|
494
|
-
"multiple": false,
|
|
495
679
|
"deprecated": {
|
|
496
680
|
"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."
|
|
497
|
-
}
|
|
681
|
+
},
|
|
682
|
+
"hidden": true,
|
|
683
|
+
"name": "loglevel",
|
|
684
|
+
"hasDynamicHelp": false,
|
|
685
|
+
"multiple": false,
|
|
686
|
+
"type": "option"
|
|
498
687
|
},
|
|
499
688
|
"csv": {
|
|
500
|
-
"
|
|
501
|
-
|
|
689
|
+
"aliases": [
|
|
690
|
+
"filepath"
|
|
691
|
+
],
|
|
502
692
|
"char": "f",
|
|
503
|
-
"
|
|
693
|
+
"name": "csv",
|
|
504
694
|
"required": true,
|
|
695
|
+
"summary": "Pathname of the CSV file.",
|
|
696
|
+
"hasDynamicHelp": false,
|
|
505
697
|
"multiple": false,
|
|
506
|
-
"
|
|
507
|
-
"filepath"
|
|
508
|
-
]
|
|
698
|
+
"type": "option"
|
|
509
699
|
},
|
|
510
700
|
"type-name": {
|
|
511
|
-
"
|
|
512
|
-
|
|
701
|
+
"aliases": [
|
|
702
|
+
"typename"
|
|
703
|
+
],
|
|
513
704
|
"char": "t",
|
|
514
|
-
"summary": "API name of the custom metadata type to create a record for.",
|
|
515
705
|
"description": "The '__mdt' suffix is appended to the end of the name if it's omitted.",
|
|
706
|
+
"name": "type-name",
|
|
516
707
|
"required": true,
|
|
708
|
+
"summary": "API name of the custom metadata type to create a record for.",
|
|
709
|
+
"hasDynamicHelp": false,
|
|
517
710
|
"multiple": false,
|
|
518
|
-
"
|
|
519
|
-
"typename"
|
|
520
|
-
]
|
|
711
|
+
"type": "option"
|
|
521
712
|
},
|
|
522
713
|
"input-directory": {
|
|
523
|
-
"name": "input-directory",
|
|
524
|
-
"type": "option",
|
|
525
|
-
"char": "i",
|
|
526
|
-
"summary": "Directory from which to get the custom metadata type definition from.",
|
|
527
|
-
"multiple": false,
|
|
528
|
-
"default": "force-app/main/default/objects",
|
|
529
714
|
"aliases": [
|
|
530
715
|
"inputdir",
|
|
531
716
|
"inputdirectory"
|
|
532
|
-
]
|
|
717
|
+
],
|
|
718
|
+
"char": "i",
|
|
719
|
+
"name": "input-directory",
|
|
720
|
+
"summary": "Directory from which to get the custom metadata type definition from.",
|
|
721
|
+
"default": "force-app/main/default/objects",
|
|
722
|
+
"hasDynamicHelp": false,
|
|
723
|
+
"multiple": false,
|
|
724
|
+
"type": "option"
|
|
533
725
|
},
|
|
534
726
|
"output-directory": {
|
|
535
|
-
"name": "output-directory",
|
|
536
|
-
"type": "option",
|
|
537
|
-
"char": "d",
|
|
538
|
-
"summary": "Directory to store newly-created custom metadata record files.",
|
|
539
|
-
"multiple": false,
|
|
540
|
-
"default": "force-app/main/default/customMetadata",
|
|
541
727
|
"aliases": [
|
|
542
728
|
"outputdir",
|
|
543
729
|
"outputdirectory"
|
|
544
|
-
]
|
|
730
|
+
],
|
|
731
|
+
"char": "d",
|
|
732
|
+
"name": "output-directory",
|
|
733
|
+
"summary": "Directory to store newly-created custom metadata record files.",
|
|
734
|
+
"default": "force-app/main/default/customMetadata",
|
|
735
|
+
"hasDynamicHelp": false,
|
|
736
|
+
"multiple": false,
|
|
737
|
+
"type": "option"
|
|
545
738
|
},
|
|
546
739
|
"name-column": {
|
|
547
|
-
"
|
|
548
|
-
|
|
740
|
+
"aliases": [
|
|
741
|
+
"namecolumn"
|
|
742
|
+
],
|
|
549
743
|
"char": "n",
|
|
744
|
+
"name": "name-column",
|
|
550
745
|
"summary": "Column used to determine the name of the record.",
|
|
551
|
-
"multiple": false,
|
|
552
746
|
"default": "Name",
|
|
553
|
-
"
|
|
554
|
-
|
|
555
|
-
|
|
747
|
+
"hasDynamicHelp": false,
|
|
748
|
+
"multiple": false,
|
|
749
|
+
"type": "option"
|
|
556
750
|
}
|
|
557
751
|
},
|
|
558
|
-
"
|
|
559
|
-
"
|
|
752
|
+
"hasDynamicHelp": false,
|
|
753
|
+
"hiddenAliases": [],
|
|
754
|
+
"id": "cmdt:generate:records",
|
|
755
|
+
"pluginAlias": "@salesforce/plugin-custom-metadata",
|
|
756
|
+
"pluginName": "@salesforce/plugin-custom-metadata",
|
|
757
|
+
"pluginType": "core",
|
|
758
|
+
"strict": true,
|
|
759
|
+
"summary": "Generate new custom metadata type records from a CSV file.",
|
|
760
|
+
"enableJsonFlag": true,
|
|
761
|
+
"SF_ENV": "SF_ENV",
|
|
762
|
+
"requiresProject": true,
|
|
763
|
+
"isESM": true,
|
|
764
|
+
"relativePath": [
|
|
765
|
+
"lib",
|
|
766
|
+
"commands",
|
|
767
|
+
"cmdt",
|
|
768
|
+
"generate",
|
|
769
|
+
"records.js"
|
|
770
|
+
],
|
|
771
|
+
"aliasPermutations": [
|
|
772
|
+
"force:cmdt:record:insert",
|
|
773
|
+
"cmdt:force:record:insert",
|
|
774
|
+
"cmdt:record:force:insert",
|
|
775
|
+
"cmdt:record:insert:force",
|
|
776
|
+
"force:record:cmdt:insert",
|
|
777
|
+
"record:force:cmdt:insert",
|
|
778
|
+
"record:cmdt:force:insert",
|
|
779
|
+
"record:cmdt:insert:force",
|
|
780
|
+
"force:record:insert:cmdt",
|
|
781
|
+
"record:force:insert:cmdt",
|
|
782
|
+
"record:insert:force:cmdt",
|
|
783
|
+
"record:insert:cmdt:force",
|
|
784
|
+
"force:cmdt:insert:record",
|
|
785
|
+
"cmdt:force:insert:record",
|
|
786
|
+
"cmdt:insert:force:record",
|
|
787
|
+
"cmdt:insert:record:force",
|
|
788
|
+
"force:insert:cmdt:record",
|
|
789
|
+
"insert:force:cmdt:record",
|
|
790
|
+
"insert:cmdt:force:record",
|
|
791
|
+
"insert:cmdt:record:force",
|
|
792
|
+
"force:insert:record:cmdt",
|
|
793
|
+
"insert:force:record:cmdt",
|
|
794
|
+
"insert:record:force:cmdt",
|
|
795
|
+
"insert:record:cmdt:force",
|
|
796
|
+
"cmdt:record:insert",
|
|
797
|
+
"record:cmdt:insert",
|
|
798
|
+
"record:insert:cmdt",
|
|
799
|
+
"cmdt:insert:record",
|
|
800
|
+
"insert:cmdt:record",
|
|
801
|
+
"insert:record:cmdt"
|
|
802
|
+
],
|
|
803
|
+
"permutations": [
|
|
804
|
+
"cmdt:generate:records",
|
|
805
|
+
"generate:cmdt:records",
|
|
806
|
+
"generate:records:cmdt",
|
|
807
|
+
"cmdt:records:generate",
|
|
808
|
+
"records:cmdt:generate",
|
|
809
|
+
"records:generate:cmdt"
|
|
810
|
+
]
|
|
560
811
|
}
|
|
561
|
-
}
|
|
812
|
+
},
|
|
813
|
+
"version": "3.0.1"
|
|
562
814
|
}
|