@salesforce/plugin-deploy-retrieve 3.20.0 → 3.20.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 +17 -17
- package/oclif.manifest.json +1452 -1452
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"project:
|
|
3
|
+
"project:convert:mdapi": {
|
|
4
4
|
"aliases": [
|
|
5
|
-
"force:
|
|
5
|
+
"force:mdapi:convert"
|
|
6
6
|
],
|
|
7
7
|
"args": {},
|
|
8
8
|
"deprecateAliases": true,
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "To use Salesforce CLI to work with components that you retrieved via Metadata API, first convert your files from the metadata format to the source format using this command.\n\nTo convert files from the source format back to the metadata format, run \"sf project convert source\".\n\nTo convert multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.",
|
|
10
10
|
"examples": [
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"Run the tests that aren’t in any managed packages as part of the deletion; if the delete succeeds, and the org has source-tracking enabled, update the source tracking information:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests --track-source",
|
|
14
|
-
"Delete the Apex source files in a directory and the corresponding components from your default org:\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes"
|
|
11
|
+
"Convert metadata formatted files in the specified directory into source formatted files; writes converted files to your default package directory:\n$ <%= config.bin %> <%= command.id %> --root-dir path/to/metadata",
|
|
12
|
+
"Similar to previous example, but writes converted files to the specified output directory:\n$ <%= config.bin %> <%= command.id %> --root-dir path/to/metadata --output-dir path/to/outputdir"
|
|
15
13
|
],
|
|
16
14
|
"flags": {
|
|
17
15
|
"json": {
|
|
@@ -50,149 +48,80 @@
|
|
|
50
48
|
"multiple": false,
|
|
51
49
|
"type": "option"
|
|
52
50
|
},
|
|
53
|
-
"
|
|
51
|
+
"root-dir": {
|
|
54
52
|
"aliases": [
|
|
55
|
-
"
|
|
56
|
-
"u"
|
|
53
|
+
"rootdir"
|
|
57
54
|
],
|
|
58
|
-
"char": "
|
|
55
|
+
"char": "r",
|
|
59
56
|
"deprecateAliases": true,
|
|
60
|
-
"name": "
|
|
61
|
-
"noCacheDefault": true,
|
|
57
|
+
"name": "root-dir",
|
|
62
58
|
"required": true,
|
|
63
|
-
"summary": "
|
|
64
|
-
"hasDynamicHelp":
|
|
59
|
+
"summary": "Root directory that contains the Metadata API–formatted metadata.",
|
|
60
|
+
"hasDynamicHelp": false,
|
|
65
61
|
"multiple": false,
|
|
66
62
|
"type": "option"
|
|
67
63
|
},
|
|
68
|
-
"
|
|
64
|
+
"output-dir": {
|
|
69
65
|
"aliases": [
|
|
70
|
-
"
|
|
66
|
+
"outputdir"
|
|
71
67
|
],
|
|
72
|
-
"char": "
|
|
68
|
+
"char": "d",
|
|
73
69
|
"deprecateAliases": true,
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"summary": "Validate delete command but don't delete anything from the org or the local project.",
|
|
77
|
-
"allowNo": false,
|
|
78
|
-
"type": "boolean"
|
|
79
|
-
},
|
|
80
|
-
"wait": {
|
|
81
|
-
"char": "w",
|
|
82
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
|
|
83
|
-
"name": "wait",
|
|
84
|
-
"summary": "Number of minutes to wait for the command to finish.",
|
|
85
|
-
"hasDynamicHelp": true,
|
|
86
|
-
"multiple": false,
|
|
87
|
-
"type": "option"
|
|
88
|
-
},
|
|
89
|
-
"tests": {
|
|
90
|
-
"description": "If a test name contains a space, enclose it in double quotes.\nFor multiple test names, use one of the following formats:\n\n- Repeat the flag for multiple test names: --tests Test1 --tests Test2 --tests \"Test With Space\"\n- Separate the test names with spaces: --tests Test1 Test2 \"Test With Space\"",
|
|
91
|
-
"helpGroup": "Test",
|
|
92
|
-
"name": "tests",
|
|
93
|
-
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
70
|
+
"name": "output-dir",
|
|
71
|
+
"summary": "Directory to store your files in after they’re converted to source format; can be an absolute or relative path.",
|
|
94
72
|
"hasDynamicHelp": false,
|
|
95
|
-
"multiple":
|
|
73
|
+
"multiple": false,
|
|
96
74
|
"type": "option"
|
|
97
75
|
},
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
"deprecateAliases": true,
|
|
104
|
-
"description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package and target org. For more information, see “Running Tests in a Deployment” in the Metadata API Developer Guide.",
|
|
105
|
-
"helpGroup": "Test",
|
|
106
|
-
"name": "test-level",
|
|
107
|
-
"summary": "Deployment Apex testing level.",
|
|
76
|
+
"manifest": {
|
|
77
|
+
"char": "x",
|
|
78
|
+
"description": "If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
79
|
+
"name": "manifest",
|
|
80
|
+
"summary": "File path to manifest (package.xml) of metadata types to convert.",
|
|
108
81
|
"hasDynamicHelp": false,
|
|
109
82
|
"multiple": false,
|
|
110
|
-
"options": [
|
|
111
|
-
"NoTestRun",
|
|
112
|
-
"RunSpecifiedTests",
|
|
113
|
-
"RunLocalTests",
|
|
114
|
-
"RunAllTestsInOrg"
|
|
115
|
-
],
|
|
116
83
|
"type": "option"
|
|
117
84
|
},
|
|
118
|
-
"
|
|
85
|
+
"metadata-dir": {
|
|
119
86
|
"aliases": [
|
|
120
|
-
"
|
|
87
|
+
"metadatapath"
|
|
121
88
|
],
|
|
122
|
-
"char": "
|
|
89
|
+
"char": "p",
|
|
123
90
|
"deprecateAliases": true,
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
"description": "If you specify this flag, don’t specify --source-dir.",
|
|
132
|
-
"name": "metadata",
|
|
133
|
-
"summary": "Metadata components to delete.",
|
|
91
|
+
"description": "The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).\n\nIf you specify this flag, don’t specify --manifest or --metadata. If the comma-separated list you’re supplying contains spaces, enclose the entire comma-separated list in one set of double quotes.",
|
|
92
|
+
"exclusive": [
|
|
93
|
+
"manifest",
|
|
94
|
+
"metadata"
|
|
95
|
+
],
|
|
96
|
+
"name": "metadata-dir",
|
|
97
|
+
"summary": "Root of directory or zip file of metadata formatted files to convert.",
|
|
134
98
|
"delimiter": ",",
|
|
135
99
|
"hasDynamicHelp": false,
|
|
136
100
|
"multiple": true,
|
|
137
101
|
"type": "option"
|
|
138
102
|
},
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
103
|
+
"metadata": {
|
|
104
|
+
"char": "m",
|
|
105
|
+
"exclusive": [
|
|
106
|
+
"manifest",
|
|
107
|
+
"metadatapath"
|
|
142
108
|
],
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"description": "The supplied paths can be a single file (in which case the operation is applied to only one file) or a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).\n\nIf you specify this flag, don’t specify --metadata.",
|
|
146
|
-
"name": "source-dir",
|
|
147
|
-
"summary": "Source file paths to delete.",
|
|
109
|
+
"name": "metadata",
|
|
110
|
+
"summary": "Metadata component names to convert.",
|
|
148
111
|
"delimiter": ",",
|
|
149
112
|
"hasDynamicHelp": false,
|
|
150
113
|
"multiple": true,
|
|
151
114
|
"type": "option"
|
|
152
|
-
},
|
|
153
|
-
"track-source": {
|
|
154
|
-
"aliases": [
|
|
155
|
-
"tracksource"
|
|
156
|
-
],
|
|
157
|
-
"char": "t",
|
|
158
|
-
"deprecateAliases": true,
|
|
159
|
-
"exclusive": [
|
|
160
|
-
"check-only"
|
|
161
|
-
],
|
|
162
|
-
"name": "track-source",
|
|
163
|
-
"summary": "If the delete succeeds, update the source tracking information.",
|
|
164
|
-
"allowNo": false,
|
|
165
|
-
"type": "boolean"
|
|
166
|
-
},
|
|
167
|
-
"force-overwrite": {
|
|
168
|
-
"aliases": [
|
|
169
|
-
"forceoverwrite"
|
|
170
|
-
],
|
|
171
|
-
"char": "f",
|
|
172
|
-
"dependsOn": [
|
|
173
|
-
"track-source"
|
|
174
|
-
],
|
|
175
|
-
"deprecateAliases": true,
|
|
176
|
-
"name": "force-overwrite",
|
|
177
|
-
"summary": "Ignore conflict warnings and overwrite changes to the org.",
|
|
178
|
-
"allowNo": false,
|
|
179
|
-
"type": "boolean"
|
|
180
|
-
},
|
|
181
|
-
"verbose": {
|
|
182
|
-
"name": "verbose",
|
|
183
|
-
"summary": "Verbose output of the delete result.",
|
|
184
|
-
"allowNo": false,
|
|
185
|
-
"type": "boolean"
|
|
186
115
|
}
|
|
187
116
|
},
|
|
188
|
-
"hasDynamicHelp":
|
|
117
|
+
"hasDynamicHelp": false,
|
|
189
118
|
"hiddenAliases": [],
|
|
190
|
-
"id": "project:
|
|
119
|
+
"id": "project:convert:mdapi",
|
|
191
120
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
192
121
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
193
122
|
"pluginType": "core",
|
|
194
123
|
"strict": true,
|
|
195
|
-
"summary": "
|
|
124
|
+
"summary": "Convert metadata retrieved via Metadata API into the source format used in Salesforce DX projects.",
|
|
196
125
|
"enableJsonFlag": true,
|
|
197
126
|
"requiresProject": true,
|
|
198
127
|
"isESM": true,
|
|
@@ -200,35 +129,34 @@
|
|
|
200
129
|
"lib",
|
|
201
130
|
"commands",
|
|
202
131
|
"project",
|
|
203
|
-
"
|
|
204
|
-
"
|
|
132
|
+
"convert",
|
|
133
|
+
"mdapi.js"
|
|
205
134
|
],
|
|
206
135
|
"aliasPermutations": [
|
|
207
|
-
"force:
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"force:
|
|
211
|
-
"
|
|
212
|
-
"
|
|
136
|
+
"force:mdapi:convert",
|
|
137
|
+
"mdapi:force:convert",
|
|
138
|
+
"mdapi:convert:force",
|
|
139
|
+
"force:convert:mdapi",
|
|
140
|
+
"convert:force:mdapi",
|
|
141
|
+
"convert:mdapi:force"
|
|
213
142
|
],
|
|
214
143
|
"permutations": [
|
|
215
|
-
"project:
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"project:
|
|
219
|
-
"
|
|
220
|
-
"
|
|
144
|
+
"project:convert:mdapi",
|
|
145
|
+
"convert:project:mdapi",
|
|
146
|
+
"convert:mdapi:project",
|
|
147
|
+
"project:mdapi:convert",
|
|
148
|
+
"mdapi:project:convert",
|
|
149
|
+
"mdapi:convert:project"
|
|
221
150
|
]
|
|
222
151
|
},
|
|
223
|
-
"project:
|
|
224
|
-
"aliases": [
|
|
225
|
-
"force:source:tracking:clear"
|
|
226
|
-
],
|
|
152
|
+
"project:convert:source-behavior": {
|
|
153
|
+
"aliases": [],
|
|
227
154
|
"args": {},
|
|
228
|
-
"
|
|
229
|
-
"description": "WARNING: This command deletes or overwrites all existing source tracking files. Use with extreme caution.\n\nDeletes all local source tracking information. When you next run 'project deploy preview', Salesforce CLI displays all local and remote files as changed, and any files with the same name are listed as conflicts.",
|
|
155
|
+
"description": "Specifically, this command updates the \"sourceBehaviorOption\" option in the \"sfdx-project.json\" file and then converts the associated local source files in your project as needed.\n\nFor example, run this command with the \"--behavior decomposePermissionSetBeta\" flag to start decomposing permission sets when you deploy or retrieve them. Decomposing means breaking up the monolithic metadata API format XML file that corresponds to a metadata component into smaller XML files and directories based on its subtypes. Permission sets are not decomposed by default; you must opt-in to start decomposing them by using this command. When the command finishes, your \"sfdx-project.json\" file is updated to always decompose permission sets, and the existing permission set files in your local package directories are converted into the new decomposed format. You run this command only once for a given behavior change.\n\nFor more information about the possible values for the --behavior flag, see the \"sourceBehaviorOptions\" section in the https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm topic.",
|
|
230
156
|
"examples": [
|
|
231
|
-
"
|
|
157
|
+
"Update your Salesforce DX project to decompose custom permission sets:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta",
|
|
158
|
+
"Display what the command would do, but don't change any existing files:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run",
|
|
159
|
+
"Keep the temporary directory that contains the interim metadata API formatted files:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run --preserve-temp-dir"
|
|
232
160
|
],
|
|
233
161
|
"flags": {
|
|
234
162
|
"json": {
|
|
@@ -246,62 +174,55 @@
|
|
|
246
174
|
"multiple": false,
|
|
247
175
|
"type": "option"
|
|
248
176
|
},
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
"
|
|
254
|
-
"description": "Override the api version used for api requests made by this command",
|
|
255
|
-
"name": "api-version",
|
|
177
|
+
"behavior": {
|
|
178
|
+
"char": "b",
|
|
179
|
+
"name": "behavior",
|
|
180
|
+
"required": true,
|
|
181
|
+
"summary": "Behavior to enable; the values correspond to the possible values of the \"sourceBehaviorOption\" option in the \"sfdx-project.json\" file.",
|
|
256
182
|
"hasDynamicHelp": false,
|
|
257
183
|
"multiple": false,
|
|
184
|
+
"options": [
|
|
185
|
+
"decomposeCustomLabelsBeta2",
|
|
186
|
+
"decomposeCustomLabelsBeta",
|
|
187
|
+
"decomposePermissionSetBeta",
|
|
188
|
+
"decomposePermissionSetBeta2",
|
|
189
|
+
"decomposeSharingRulesBeta",
|
|
190
|
+
"decomposeWorkflowBeta",
|
|
191
|
+
"decomposeExternalServiceRegistrationBeta"
|
|
192
|
+
],
|
|
258
193
|
"type": "option"
|
|
259
194
|
},
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
"
|
|
268
|
-
"
|
|
195
|
+
"dry-run": {
|
|
196
|
+
"name": "dry-run",
|
|
197
|
+
"summary": "Display what the command would do, but don't make any actual changes.",
|
|
198
|
+
"allowNo": false,
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"preserve-temp-dir": {
|
|
202
|
+
"name": "preserve-temp-dir",
|
|
203
|
+
"summary": "Don't delete the metadata API format temporary directory that this command creates. Useful for debugging.",
|
|
204
|
+
"allowNo": false,
|
|
205
|
+
"type": "boolean"
|
|
269
206
|
},
|
|
270
207
|
"target-org": {
|
|
271
|
-
"aliases": [
|
|
272
|
-
"targetusername",
|
|
273
|
-
"u"
|
|
274
|
-
],
|
|
275
208
|
"char": "o",
|
|
276
|
-
"deprecateAliases": true,
|
|
277
209
|
"name": "target-org",
|
|
278
210
|
"noCacheDefault": true,
|
|
279
|
-
"
|
|
280
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
211
|
+
"summary": "Username or alias of the target org.",
|
|
281
212
|
"hasDynamicHelp": true,
|
|
282
213
|
"multiple": false,
|
|
283
214
|
"type": "option"
|
|
284
|
-
},
|
|
285
|
-
"no-prompt": {
|
|
286
|
-
"aliases": [
|
|
287
|
-
"noprompt"
|
|
288
|
-
],
|
|
289
|
-
"char": "p",
|
|
290
|
-
"deprecateAliases": true,
|
|
291
|
-
"name": "no-prompt",
|
|
292
|
-
"summary": "Don't prompt for source tracking override confirmation.",
|
|
293
|
-
"allowNo": false,
|
|
294
|
-
"type": "boolean"
|
|
295
215
|
}
|
|
296
216
|
},
|
|
297
217
|
"hasDynamicHelp": true,
|
|
298
218
|
"hiddenAliases": [],
|
|
299
|
-
"id": "project:
|
|
219
|
+
"id": "project:convert:source-behavior",
|
|
300
220
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
301
221
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
302
222
|
"pluginType": "core",
|
|
223
|
+
"state": "beta",
|
|
303
224
|
"strict": true,
|
|
304
|
-
"summary": "
|
|
225
|
+
"summary": "Enable a behavior of your project source files, and then update your Salesforce DX project to implement the behavior.",
|
|
305
226
|
"enableJsonFlag": true,
|
|
306
227
|
"requiresProject": true,
|
|
307
228
|
"isESM": true,
|
|
@@ -309,54 +230,29 @@
|
|
|
309
230
|
"lib",
|
|
310
231
|
"commands",
|
|
311
232
|
"project",
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
],
|
|
315
|
-
"aliasPermutations": [
|
|
316
|
-
"force:source:tracking:clear",
|
|
317
|
-
"source:force:tracking:clear",
|
|
318
|
-
"source:tracking:force:clear",
|
|
319
|
-
"source:tracking:clear:force",
|
|
320
|
-
"force:tracking:source:clear",
|
|
321
|
-
"tracking:force:source:clear",
|
|
322
|
-
"tracking:source:force:clear",
|
|
323
|
-
"tracking:source:clear:force",
|
|
324
|
-
"force:tracking:clear:source",
|
|
325
|
-
"tracking:force:clear:source",
|
|
326
|
-
"tracking:clear:force:source",
|
|
327
|
-
"tracking:clear:source:force",
|
|
328
|
-
"force:source:clear:tracking",
|
|
329
|
-
"source:force:clear:tracking",
|
|
330
|
-
"source:clear:force:tracking",
|
|
331
|
-
"source:clear:tracking:force",
|
|
332
|
-
"force:clear:source:tracking",
|
|
333
|
-
"clear:force:source:tracking",
|
|
334
|
-
"clear:source:force:tracking",
|
|
335
|
-
"clear:source:tracking:force",
|
|
336
|
-
"force:clear:tracking:source",
|
|
337
|
-
"clear:force:tracking:source",
|
|
338
|
-
"clear:tracking:force:source",
|
|
339
|
-
"clear:tracking:source:force"
|
|
233
|
+
"convert",
|
|
234
|
+
"source-behavior.js"
|
|
340
235
|
],
|
|
236
|
+
"aliasPermutations": [],
|
|
341
237
|
"permutations": [
|
|
342
|
-
"project:
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"project:
|
|
346
|
-
"
|
|
347
|
-
"
|
|
238
|
+
"project:convert:source-behavior",
|
|
239
|
+
"convert:project:source-behavior",
|
|
240
|
+
"convert:source-behavior:project",
|
|
241
|
+
"project:source-behavior:convert",
|
|
242
|
+
"source-behavior:project:convert",
|
|
243
|
+
"source-behavior:convert:project"
|
|
348
244
|
]
|
|
349
245
|
},
|
|
350
|
-
"project:
|
|
246
|
+
"project:convert:source": {
|
|
351
247
|
"aliases": [
|
|
352
|
-
"
|
|
248
|
+
"force:source:convert"
|
|
353
249
|
],
|
|
354
250
|
"args": {},
|
|
355
251
|
"deprecateAliases": true,
|
|
356
|
-
"description": "
|
|
252
|
+
"description": "To convert source-formatted files into the metadata format, so that you can deploy them using Metadata API, run this command. Then deploy the metadata using \"<%= config.bin %> project deploy\".\n\nTo convert Metadata API–formatted files into the source format, run \"<%= config.bin %> project convert mdapi\".\n\nTo specify a package name that includes spaces, enclose the name in single quotes.\n\nTo convert multiple components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.",
|
|
357
253
|
"examples": [
|
|
358
|
-
"
|
|
359
|
-
"
|
|
254
|
+
"Convert source-formatted files in the specified directory into metadata-formatted files; writes converted files into a new directory:\n$ <%= config.bin %> <%= command.id %> --root-dir path/to/source",
|
|
255
|
+
"Similar to previous example, but writes converted files to the specified output directory and associates the files with the specified package:\n$ <%= config.bin %> <%= command.id %> --root-dir path/to/source --output-dir path/to/outputdir --package-name 'My Package'"
|
|
360
256
|
],
|
|
361
257
|
"flags": {
|
|
362
258
|
"json": {
|
|
@@ -374,103 +270,153 @@
|
|
|
374
270
|
"multiple": false,
|
|
375
271
|
"type": "option"
|
|
376
272
|
},
|
|
377
|
-
"
|
|
378
|
-
"
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"
|
|
273
|
+
"api-version": {
|
|
274
|
+
"aliases": [
|
|
275
|
+
"apiversion"
|
|
276
|
+
],
|
|
277
|
+
"deprecateAliases": true,
|
|
278
|
+
"description": "Override the api version used for api requests made by this command",
|
|
279
|
+
"name": "api-version",
|
|
280
|
+
"summary": "API Version to use in the generated project's manifest. By default, will use the version from sfdx-project.json",
|
|
281
|
+
"hasDynamicHelp": false,
|
|
282
|
+
"multiple": false,
|
|
283
|
+
"type": "option"
|
|
284
|
+
},
|
|
285
|
+
"loglevel": {
|
|
286
|
+
"deprecated": {
|
|
287
|
+
"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."
|
|
288
|
+
},
|
|
289
|
+
"hidden": true,
|
|
290
|
+
"name": "loglevel",
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"multiple": false,
|
|
293
|
+
"type": "option"
|
|
294
|
+
},
|
|
295
|
+
"root-dir": {
|
|
296
|
+
"aliases": [
|
|
297
|
+
"rootdir"
|
|
298
|
+
],
|
|
299
|
+
"char": "r",
|
|
300
|
+
"deprecateAliases": true,
|
|
301
|
+
"name": "root-dir",
|
|
302
|
+
"summary": "Source directory other than the default package to convert.",
|
|
303
|
+
"hasDynamicHelp": false,
|
|
304
|
+
"multiple": false,
|
|
305
|
+
"type": "option"
|
|
306
|
+
},
|
|
307
|
+
"output-dir": {
|
|
308
|
+
"aliases": [
|
|
309
|
+
"outputdir"
|
|
310
|
+
],
|
|
311
|
+
"char": "d",
|
|
312
|
+
"deprecateAliases": true,
|
|
313
|
+
"name": "output-dir",
|
|
314
|
+
"summary": "Output directory to store the Metadata API–formatted files in.",
|
|
315
|
+
"default": "metadataPackage_>timestamp<",
|
|
382
316
|
"hasDynamicHelp": true,
|
|
383
317
|
"multiple": false,
|
|
384
318
|
"type": "option"
|
|
385
319
|
},
|
|
386
|
-
"
|
|
387
|
-
"
|
|
388
|
-
|
|
389
|
-
"wait"
|
|
320
|
+
"package-name": {
|
|
321
|
+
"aliases": [
|
|
322
|
+
"packagename"
|
|
390
323
|
],
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
324
|
+
"char": "n",
|
|
325
|
+
"deprecateAliases": true,
|
|
326
|
+
"name": "package-name",
|
|
327
|
+
"summary": "Name of the package to associate with the metadata-formatted files.",
|
|
328
|
+
"hasDynamicHelp": false,
|
|
329
|
+
"multiple": false,
|
|
330
|
+
"type": "option"
|
|
395
331
|
},
|
|
396
|
-
"
|
|
397
|
-
"char": "
|
|
398
|
-
"description": "
|
|
399
|
-
"name": "
|
|
400
|
-
"summary": "
|
|
332
|
+
"manifest": {
|
|
333
|
+
"char": "x",
|
|
334
|
+
"description": "If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
335
|
+
"name": "manifest",
|
|
336
|
+
"summary": "Path to the manifest (package.xml) file that specifies the metadata types to convert.",
|
|
401
337
|
"hasDynamicHelp": false,
|
|
402
338
|
"multiple": false,
|
|
403
339
|
"type": "option"
|
|
404
340
|
},
|
|
405
|
-
"
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
341
|
+
"source-dir": {
|
|
342
|
+
"aliases": [
|
|
343
|
+
"sourcepath"
|
|
344
|
+
],
|
|
345
|
+
"char": "p",
|
|
346
|
+
"deprecateAliases": true,
|
|
347
|
+
"description": "The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).\n\nIf you specify this flag, don’t specify --manifest or --metadata.",
|
|
348
|
+
"exclusive": [
|
|
349
|
+
"manifest",
|
|
350
|
+
"metadata"
|
|
351
|
+
],
|
|
352
|
+
"name": "source-dir",
|
|
353
|
+
"summary": "Paths to the local source files to convert.",
|
|
354
|
+
"delimiter": ",",
|
|
355
|
+
"hasDynamicHelp": false,
|
|
356
|
+
"multiple": true,
|
|
357
|
+
"type": "option"
|
|
412
358
|
},
|
|
413
|
-
"
|
|
414
|
-
"char": "
|
|
415
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run \"<%= config.bin %> project deploy resume\". To check the status of the cancellation, run \"<%= config.bin %> project deploy report\".",
|
|
359
|
+
"metadata": {
|
|
360
|
+
"char": "m",
|
|
416
361
|
"exclusive": [
|
|
417
|
-
"
|
|
362
|
+
"manifest",
|
|
363
|
+
"sourcepath"
|
|
418
364
|
],
|
|
419
|
-
"name": "
|
|
420
|
-
"summary": "
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"multiple":
|
|
365
|
+
"name": "metadata",
|
|
366
|
+
"summary": "Metadata component names to convert.",
|
|
367
|
+
"delimiter": ",",
|
|
368
|
+
"hasDynamicHelp": false,
|
|
369
|
+
"multiple": true,
|
|
424
370
|
"type": "option"
|
|
425
371
|
}
|
|
426
372
|
},
|
|
427
373
|
"hasDynamicHelp": true,
|
|
428
374
|
"hiddenAliases": [],
|
|
429
|
-
"id": "project:
|
|
375
|
+
"id": "project:convert:source",
|
|
430
376
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
431
377
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
432
378
|
"pluginType": "core",
|
|
433
379
|
"strict": true,
|
|
434
|
-
"summary": "
|
|
380
|
+
"summary": "Convert source-formatted files into metadata that you can deploy using Metadata API.",
|
|
435
381
|
"enableJsonFlag": true,
|
|
382
|
+
"requiresProject": true,
|
|
436
383
|
"isESM": true,
|
|
437
384
|
"relativePath": [
|
|
438
385
|
"lib",
|
|
439
386
|
"commands",
|
|
440
387
|
"project",
|
|
441
|
-
"
|
|
442
|
-
"
|
|
388
|
+
"convert",
|
|
389
|
+
"source.js"
|
|
443
390
|
],
|
|
444
391
|
"aliasPermutations": [
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"
|
|
392
|
+
"force:source:convert",
|
|
393
|
+
"source:force:convert",
|
|
394
|
+
"source:convert:force",
|
|
395
|
+
"force:convert:source",
|
|
396
|
+
"convert:force:source",
|
|
397
|
+
"convert:source:force"
|
|
451
398
|
],
|
|
452
399
|
"permutations": [
|
|
453
|
-
"project:
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"project:
|
|
457
|
-
"
|
|
458
|
-
"
|
|
400
|
+
"project:convert:source",
|
|
401
|
+
"convert:project:source",
|
|
402
|
+
"convert:source:project",
|
|
403
|
+
"project:source:convert",
|
|
404
|
+
"source:project:convert",
|
|
405
|
+
"source:convert:project"
|
|
459
406
|
]
|
|
460
407
|
},
|
|
461
|
-
"project:
|
|
408
|
+
"project:delete:source": {
|
|
462
409
|
"aliases": [
|
|
463
|
-
"
|
|
410
|
+
"force:source:delete"
|
|
464
411
|
],
|
|
465
412
|
"args": {},
|
|
466
413
|
"deprecateAliases": true,
|
|
467
|
-
"description": "
|
|
414
|
+
"description": "Use this command to delete components from orgs that don’t have source tracking. To remove deleted items from orgs that have source tracking enabled, \"<%= config.bin %> project deploy start\".\n\nWhen you run this command, both the local source file and the metadata component in the org are deleted.\n\nTo delete multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.",
|
|
468
415
|
"examples": [
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"
|
|
473
|
-
"Preview deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"
|
|
416
|
+
"Delete all local Apex source files and all Apex classes from the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --metadata ApexClass --target-org my-scratch",
|
|
417
|
+
"Delete a specific Apex class and a Profile that has a space in it from your default org; don't prompt for confirmation:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyFabulousApexClass --metadata \"Profile: My Profile\" --no-prompt",
|
|
418
|
+
"Run the tests that aren’t in any managed packages as part of the deletion; if the delete succeeds, and the org has source-tracking enabled, update the source tracking information:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests --track-source",
|
|
419
|
+
"Delete the Apex source files in a directory and the corresponding components from your default org:\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes"
|
|
474
420
|
],
|
|
475
421
|
"flags": {
|
|
476
422
|
"json": {
|
|
@@ -488,54 +434,34 @@
|
|
|
488
434
|
"multiple": false,
|
|
489
435
|
"type": "option"
|
|
490
436
|
},
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
|
|
494
|
-
"name": "ignore-conflicts",
|
|
495
|
-
"summary": "Don't display conflicts in preview of the deployment.",
|
|
496
|
-
"allowNo": false,
|
|
497
|
-
"type": "boolean"
|
|
498
|
-
},
|
|
499
|
-
"manifest": {
|
|
500
|
-
"char": "x",
|
|
501
|
-
"description": "All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
502
|
-
"exclusive": [
|
|
503
|
-
"source-dir",
|
|
504
|
-
"metadata"
|
|
437
|
+
"api-version": {
|
|
438
|
+
"aliases": [
|
|
439
|
+
"apiversion"
|
|
505
440
|
],
|
|
506
|
-
"
|
|
507
|
-
"
|
|
441
|
+
"deprecateAliases": true,
|
|
442
|
+
"description": "Override the api version used for api requests made by this command",
|
|
443
|
+
"name": "api-version",
|
|
508
444
|
"hasDynamicHelp": false,
|
|
509
445
|
"multiple": false,
|
|
510
446
|
"type": "option"
|
|
511
447
|
},
|
|
512
|
-
"
|
|
513
|
-
"
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
"name": "metadata",
|
|
519
|
-
"summary": "Metadata component names to preview.",
|
|
520
|
-
"hasDynamicHelp": false,
|
|
521
|
-
"multiple": true,
|
|
522
|
-
"type": "option"
|
|
523
|
-
},
|
|
524
|
-
"source-dir": {
|
|
525
|
-
"char": "d",
|
|
526
|
-
"description": "The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.",
|
|
527
|
-
"exclusive": [
|
|
528
|
-
"manifest",
|
|
529
|
-
"metadata"
|
|
530
|
-
],
|
|
531
|
-
"name": "source-dir",
|
|
532
|
-
"summary": "Path to the local source files to preview.",
|
|
448
|
+
"loglevel": {
|
|
449
|
+
"deprecated": {
|
|
450
|
+
"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."
|
|
451
|
+
},
|
|
452
|
+
"hidden": true,
|
|
453
|
+
"name": "loglevel",
|
|
533
454
|
"hasDynamicHelp": false,
|
|
534
|
-
"multiple":
|
|
455
|
+
"multiple": false,
|
|
535
456
|
"type": "option"
|
|
536
457
|
},
|
|
537
458
|
"target-org": {
|
|
459
|
+
"aliases": [
|
|
460
|
+
"targetusername",
|
|
461
|
+
"u"
|
|
462
|
+
],
|
|
538
463
|
"char": "o",
|
|
464
|
+
"deprecateAliases": true,
|
|
539
465
|
"name": "target-org",
|
|
540
466
|
"noCacheDefault": true,
|
|
541
467
|
"required": true,
|
|
@@ -544,21 +470,134 @@
|
|
|
544
470
|
"multiple": false,
|
|
545
471
|
"type": "option"
|
|
546
472
|
},
|
|
547
|
-
"
|
|
548
|
-
"
|
|
549
|
-
|
|
473
|
+
"check-only": {
|
|
474
|
+
"aliases": [
|
|
475
|
+
"checkonly"
|
|
476
|
+
],
|
|
477
|
+
"char": "c",
|
|
478
|
+
"deprecateAliases": true,
|
|
479
|
+
"description": "IMPORTANT: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.\n\nValidates the deleted metadata and runs all Apex tests, but prevents the deletion from being saved to the org.\n\nIf you change a field type from Master-Detail to Lookup or vice versa, that change isn’t supported when using the --check-only flag to test a deletion (validation). This kind of change isn’t supported for test deletions to avoid the risk of data loss or corruption. If a change that isn’t supported for test deletions is included in a deletion package, the test deletion fails and issues an error.\n\nIf your deletion package changes a field type from Master-Detail to Lookup or vice versa, you can still validate the changes prior to deploying to Production by performing a full deletion to another test Sandbox. A full deletion includes a validation of the changes as part of the deletion process.\n\nNote: A Metadata API deletion that includes Master-Detail relationships deletes all detail records in the Recycle Bin in the following cases.\n\n 1. For a deletion with a new Master-Detail field, soft delete (send to the Recycle Bin) all detail records before proceeding to delete the Master-Detail field, or the deletion fails. During the deletion, detail records are permanently deleted from the Recycle Bin and cannot be recovered.\n\n 2. For a deletion that converts a Lookup field relationship to a Master-Detail relationship, detail records must reference a master record or be soft-deleted (sent to the Recycle Bin) for the deletion to succeed. However, a successful deletion permanently deletes any detail records in the Recycle Bin.",
|
|
480
|
+
"name": "check-only",
|
|
481
|
+
"summary": "Validate delete command but don't delete anything from the org or the local project.",
|
|
482
|
+
"allowNo": false,
|
|
483
|
+
"type": "boolean"
|
|
484
|
+
},
|
|
485
|
+
"wait": {
|
|
486
|
+
"char": "w",
|
|
487
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you.",
|
|
488
|
+
"name": "wait",
|
|
489
|
+
"summary": "Number of minutes to wait for the command to finish.",
|
|
490
|
+
"hasDynamicHelp": true,
|
|
491
|
+
"multiple": false,
|
|
492
|
+
"type": "option"
|
|
493
|
+
},
|
|
494
|
+
"tests": {
|
|
495
|
+
"description": "If a test name contains a space, enclose it in double quotes.\nFor multiple test names, use one of the following formats:\n\n- Repeat the flag for multiple test names: --tests Test1 --tests Test2 --tests \"Test With Space\"\n- Separate the test names with spaces: --tests Test1 Test2 \"Test With Space\"",
|
|
496
|
+
"helpGroup": "Test",
|
|
497
|
+
"name": "tests",
|
|
498
|
+
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
499
|
+
"hasDynamicHelp": false,
|
|
500
|
+
"multiple": true,
|
|
501
|
+
"type": "option"
|
|
502
|
+
},
|
|
503
|
+
"test-level": {
|
|
504
|
+
"aliases": [
|
|
505
|
+
"testlevel"
|
|
506
|
+
],
|
|
507
|
+
"char": "l",
|
|
508
|
+
"deprecateAliases": true,
|
|
509
|
+
"description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package and target org. For more information, see “Running Tests in a Deployment” in the Metadata API Developer Guide.",
|
|
510
|
+
"helpGroup": "Test",
|
|
511
|
+
"name": "test-level",
|
|
512
|
+
"summary": "Deployment Apex testing level.",
|
|
513
|
+
"hasDynamicHelp": false,
|
|
514
|
+
"multiple": false,
|
|
515
|
+
"options": [
|
|
516
|
+
"NoTestRun",
|
|
517
|
+
"RunSpecifiedTests",
|
|
518
|
+
"RunLocalTests",
|
|
519
|
+
"RunAllTestsInOrg"
|
|
520
|
+
],
|
|
521
|
+
"type": "option"
|
|
522
|
+
},
|
|
523
|
+
"no-prompt": {
|
|
524
|
+
"aliases": [
|
|
525
|
+
"noprompt"
|
|
526
|
+
],
|
|
527
|
+
"char": "r",
|
|
528
|
+
"deprecateAliases": true,
|
|
529
|
+
"name": "no-prompt",
|
|
530
|
+
"summary": "Don't prompt for delete confirmation.",
|
|
531
|
+
"allowNo": false,
|
|
532
|
+
"type": "boolean"
|
|
533
|
+
},
|
|
534
|
+
"metadata": {
|
|
535
|
+
"char": "m",
|
|
536
|
+
"description": "If you specify this flag, don’t specify --source-dir.",
|
|
537
|
+
"name": "metadata",
|
|
538
|
+
"summary": "Metadata components to delete.",
|
|
539
|
+
"delimiter": ",",
|
|
540
|
+
"hasDynamicHelp": false,
|
|
541
|
+
"multiple": true,
|
|
542
|
+
"type": "option"
|
|
543
|
+
},
|
|
544
|
+
"source-dir": {
|
|
545
|
+
"aliases": [
|
|
546
|
+
"sourcepath"
|
|
547
|
+
],
|
|
548
|
+
"char": "p",
|
|
549
|
+
"deprecateAliases": true,
|
|
550
|
+
"description": "The supplied paths can be a single file (in which case the operation is applied to only one file) or a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).\n\nIf you specify this flag, don’t specify --metadata.",
|
|
551
|
+
"name": "source-dir",
|
|
552
|
+
"summary": "Source file paths to delete.",
|
|
553
|
+
"delimiter": ",",
|
|
554
|
+
"hasDynamicHelp": false,
|
|
555
|
+
"multiple": true,
|
|
556
|
+
"type": "option"
|
|
557
|
+
},
|
|
558
|
+
"track-source": {
|
|
559
|
+
"aliases": [
|
|
560
|
+
"tracksource"
|
|
561
|
+
],
|
|
562
|
+
"char": "t",
|
|
563
|
+
"deprecateAliases": true,
|
|
564
|
+
"exclusive": [
|
|
565
|
+
"check-only"
|
|
566
|
+
],
|
|
567
|
+
"name": "track-source",
|
|
568
|
+
"summary": "If the delete succeeds, update the source tracking information.",
|
|
569
|
+
"allowNo": false,
|
|
570
|
+
"type": "boolean"
|
|
571
|
+
},
|
|
572
|
+
"force-overwrite": {
|
|
573
|
+
"aliases": [
|
|
574
|
+
"forceoverwrite"
|
|
575
|
+
],
|
|
576
|
+
"char": "f",
|
|
577
|
+
"dependsOn": [
|
|
578
|
+
"track-source"
|
|
579
|
+
],
|
|
580
|
+
"deprecateAliases": true,
|
|
581
|
+
"name": "force-overwrite",
|
|
582
|
+
"summary": "Ignore conflict warnings and overwrite changes to the org.",
|
|
583
|
+
"allowNo": false,
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
},
|
|
586
|
+
"verbose": {
|
|
587
|
+
"name": "verbose",
|
|
588
|
+
"summary": "Verbose output of the delete result.",
|
|
550
589
|
"allowNo": false,
|
|
551
590
|
"type": "boolean"
|
|
552
591
|
}
|
|
553
592
|
},
|
|
554
593
|
"hasDynamicHelp": true,
|
|
555
594
|
"hiddenAliases": [],
|
|
556
|
-
"id": "project:
|
|
595
|
+
"id": "project:delete:source",
|
|
557
596
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
558
597
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
559
598
|
"pluginType": "core",
|
|
560
599
|
"strict": true,
|
|
561
|
-
"summary": "
|
|
600
|
+
"summary": "Delete source from your project and from a non-source-tracked org.",
|
|
562
601
|
"enableJsonFlag": true,
|
|
563
602
|
"requiresProject": true,
|
|
564
603
|
"isESM": true,
|
|
@@ -566,36 +605,35 @@
|
|
|
566
605
|
"lib",
|
|
567
606
|
"commands",
|
|
568
607
|
"project",
|
|
569
|
-
"
|
|
570
|
-
"
|
|
608
|
+
"delete",
|
|
609
|
+
"source.js"
|
|
571
610
|
],
|
|
572
611
|
"aliasPermutations": [
|
|
573
|
-
"
|
|
574
|
-
"
|
|
575
|
-
"
|
|
576
|
-
"
|
|
577
|
-
"
|
|
578
|
-
"
|
|
612
|
+
"force:source:delete",
|
|
613
|
+
"source:force:delete",
|
|
614
|
+
"source:delete:force",
|
|
615
|
+
"force:delete:source",
|
|
616
|
+
"delete:force:source",
|
|
617
|
+
"delete:source:force"
|
|
579
618
|
],
|
|
580
619
|
"permutations": [
|
|
581
|
-
"project:
|
|
582
|
-
"
|
|
583
|
-
"
|
|
584
|
-
"project:
|
|
585
|
-
"
|
|
586
|
-
"
|
|
620
|
+
"project:delete:source",
|
|
621
|
+
"delete:project:source",
|
|
622
|
+
"delete:source:project",
|
|
623
|
+
"project:source:delete",
|
|
624
|
+
"source:project:delete",
|
|
625
|
+
"source:delete:project"
|
|
587
626
|
]
|
|
588
627
|
},
|
|
589
|
-
"project:
|
|
628
|
+
"project:delete:tracking": {
|
|
590
629
|
"aliases": [
|
|
591
|
-
"
|
|
630
|
+
"force:source:tracking:clear"
|
|
592
631
|
],
|
|
593
632
|
"args": {},
|
|
594
633
|
"deprecateAliases": true,
|
|
595
|
-
"description": "
|
|
634
|
+
"description": "WARNING: This command deletes or overwrites all existing source tracking files. Use with extreme caution.\n\nDeletes all local source tracking information. When you next run 'project deploy preview', Salesforce CLI displays all local and remote files as changed, and any files with the same name are listed as conflicts.",
|
|
596
635
|
"examples": [
|
|
597
|
-
"
|
|
598
|
-
"Asynchronously run a quick deploy of the most recently validated deployment to an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --target-org my-prod-org"
|
|
636
|
+
"Delete local source tracking for the org with alias \"my-scratch\":\n$ <%= config.bin %> <%= command.id %> --target-org my-scratch"
|
|
599
637
|
],
|
|
600
638
|
"flags": {
|
|
601
639
|
"json": {
|
|
@@ -613,162 +651,117 @@
|
|
|
613
651
|
"multiple": false,
|
|
614
652
|
"type": "option"
|
|
615
653
|
},
|
|
616
|
-
"
|
|
617
|
-
"
|
|
618
|
-
|
|
619
|
-
"wait"
|
|
620
|
-
],
|
|
621
|
-
"name": "async",
|
|
622
|
-
"summary": "Run the command asynchronously.",
|
|
623
|
-
"allowNo": false,
|
|
624
|
-
"type": "boolean"
|
|
625
|
-
},
|
|
626
|
-
"concise": {
|
|
627
|
-
"exclusive": [
|
|
628
|
-
"verbose"
|
|
654
|
+
"api-version": {
|
|
655
|
+
"aliases": [
|
|
656
|
+
"apiversion"
|
|
629
657
|
],
|
|
630
|
-
"
|
|
631
|
-
"
|
|
632
|
-
"
|
|
633
|
-
"
|
|
658
|
+
"deprecateAliases": true,
|
|
659
|
+
"description": "Override the api version used for api requests made by this command",
|
|
660
|
+
"name": "api-version",
|
|
661
|
+
"hasDynamicHelp": false,
|
|
662
|
+
"multiple": false,
|
|
663
|
+
"type": "option"
|
|
634
664
|
},
|
|
635
|
-
"
|
|
636
|
-
"
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
"
|
|
665
|
+
"loglevel": {
|
|
666
|
+
"deprecated": {
|
|
667
|
+
"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."
|
|
668
|
+
},
|
|
669
|
+
"hidden": true,
|
|
670
|
+
"name": "loglevel",
|
|
640
671
|
"hasDynamicHelp": false,
|
|
641
672
|
"multiple": false,
|
|
642
673
|
"type": "option"
|
|
643
674
|
},
|
|
644
675
|
"target-org": {
|
|
676
|
+
"aliases": [
|
|
677
|
+
"targetusername",
|
|
678
|
+
"u"
|
|
679
|
+
],
|
|
645
680
|
"char": "o",
|
|
681
|
+
"deprecateAliases": true,
|
|
646
682
|
"name": "target-org",
|
|
647
683
|
"noCacheDefault": true,
|
|
648
|
-
"
|
|
684
|
+
"required": true,
|
|
685
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
649
686
|
"hasDynamicHelp": true,
|
|
650
687
|
"multiple": false,
|
|
651
688
|
"type": "option"
|
|
652
689
|
},
|
|
653
|
-
"
|
|
654
|
-
"
|
|
655
|
-
|
|
656
|
-
"name": "use-most-recent",
|
|
657
|
-
"summary": "Use the job ID of the most recently validated deployment.",
|
|
658
|
-
"allowNo": false,
|
|
659
|
-
"type": "boolean"
|
|
660
|
-
},
|
|
661
|
-
"verbose": {
|
|
662
|
-
"exclusive": [
|
|
663
|
-
"concise"
|
|
690
|
+
"no-prompt": {
|
|
691
|
+
"aliases": [
|
|
692
|
+
"noprompt"
|
|
664
693
|
],
|
|
665
|
-
"
|
|
666
|
-
"
|
|
694
|
+
"char": "p",
|
|
695
|
+
"deprecateAliases": true,
|
|
696
|
+
"name": "no-prompt",
|
|
697
|
+
"summary": "Don't prompt for source tracking override confirmation.",
|
|
667
698
|
"allowNo": false,
|
|
668
699
|
"type": "boolean"
|
|
669
|
-
},
|
|
670
|
-
"wait": {
|
|
671
|
-
"char": "w",
|
|
672
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy, run \"<%= config.bin %> project deploy resume\". To check the status of the deploy, run \"<%= config.bin %> project deploy report\".",
|
|
673
|
-
"exclusive": [
|
|
674
|
-
"async"
|
|
675
|
-
],
|
|
676
|
-
"name": "wait",
|
|
677
|
-
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
678
|
-
"default": "33 minutes",
|
|
679
|
-
"hasDynamicHelp": true,
|
|
680
|
-
"helpValue": "<minutes>",
|
|
681
|
-
"multiple": false,
|
|
682
|
-
"type": "option"
|
|
683
|
-
},
|
|
684
|
-
"api-version": {
|
|
685
|
-
"char": "a",
|
|
686
|
-
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
687
|
-
"name": "api-version",
|
|
688
|
-
"summary": "Target API version for the deploy.",
|
|
689
|
-
"hasDynamicHelp": false,
|
|
690
|
-
"multiple": false,
|
|
691
|
-
"type": "option"
|
|
692
700
|
}
|
|
693
701
|
},
|
|
694
702
|
"hasDynamicHelp": true,
|
|
695
703
|
"hiddenAliases": [],
|
|
696
|
-
"id": "project:
|
|
704
|
+
"id": "project:delete:tracking",
|
|
697
705
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
698
706
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
699
707
|
"pluginType": "core",
|
|
700
708
|
"strict": true,
|
|
701
|
-
"summary": "
|
|
709
|
+
"summary": "Delete all local source tracking information.",
|
|
702
710
|
"enableJsonFlag": true,
|
|
703
|
-
"
|
|
704
|
-
"header": "ERROR CODES",
|
|
705
|
-
"body": [
|
|
706
|
-
{
|
|
707
|
-
"name": "Succeeded (0)",
|
|
708
|
-
"description": "The deploy succeeded."
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"name": "Canceled (1)",
|
|
712
|
-
"description": "The deploy was canceled."
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"name": "Failed (1)",
|
|
716
|
-
"description": "The deploy failed."
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"name": "SucceededPartial (68)",
|
|
720
|
-
"description": "The deploy partially succeeded."
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"name": "InProgress (69)",
|
|
724
|
-
"description": "The deploy is in progress."
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"name": "Pending (69)",
|
|
728
|
-
"description": "The deploy is pending."
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
"name": "Canceling (69)",
|
|
732
|
-
"description": "The deploy is being canceled."
|
|
733
|
-
}
|
|
734
|
-
]
|
|
735
|
-
},
|
|
711
|
+
"requiresProject": true,
|
|
736
712
|
"isESM": true,
|
|
737
713
|
"relativePath": [
|
|
738
714
|
"lib",
|
|
739
715
|
"commands",
|
|
740
716
|
"project",
|
|
741
|
-
"
|
|
742
|
-
"
|
|
717
|
+
"delete",
|
|
718
|
+
"tracking.js"
|
|
743
719
|
],
|
|
744
720
|
"aliasPermutations": [
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
"
|
|
748
|
-
"
|
|
749
|
-
"
|
|
750
|
-
"
|
|
721
|
+
"force:source:tracking:clear",
|
|
722
|
+
"source:force:tracking:clear",
|
|
723
|
+
"source:tracking:force:clear",
|
|
724
|
+
"source:tracking:clear:force",
|
|
725
|
+
"force:tracking:source:clear",
|
|
726
|
+
"tracking:force:source:clear",
|
|
727
|
+
"tracking:source:force:clear",
|
|
728
|
+
"tracking:source:clear:force",
|
|
729
|
+
"force:tracking:clear:source",
|
|
730
|
+
"tracking:force:clear:source",
|
|
731
|
+
"tracking:clear:force:source",
|
|
732
|
+
"tracking:clear:source:force",
|
|
733
|
+
"force:source:clear:tracking",
|
|
734
|
+
"source:force:clear:tracking",
|
|
735
|
+
"source:clear:force:tracking",
|
|
736
|
+
"source:clear:tracking:force",
|
|
737
|
+
"force:clear:source:tracking",
|
|
738
|
+
"clear:force:source:tracking",
|
|
739
|
+
"clear:source:force:tracking",
|
|
740
|
+
"clear:source:tracking:force",
|
|
741
|
+
"force:clear:tracking:source",
|
|
742
|
+
"clear:force:tracking:source",
|
|
743
|
+
"clear:tracking:force:source",
|
|
744
|
+
"clear:tracking:source:force"
|
|
751
745
|
],
|
|
752
746
|
"permutations": [
|
|
753
|
-
"project:
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"project:
|
|
757
|
-
"
|
|
758
|
-
"
|
|
747
|
+
"project:delete:tracking",
|
|
748
|
+
"delete:project:tracking",
|
|
749
|
+
"delete:tracking:project",
|
|
750
|
+
"project:tracking:delete",
|
|
751
|
+
"tracking:project:delete",
|
|
752
|
+
"tracking:delete:project"
|
|
759
753
|
]
|
|
760
754
|
},
|
|
761
|
-
"project:deploy:
|
|
755
|
+
"project:deploy:cancel": {
|
|
762
756
|
"aliases": [
|
|
763
|
-
"deploy:metadata:
|
|
757
|
+
"deploy:metadata:cancel"
|
|
764
758
|
],
|
|
765
759
|
"args": {},
|
|
766
760
|
"deprecateAliases": true,
|
|
767
|
-
"description": "Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.
|
|
761
|
+
"description": "Use this command to cancel a deploy operation that hasn't yet completed in the org. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
|
|
768
762
|
"examples": [
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
"Poll for the status using a job ID and target org:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2 --target-org me@my.org --wait 30"
|
|
763
|
+
"Cancel a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
|
|
764
|
+
"Cancel the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
|
|
772
765
|
],
|
|
773
766
|
"flags": {
|
|
774
767
|
"json": {
|
|
@@ -795,74 +788,41 @@
|
|
|
795
788
|
"multiple": false,
|
|
796
789
|
"type": "option"
|
|
797
790
|
},
|
|
791
|
+
"async": {
|
|
792
|
+
"description": "The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the cancellation, run \"<%= config.bin %> project deploy resume\". To check the status of the cancellation, run \"<%= config.bin %> project deploy report\".",
|
|
793
|
+
"exclusive": [
|
|
794
|
+
"wait"
|
|
795
|
+
],
|
|
796
|
+
"name": "async",
|
|
797
|
+
"summary": "Run the command asynchronously.",
|
|
798
|
+
"allowNo": false,
|
|
799
|
+
"type": "boolean"
|
|
800
|
+
},
|
|
798
801
|
"job-id": {
|
|
799
802
|
"char": "i",
|
|
800
803
|
"description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- <%= config.bin %> project deploy start\n- <%= config.bin %> project deploy validate\n- <%= config.bin %> project deploy quick\n- <%= config.bin %> project deploy cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
|
|
801
804
|
"name": "job-id",
|
|
802
|
-
"summary": "Job ID of the deploy operation you want to
|
|
805
|
+
"summary": "Job ID of the deploy operation you want to cancel.",
|
|
803
806
|
"hasDynamicHelp": false,
|
|
804
807
|
"multiple": false,
|
|
805
808
|
"type": "option"
|
|
806
809
|
},
|
|
807
810
|
"use-most-recent": {
|
|
808
811
|
"char": "r",
|
|
809
|
-
"description": "For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent
|
|
812
|
+
"description": "For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent deploy operations was more than 3 days ago, this flag won't find a job ID.",
|
|
810
813
|
"name": "use-most-recent",
|
|
811
814
|
"summary": "Use the job ID of the most recent deploy operation.",
|
|
812
815
|
"allowNo": false,
|
|
813
816
|
"type": "boolean"
|
|
814
817
|
},
|
|
815
|
-
"coverage-formatters": {
|
|
816
|
-
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
817
|
-
"helpGroup": "Test",
|
|
818
|
-
"name": "coverage-formatters",
|
|
819
|
-
"summary": "Format of the code coverage results.",
|
|
820
|
-
"hasDynamicHelp": false,
|
|
821
|
-
"multiple": true,
|
|
822
|
-
"options": [
|
|
823
|
-
"clover",
|
|
824
|
-
"cobertura",
|
|
825
|
-
"html-spa",
|
|
826
|
-
"html",
|
|
827
|
-
"json",
|
|
828
|
-
"json-summary",
|
|
829
|
-
"lcovonly",
|
|
830
|
-
"none",
|
|
831
|
-
"teamcity",
|
|
832
|
-
"text",
|
|
833
|
-
"text-summary"
|
|
834
|
-
],
|
|
835
|
-
"type": "option"
|
|
836
|
-
},
|
|
837
|
-
"junit": {
|
|
838
|
-
"helpGroup": "Test",
|
|
839
|
-
"name": "junit",
|
|
840
|
-
"summary": "Output JUnit test results.",
|
|
841
|
-
"allowNo": false,
|
|
842
|
-
"type": "boolean"
|
|
843
|
-
},
|
|
844
|
-
"results-dir": {
|
|
845
|
-
"helpGroup": "Test",
|
|
846
|
-
"name": "results-dir",
|
|
847
|
-
"relationships": [
|
|
848
|
-
{
|
|
849
|
-
"type": "some",
|
|
850
|
-
"flags": [
|
|
851
|
-
"coverage-formatters",
|
|
852
|
-
"junit"
|
|
853
|
-
]
|
|
854
|
-
}
|
|
855
|
-
],
|
|
856
|
-
"summary": "Output directory for code coverage and JUnit results; defaults to the deploy ID.",
|
|
857
|
-
"hasDynamicHelp": false,
|
|
858
|
-
"multiple": false,
|
|
859
|
-
"type": "option"
|
|
860
|
-
},
|
|
861
818
|
"wait": {
|
|
862
819
|
"char": "w",
|
|
863
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you
|
|
820
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run \"<%= config.bin %> project deploy resume\". To check the status of the cancellation, run \"<%= config.bin %> project deploy report\".",
|
|
821
|
+
"exclusive": [
|
|
822
|
+
"async"
|
|
823
|
+
],
|
|
864
824
|
"name": "wait",
|
|
865
|
-
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
825
|
+
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
866
826
|
"hasDynamicHelp": true,
|
|
867
827
|
"helpValue": "<minutes>",
|
|
868
828
|
"multiple": false,
|
|
@@ -871,12 +831,12 @@
|
|
|
871
831
|
},
|
|
872
832
|
"hasDynamicHelp": true,
|
|
873
833
|
"hiddenAliases": [],
|
|
874
|
-
"id": "project:deploy:
|
|
834
|
+
"id": "project:deploy:cancel",
|
|
875
835
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
876
836
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
877
837
|
"pluginType": "core",
|
|
878
838
|
"strict": true,
|
|
879
|
-
"summary": "
|
|
839
|
+
"summary": "Cancel a deploy operation.",
|
|
880
840
|
"enableJsonFlag": true,
|
|
881
841
|
"isESM": true,
|
|
882
842
|
"relativePath": [
|
|
@@ -884,35 +844,38 @@
|
|
|
884
844
|
"commands",
|
|
885
845
|
"project",
|
|
886
846
|
"deploy",
|
|
887
|
-
"
|
|
847
|
+
"cancel.js"
|
|
888
848
|
],
|
|
889
849
|
"aliasPermutations": [
|
|
890
|
-
"deploy:metadata:
|
|
891
|
-
"metadata:deploy:
|
|
892
|
-
"metadata:
|
|
893
|
-
"deploy:
|
|
894
|
-
"
|
|
895
|
-
"
|
|
850
|
+
"deploy:metadata:cancel",
|
|
851
|
+
"metadata:deploy:cancel",
|
|
852
|
+
"metadata:cancel:deploy",
|
|
853
|
+
"deploy:cancel:metadata",
|
|
854
|
+
"cancel:deploy:metadata",
|
|
855
|
+
"cancel:metadata:deploy"
|
|
896
856
|
],
|
|
897
857
|
"permutations": [
|
|
898
|
-
"project:deploy:
|
|
899
|
-
"deploy:project:
|
|
900
|
-
"deploy:
|
|
901
|
-
"project:
|
|
902
|
-
"
|
|
903
|
-
"
|
|
858
|
+
"project:deploy:cancel",
|
|
859
|
+
"deploy:project:cancel",
|
|
860
|
+
"deploy:cancel:project",
|
|
861
|
+
"project:cancel:deploy",
|
|
862
|
+
"cancel:project:deploy",
|
|
863
|
+
"cancel:deploy:project"
|
|
904
864
|
]
|
|
905
865
|
},
|
|
906
|
-
"project:deploy:
|
|
866
|
+
"project:deploy:preview": {
|
|
907
867
|
"aliases": [
|
|
908
|
-
"deploy:metadata:
|
|
868
|
+
"deploy:metadata:preview"
|
|
909
869
|
],
|
|
910
870
|
"args": {},
|
|
911
871
|
"deprecateAliases": true,
|
|
912
|
-
"description": "
|
|
872
|
+
"description": "You must run this command from within a project.\n\nThe command outputs a table that describes what will happen if you run the \"<%= config.bin %> project deploy start\" command. The table lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between files in your local project and components in the org. Finally, the table lists the files that won't be deployed because they're included in your .forceignore file.\n\nIf your org allows source tracking, then this command displays potential conflicts between the org and your local project. Some orgs, such as production org, never allow source tracking. Source tracking is enabled by default on scratch and sandbox orgs; you can disable source tracking when you create the orgs by specifying the --no-track-source flag on the \"<%= config.bin %> org create scratch|sandbox\" commands.\n\nTo preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.",
|
|
913
873
|
"examples": [
|
|
914
|
-
"
|
|
915
|
-
"
|
|
874
|
+
"NOTE: The commands to preview a deployment and actually deploy it use similar flags. We provide a few preview examples here, but see the help for \"<%= config.bin %> project deploy start\" for more examples that you can adapt for previewing.",
|
|
875
|
+
"Preview the deployment of source files in a directory, such as force-app, to your default org:\n<%= config.bin %> <%= command.id %> --source-dir force-app",
|
|
876
|
+
"Preview the deployment of all Apex classes to an org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --metadata ApexClass --target-org my-scratch",
|
|
877
|
+
"Preview deployment of a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass",
|
|
878
|
+
"Preview deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"
|
|
916
879
|
],
|
|
917
880
|
"flags": {
|
|
918
881
|
"json": {
|
|
@@ -930,196 +893,114 @@
|
|
|
930
893
|
"multiple": false,
|
|
931
894
|
"type": "option"
|
|
932
895
|
},
|
|
933
|
-
"
|
|
934
|
-
"
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
"
|
|
938
|
-
"summary": "Show concise output of the deploy operation result.",
|
|
896
|
+
"ignore-conflicts": {
|
|
897
|
+
"char": "c",
|
|
898
|
+
"description": "This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.",
|
|
899
|
+
"name": "ignore-conflicts",
|
|
900
|
+
"summary": "Don't display conflicts in preview of the deployment.",
|
|
939
901
|
"allowNo": false,
|
|
940
902
|
"type": "boolean"
|
|
941
903
|
},
|
|
942
|
-
"
|
|
943
|
-
"char": "
|
|
944
|
-
"description": "
|
|
945
|
-
"
|
|
946
|
-
|
|
904
|
+
"manifest": {
|
|
905
|
+
"char": "x",
|
|
906
|
+
"description": "All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
907
|
+
"exclusive": [
|
|
908
|
+
"source-dir",
|
|
909
|
+
"metadata"
|
|
910
|
+
],
|
|
911
|
+
"name": "manifest",
|
|
912
|
+
"summary": "Full file path for manifest (package.xml) of components to preview.",
|
|
947
913
|
"hasDynamicHelp": false,
|
|
948
914
|
"multiple": false,
|
|
949
915
|
"type": "option"
|
|
950
916
|
},
|
|
951
|
-
"
|
|
952
|
-
"char": "
|
|
953
|
-
"
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
"allowNo": false,
|
|
957
|
-
"type": "boolean"
|
|
958
|
-
},
|
|
959
|
-
"verbose": {
|
|
960
|
-
"exclusive": [
|
|
961
|
-
"concise"
|
|
917
|
+
"metadata": {
|
|
918
|
+
"char": "m",
|
|
919
|
+
"exclusive": [
|
|
920
|
+
"manifest",
|
|
921
|
+
"source-dir"
|
|
962
922
|
],
|
|
963
|
-
"name": "
|
|
964
|
-
"summary": "
|
|
965
|
-
"allowNo": false,
|
|
966
|
-
"type": "boolean"
|
|
967
|
-
},
|
|
968
|
-
"wait": {
|
|
969
|
-
"char": "w",
|
|
970
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy operation, run this command again. To check the status of the deploy operation, run \"<%= config.bin %> project deploy report\".",
|
|
971
|
-
"name": "wait",
|
|
972
|
-
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
973
|
-
"hasDynamicHelp": true,
|
|
974
|
-
"helpValue": "<minutes>",
|
|
975
|
-
"multiple": false,
|
|
976
|
-
"type": "option"
|
|
977
|
-
},
|
|
978
|
-
"coverage-formatters": {
|
|
979
|
-
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
980
|
-
"helpGroup": "Test",
|
|
981
|
-
"name": "coverage-formatters",
|
|
982
|
-
"summary": "Format of the code coverage results.",
|
|
923
|
+
"name": "metadata",
|
|
924
|
+
"summary": "Metadata component names to preview.",
|
|
983
925
|
"hasDynamicHelp": false,
|
|
984
926
|
"multiple": true,
|
|
985
|
-
"options": [
|
|
986
|
-
"clover",
|
|
987
|
-
"cobertura",
|
|
988
|
-
"html-spa",
|
|
989
|
-
"html",
|
|
990
|
-
"json",
|
|
991
|
-
"json-summary",
|
|
992
|
-
"lcovonly",
|
|
993
|
-
"none",
|
|
994
|
-
"teamcity",
|
|
995
|
-
"text",
|
|
996
|
-
"text-summary"
|
|
997
|
-
],
|
|
998
927
|
"type": "option"
|
|
999
928
|
},
|
|
1000
|
-
"
|
|
1001
|
-
"
|
|
1002
|
-
"
|
|
1003
|
-
"
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1007
|
-
"results-dir": {
|
|
1008
|
-
"helpGroup": "Test",
|
|
1009
|
-
"name": "results-dir",
|
|
1010
|
-
"relationships": [
|
|
1011
|
-
{
|
|
1012
|
-
"type": "some",
|
|
1013
|
-
"flags": [
|
|
1014
|
-
"coverage-formatters",
|
|
1015
|
-
"junit"
|
|
1016
|
-
]
|
|
1017
|
-
}
|
|
929
|
+
"source-dir": {
|
|
930
|
+
"char": "d",
|
|
931
|
+
"description": "The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.",
|
|
932
|
+
"exclusive": [
|
|
933
|
+
"manifest",
|
|
934
|
+
"metadata"
|
|
1018
935
|
],
|
|
1019
|
-
"
|
|
936
|
+
"name": "source-dir",
|
|
937
|
+
"summary": "Path to the local source files to preview.",
|
|
1020
938
|
"hasDynamicHelp": false,
|
|
939
|
+
"multiple": true,
|
|
940
|
+
"type": "option"
|
|
941
|
+
},
|
|
942
|
+
"target-org": {
|
|
943
|
+
"char": "o",
|
|
944
|
+
"name": "target-org",
|
|
945
|
+
"noCacheDefault": true,
|
|
946
|
+
"required": true,
|
|
947
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
948
|
+
"hasDynamicHelp": true,
|
|
1021
949
|
"multiple": false,
|
|
1022
950
|
"type": "option"
|
|
951
|
+
},
|
|
952
|
+
"concise": {
|
|
953
|
+
"name": "concise",
|
|
954
|
+
"summary": "Show only the changes that will be deployed; omits files that are forceignored.",
|
|
955
|
+
"allowNo": false,
|
|
956
|
+
"type": "boolean"
|
|
1023
957
|
}
|
|
1024
958
|
},
|
|
1025
959
|
"hasDynamicHelp": true,
|
|
1026
960
|
"hiddenAliases": [],
|
|
1027
|
-
"id": "project:deploy:
|
|
961
|
+
"id": "project:deploy:preview",
|
|
1028
962
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
1029
963
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
1030
964
|
"pluginType": "core",
|
|
1031
965
|
"strict": true,
|
|
1032
|
-
"summary": "
|
|
966
|
+
"summary": "Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.",
|
|
1033
967
|
"enableJsonFlag": true,
|
|
1034
|
-
"
|
|
1035
|
-
"header": "ENVIRONMENT VARIABLES",
|
|
1036
|
-
"body": [
|
|
1037
|
-
{
|
|
1038
|
-
"name": "SF_USE_PROGRESS_BAR",
|
|
1039
|
-
"description": "Set to false to disable the progress bar when running the metadata deploy command."
|
|
1040
|
-
}
|
|
1041
|
-
]
|
|
1042
|
-
},
|
|
1043
|
-
"errorCodes": {
|
|
1044
|
-
"header": "ERROR CODES",
|
|
1045
|
-
"body": [
|
|
1046
|
-
{
|
|
1047
|
-
"name": "Succeeded (0)",
|
|
1048
|
-
"description": "The deploy succeeded."
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"name": "Canceled (1)",
|
|
1052
|
-
"description": "The deploy was canceled."
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
"name": "Failed (1)",
|
|
1056
|
-
"description": "The deploy failed."
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"name": "SucceededPartial (68)",
|
|
1060
|
-
"description": "The deploy partially succeeded."
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "InProgress (69)",
|
|
1064
|
-
"description": "The deploy is in progress."
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "Pending (69)",
|
|
1068
|
-
"description": "The deploy is pending."
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
"name": "Canceling (69)",
|
|
1072
|
-
"description": "The deploy is being canceled."
|
|
1073
|
-
}
|
|
1074
|
-
]
|
|
1075
|
-
},
|
|
968
|
+
"requiresProject": true,
|
|
1076
969
|
"isESM": true,
|
|
1077
970
|
"relativePath": [
|
|
1078
971
|
"lib",
|
|
1079
972
|
"commands",
|
|
1080
973
|
"project",
|
|
1081
974
|
"deploy",
|
|
1082
|
-
"
|
|
975
|
+
"preview.js"
|
|
1083
976
|
],
|
|
1084
977
|
"aliasPermutations": [
|
|
1085
|
-
"deploy:metadata:
|
|
1086
|
-
"metadata:deploy:
|
|
1087
|
-
"metadata:
|
|
1088
|
-
"deploy:
|
|
1089
|
-
"
|
|
1090
|
-
"
|
|
978
|
+
"deploy:metadata:preview",
|
|
979
|
+
"metadata:deploy:preview",
|
|
980
|
+
"metadata:preview:deploy",
|
|
981
|
+
"deploy:preview:metadata",
|
|
982
|
+
"preview:deploy:metadata",
|
|
983
|
+
"preview:metadata:deploy"
|
|
1091
984
|
],
|
|
1092
985
|
"permutations": [
|
|
1093
|
-
"project:deploy:
|
|
1094
|
-
"deploy:project:
|
|
1095
|
-
"deploy:
|
|
1096
|
-
"project:
|
|
1097
|
-
"
|
|
1098
|
-
"
|
|
986
|
+
"project:deploy:preview",
|
|
987
|
+
"deploy:project:preview",
|
|
988
|
+
"deploy:preview:project",
|
|
989
|
+
"project:preview:deploy",
|
|
990
|
+
"preview:project:deploy",
|
|
991
|
+
"preview:deploy:project"
|
|
1099
992
|
]
|
|
1100
993
|
},
|
|
1101
|
-
"project:deploy:
|
|
994
|
+
"project:deploy:quick": {
|
|
1102
995
|
"aliases": [
|
|
1103
|
-
"deploy:metadata"
|
|
996
|
+
"deploy:metadata:quick"
|
|
1104
997
|
],
|
|
1105
998
|
"args": {},
|
|
1106
999
|
"deprecateAliases": true,
|
|
1107
|
-
"description": "
|
|
1000
|
+
"description": "Before you run this command, first create a validated deployment with the \"<%= config.bin %> project deploy validate\" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.\n\nExecuting this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nThis command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.\n\nNote: Don't use this command on sandboxes; the command is intended to be used on production orgs. By default, sandboxes don't run tests during a deploy. Use \"<%= config.bin %> project deploy start\" instead.",
|
|
1108
1001
|
"examples": [
|
|
1109
|
-
"
|
|
1110
|
-
"
|
|
1111
|
-
"Deploy all the Apex classes and custom objects that are in the \"force-app\" directory. The list views, layouts, etc, that are associated with the custom objects are also deployed. Both examples are equivalent:\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes force-app/main/default/objects\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes --source-dir force-app/main/default/objects",
|
|
1112
|
-
"Deploy all Apex classes that are in all package directories defined in the \"sfdx-project.json\" file:\n<%= config.bin %> <%= command.id %> --metadata ApexClass",
|
|
1113
|
-
"Deploy a specific Apex class; ignore any conflicts between the local project and org (be careful with this flag, because it will overwrite the Apex class in the org if there are conflicts!):\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass --ignore-conflicts",
|
|
1114
|
-
"Deploy specific Apex classes that match a pattern; in this example, deploy Apex classes whose names contain the string \"MyApex\". Also ignore any deployment warnings (again, be careful with this flag! You typically want to see the warnings):\n<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*' --ignore-warnings",
|
|
1115
|
-
"Deploy a custom object called ExcitingObject that's in the SBQQ namespace:\nsf <%= command.id %> --metadata CustomObject:SBQQ__ExcitingObject",
|
|
1116
|
-
"Deploy all custom objects in the SBQQ namespace by using a wildcard and quotes:\nsf <%= command.id %> --metadata 'CustomObject:SBQQ__*'",
|
|
1117
|
-
"Deploy all custom objects and Apex classes found in all defined package directories (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass",
|
|
1118
|
-
"Deploy all Apex classes and a profile that has a space in its name:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --metadata \"Profile:My Profile\"",
|
|
1119
|
-
"Deploy all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml",
|
|
1120
|
-
"Run the tests that aren’t in any managed packages as part of a deployment:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests",
|
|
1121
|
-
"Deploy all metadata formatted files in the \"MDAPI\" directory:\n<%= config.bin %> <%= command.id %> --metadata-dir MDAPI",
|
|
1122
|
-
"Deploy all metadata formatted files in the \"MDAPI\" directory; items listed in the MDAPI/destructiveChangesPre.xml and MDAPI/destructiveChangesPost.xml manifests are immediately eligible for deletion rather than stored in the Recycle Bin:\n<%= config.bin %> <%= command.id %> --metadata-dir MDAPI --purge-on-delete"
|
|
1002
|
+
"Run a quick deploy to your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
|
|
1003
|
+
"Asynchronously run a quick deploy of the most recently validated deployment to an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --target-org my-prod-org"
|
|
1123
1004
|
],
|
|
1124
1005
|
"flags": {
|
|
1125
1006
|
"json": {
|
|
@@ -1137,17 +1018,8 @@
|
|
|
1137
1018
|
"multiple": false,
|
|
1138
1019
|
"type": "option"
|
|
1139
1020
|
},
|
|
1140
|
-
"api-version": {
|
|
1141
|
-
"char": "a",
|
|
1142
|
-
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
1143
|
-
"name": "api-version",
|
|
1144
|
-
"summary": "Target API version for the deploy.",
|
|
1145
|
-
"hasDynamicHelp": false,
|
|
1146
|
-
"multiple": false,
|
|
1147
|
-
"type": "option"
|
|
1148
|
-
},
|
|
1149
1021
|
"async": {
|
|
1150
|
-
"description": "The command immediately returns the
|
|
1022
|
+
"description": "The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the deploy, run \"<%= config.bin %> project deploy resume\". To check the status of the deploy, run \"<%= config.bin %> project deploy report\".",
|
|
1151
1023
|
"exclusive": [
|
|
1152
1024
|
"wait"
|
|
1153
1025
|
],
|
|
@@ -1165,201 +1037,186 @@
|
|
|
1165
1037
|
"allowNo": false,
|
|
1166
1038
|
"type": "boolean"
|
|
1167
1039
|
},
|
|
1168
|
-
"
|
|
1169
|
-
"
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1172
|
-
"
|
|
1040
|
+
"job-id": {
|
|
1041
|
+
"char": "i",
|
|
1042
|
+
"description": "The job ID is valid for 10 days from when you started the validation.",
|
|
1043
|
+
"name": "job-id",
|
|
1044
|
+
"summary": "Job ID of the deployment you want to quick deploy.",
|
|
1045
|
+
"hasDynamicHelp": false,
|
|
1046
|
+
"multiple": false,
|
|
1047
|
+
"type": "option"
|
|
1173
1048
|
},
|
|
1174
|
-
"
|
|
1175
|
-
"char": "
|
|
1176
|
-
"
|
|
1177
|
-
"
|
|
1178
|
-
"summary": "
|
|
1179
|
-
"
|
|
1180
|
-
"
|
|
1049
|
+
"target-org": {
|
|
1050
|
+
"char": "o",
|
|
1051
|
+
"name": "target-org",
|
|
1052
|
+
"noCacheDefault": true,
|
|
1053
|
+
"summary": "Username or alias of the target org.",
|
|
1054
|
+
"hasDynamicHelp": true,
|
|
1055
|
+
"multiple": false,
|
|
1056
|
+
"type": "option"
|
|
1181
1057
|
},
|
|
1182
|
-
"
|
|
1058
|
+
"use-most-recent": {
|
|
1183
1059
|
"char": "r",
|
|
1184
|
-
"description": "
|
|
1185
|
-
"name": "
|
|
1186
|
-
"summary": "
|
|
1060
|
+
"description": "For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find a job ID.",
|
|
1061
|
+
"name": "use-most-recent",
|
|
1062
|
+
"summary": "Use the job ID of the most recently validated deployment.",
|
|
1187
1063
|
"allowNo": false,
|
|
1188
1064
|
"type": "boolean"
|
|
1189
1065
|
},
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
"
|
|
1066
|
+
"verbose": {
|
|
1067
|
+
"exclusive": [
|
|
1068
|
+
"concise"
|
|
1069
|
+
],
|
|
1070
|
+
"name": "verbose",
|
|
1071
|
+
"summary": "Show verbose output of the deploy result.",
|
|
1195
1072
|
"allowNo": false,
|
|
1196
1073
|
"type": "boolean"
|
|
1197
1074
|
},
|
|
1198
|
-
"
|
|
1199
|
-
"char": "
|
|
1200
|
-
"description": "
|
|
1075
|
+
"wait": {
|
|
1076
|
+
"char": "w",
|
|
1077
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy, run \"<%= config.bin %> project deploy resume\". To check the status of the deploy, run \"<%= config.bin %> project deploy report\".",
|
|
1201
1078
|
"exclusive": [
|
|
1202
|
-
"
|
|
1203
|
-
"metadata",
|
|
1204
|
-
"metadata-dir"
|
|
1079
|
+
"async"
|
|
1205
1080
|
],
|
|
1206
|
-
"
|
|
1207
|
-
"
|
|
1208
|
-
"
|
|
1209
|
-
"hasDynamicHelp":
|
|
1081
|
+
"name": "wait",
|
|
1082
|
+
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
1083
|
+
"default": "33 minutes",
|
|
1084
|
+
"hasDynamicHelp": true,
|
|
1085
|
+
"helpValue": "<minutes>",
|
|
1210
1086
|
"multiple": false,
|
|
1211
1087
|
"type": "option"
|
|
1212
1088
|
},
|
|
1213
|
-
"
|
|
1214
|
-
"char": "
|
|
1215
|
-
"
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
"metadata-dir"
|
|
1219
|
-
],
|
|
1220
|
-
"helpGroup": "Source Format",
|
|
1221
|
-
"name": "metadata",
|
|
1222
|
-
"summary": "Metadata component names to deploy. Wildcards (`*` ) supported as long as you use quotes, such as `ApexClass:MyClass*`.",
|
|
1223
|
-
"hasDynamicHelp": false,
|
|
1224
|
-
"multiple": true,
|
|
1225
|
-
"type": "option"
|
|
1226
|
-
},
|
|
1227
|
-
"metadata-dir": {
|
|
1228
|
-
"exclusive": [
|
|
1229
|
-
"manifest",
|
|
1230
|
-
"source-dir",
|
|
1231
|
-
"metadata"
|
|
1232
|
-
],
|
|
1233
|
-
"helpGroup": "Metadata API Format",
|
|
1234
|
-
"name": "metadata-dir",
|
|
1235
|
-
"summary": "Root of directory or zip file of metadata formatted files to deploy.",
|
|
1089
|
+
"api-version": {
|
|
1090
|
+
"char": "a",
|
|
1091
|
+
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
1092
|
+
"name": "api-version",
|
|
1093
|
+
"summary": "Target API version for the deploy.",
|
|
1236
1094
|
"hasDynamicHelp": false,
|
|
1237
1095
|
"multiple": false,
|
|
1238
1096
|
"type": "option"
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
"hasDynamicHelp": true,
|
|
1100
|
+
"hiddenAliases": [],
|
|
1101
|
+
"id": "project:deploy:quick",
|
|
1102
|
+
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
1103
|
+
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
1104
|
+
"pluginType": "core",
|
|
1105
|
+
"strict": true,
|
|
1106
|
+
"summary": "Quickly deploy a validated deployment to an org.",
|
|
1107
|
+
"enableJsonFlag": true,
|
|
1108
|
+
"errorCodes": {
|
|
1109
|
+
"header": "ERROR CODES",
|
|
1110
|
+
"body": [
|
|
1111
|
+
{
|
|
1112
|
+
"name": "Succeeded (0)",
|
|
1113
|
+
"description": "The deploy succeeded."
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"name": "Canceled (1)",
|
|
1117
|
+
"description": "The deploy was canceled."
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "Failed (1)",
|
|
1121
|
+
"description": "The deploy failed."
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "SucceededPartial (68)",
|
|
1125
|
+
"description": "The deploy partially succeeded."
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "InProgress (69)",
|
|
1129
|
+
"description": "The deploy is in progress."
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "Pending (69)",
|
|
1133
|
+
"description": "The deploy is pending."
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "Canceling (69)",
|
|
1137
|
+
"description": "The deploy is being canceled."
|
|
1138
|
+
}
|
|
1139
|
+
]
|
|
1140
|
+
},
|
|
1141
|
+
"isESM": true,
|
|
1142
|
+
"relativePath": [
|
|
1143
|
+
"lib",
|
|
1144
|
+
"commands",
|
|
1145
|
+
"project",
|
|
1146
|
+
"deploy",
|
|
1147
|
+
"quick.js"
|
|
1148
|
+
],
|
|
1149
|
+
"aliasPermutations": [
|
|
1150
|
+
"deploy:metadata:quick",
|
|
1151
|
+
"metadata:deploy:quick",
|
|
1152
|
+
"metadata:quick:deploy",
|
|
1153
|
+
"deploy:quick:metadata",
|
|
1154
|
+
"quick:deploy:metadata",
|
|
1155
|
+
"quick:metadata:deploy"
|
|
1156
|
+
],
|
|
1157
|
+
"permutations": [
|
|
1158
|
+
"project:deploy:quick",
|
|
1159
|
+
"deploy:project:quick",
|
|
1160
|
+
"deploy:quick:project",
|
|
1161
|
+
"project:quick:deploy",
|
|
1162
|
+
"quick:project:deploy",
|
|
1163
|
+
"quick:deploy:project"
|
|
1164
|
+
]
|
|
1165
|
+
},
|
|
1166
|
+
"project:deploy:report": {
|
|
1167
|
+
"aliases": [
|
|
1168
|
+
"deploy:metadata:report"
|
|
1169
|
+
],
|
|
1170
|
+
"args": {},
|
|
1171
|
+
"deprecateAliases": true,
|
|
1172
|
+
"description": "Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation. If you specify the --wait flag, the command polls for the status every second until the timeout of --wait minutes. If you don't specify the --wait flag, the command simply checks and displays the status of the deploy; the command doesn't poll for the status.\n\nYou typically don't specify the --target-org flag because the cached job already references the org to which you deployed. But if you run this command on a computer different than the one from which you deployed, then you must specify the --target-org and it must point to the same org.\n\nThis command doesn't update source tracking information.",
|
|
1173
|
+
"examples": [
|
|
1174
|
+
"Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
|
|
1175
|
+
"Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent",
|
|
1176
|
+
"Poll for the status using a job ID and target org:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2 --target-org me@my.org --wait 30"
|
|
1177
|
+
],
|
|
1178
|
+
"flags": {
|
|
1179
|
+
"json": {
|
|
1180
|
+
"description": "Format output as json.",
|
|
1181
|
+
"helpGroup": "GLOBAL",
|
|
1182
|
+
"name": "json",
|
|
1247
1183
|
"allowNo": false,
|
|
1248
1184
|
"type": "boolean"
|
|
1249
1185
|
},
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
"
|
|
1253
|
-
"
|
|
1254
|
-
"manifest",
|
|
1255
|
-
"metadata",
|
|
1256
|
-
"metadata-dir"
|
|
1257
|
-
],
|
|
1258
|
-
"helpGroup": "Source Format",
|
|
1259
|
-
"name": "source-dir",
|
|
1260
|
-
"summary": "Path to the local source files to deploy.",
|
|
1186
|
+
"flags-dir": {
|
|
1187
|
+
"helpGroup": "GLOBAL",
|
|
1188
|
+
"name": "flags-dir",
|
|
1189
|
+
"summary": "Import flag values from a directory.",
|
|
1261
1190
|
"hasDynamicHelp": false,
|
|
1262
|
-
"multiple":
|
|
1191
|
+
"multiple": false,
|
|
1263
1192
|
"type": "option"
|
|
1264
1193
|
},
|
|
1265
1194
|
"target-org": {
|
|
1266
1195
|
"char": "o",
|
|
1267
1196
|
"name": "target-org",
|
|
1268
1197
|
"noCacheDefault": true,
|
|
1269
|
-
"
|
|
1270
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1198
|
+
"summary": "Username or alias of the target org.",
|
|
1271
1199
|
"hasDynamicHelp": true,
|
|
1272
1200
|
"multiple": false,
|
|
1273
1201
|
"type": "option"
|
|
1274
1202
|
},
|
|
1275
|
-
"
|
|
1276
|
-
"char": "
|
|
1277
|
-
"description": "
|
|
1278
|
-
"
|
|
1279
|
-
"
|
|
1280
|
-
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
1281
|
-
"hasDynamicHelp": false,
|
|
1282
|
-
"multiple": true,
|
|
1283
|
-
"type": "option"
|
|
1284
|
-
},
|
|
1285
|
-
"test-level": {
|
|
1286
|
-
"char": "l",
|
|
1287
|
-
"description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\n If you don’t specify a test level, the default behavior depends on the contents of your deployment package and target org. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".",
|
|
1288
|
-
"helpGroup": "Test",
|
|
1289
|
-
"name": "test-level",
|
|
1290
|
-
"summary": "Deployment Apex testing level.",
|
|
1203
|
+
"job-id": {
|
|
1204
|
+
"char": "i",
|
|
1205
|
+
"description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- <%= config.bin %> project deploy start\n- <%= config.bin %> project deploy validate\n- <%= config.bin %> project deploy quick\n- <%= config.bin %> project deploy cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
|
|
1206
|
+
"name": "job-id",
|
|
1207
|
+
"summary": "Job ID of the deploy operation you want to check the status of.",
|
|
1291
1208
|
"hasDynamicHelp": false,
|
|
1292
1209
|
"multiple": false,
|
|
1293
|
-
"options": [
|
|
1294
|
-
"NoTestRun",
|
|
1295
|
-
"RunSpecifiedTests",
|
|
1296
|
-
"RunLocalTests",
|
|
1297
|
-
"RunAllTestsInOrg"
|
|
1298
|
-
],
|
|
1299
|
-
"type": "option"
|
|
1300
|
-
},
|
|
1301
|
-
"verbose": {
|
|
1302
|
-
"exclusive": [
|
|
1303
|
-
"concise"
|
|
1304
|
-
],
|
|
1305
|
-
"name": "verbose",
|
|
1306
|
-
"summary": "Show verbose output of the deploy result.",
|
|
1307
|
-
"allowNo": false,
|
|
1308
|
-
"type": "boolean"
|
|
1309
|
-
},
|
|
1310
|
-
"wait": {
|
|
1311
|
-
"char": "w",
|
|
1312
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run \"<%= config.bin %> project deploy resume\". To check the status of the deployment, run \"<%= config.bin %> project deploy report\".",
|
|
1313
|
-
"exclusive": [
|
|
1314
|
-
"async"
|
|
1315
|
-
],
|
|
1316
|
-
"name": "wait",
|
|
1317
|
-
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
1318
|
-
"hasDynamicHelp": true,
|
|
1319
|
-
"helpValue": "<minutes>",
|
|
1320
|
-
"multiple": false,
|
|
1321
1210
|
"type": "option"
|
|
1322
1211
|
},
|
|
1323
|
-
"
|
|
1324
|
-
"
|
|
1325
|
-
"
|
|
1326
|
-
"
|
|
1327
|
-
|
|
1328
|
-
"type": "some",
|
|
1329
|
-
"flags": [
|
|
1330
|
-
"pre-destructive-changes",
|
|
1331
|
-
"manifest",
|
|
1332
|
-
"metadata-dir",
|
|
1333
|
-
"post-destructive-changes"
|
|
1334
|
-
]
|
|
1335
|
-
}
|
|
1336
|
-
],
|
|
1337
|
-
"summary": "Specify that deleted components in the destructive changes manifest file are immediately eligible for deletion rather than being stored in the Recycle Bin.",
|
|
1212
|
+
"use-most-recent": {
|
|
1213
|
+
"char": "r",
|
|
1214
|
+
"description": "For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.",
|
|
1215
|
+
"name": "use-most-recent",
|
|
1216
|
+
"summary": "Use the job ID of the most recent deploy operation.",
|
|
1338
1217
|
"allowNo": false,
|
|
1339
1218
|
"type": "boolean"
|
|
1340
1219
|
},
|
|
1341
|
-
"pre-destructive-changes": {
|
|
1342
|
-
"dependsOn": [
|
|
1343
|
-
"manifest"
|
|
1344
|
-
],
|
|
1345
|
-
"helpGroup": "Delete",
|
|
1346
|
-
"name": "pre-destructive-changes",
|
|
1347
|
-
"summary": "File path for a manifest (destructiveChangesPre.xml) of components to delete before the deploy.",
|
|
1348
|
-
"hasDynamicHelp": false,
|
|
1349
|
-
"multiple": false,
|
|
1350
|
-
"type": "option"
|
|
1351
|
-
},
|
|
1352
|
-
"post-destructive-changes": {
|
|
1353
|
-
"dependsOn": [
|
|
1354
|
-
"manifest"
|
|
1355
|
-
],
|
|
1356
|
-
"helpGroup": "Delete",
|
|
1357
|
-
"name": "post-destructive-changes",
|
|
1358
|
-
"summary": "File path for a manifest (destructiveChangesPost.xml) of components to delete after the deploy.",
|
|
1359
|
-
"hasDynamicHelp": false,
|
|
1360
|
-
"multiple": false,
|
|
1361
|
-
"type": "option"
|
|
1362
|
-
},
|
|
1363
1220
|
"coverage-formatters": {
|
|
1364
1221
|
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
1365
1222
|
"helpGroup": "Test",
|
|
@@ -1405,110 +1262,62 @@
|
|
|
1405
1262
|
"hasDynamicHelp": false,
|
|
1406
1263
|
"multiple": false,
|
|
1407
1264
|
"type": "option"
|
|
1265
|
+
},
|
|
1266
|
+
"wait": {
|
|
1267
|
+
"char": "w",
|
|
1268
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run \"<%= config.bin %> project deploy resume\". To check the status of the deployment, run \"<%= config.bin %> project deploy report\".",
|
|
1269
|
+
"name": "wait",
|
|
1270
|
+
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
1271
|
+
"hasDynamicHelp": true,
|
|
1272
|
+
"helpValue": "<minutes>",
|
|
1273
|
+
"multiple": false,
|
|
1274
|
+
"type": "option"
|
|
1408
1275
|
}
|
|
1409
1276
|
},
|
|
1410
1277
|
"hasDynamicHelp": true,
|
|
1411
1278
|
"hiddenAliases": [],
|
|
1412
|
-
"id": "project:deploy:
|
|
1279
|
+
"id": "project:deploy:report",
|
|
1413
1280
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
1414
1281
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
1415
1282
|
"pluginType": "core",
|
|
1416
1283
|
"strict": true,
|
|
1417
|
-
"summary": "
|
|
1284
|
+
"summary": "Check or poll for the status of a deploy operation.",
|
|
1418
1285
|
"enableJsonFlag": true,
|
|
1419
|
-
"configurationVariablesSection": {
|
|
1420
|
-
"header": "CONFIGURATION VARIABLES",
|
|
1421
|
-
"body": [
|
|
1422
|
-
{
|
|
1423
|
-
"name": "target-org",
|
|
1424
|
-
"description": "Username or alias of the org that all commands run against by default. (sf only)"
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
"name": "org-api-version",
|
|
1428
|
-
"description": "API version of your project. Default: API version of your Dev Hub org."
|
|
1429
|
-
}
|
|
1430
|
-
]
|
|
1431
|
-
},
|
|
1432
|
-
"envVariablesSection": {
|
|
1433
|
-
"header": "ENVIRONMENT VARIABLES",
|
|
1434
|
-
"body": [
|
|
1435
|
-
{
|
|
1436
|
-
"name": "SF_TARGET_ORG",
|
|
1437
|
-
"description": "Username or alias of your default org. Overrides the target-org configuration variable."
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
"name": "SF_USE_PROGRESS_BAR",
|
|
1441
|
-
"description": "Set to false to disable the progress bar when running the metadata deploy command."
|
|
1442
|
-
}
|
|
1443
|
-
]
|
|
1444
|
-
},
|
|
1445
|
-
"errorCodes": {
|
|
1446
|
-
"header": "ERROR CODES",
|
|
1447
|
-
"body": [
|
|
1448
|
-
{
|
|
1449
|
-
"name": "Succeeded (0)",
|
|
1450
|
-
"description": "The deploy succeeded."
|
|
1451
|
-
},
|
|
1452
|
-
{
|
|
1453
|
-
"name": "Canceled (1)",
|
|
1454
|
-
"description": "The deploy was canceled."
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
"name": "Failed (1)",
|
|
1458
|
-
"description": "The deploy failed."
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
"name": "SucceededPartial (68)",
|
|
1462
|
-
"description": "The deploy partially succeeded."
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
"name": "InProgress (69)",
|
|
1466
|
-
"description": "The deploy is in progress."
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
"name": "Pending (69)",
|
|
1470
|
-
"description": "The deploy is pending."
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
"name": "Canceling (69)",
|
|
1474
|
-
"description": "The deploy is being canceled."
|
|
1475
|
-
}
|
|
1476
|
-
]
|
|
1477
|
-
},
|
|
1478
1286
|
"isESM": true,
|
|
1479
1287
|
"relativePath": [
|
|
1480
1288
|
"lib",
|
|
1481
1289
|
"commands",
|
|
1482
1290
|
"project",
|
|
1483
1291
|
"deploy",
|
|
1484
|
-
"
|
|
1292
|
+
"report.js"
|
|
1485
1293
|
],
|
|
1486
1294
|
"aliasPermutations": [
|
|
1487
|
-
"deploy:metadata",
|
|
1488
|
-
"metadata:deploy"
|
|
1295
|
+
"deploy:metadata:report",
|
|
1296
|
+
"metadata:deploy:report",
|
|
1297
|
+
"metadata:report:deploy",
|
|
1298
|
+
"deploy:report:metadata",
|
|
1299
|
+
"report:deploy:metadata",
|
|
1300
|
+
"report:metadata:deploy"
|
|
1489
1301
|
],
|
|
1490
1302
|
"permutations": [
|
|
1491
|
-
"project:deploy:
|
|
1492
|
-
"deploy:project:
|
|
1493
|
-
"deploy:
|
|
1494
|
-
"project:
|
|
1495
|
-
"
|
|
1496
|
-
"
|
|
1303
|
+
"project:deploy:report",
|
|
1304
|
+
"deploy:project:report",
|
|
1305
|
+
"deploy:report:project",
|
|
1306
|
+
"project:report:deploy",
|
|
1307
|
+
"report:project:deploy",
|
|
1308
|
+
"report:deploy:project"
|
|
1497
1309
|
]
|
|
1498
1310
|
},
|
|
1499
|
-
"project:deploy:
|
|
1311
|
+
"project:deploy:resume": {
|
|
1500
1312
|
"aliases": [
|
|
1501
|
-
"deploy:metadata:
|
|
1313
|
+
"deploy:metadata:resume"
|
|
1502
1314
|
],
|
|
1503
1315
|
"args": {},
|
|
1504
1316
|
"deprecateAliases": true,
|
|
1505
|
-
"description": "Use this command to
|
|
1317
|
+
"description": "Use this command to resume watching a deploy operation if the original command times out or you specified the --async flag. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations. This command doesn't resume the original operation itself, because the operation always continues after you've started it, regardless of whether you're watching it or not. When the deploy completes, source tracking information is updated as needed.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
|
|
1506
1318
|
"examples": [
|
|
1507
|
-
"
|
|
1508
|
-
"
|
|
1509
|
-
"Validate the deployment of all source files in two directories: \"force-app\" and \"force-app-utils\":\n<%= config.bin %> <%= command.id %> --source-dir force-app --source-dir force-app-utils",
|
|
1510
|
-
"Asynchronously validate the deployment and run all tests in the org with alias \"my-prod-org\"; command immediately returns the job ID:\n<%= config.bin %> <%= command.id %> --source-dir force-app --async --test-level RunAllTestsInOrg --target-org my-prod-org",
|
|
1511
|
-
"Validate the deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"
|
|
1319
|
+
"Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
|
|
1320
|
+
"Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
|
|
1512
1321
|
],
|
|
1513
1322
|
"flags": {
|
|
1514
1323
|
"json": {
|
|
@@ -1526,126 +1335,44 @@
|
|
|
1526
1335
|
"multiple": false,
|
|
1527
1336
|
"type": "option"
|
|
1528
1337
|
},
|
|
1529
|
-
"api-version": {
|
|
1530
|
-
"char": "a",
|
|
1531
|
-
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
1532
|
-
"name": "api-version",
|
|
1533
|
-
"summary": "Target API version for the validation.",
|
|
1534
|
-
"hasDynamicHelp": false,
|
|
1535
|
-
"multiple": false,
|
|
1536
|
-
"type": "option"
|
|
1537
|
-
},
|
|
1538
|
-
"async": {
|
|
1539
|
-
"description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume watching the validation, run \"<%= config.bin %> project deploy resume\". To check the status of the validation, run \"<%= config.bin %> project deploy report\".",
|
|
1540
|
-
"name": "async",
|
|
1541
|
-
"summary": "Run the command asynchronously.",
|
|
1542
|
-
"allowNo": false,
|
|
1543
|
-
"type": "boolean"
|
|
1544
|
-
},
|
|
1545
1338
|
"concise": {
|
|
1546
1339
|
"exclusive": [
|
|
1547
1340
|
"verbose"
|
|
1548
1341
|
],
|
|
1549
1342
|
"name": "concise",
|
|
1550
|
-
"summary": "Show concise output of the
|
|
1343
|
+
"summary": "Show concise output of the deploy operation result.",
|
|
1551
1344
|
"allowNo": false,
|
|
1552
1345
|
"type": "boolean"
|
|
1553
1346
|
},
|
|
1554
|
-
"
|
|
1555
|
-
"char": "
|
|
1556
|
-
"description": "
|
|
1557
|
-
"
|
|
1558
|
-
"
|
|
1559
|
-
"summary": "Full file path for manifest (package.xml) of components to validate for deployment.",
|
|
1560
|
-
"hasDynamicHelp": false,
|
|
1561
|
-
"multiple": false,
|
|
1562
|
-
"type": "option"
|
|
1563
|
-
},
|
|
1564
|
-
"metadata": {
|
|
1565
|
-
"char": "m",
|
|
1566
|
-
"helpGroup": "Source Format",
|
|
1567
|
-
"name": "metadata",
|
|
1568
|
-
"summary": "Metadata component names to validate for deployment.",
|
|
1569
|
-
"hasDynamicHelp": false,
|
|
1570
|
-
"multiple": true,
|
|
1571
|
-
"type": "option"
|
|
1572
|
-
},
|
|
1573
|
-
"source-dir": {
|
|
1574
|
-
"char": "d",
|
|
1575
|
-
"description": "The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.",
|
|
1576
|
-
"helpGroup": "Source Format",
|
|
1577
|
-
"name": "source-dir",
|
|
1578
|
-
"summary": "Path to the local source files to validate for deployment.",
|
|
1579
|
-
"hasDynamicHelp": false,
|
|
1580
|
-
"multiple": true,
|
|
1581
|
-
"type": "option"
|
|
1582
|
-
},
|
|
1583
|
-
"metadata-dir": {
|
|
1584
|
-
"helpGroup": "Metadata API Format",
|
|
1585
|
-
"name": "metadata-dir",
|
|
1586
|
-
"summary": "Root of directory or zip file of metadata formatted files to deploy.",
|
|
1347
|
+
"job-id": {
|
|
1348
|
+
"char": "i",
|
|
1349
|
+
"description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- <%= config.bin %> project deploy start\n- <%= config.bin %> project deploy validate\n- <%= config.bin %> project deploy quick\n- <%= config.bin %> project deploy cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
|
|
1350
|
+
"name": "job-id",
|
|
1351
|
+
"summary": "Job ID of the deploy operation you want to resume.",
|
|
1587
1352
|
"hasDynamicHelp": false,
|
|
1588
1353
|
"multiple": false,
|
|
1589
1354
|
"type": "option"
|
|
1590
1355
|
},
|
|
1591
|
-
"
|
|
1592
|
-
"
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
"
|
|
1596
|
-
"name": "single-package",
|
|
1597
|
-
"summary": "Indicates that the metadata zip file points to a directory structure for a single package.",
|
|
1356
|
+
"use-most-recent": {
|
|
1357
|
+
"char": "r",
|
|
1358
|
+
"description": "For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.",
|
|
1359
|
+
"name": "use-most-recent",
|
|
1360
|
+
"summary": "Use the job ID of the most recent deploy operation.",
|
|
1598
1361
|
"allowNo": false,
|
|
1599
1362
|
"type": "boolean"
|
|
1600
1363
|
},
|
|
1601
|
-
"target-org": {
|
|
1602
|
-
"char": "o",
|
|
1603
|
-
"name": "target-org",
|
|
1604
|
-
"noCacheDefault": true,
|
|
1605
|
-
"required": true,
|
|
1606
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1607
|
-
"hasDynamicHelp": true,
|
|
1608
|
-
"multiple": false,
|
|
1609
|
-
"type": "option"
|
|
1610
|
-
},
|
|
1611
|
-
"tests": {
|
|
1612
|
-
"char": "t",
|
|
1613
|
-
"description": "If a test name contains a space, enclose it in double quotes.\nFor multiple test names, use one of the following formats:\n\n- Repeat the flag for multiple test names: --tests Test1 --tests Test2 --tests \"Test With Space\"\n- Separate the test names with spaces: --tests Test1 Test2 \"Test With Space\"",
|
|
1614
|
-
"helpGroup": "Test",
|
|
1615
|
-
"name": "tests",
|
|
1616
|
-
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
1617
|
-
"hasDynamicHelp": false,
|
|
1618
|
-
"multiple": true,
|
|
1619
|
-
"type": "option"
|
|
1620
|
-
},
|
|
1621
|
-
"test-level": {
|
|
1622
|
-
"char": "l",
|
|
1623
|
-
"description": "Valid values are:\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.",
|
|
1624
|
-
"helpGroup": "Test",
|
|
1625
|
-
"name": "test-level",
|
|
1626
|
-
"summary": "Deployment Apex testing level.",
|
|
1627
|
-
"default": "RunLocalTests",
|
|
1628
|
-
"hasDynamicHelp": false,
|
|
1629
|
-
"multiple": false,
|
|
1630
|
-
"options": [
|
|
1631
|
-
"RunAllTestsInOrg",
|
|
1632
|
-
"RunLocalTests",
|
|
1633
|
-
"RunSpecifiedTests"
|
|
1634
|
-
],
|
|
1635
|
-
"type": "option"
|
|
1636
|
-
},
|
|
1637
1364
|
"verbose": {
|
|
1638
1365
|
"exclusive": [
|
|
1639
1366
|
"concise"
|
|
1640
1367
|
],
|
|
1641
1368
|
"name": "verbose",
|
|
1642
|
-
"summary": "Show verbose output of the
|
|
1369
|
+
"summary": "Show verbose output of the deploy operation result.",
|
|
1643
1370
|
"allowNo": false,
|
|
1644
1371
|
"type": "boolean"
|
|
1645
1372
|
},
|
|
1646
1373
|
"wait": {
|
|
1647
1374
|
"char": "w",
|
|
1648
|
-
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you
|
|
1375
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy operation, run this command again. To check the status of the deploy operation, run \"<%= config.bin %> project deploy report\".",
|
|
1649
1376
|
"name": "wait",
|
|
1650
1377
|
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
1651
1378
|
"hasDynamicHelp": true,
|
|
@@ -1653,14 +1380,6 @@
|
|
|
1653
1380
|
"multiple": false,
|
|
1654
1381
|
"type": "option"
|
|
1655
1382
|
},
|
|
1656
|
-
"ignore-warnings": {
|
|
1657
|
-
"char": "g",
|
|
1658
|
-
"description": "If you specify this flag, and a warning occurs, the success status of the deployment is set to true. If you don't specify this flag, and a warning occurs, then the success status is set to false, and the warning is treated like an error.\n\nThis flag is useful in a CI environment and your deployment includes destructive changes; if you try to delete a component that doesn't exist in the org, you get a warning. In this case, to ensure that the command returns a success value of true, specify this flag.",
|
|
1659
|
-
"name": "ignore-warnings",
|
|
1660
|
-
"summary": "Ignore warnings and allow a deployment to complete successfully.",
|
|
1661
|
-
"allowNo": false,
|
|
1662
|
-
"type": "boolean"
|
|
1663
|
-
},
|
|
1664
1383
|
"coverage-formatters": {
|
|
1665
1384
|
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
1666
1385
|
"helpGroup": "Test",
|
|
@@ -1706,78 +1425,20 @@
|
|
|
1706
1425
|
"hasDynamicHelp": false,
|
|
1707
1426
|
"multiple": false,
|
|
1708
1427
|
"type": "option"
|
|
1709
|
-
},
|
|
1710
|
-
"purge-on-delete": {
|
|
1711
|
-
"dependsOn": [
|
|
1712
|
-
"manifest"
|
|
1713
|
-
],
|
|
1714
|
-
"helpGroup": "Delete",
|
|
1715
|
-
"name": "purge-on-delete",
|
|
1716
|
-
"relationships": [
|
|
1717
|
-
{
|
|
1718
|
-
"type": "some",
|
|
1719
|
-
"flags": [
|
|
1720
|
-
"pre-destructive-changes",
|
|
1721
|
-
"post-destructive-changes"
|
|
1722
|
-
]
|
|
1723
|
-
}
|
|
1724
|
-
],
|
|
1725
|
-
"summary": "Specify that deleted components in the destructive changes manifest file are immediately eligible for deletion rather than being stored in the Recycle Bin.",
|
|
1726
|
-
"allowNo": false,
|
|
1727
|
-
"type": "boolean"
|
|
1728
|
-
},
|
|
1729
|
-
"pre-destructive-changes": {
|
|
1730
|
-
"dependsOn": [
|
|
1731
|
-
"manifest"
|
|
1732
|
-
],
|
|
1733
|
-
"helpGroup": "Delete",
|
|
1734
|
-
"name": "pre-destructive-changes",
|
|
1735
|
-
"summary": "File path for a manifest (destructiveChangesPre.xml) of components to delete before the deploy",
|
|
1736
|
-
"hasDynamicHelp": false,
|
|
1737
|
-
"multiple": false,
|
|
1738
|
-
"type": "option"
|
|
1739
|
-
},
|
|
1740
|
-
"post-destructive-changes": {
|
|
1741
|
-
"dependsOn": [
|
|
1742
|
-
"manifest"
|
|
1743
|
-
],
|
|
1744
|
-
"helpGroup": "Delete",
|
|
1745
|
-
"name": "post-destructive-changes",
|
|
1746
|
-
"summary": "File path for a manifest (destructiveChangesPost.xml) of components to delete after the deploy.",
|
|
1747
|
-
"hasDynamicHelp": false,
|
|
1748
|
-
"multiple": false,
|
|
1749
|
-
"type": "option"
|
|
1750
1428
|
}
|
|
1751
1429
|
},
|
|
1752
1430
|
"hasDynamicHelp": true,
|
|
1753
1431
|
"hiddenAliases": [],
|
|
1754
|
-
"id": "project:deploy:
|
|
1432
|
+
"id": "project:deploy:resume",
|
|
1755
1433
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
1756
1434
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
1757
1435
|
"pluginType": "core",
|
|
1758
1436
|
"strict": true,
|
|
1759
|
-
"summary": "
|
|
1437
|
+
"summary": "Resume watching a deploy operation and update source tracking when the deploy completes.",
|
|
1760
1438
|
"enableJsonFlag": true,
|
|
1761
|
-
"
|
|
1762
|
-
"header": "
|
|
1439
|
+
"envVariablesSection": {
|
|
1440
|
+
"header": "ENVIRONMENT VARIABLES",
|
|
1763
1441
|
"body": [
|
|
1764
|
-
{
|
|
1765
|
-
"name": "target-org",
|
|
1766
|
-
"description": "Username or alias of the org that all commands run against by default. (sf only)"
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
"name": "org-api-version",
|
|
1770
|
-
"description": "API version of your project. Default: API version of your Dev Hub org."
|
|
1771
|
-
}
|
|
1772
|
-
]
|
|
1773
|
-
},
|
|
1774
|
-
"envVariablesSection": {
|
|
1775
|
-
"header": "ENVIRONMENT VARIABLES",
|
|
1776
|
-
"body": [
|
|
1777
|
-
{
|
|
1778
|
-
"name": "SF_TARGET_ORG",
|
|
1779
|
-
"description": "Username or alias of your default org. Overrides the target-org configuration variable."
|
|
1780
|
-
},
|
|
1781
1442
|
{
|
|
1782
1443
|
"name": "SF_USE_PROGRESS_BAR",
|
|
1783
1444
|
"description": "Set to false to disable the progress bar when running the metadata deploy command."
|
|
@@ -1823,39 +1484,47 @@
|
|
|
1823
1484
|
"commands",
|
|
1824
1485
|
"project",
|
|
1825
1486
|
"deploy",
|
|
1826
|
-
"
|
|
1487
|
+
"resume.js"
|
|
1827
1488
|
],
|
|
1828
1489
|
"aliasPermutations": [
|
|
1829
|
-
"deploy:metadata:
|
|
1830
|
-
"metadata:deploy:
|
|
1831
|
-
"metadata:
|
|
1832
|
-
"deploy:
|
|
1833
|
-
"
|
|
1834
|
-
"
|
|
1490
|
+
"deploy:metadata:resume",
|
|
1491
|
+
"metadata:deploy:resume",
|
|
1492
|
+
"metadata:resume:deploy",
|
|
1493
|
+
"deploy:resume:metadata",
|
|
1494
|
+
"resume:deploy:metadata",
|
|
1495
|
+
"resume:metadata:deploy"
|
|
1835
1496
|
],
|
|
1836
1497
|
"permutations": [
|
|
1837
|
-
"project:deploy:
|
|
1838
|
-
"deploy:project:
|
|
1839
|
-
"deploy:
|
|
1840
|
-
"project:
|
|
1841
|
-
"
|
|
1842
|
-
"
|
|
1498
|
+
"project:deploy:resume",
|
|
1499
|
+
"deploy:project:resume",
|
|
1500
|
+
"deploy:resume:project",
|
|
1501
|
+
"project:resume:deploy",
|
|
1502
|
+
"resume:project:deploy",
|
|
1503
|
+
"resume:deploy:project"
|
|
1843
1504
|
]
|
|
1844
1505
|
},
|
|
1845
|
-
"project:
|
|
1506
|
+
"project:deploy:start": {
|
|
1846
1507
|
"aliases": [
|
|
1847
|
-
"
|
|
1508
|
+
"deploy:metadata"
|
|
1848
1509
|
],
|
|
1849
1510
|
"args": {},
|
|
1850
1511
|
"deprecateAliases": true,
|
|
1851
|
-
"description": "
|
|
1512
|
+
"description": "You must run this command from within a project.\n\nMetadata components are deployed in source format by default. Deploy them in metadata format by specifying the --metadata-dir flag, which specifies the root directory or ZIP file that contains the metadata formatted files you want to deploy.\n\nIf your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production orgs, never allow source tracking. Source tracking is enabled by default on scratch and sandbox orgs; you can disable source tracking when you create the orgs by specifying the --no-track-source flag on the \"<%= config.bin %> org create scratch|sandbox\" commands.\n\nTo deploy multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.",
|
|
1852
1513
|
"examples": [
|
|
1853
|
-
"
|
|
1854
|
-
"
|
|
1855
|
-
"
|
|
1856
|
-
"
|
|
1857
|
-
"
|
|
1858
|
-
"
|
|
1514
|
+
"Deploy local changes not in the org; uses your default org:\n<%= config.bin %> <%= command.id %>",
|
|
1515
|
+
"Deploy all source files in the \"force-app\" directory to an org with alias \"my-scratch\"; show only concise output, in other words don't print a list of all the source that was deployed:\n<%= config.bin %> <%= command.id %> --source-dir force-app --target-org my-scratch --concise",
|
|
1516
|
+
"Deploy all the Apex classes and custom objects that are in the \"force-app\" directory. The list views, layouts, etc, that are associated with the custom objects are also deployed. Both examples are equivalent:\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes force-app/main/default/objects\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/classes --source-dir force-app/main/default/objects",
|
|
1517
|
+
"Deploy all Apex classes that are in all package directories defined in the \"sfdx-project.json\" file:\n<%= config.bin %> <%= command.id %> --metadata ApexClass",
|
|
1518
|
+
"Deploy a specific Apex class; ignore any conflicts between the local project and org (be careful with this flag, because it will overwrite the Apex class in the org if there are conflicts!):\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass --ignore-conflicts",
|
|
1519
|
+
"Deploy specific Apex classes that match a pattern; in this example, deploy Apex classes whose names contain the string \"MyApex\". Also ignore any deployment warnings (again, be careful with this flag! You typically want to see the warnings):\n<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*' --ignore-warnings",
|
|
1520
|
+
"Deploy a custom object called ExcitingObject that's in the SBQQ namespace:\nsf <%= command.id %> --metadata CustomObject:SBQQ__ExcitingObject",
|
|
1521
|
+
"Deploy all custom objects in the SBQQ namespace by using a wildcard and quotes:\nsf <%= command.id %> --metadata 'CustomObject:SBQQ__*'",
|
|
1522
|
+
"Deploy all custom objects and Apex classes found in all defined package directories (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass",
|
|
1523
|
+
"Deploy all Apex classes and a profile that has a space in its name:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --metadata \"Profile:My Profile\"",
|
|
1524
|
+
"Deploy all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml",
|
|
1525
|
+
"Run the tests that aren’t in any managed packages as part of a deployment:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests",
|
|
1526
|
+
"Deploy all metadata formatted files in the \"MDAPI\" directory:\n<%= config.bin %> <%= command.id %> --metadata-dir MDAPI",
|
|
1527
|
+
"Deploy all metadata formatted files in the \"MDAPI\" directory; items listed in the MDAPI/destructiveChangesPre.xml and MDAPI/destructiveChangesPost.xml manifests are immediately eligible for deletion rather than stored in the Recycle Bin:\n<%= config.bin %> <%= command.id %> --metadata-dir MDAPI --purge-on-delete"
|
|
1859
1528
|
],
|
|
1860
1529
|
"flags": {
|
|
1861
1530
|
"json": {
|
|
@@ -1874,212 +1543,377 @@
|
|
|
1874
1543
|
"type": "option"
|
|
1875
1544
|
},
|
|
1876
1545
|
"api-version": {
|
|
1877
|
-
"
|
|
1878
|
-
|
|
1879
|
-
],
|
|
1880
|
-
"deprecateAliases": true,
|
|
1881
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1546
|
+
"char": "a",
|
|
1547
|
+
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
1882
1548
|
"name": "api-version",
|
|
1549
|
+
"summary": "Target API version for the deploy.",
|
|
1883
1550
|
"hasDynamicHelp": false,
|
|
1884
1551
|
"multiple": false,
|
|
1885
1552
|
"type": "option"
|
|
1886
1553
|
},
|
|
1887
|
-
"
|
|
1888
|
-
"
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
"name": "
|
|
1554
|
+
"async": {
|
|
1555
|
+
"description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"<%= config.bin %> project deploy resume\". To check the status of the deployment, run \"<%= config.bin %> project deploy report\".",
|
|
1556
|
+
"exclusive": [
|
|
1557
|
+
"wait"
|
|
1558
|
+
],
|
|
1559
|
+
"name": "async",
|
|
1560
|
+
"summary": "Run the command asynchronously.",
|
|
1561
|
+
"allowNo": false,
|
|
1562
|
+
"type": "boolean"
|
|
1563
|
+
},
|
|
1564
|
+
"concise": {
|
|
1565
|
+
"exclusive": [
|
|
1566
|
+
"verbose"
|
|
1567
|
+
],
|
|
1568
|
+
"name": "concise",
|
|
1569
|
+
"summary": "Show concise output of the deploy result.",
|
|
1570
|
+
"allowNo": false,
|
|
1571
|
+
"type": "boolean"
|
|
1572
|
+
},
|
|
1573
|
+
"dry-run": {
|
|
1574
|
+
"name": "dry-run",
|
|
1575
|
+
"summary": "Validate deploy and run Apex tests but don’t save to the org.",
|
|
1576
|
+
"allowNo": false,
|
|
1577
|
+
"type": "boolean"
|
|
1578
|
+
},
|
|
1579
|
+
"ignore-conflicts": {
|
|
1580
|
+
"char": "c",
|
|
1581
|
+
"description": "This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.",
|
|
1582
|
+
"name": "ignore-conflicts",
|
|
1583
|
+
"summary": "Ignore conflicts and deploy local files, even if they overwrite changes in the org.",
|
|
1584
|
+
"allowNo": false,
|
|
1585
|
+
"type": "boolean"
|
|
1586
|
+
},
|
|
1587
|
+
"ignore-errors": {
|
|
1588
|
+
"char": "r",
|
|
1589
|
+
"description": "Never use this flag when deploying to a production org. If you specify it, components without errors are deployed and components with errors are skipped, and could result in an inconsistent production org.",
|
|
1590
|
+
"name": "ignore-errors",
|
|
1591
|
+
"summary": "Ignore any errors and don’t roll back deployment.",
|
|
1592
|
+
"allowNo": false,
|
|
1593
|
+
"type": "boolean"
|
|
1594
|
+
},
|
|
1595
|
+
"ignore-warnings": {
|
|
1596
|
+
"char": "g",
|
|
1597
|
+
"description": "If you specify this flag, and a warning occurs, the success status of the deployment is set to true. If you don't specify this flag, and a warning occurs, then the success status is set to false, and the warning is treated like an error.\n\nThis flag is useful in a CI environment and your deployment includes destructive changes; if you try to delete a component that doesn't exist in the org, you get a warning. In this case, to ensure that the command returns a success value of true, specify this flag.",
|
|
1598
|
+
"name": "ignore-warnings",
|
|
1599
|
+
"summary": "Ignore warnings and allow a deployment to complete successfully.",
|
|
1600
|
+
"allowNo": false,
|
|
1601
|
+
"type": "boolean"
|
|
1602
|
+
},
|
|
1603
|
+
"manifest": {
|
|
1604
|
+
"char": "x",
|
|
1605
|
+
"description": "All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
1606
|
+
"exclusive": [
|
|
1607
|
+
"source-dir",
|
|
1608
|
+
"metadata",
|
|
1609
|
+
"metadata-dir"
|
|
1610
|
+
],
|
|
1611
|
+
"helpGroup": "Source Format",
|
|
1612
|
+
"name": "manifest",
|
|
1613
|
+
"summary": "Full file path for manifest (package.xml) of components to deploy.",
|
|
1893
1614
|
"hasDynamicHelp": false,
|
|
1894
1615
|
"multiple": false,
|
|
1895
1616
|
"type": "option"
|
|
1896
1617
|
},
|
|
1897
1618
|
"metadata": {
|
|
1898
1619
|
"char": "m",
|
|
1620
|
+
"exclusive": [
|
|
1621
|
+
"manifest",
|
|
1622
|
+
"source-dir",
|
|
1623
|
+
"metadata-dir"
|
|
1624
|
+
],
|
|
1625
|
+
"helpGroup": "Source Format",
|
|
1899
1626
|
"name": "metadata",
|
|
1900
|
-
"summary": "
|
|
1901
|
-
"delimiter": ",",
|
|
1627
|
+
"summary": "Metadata component names to deploy. Wildcards (`*` ) supported as long as you use quotes, such as `ApexClass:MyClass*`.",
|
|
1902
1628
|
"hasDynamicHelp": false,
|
|
1903
1629
|
"multiple": true,
|
|
1904
1630
|
"type": "option"
|
|
1905
1631
|
},
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1632
|
+
"metadata-dir": {
|
|
1633
|
+
"exclusive": [
|
|
1634
|
+
"manifest",
|
|
1635
|
+
"source-dir",
|
|
1636
|
+
"metadata"
|
|
1909
1637
|
],
|
|
1910
|
-
"
|
|
1911
|
-
"
|
|
1912
|
-
"
|
|
1913
|
-
"summary": "Paths to the local source files to include in the manifest.",
|
|
1914
|
-
"delimiter": ",",
|
|
1638
|
+
"helpGroup": "Metadata API Format",
|
|
1639
|
+
"name": "metadata-dir",
|
|
1640
|
+
"summary": "Root of directory or zip file of metadata formatted files to deploy.",
|
|
1915
1641
|
"hasDynamicHelp": false,
|
|
1916
|
-
"multiple":
|
|
1642
|
+
"multiple": false,
|
|
1917
1643
|
"type": "option"
|
|
1918
1644
|
},
|
|
1919
|
-
"
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
1645
|
+
"single-package": {
|
|
1646
|
+
"dependsOn": [
|
|
1647
|
+
"metadata-dir"
|
|
1922
1648
|
],
|
|
1923
|
-
"
|
|
1924
|
-
"
|
|
1649
|
+
"helpGroup": "Metadata API Format",
|
|
1650
|
+
"name": "single-package",
|
|
1651
|
+
"summary": "Indicates that the metadata zip file points to a directory structure for a single package.",
|
|
1652
|
+
"allowNo": false,
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1655
|
+
"source-dir": {
|
|
1656
|
+
"char": "d",
|
|
1657
|
+
"description": "The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.",
|
|
1925
1658
|
"exclusive": [
|
|
1926
|
-
"
|
|
1659
|
+
"manifest",
|
|
1660
|
+
"metadata",
|
|
1661
|
+
"metadata-dir"
|
|
1927
1662
|
],
|
|
1928
|
-
"
|
|
1929
|
-
"
|
|
1663
|
+
"helpGroup": "Source Format",
|
|
1664
|
+
"name": "source-dir",
|
|
1665
|
+
"summary": "Path to the local source files to deploy.",
|
|
1930
1666
|
"hasDynamicHelp": false,
|
|
1667
|
+
"multiple": true,
|
|
1668
|
+
"type": "option"
|
|
1669
|
+
},
|
|
1670
|
+
"target-org": {
|
|
1671
|
+
"char": "o",
|
|
1672
|
+
"name": "target-org",
|
|
1673
|
+
"noCacheDefault": true,
|
|
1674
|
+
"required": true,
|
|
1675
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1676
|
+
"hasDynamicHelp": true,
|
|
1931
1677
|
"multiple": false,
|
|
1932
1678
|
"type": "option"
|
|
1933
1679
|
},
|
|
1934
|
-
"
|
|
1935
|
-
"aliases": [
|
|
1936
|
-
"manifesttype"
|
|
1937
|
-
],
|
|
1680
|
+
"tests": {
|
|
1938
1681
|
"char": "t",
|
|
1939
|
-
"
|
|
1940
|
-
"
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
"name": "type",
|
|
1944
|
-
"summary": "Type of manifest to create; the type determines the name of the created file.",
|
|
1682
|
+
"description": "If a test name contains a space, enclose it in double quotes.\nFor multiple test names, use one of the following formats:\n\n- Repeat the flag for multiple test names: --tests Test1 --tests Test2 --tests \"Test With Space\"\n- Separate the test names with spaces: --tests Test1 Test2 \"Test With Space\"",
|
|
1683
|
+
"helpGroup": "Test",
|
|
1684
|
+
"name": "tests",
|
|
1685
|
+
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
1945
1686
|
"hasDynamicHelp": false,
|
|
1946
|
-
"multiple":
|
|
1947
|
-
"options": [
|
|
1948
|
-
"pre",
|
|
1949
|
-
"post",
|
|
1950
|
-
"destroy",
|
|
1951
|
-
"package"
|
|
1952
|
-
],
|
|
1687
|
+
"multiple": true,
|
|
1953
1688
|
"type": "option"
|
|
1954
1689
|
},
|
|
1955
|
-
"
|
|
1956
|
-
"
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
"
|
|
1960
|
-
"
|
|
1961
|
-
"from-org"
|
|
1962
|
-
],
|
|
1963
|
-
"deprecateAliases": true,
|
|
1964
|
-
"name": "include-packages",
|
|
1965
|
-
"summary": "Package types (managed, unlocked) whose metadata is included in the manifest; by default, metadata in managed and unlocked packages is excluded. Metadata in unmanaged packages is always included.",
|
|
1966
|
-
"delimiter": ",",
|
|
1690
|
+
"test-level": {
|
|
1691
|
+
"char": "l",
|
|
1692
|
+
"description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\n If you don’t specify a test level, the default behavior depends on the contents of your deployment package and target org. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".",
|
|
1693
|
+
"helpGroup": "Test",
|
|
1694
|
+
"name": "test-level",
|
|
1695
|
+
"summary": "Deployment Apex testing level.",
|
|
1967
1696
|
"hasDynamicHelp": false,
|
|
1968
|
-
"multiple":
|
|
1697
|
+
"multiple": false,
|
|
1969
1698
|
"options": [
|
|
1970
|
-
"
|
|
1971
|
-
"
|
|
1699
|
+
"NoTestRun",
|
|
1700
|
+
"RunSpecifiedTests",
|
|
1701
|
+
"RunLocalTests",
|
|
1702
|
+
"RunAllTestsInOrg"
|
|
1972
1703
|
],
|
|
1973
1704
|
"type": "option"
|
|
1974
1705
|
},
|
|
1975
|
-
"
|
|
1976
|
-
"
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1706
|
+
"verbose": {
|
|
1707
|
+
"exclusive": [
|
|
1708
|
+
"concise"
|
|
1709
|
+
],
|
|
1710
|
+
"name": "verbose",
|
|
1711
|
+
"summary": "Show verbose output of the deploy result.",
|
|
1712
|
+
"allowNo": false,
|
|
1713
|
+
"type": "boolean"
|
|
1714
|
+
},
|
|
1715
|
+
"wait": {
|
|
1716
|
+
"char": "w",
|
|
1717
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run \"<%= config.bin %> project deploy resume\". To check the status of the deployment, run \"<%= config.bin %> project deploy report\".",
|
|
1718
|
+
"exclusive": [
|
|
1719
|
+
"async"
|
|
1720
|
+
],
|
|
1721
|
+
"name": "wait",
|
|
1722
|
+
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
1723
|
+
"hasDynamicHelp": true,
|
|
1724
|
+
"helpValue": "<minutes>",
|
|
1725
|
+
"multiple": false,
|
|
1726
|
+
"type": "option"
|
|
1727
|
+
},
|
|
1728
|
+
"purge-on-delete": {
|
|
1729
|
+
"helpGroup": "Delete",
|
|
1730
|
+
"name": "purge-on-delete",
|
|
1731
|
+
"relationships": [
|
|
1732
|
+
{
|
|
1733
|
+
"type": "some",
|
|
1734
|
+
"flags": [
|
|
1735
|
+
"pre-destructive-changes",
|
|
1736
|
+
"manifest",
|
|
1737
|
+
"metadata-dir",
|
|
1738
|
+
"post-destructive-changes"
|
|
1983
1739
|
]
|
|
1984
1740
|
}
|
|
1985
1741
|
],
|
|
1986
|
-
"summary": "
|
|
1987
|
-
"
|
|
1742
|
+
"summary": "Specify that deleted components in the destructive changes manifest file are immediately eligible for deletion rather than being stored in the Recycle Bin.",
|
|
1743
|
+
"allowNo": false,
|
|
1744
|
+
"type": "boolean"
|
|
1745
|
+
},
|
|
1746
|
+
"pre-destructive-changes": {
|
|
1747
|
+
"dependsOn": [
|
|
1748
|
+
"manifest"
|
|
1749
|
+
],
|
|
1750
|
+
"helpGroup": "Delete",
|
|
1751
|
+
"name": "pre-destructive-changes",
|
|
1752
|
+
"summary": "File path for a manifest (destructiveChangesPre.xml) of components to delete before the deploy.",
|
|
1988
1753
|
"hasDynamicHelp": false,
|
|
1989
|
-
"multiple":
|
|
1754
|
+
"multiple": false,
|
|
1990
1755
|
"type": "option"
|
|
1991
1756
|
},
|
|
1992
|
-
"
|
|
1993
|
-
"
|
|
1994
|
-
"
|
|
1995
|
-
],
|
|
1996
|
-
"deprecateAliases": true,
|
|
1997
|
-
"exclusive": [
|
|
1998
|
-
"source-dir"
|
|
1757
|
+
"post-destructive-changes": {
|
|
1758
|
+
"dependsOn": [
|
|
1759
|
+
"manifest"
|
|
1999
1760
|
],
|
|
2000
|
-
"
|
|
2001
|
-
"
|
|
1761
|
+
"helpGroup": "Delete",
|
|
1762
|
+
"name": "post-destructive-changes",
|
|
1763
|
+
"summary": "File path for a manifest (destructiveChangesPost.xml) of components to delete after the deploy.",
|
|
2002
1764
|
"hasDynamicHelp": false,
|
|
2003
1765
|
"multiple": false,
|
|
2004
1766
|
"type": "option"
|
|
2005
1767
|
},
|
|
2006
|
-
"
|
|
2007
|
-
"
|
|
2008
|
-
|
|
2009
|
-
|
|
1768
|
+
"coverage-formatters": {
|
|
1769
|
+
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
1770
|
+
"helpGroup": "Test",
|
|
1771
|
+
"name": "coverage-formatters",
|
|
1772
|
+
"summary": "Format of the code coverage results.",
|
|
1773
|
+
"hasDynamicHelp": false,
|
|
1774
|
+
"multiple": true,
|
|
1775
|
+
"options": [
|
|
1776
|
+
"clover",
|
|
1777
|
+
"cobertura",
|
|
1778
|
+
"html-spa",
|
|
1779
|
+
"html",
|
|
1780
|
+
"json",
|
|
1781
|
+
"json-summary",
|
|
1782
|
+
"lcovonly",
|
|
1783
|
+
"none",
|
|
1784
|
+
"teamcity",
|
|
1785
|
+
"text",
|
|
1786
|
+
"text-summary"
|
|
2010
1787
|
],
|
|
2011
|
-
"
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
"
|
|
1788
|
+
"type": "option"
|
|
1789
|
+
},
|
|
1790
|
+
"junit": {
|
|
1791
|
+
"helpGroup": "Test",
|
|
1792
|
+
"name": "junit",
|
|
1793
|
+
"summary": "Output JUnit test results.",
|
|
1794
|
+
"allowNo": false,
|
|
1795
|
+
"type": "boolean"
|
|
1796
|
+
},
|
|
1797
|
+
"results-dir": {
|
|
1798
|
+
"helpGroup": "Test",
|
|
1799
|
+
"name": "results-dir",
|
|
1800
|
+
"relationships": [
|
|
1801
|
+
{
|
|
1802
|
+
"type": "some",
|
|
1803
|
+
"flags": [
|
|
1804
|
+
"coverage-formatters",
|
|
1805
|
+
"junit"
|
|
1806
|
+
]
|
|
1807
|
+
}
|
|
1808
|
+
],
|
|
1809
|
+
"summary": "Output directory for code coverage and JUnit results; defaults to the deploy ID.",
|
|
2015
1810
|
"hasDynamicHelp": false,
|
|
2016
1811
|
"multiple": false,
|
|
2017
1812
|
"type": "option"
|
|
2018
1813
|
}
|
|
2019
1814
|
},
|
|
2020
|
-
"hasDynamicHelp":
|
|
1815
|
+
"hasDynamicHelp": true,
|
|
2021
1816
|
"hiddenAliases": [],
|
|
2022
|
-
"id": "project:
|
|
1817
|
+
"id": "project:deploy:start",
|
|
2023
1818
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
2024
1819
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
2025
1820
|
"pluginType": "core",
|
|
2026
1821
|
"strict": true,
|
|
2027
|
-
"summary": "
|
|
1822
|
+
"summary": "Deploy metadata to an org from your local project.",
|
|
2028
1823
|
"enableJsonFlag": true,
|
|
2029
|
-
"
|
|
1824
|
+
"configurationVariablesSection": {
|
|
1825
|
+
"header": "CONFIGURATION VARIABLES",
|
|
1826
|
+
"body": [
|
|
1827
|
+
{
|
|
1828
|
+
"name": "target-org",
|
|
1829
|
+
"description": "Username or alias of the org that all commands run against by default. (sf only)"
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"name": "org-api-version",
|
|
1833
|
+
"description": "API version of your project. Default: API version of your Dev Hub org."
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
"envVariablesSection": {
|
|
1838
|
+
"header": "ENVIRONMENT VARIABLES",
|
|
1839
|
+
"body": [
|
|
1840
|
+
{
|
|
1841
|
+
"name": "SF_TARGET_ORG",
|
|
1842
|
+
"description": "Username or alias of your default org. Overrides the target-org configuration variable."
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"name": "SF_USE_PROGRESS_BAR",
|
|
1846
|
+
"description": "Set to false to disable the progress bar when running the metadata deploy command."
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1850
|
+
"errorCodes": {
|
|
1851
|
+
"header": "ERROR CODES",
|
|
1852
|
+
"body": [
|
|
1853
|
+
{
|
|
1854
|
+
"name": "Succeeded (0)",
|
|
1855
|
+
"description": "The deploy succeeded."
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "Canceled (1)",
|
|
1859
|
+
"description": "The deploy was canceled."
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"name": "Failed (1)",
|
|
1863
|
+
"description": "The deploy failed."
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"name": "SucceededPartial (68)",
|
|
1867
|
+
"description": "The deploy partially succeeded."
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
"name": "InProgress (69)",
|
|
1871
|
+
"description": "The deploy is in progress."
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
"name": "Pending (69)",
|
|
1875
|
+
"description": "The deploy is pending."
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "Canceling (69)",
|
|
1879
|
+
"description": "The deploy is being canceled."
|
|
1880
|
+
}
|
|
1881
|
+
]
|
|
1882
|
+
},
|
|
2030
1883
|
"isESM": true,
|
|
2031
1884
|
"relativePath": [
|
|
2032
1885
|
"lib",
|
|
2033
1886
|
"commands",
|
|
2034
1887
|
"project",
|
|
2035
|
-
"
|
|
2036
|
-
"
|
|
1888
|
+
"deploy",
|
|
1889
|
+
"start.js"
|
|
2037
1890
|
],
|
|
2038
1891
|
"aliasPermutations": [
|
|
2039
|
-
"
|
|
2040
|
-
"
|
|
2041
|
-
"source:manifest:force:create",
|
|
2042
|
-
"source:manifest:create:force",
|
|
2043
|
-
"force:manifest:source:create",
|
|
2044
|
-
"manifest:force:source:create",
|
|
2045
|
-
"manifest:source:force:create",
|
|
2046
|
-
"manifest:source:create:force",
|
|
2047
|
-
"force:manifest:create:source",
|
|
2048
|
-
"manifest:force:create:source",
|
|
2049
|
-
"manifest:create:force:source",
|
|
2050
|
-
"manifest:create:source:force",
|
|
2051
|
-
"force:source:create:manifest",
|
|
2052
|
-
"source:force:create:manifest",
|
|
2053
|
-
"source:create:force:manifest",
|
|
2054
|
-
"source:create:manifest:force",
|
|
2055
|
-
"force:create:source:manifest",
|
|
2056
|
-
"create:force:source:manifest",
|
|
2057
|
-
"create:source:force:manifest",
|
|
2058
|
-
"create:source:manifest:force",
|
|
2059
|
-
"force:create:manifest:source",
|
|
2060
|
-
"create:force:manifest:source",
|
|
2061
|
-
"create:manifest:force:source",
|
|
2062
|
-
"create:manifest:source:force"
|
|
1892
|
+
"deploy:metadata",
|
|
1893
|
+
"metadata:deploy"
|
|
2063
1894
|
],
|
|
2064
1895
|
"permutations": [
|
|
2065
|
-
"project:
|
|
2066
|
-
"
|
|
2067
|
-
"
|
|
2068
|
-
"project:
|
|
2069
|
-
"
|
|
2070
|
-
"
|
|
1896
|
+
"project:deploy:start",
|
|
1897
|
+
"deploy:project:start",
|
|
1898
|
+
"deploy:start:project",
|
|
1899
|
+
"project:start:deploy",
|
|
1900
|
+
"start:project:deploy",
|
|
1901
|
+
"start:deploy:project"
|
|
2071
1902
|
]
|
|
2072
1903
|
},
|
|
2073
|
-
"project:
|
|
1904
|
+
"project:deploy:validate": {
|
|
2074
1905
|
"aliases": [
|
|
2075
|
-
"
|
|
1906
|
+
"deploy:metadata:validate"
|
|
2076
1907
|
],
|
|
2077
1908
|
"args": {},
|
|
2078
1909
|
"deprecateAliases": true,
|
|
2079
|
-
"description": "
|
|
1910
|
+
"description": "Use this command to verify whether a deployment will succeed without actually deploying the metadata to your org. This command is similar to \"<%= config.bin %> project deploy start\", except you're required to run Apex tests, and the command returns a job ID rather than executing the deployment. If the validation succeeds, then you pass this job ID to the \"<%= config.bin %> project deploy quick\" command to actually deploy the metadata. This quick deploy takes less time because it skips running Apex tests. The job ID is valid for 10 days from when you started the validation. Validating first is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nYou must run this command from within a project.\n\nThis command doesn't support source-tracking. When you quick deploy with the resulting job ID, the source you deploy overwrites the corresponding metadata in your org.\n\nTo validate the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --source-dir.\n\nNote: Don't use this command on sandboxes; the command is intended to be used on production orgs. By default, sandboxes don't run tests during a deploy. If you want to validate a deployment with tests on a sandbox, use \"<%= config.bin %> project deploy start --dry-run --test-level RunLocalTests\" instead.",
|
|
2080
1911
|
"examples": [
|
|
2081
|
-
"
|
|
2082
|
-
"
|
|
1912
|
+
"NOTE: These examples focus on validating large deployments. See the help for \"<%= config.bin %> project deploy start\" for examples of deploying smaller sets of metadata which you can also use to validate.",
|
|
1913
|
+
"Validate the deployment of all source files in the \"force-app\" directory to the default org:\n<%= config.bin %> <%= command.id %> --source-dir force-app",
|
|
1914
|
+
"Validate the deployment of all source files in two directories: \"force-app\" and \"force-app-utils\":\n<%= config.bin %> <%= command.id %> --source-dir force-app --source-dir force-app-utils",
|
|
1915
|
+
"Asynchronously validate the deployment and run all tests in the org with alias \"my-prod-org\"; command immediately returns the job ID:\n<%= config.bin %> <%= command.id %> --source-dir force-app --async --test-level RunAllTestsInOrg --target-org my-prod-org",
|
|
1916
|
+
"Validate the deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"
|
|
2083
1917
|
],
|
|
2084
1918
|
"flags": {
|
|
2085
1919
|
"json": {
|
|
@@ -2098,231 +1932,335 @@
|
|
|
2098
1932
|
"type": "option"
|
|
2099
1933
|
},
|
|
2100
1934
|
"api-version": {
|
|
2101
|
-
"
|
|
2102
|
-
|
|
2103
|
-
],
|
|
2104
|
-
"deprecateAliases": true,
|
|
2105
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1935
|
+
"char": "a",
|
|
1936
|
+
"description": "Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.",
|
|
2106
1937
|
"name": "api-version",
|
|
1938
|
+
"summary": "Target API version for the validation.",
|
|
2107
1939
|
"hasDynamicHelp": false,
|
|
2108
1940
|
"multiple": false,
|
|
2109
1941
|
"type": "option"
|
|
2110
1942
|
},
|
|
2111
|
-
"
|
|
2112
|
-
"
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
"
|
|
2116
|
-
"
|
|
2117
|
-
"hasDynamicHelp": false,
|
|
2118
|
-
"multiple": false,
|
|
2119
|
-
"type": "option"
|
|
2120
|
-
},
|
|
2121
|
-
"root-dir": {
|
|
2122
|
-
"aliases": [
|
|
2123
|
-
"rootdir"
|
|
2124
|
-
],
|
|
2125
|
-
"char": "r",
|
|
2126
|
-
"deprecateAliases": true,
|
|
2127
|
-
"name": "root-dir",
|
|
2128
|
-
"required": true,
|
|
2129
|
-
"summary": "Root directory that contains the Metadata API–formatted metadata.",
|
|
2130
|
-
"hasDynamicHelp": false,
|
|
2131
|
-
"multiple": false,
|
|
2132
|
-
"type": "option"
|
|
1943
|
+
"async": {
|
|
1944
|
+
"description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume watching the validation, run \"<%= config.bin %> project deploy resume\". To check the status of the validation, run \"<%= config.bin %> project deploy report\".",
|
|
1945
|
+
"name": "async",
|
|
1946
|
+
"summary": "Run the command asynchronously.",
|
|
1947
|
+
"allowNo": false,
|
|
1948
|
+
"type": "boolean"
|
|
2133
1949
|
},
|
|
2134
|
-
"
|
|
2135
|
-
"
|
|
2136
|
-
"
|
|
1950
|
+
"concise": {
|
|
1951
|
+
"exclusive": [
|
|
1952
|
+
"verbose"
|
|
2137
1953
|
],
|
|
2138
|
-
"
|
|
2139
|
-
"
|
|
2140
|
-
"
|
|
2141
|
-
"
|
|
2142
|
-
"hasDynamicHelp": false,
|
|
2143
|
-
"multiple": false,
|
|
2144
|
-
"type": "option"
|
|
1954
|
+
"name": "concise",
|
|
1955
|
+
"summary": "Show concise output of the validation result.",
|
|
1956
|
+
"allowNo": false,
|
|
1957
|
+
"type": "boolean"
|
|
2145
1958
|
},
|
|
2146
1959
|
"manifest": {
|
|
2147
1960
|
"char": "x",
|
|
2148
|
-
"description": "If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
1961
|
+
"description": "All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.",
|
|
1962
|
+
"helpGroup": "Source Format",
|
|
2149
1963
|
"name": "manifest",
|
|
2150
|
-
"summary": "
|
|
1964
|
+
"summary": "Full file path for manifest (package.xml) of components to validate for deployment.",
|
|
2151
1965
|
"hasDynamicHelp": false,
|
|
2152
1966
|
"multiple": false,
|
|
2153
1967
|
"type": "option"
|
|
2154
1968
|
},
|
|
1969
|
+
"metadata": {
|
|
1970
|
+
"char": "m",
|
|
1971
|
+
"helpGroup": "Source Format",
|
|
1972
|
+
"name": "metadata",
|
|
1973
|
+
"summary": "Metadata component names to validate for deployment.",
|
|
1974
|
+
"hasDynamicHelp": false,
|
|
1975
|
+
"multiple": true,
|
|
1976
|
+
"type": "option"
|
|
1977
|
+
},
|
|
1978
|
+
"source-dir": {
|
|
1979
|
+
"char": "d",
|
|
1980
|
+
"description": "The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.",
|
|
1981
|
+
"helpGroup": "Source Format",
|
|
1982
|
+
"name": "source-dir",
|
|
1983
|
+
"summary": "Path to the local source files to validate for deployment.",
|
|
1984
|
+
"hasDynamicHelp": false,
|
|
1985
|
+
"multiple": true,
|
|
1986
|
+
"type": "option"
|
|
1987
|
+
},
|
|
2155
1988
|
"metadata-dir": {
|
|
2156
|
-
"
|
|
2157
|
-
"metadatapath"
|
|
2158
|
-
],
|
|
2159
|
-
"char": "p",
|
|
2160
|
-
"deprecateAliases": true,
|
|
2161
|
-
"description": "The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its sub-directories).\n\nIf you specify this flag, don’t specify --manifest or --metadata. If the comma-separated list you’re supplying contains spaces, enclose the entire comma-separated list in one set of double quotes.",
|
|
2162
|
-
"exclusive": [
|
|
2163
|
-
"manifest",
|
|
2164
|
-
"metadata"
|
|
2165
|
-
],
|
|
1989
|
+
"helpGroup": "Metadata API Format",
|
|
2166
1990
|
"name": "metadata-dir",
|
|
2167
|
-
"summary": "Root of directory or zip file of metadata formatted files to
|
|
2168
|
-
"delimiter": ",",
|
|
1991
|
+
"summary": "Root of directory or zip file of metadata formatted files to deploy.",
|
|
2169
1992
|
"hasDynamicHelp": false,
|
|
2170
|
-
"multiple":
|
|
1993
|
+
"multiple": false,
|
|
2171
1994
|
"type": "option"
|
|
2172
1995
|
},
|
|
2173
|
-
"
|
|
2174
|
-
"
|
|
2175
|
-
|
|
2176
|
-
"manifest",
|
|
2177
|
-
"metadatapath"
|
|
1996
|
+
"single-package": {
|
|
1997
|
+
"dependsOn": [
|
|
1998
|
+
"metadata-dir"
|
|
2178
1999
|
],
|
|
2179
|
-
"
|
|
2180
|
-
"
|
|
2181
|
-
"
|
|
2000
|
+
"helpGroup": "Metadata API Format",
|
|
2001
|
+
"name": "single-package",
|
|
2002
|
+
"summary": "Indicates that the metadata zip file points to a directory structure for a single package.",
|
|
2003
|
+
"allowNo": false,
|
|
2004
|
+
"type": "boolean"
|
|
2005
|
+
},
|
|
2006
|
+
"target-org": {
|
|
2007
|
+
"char": "o",
|
|
2008
|
+
"name": "target-org",
|
|
2009
|
+
"noCacheDefault": true,
|
|
2010
|
+
"required": true,
|
|
2011
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2012
|
+
"hasDynamicHelp": true,
|
|
2013
|
+
"multiple": false,
|
|
2014
|
+
"type": "option"
|
|
2015
|
+
},
|
|
2016
|
+
"tests": {
|
|
2017
|
+
"char": "t",
|
|
2018
|
+
"description": "If a test name contains a space, enclose it in double quotes.\nFor multiple test names, use one of the following formats:\n\n- Repeat the flag for multiple test names: --tests Test1 --tests Test2 --tests \"Test With Space\"\n- Separate the test names with spaces: --tests Test1 Test2 \"Test With Space\"",
|
|
2019
|
+
"helpGroup": "Test",
|
|
2020
|
+
"name": "tests",
|
|
2021
|
+
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
2182
2022
|
"hasDynamicHelp": false,
|
|
2183
2023
|
"multiple": true,
|
|
2184
2024
|
"type": "option"
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
"
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
"mdapi:convert:force",
|
|
2209
|
-
"force:convert:mdapi",
|
|
2210
|
-
"convert:force:mdapi",
|
|
2211
|
-
"convert:mdapi:force"
|
|
2212
|
-
],
|
|
2213
|
-
"permutations": [
|
|
2214
|
-
"project:convert:mdapi",
|
|
2215
|
-
"convert:project:mdapi",
|
|
2216
|
-
"convert:mdapi:project",
|
|
2217
|
-
"project:mdapi:convert",
|
|
2218
|
-
"mdapi:project:convert",
|
|
2219
|
-
"mdapi:convert:project"
|
|
2220
|
-
]
|
|
2221
|
-
},
|
|
2222
|
-
"project:convert:source-behavior": {
|
|
2223
|
-
"aliases": [],
|
|
2224
|
-
"args": {},
|
|
2225
|
-
"description": "Specifically, this command updates the \"sourceBehaviorOption\" option in the \"sfdx-project.json\" file and then converts the associated local source files in your project as needed.\n\nFor example, run this command with the \"--behavior decomposePermissionSetBeta\" flag to start decomposing permission sets when you deploy or retrieve them. Decomposing means breaking up the monolithic metadata API format XML file that corresponds to a metadata component into smaller XML files and directories based on its subtypes. Permission sets are not decomposed by default; you must opt-in to start decomposing them by using this command. When the command finishes, your \"sfdx-project.json\" file is updated to always decompose permission sets, and the existing permission set files in your local package directories are converted into the new decomposed format. You run this command only once for a given behavior change.\n\nFor more information about the possible values for the --behavior flag, see the \"sourceBehaviorOptions\" section in the https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm topic.",
|
|
2226
|
-
"examples": [
|
|
2227
|
-
"Update your Salesforce DX project to decompose custom permission sets:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta",
|
|
2228
|
-
"Display what the command would do, but don't change any existing files:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run",
|
|
2229
|
-
"Keep the temporary directory that contains the interim metadata API formatted files:\n<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run --preserve-temp-dir"
|
|
2230
|
-
],
|
|
2231
|
-
"flags": {
|
|
2232
|
-
"json": {
|
|
2233
|
-
"description": "Format output as json.",
|
|
2234
|
-
"helpGroup": "GLOBAL",
|
|
2235
|
-
"name": "json",
|
|
2025
|
+
},
|
|
2026
|
+
"test-level": {
|
|
2027
|
+
"char": "l",
|
|
2028
|
+
"description": "Valid values are:\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.",
|
|
2029
|
+
"helpGroup": "Test",
|
|
2030
|
+
"name": "test-level",
|
|
2031
|
+
"summary": "Deployment Apex testing level.",
|
|
2032
|
+
"default": "RunLocalTests",
|
|
2033
|
+
"hasDynamicHelp": false,
|
|
2034
|
+
"multiple": false,
|
|
2035
|
+
"options": [
|
|
2036
|
+
"RunAllTestsInOrg",
|
|
2037
|
+
"RunLocalTests",
|
|
2038
|
+
"RunSpecifiedTests"
|
|
2039
|
+
],
|
|
2040
|
+
"type": "option"
|
|
2041
|
+
},
|
|
2042
|
+
"verbose": {
|
|
2043
|
+
"exclusive": [
|
|
2044
|
+
"concise"
|
|
2045
|
+
],
|
|
2046
|
+
"name": "verbose",
|
|
2047
|
+
"summary": "Show verbose output of the validation result.",
|
|
2236
2048
|
"allowNo": false,
|
|
2237
2049
|
"type": "boolean"
|
|
2238
2050
|
},
|
|
2239
|
-
"
|
|
2240
|
-
"
|
|
2241
|
-
"
|
|
2242
|
-
"
|
|
2243
|
-
"
|
|
2051
|
+
"wait": {
|
|
2052
|
+
"char": "w",
|
|
2053
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume watching the validation, run \"<%= config.bin %> project deploy resume\". To check the status of the validation, run \"<%= config.bin %> project deploy report\".",
|
|
2054
|
+
"name": "wait",
|
|
2055
|
+
"summary": "Number of minutes to wait for the command to complete and display results.",
|
|
2056
|
+
"hasDynamicHelp": true,
|
|
2057
|
+
"helpValue": "<minutes>",
|
|
2244
2058
|
"multiple": false,
|
|
2245
2059
|
"type": "option"
|
|
2246
2060
|
},
|
|
2247
|
-
"
|
|
2248
|
-
"char": "
|
|
2249
|
-
"
|
|
2250
|
-
"
|
|
2251
|
-
"summary": "
|
|
2061
|
+
"ignore-warnings": {
|
|
2062
|
+
"char": "g",
|
|
2063
|
+
"description": "If you specify this flag, and a warning occurs, the success status of the deployment is set to true. If you don't specify this flag, and a warning occurs, then the success status is set to false, and the warning is treated like an error.\n\nThis flag is useful in a CI environment and your deployment includes destructive changes; if you try to delete a component that doesn't exist in the org, you get a warning. In this case, to ensure that the command returns a success value of true, specify this flag.",
|
|
2064
|
+
"name": "ignore-warnings",
|
|
2065
|
+
"summary": "Ignore warnings and allow a deployment to complete successfully.",
|
|
2066
|
+
"allowNo": false,
|
|
2067
|
+
"type": "boolean"
|
|
2068
|
+
},
|
|
2069
|
+
"coverage-formatters": {
|
|
2070
|
+
"description": "For multiple formatters, repeat the flag for each formatter.\n--coverage-formatters lcov --coverage-formatters clover",
|
|
2071
|
+
"helpGroup": "Test",
|
|
2072
|
+
"name": "coverage-formatters",
|
|
2073
|
+
"summary": "Format of the code coverage results.",
|
|
2252
2074
|
"hasDynamicHelp": false,
|
|
2253
|
-
"multiple":
|
|
2075
|
+
"multiple": true,
|
|
2254
2076
|
"options": [
|
|
2255
|
-
"
|
|
2256
|
-
"
|
|
2257
|
-
"
|
|
2258
|
-
"
|
|
2259
|
-
"
|
|
2260
|
-
"
|
|
2261
|
-
"
|
|
2077
|
+
"clover",
|
|
2078
|
+
"cobertura",
|
|
2079
|
+
"html-spa",
|
|
2080
|
+
"html",
|
|
2081
|
+
"json",
|
|
2082
|
+
"json-summary",
|
|
2083
|
+
"lcovonly",
|
|
2084
|
+
"none",
|
|
2085
|
+
"teamcity",
|
|
2086
|
+
"text",
|
|
2087
|
+
"text-summary"
|
|
2262
2088
|
],
|
|
2263
2089
|
"type": "option"
|
|
2264
2090
|
},
|
|
2265
|
-
"
|
|
2266
|
-
"
|
|
2267
|
-
"
|
|
2091
|
+
"junit": {
|
|
2092
|
+
"helpGroup": "Test",
|
|
2093
|
+
"name": "junit",
|
|
2094
|
+
"summary": "Output JUnit test results.",
|
|
2268
2095
|
"allowNo": false,
|
|
2269
2096
|
"type": "boolean"
|
|
2270
2097
|
},
|
|
2271
|
-
"
|
|
2272
|
-
"
|
|
2273
|
-
"
|
|
2098
|
+
"results-dir": {
|
|
2099
|
+
"helpGroup": "Test",
|
|
2100
|
+
"name": "results-dir",
|
|
2101
|
+
"relationships": [
|
|
2102
|
+
{
|
|
2103
|
+
"type": "some",
|
|
2104
|
+
"flags": [
|
|
2105
|
+
"coverage-formatters",
|
|
2106
|
+
"junit"
|
|
2107
|
+
]
|
|
2108
|
+
}
|
|
2109
|
+
],
|
|
2110
|
+
"summary": "Output directory for code coverage and JUnit results; defaults to the deploy ID.",
|
|
2111
|
+
"hasDynamicHelp": false,
|
|
2112
|
+
"multiple": false,
|
|
2113
|
+
"type": "option"
|
|
2114
|
+
},
|
|
2115
|
+
"purge-on-delete": {
|
|
2116
|
+
"dependsOn": [
|
|
2117
|
+
"manifest"
|
|
2118
|
+
],
|
|
2119
|
+
"helpGroup": "Delete",
|
|
2120
|
+
"name": "purge-on-delete",
|
|
2121
|
+
"relationships": [
|
|
2122
|
+
{
|
|
2123
|
+
"type": "some",
|
|
2124
|
+
"flags": [
|
|
2125
|
+
"pre-destructive-changes",
|
|
2126
|
+
"post-destructive-changes"
|
|
2127
|
+
]
|
|
2128
|
+
}
|
|
2129
|
+
],
|
|
2130
|
+
"summary": "Specify that deleted components in the destructive changes manifest file are immediately eligible for deletion rather than being stored in the Recycle Bin.",
|
|
2274
2131
|
"allowNo": false,
|
|
2275
2132
|
"type": "boolean"
|
|
2276
2133
|
},
|
|
2277
|
-
"
|
|
2278
|
-
"
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
"
|
|
2282
|
-
"
|
|
2134
|
+
"pre-destructive-changes": {
|
|
2135
|
+
"dependsOn": [
|
|
2136
|
+
"manifest"
|
|
2137
|
+
],
|
|
2138
|
+
"helpGroup": "Delete",
|
|
2139
|
+
"name": "pre-destructive-changes",
|
|
2140
|
+
"summary": "File path for a manifest (destructiveChangesPre.xml) of components to delete before the deploy",
|
|
2141
|
+
"hasDynamicHelp": false,
|
|
2142
|
+
"multiple": false,
|
|
2143
|
+
"type": "option"
|
|
2144
|
+
},
|
|
2145
|
+
"post-destructive-changes": {
|
|
2146
|
+
"dependsOn": [
|
|
2147
|
+
"manifest"
|
|
2148
|
+
],
|
|
2149
|
+
"helpGroup": "Delete",
|
|
2150
|
+
"name": "post-destructive-changes",
|
|
2151
|
+
"summary": "File path for a manifest (destructiveChangesPost.xml) of components to delete after the deploy.",
|
|
2152
|
+
"hasDynamicHelp": false,
|
|
2283
2153
|
"multiple": false,
|
|
2284
2154
|
"type": "option"
|
|
2285
2155
|
}
|
|
2286
2156
|
},
|
|
2287
|
-
"hasDynamicHelp": true,
|
|
2288
|
-
"hiddenAliases": [],
|
|
2289
|
-
"id": "project:
|
|
2290
|
-
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
2291
|
-
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
2292
|
-
"pluginType": "core",
|
|
2293
|
-
"
|
|
2294
|
-
"
|
|
2295
|
-
"
|
|
2296
|
-
"
|
|
2297
|
-
|
|
2157
|
+
"hasDynamicHelp": true,
|
|
2158
|
+
"hiddenAliases": [],
|
|
2159
|
+
"id": "project:deploy:validate",
|
|
2160
|
+
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
2161
|
+
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
2162
|
+
"pluginType": "core",
|
|
2163
|
+
"strict": true,
|
|
2164
|
+
"summary": "Validate a metadata deployment without actually executing it.",
|
|
2165
|
+
"enableJsonFlag": true,
|
|
2166
|
+
"configurationVariablesSection": {
|
|
2167
|
+
"header": "CONFIGURATION VARIABLES",
|
|
2168
|
+
"body": [
|
|
2169
|
+
{
|
|
2170
|
+
"name": "target-org",
|
|
2171
|
+
"description": "Username or alias of the org that all commands run against by default. (sf only)"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"name": "org-api-version",
|
|
2175
|
+
"description": "API version of your project. Default: API version of your Dev Hub org."
|
|
2176
|
+
}
|
|
2177
|
+
]
|
|
2178
|
+
},
|
|
2179
|
+
"envVariablesSection": {
|
|
2180
|
+
"header": "ENVIRONMENT VARIABLES",
|
|
2181
|
+
"body": [
|
|
2182
|
+
{
|
|
2183
|
+
"name": "SF_TARGET_ORG",
|
|
2184
|
+
"description": "Username or alias of your default org. Overrides the target-org configuration variable."
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"name": "SF_USE_PROGRESS_BAR",
|
|
2188
|
+
"description": "Set to false to disable the progress bar when running the metadata deploy command."
|
|
2189
|
+
}
|
|
2190
|
+
]
|
|
2191
|
+
},
|
|
2192
|
+
"errorCodes": {
|
|
2193
|
+
"header": "ERROR CODES",
|
|
2194
|
+
"body": [
|
|
2195
|
+
{
|
|
2196
|
+
"name": "Succeeded (0)",
|
|
2197
|
+
"description": "The deploy succeeded."
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"name": "Canceled (1)",
|
|
2201
|
+
"description": "The deploy was canceled."
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "Failed (1)",
|
|
2205
|
+
"description": "The deploy failed."
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"name": "SucceededPartial (68)",
|
|
2209
|
+
"description": "The deploy partially succeeded."
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"name": "InProgress (69)",
|
|
2213
|
+
"description": "The deploy is in progress."
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"name": "Pending (69)",
|
|
2217
|
+
"description": "The deploy is pending."
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "Canceling (69)",
|
|
2221
|
+
"description": "The deploy is being canceled."
|
|
2222
|
+
}
|
|
2223
|
+
]
|
|
2224
|
+
},
|
|
2298
2225
|
"isESM": true,
|
|
2299
2226
|
"relativePath": [
|
|
2300
2227
|
"lib",
|
|
2301
2228
|
"commands",
|
|
2302
2229
|
"project",
|
|
2303
|
-
"
|
|
2304
|
-
"
|
|
2230
|
+
"deploy",
|
|
2231
|
+
"validate.js"
|
|
2232
|
+
],
|
|
2233
|
+
"aliasPermutations": [
|
|
2234
|
+
"deploy:metadata:validate",
|
|
2235
|
+
"metadata:deploy:validate",
|
|
2236
|
+
"metadata:validate:deploy",
|
|
2237
|
+
"deploy:validate:metadata",
|
|
2238
|
+
"validate:deploy:metadata",
|
|
2239
|
+
"validate:metadata:deploy"
|
|
2305
2240
|
],
|
|
2306
|
-
"aliasPermutations": [],
|
|
2307
2241
|
"permutations": [
|
|
2308
|
-
"project:
|
|
2309
|
-
"
|
|
2310
|
-
"
|
|
2311
|
-
"project:
|
|
2312
|
-
"
|
|
2313
|
-
"
|
|
2242
|
+
"project:deploy:validate",
|
|
2243
|
+
"deploy:project:validate",
|
|
2244
|
+
"deploy:validate:project",
|
|
2245
|
+
"project:validate:deploy",
|
|
2246
|
+
"validate:project:deploy",
|
|
2247
|
+
"validate:deploy:project"
|
|
2314
2248
|
]
|
|
2315
2249
|
},
|
|
2316
|
-
"project:
|
|
2250
|
+
"project:generate:manifest": {
|
|
2317
2251
|
"aliases": [
|
|
2318
|
-
"force:source:
|
|
2252
|
+
"force:source:manifest:create"
|
|
2319
2253
|
],
|
|
2320
2254
|
"args": {},
|
|
2321
2255
|
"deprecateAliases": true,
|
|
2322
|
-
"description": "
|
|
2256
|
+
"description": "Create a manifest from a list of metadata components (--metadata) or from one or more local directories that contain source files (--source-dir). You can specify either of these flags, not both.\n\nUse --type to specify the type of manifest you want to create. The resulting manifest files have specific names, such as the standard package.xml or destructiveChanges.xml to delete metadata. Valid values for this flag, and their respective file names, are:\n\n * package : package.xml (default)\n * pre : destructiveChangesPre.xml\n * post : destructiveChangesPost.xml\n * destroy : destructiveChanges.xml\n\nSee https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_deleting_files.htm for information about these destructive manifest files.\n\nUse --name to specify a custom name for the generated manifest if the pre-defined ones don’t suit your needs. You can specify either --type or --name, but not both.\n\nTo include multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --include-packages and --source-dir.\n\nTo build a manifest from the metadata in an org, use the --from-org flag. You can combine --from-org with the --metadata flag to include only certain metadata types, or with the --excluded-metadata flag to exclude certain metadata types. When building a manifest from an org, the command makes many concurrent API calls to discover the metadata that exists in the org. To limit the number of concurrent requests, use the SF_LIST_METADATA_BATCH_SIZE environment variable and set it to a size that works best for your org and environment. If you experience timeouts or inconsistent manifest contents, then setting this environment variable can improve accuracy. However, the command takes longer to run because it sends fewer requests at a time.",
|
|
2323
2257
|
"examples": [
|
|
2324
|
-
"
|
|
2325
|
-
"
|
|
2258
|
+
"Create a manifest for deploying or retrieving all Apex classes and custom objects:\n$ <%= config.bin %> <%= command.id %> --metadata ApexClass --metadata CustomObject",
|
|
2259
|
+
"Create a manifest for deleting the specified Apex class:\n$ <%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass --type destroy",
|
|
2260
|
+
"Create a manifest for deploying or retrieving all the metadata components in the specified local directory; name the file myNewManifest.xml:\n$ <%= config.bin %> <%= command.id %> --source-dir force-app --name myNewManifest",
|
|
2261
|
+
"Create a manifest from the metadata components in the specified org and include metadata in any unlocked packages:\n$ <%= config.bin %> <%= command.id %> --from-org test@myorg.com --include-packages unlocked",
|
|
2262
|
+
"Create a manifest from specific metadata types in an org:\n$ <%= config.bin %> <%= command.id %> --from-org test@myorg.com --metadata ApexClass,CustomObject,CustomLabels",
|
|
2263
|
+
"Create a manifest from all metadata components in an org excluding specific metadata types:\n$ <%= config.bin %> <%= command.id %> --from-org test@myorg.com --excluded-metadata StandardValueSet"
|
|
2326
2264
|
],
|
|
2327
2265
|
"flags": {
|
|
2328
2266
|
"json": {
|
|
@@ -2347,7 +2285,6 @@
|
|
|
2347
2285
|
"deprecateAliases": true,
|
|
2348
2286
|
"description": "Override the api version used for api requests made by this command",
|
|
2349
2287
|
"name": "api-version",
|
|
2350
|
-
"summary": "API Version to use in the generated project's manifest. By default, will use the version from sfdx-project.json",
|
|
2351
2288
|
"hasDynamicHelp": false,
|
|
2352
2289
|
"multiple": false,
|
|
2353
2290
|
"type": "option"
|
|
@@ -2362,92 +2299,137 @@
|
|
|
2362
2299
|
"multiple": false,
|
|
2363
2300
|
"type": "option"
|
|
2364
2301
|
},
|
|
2365
|
-
"
|
|
2366
|
-
"
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
"
|
|
2370
|
-
"deprecateAliases": true,
|
|
2371
|
-
"name": "root-dir",
|
|
2372
|
-
"summary": "Source directory other than the default package to convert.",
|
|
2302
|
+
"metadata": {
|
|
2303
|
+
"char": "m",
|
|
2304
|
+
"name": "metadata",
|
|
2305
|
+
"summary": "Names of metadata components to include in the manifest.",
|
|
2306
|
+
"delimiter": ",",
|
|
2373
2307
|
"hasDynamicHelp": false,
|
|
2374
|
-
"multiple":
|
|
2308
|
+
"multiple": true,
|
|
2375
2309
|
"type": "option"
|
|
2376
2310
|
},
|
|
2377
|
-
"
|
|
2311
|
+
"source-dir": {
|
|
2378
2312
|
"aliases": [
|
|
2379
|
-
"
|
|
2313
|
+
"sourcepath"
|
|
2380
2314
|
],
|
|
2381
|
-
"char": "
|
|
2315
|
+
"char": "p",
|
|
2382
2316
|
"deprecateAliases": true,
|
|
2383
|
-
"name": "
|
|
2384
|
-
"summary": "
|
|
2385
|
-
"
|
|
2386
|
-
"hasDynamicHelp":
|
|
2387
|
-
"multiple":
|
|
2317
|
+
"name": "source-dir",
|
|
2318
|
+
"summary": "Paths to the local source files to include in the manifest.",
|
|
2319
|
+
"delimiter": ",",
|
|
2320
|
+
"hasDynamicHelp": false,
|
|
2321
|
+
"multiple": true,
|
|
2388
2322
|
"type": "option"
|
|
2389
2323
|
},
|
|
2390
|
-
"
|
|
2324
|
+
"name": {
|
|
2391
2325
|
"aliases": [
|
|
2392
|
-
"
|
|
2326
|
+
"manifestname"
|
|
2393
2327
|
],
|
|
2394
2328
|
"char": "n",
|
|
2395
2329
|
"deprecateAliases": true,
|
|
2396
|
-
"
|
|
2397
|
-
|
|
2330
|
+
"exclusive": [
|
|
2331
|
+
"type"
|
|
2332
|
+
],
|
|
2333
|
+
"name": "name",
|
|
2334
|
+
"summary": "Name of a custom manifest file to create.",
|
|
2398
2335
|
"hasDynamicHelp": false,
|
|
2399
2336
|
"multiple": false,
|
|
2400
2337
|
"type": "option"
|
|
2401
2338
|
},
|
|
2402
|
-
"
|
|
2403
|
-
"
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
"
|
|
2339
|
+
"type": {
|
|
2340
|
+
"aliases": [
|
|
2341
|
+
"manifesttype"
|
|
2342
|
+
],
|
|
2343
|
+
"char": "t",
|
|
2344
|
+
"deprecateAliases": true,
|
|
2345
|
+
"exclusive": [
|
|
2346
|
+
"name"
|
|
2347
|
+
],
|
|
2348
|
+
"name": "type",
|
|
2349
|
+
"summary": "Type of manifest to create; the type determines the name of the created file.",
|
|
2407
2350
|
"hasDynamicHelp": false,
|
|
2408
2351
|
"multiple": false,
|
|
2352
|
+
"options": [
|
|
2353
|
+
"pre",
|
|
2354
|
+
"post",
|
|
2355
|
+
"destroy",
|
|
2356
|
+
"package"
|
|
2357
|
+
],
|
|
2409
2358
|
"type": "option"
|
|
2410
2359
|
},
|
|
2411
|
-
"
|
|
2360
|
+
"include-packages": {
|
|
2412
2361
|
"aliases": [
|
|
2413
|
-
"
|
|
2362
|
+
"includepackages"
|
|
2414
2363
|
],
|
|
2415
|
-
"char": "
|
|
2416
|
-
"
|
|
2417
|
-
|
|
2418
|
-
"exclusive": [
|
|
2419
|
-
"manifest",
|
|
2420
|
-
"metadata"
|
|
2364
|
+
"char": "c",
|
|
2365
|
+
"dependsOn": [
|
|
2366
|
+
"from-org"
|
|
2421
2367
|
],
|
|
2422
|
-
"
|
|
2423
|
-
"
|
|
2368
|
+
"deprecateAliases": true,
|
|
2369
|
+
"name": "include-packages",
|
|
2370
|
+
"summary": "Package types (managed, unlocked) whose metadata is included in the manifest; by default, metadata in managed and unlocked packages is excluded. Metadata in unmanaged packages is always included.",
|
|
2424
2371
|
"delimiter": ",",
|
|
2425
2372
|
"hasDynamicHelp": false,
|
|
2426
2373
|
"multiple": true,
|
|
2374
|
+
"options": [
|
|
2375
|
+
"managed",
|
|
2376
|
+
"unlocked"
|
|
2377
|
+
],
|
|
2427
2378
|
"type": "option"
|
|
2428
2379
|
},
|
|
2429
|
-
"metadata": {
|
|
2430
|
-
"
|
|
2431
|
-
"
|
|
2432
|
-
|
|
2433
|
-
|
|
2380
|
+
"excluded-metadata": {
|
|
2381
|
+
"name": "excluded-metadata",
|
|
2382
|
+
"relationships": [
|
|
2383
|
+
{
|
|
2384
|
+
"type": "some",
|
|
2385
|
+
"flags": [
|
|
2386
|
+
"from-org",
|
|
2387
|
+
"source-dir"
|
|
2388
|
+
]
|
|
2389
|
+
}
|
|
2434
2390
|
],
|
|
2435
|
-
"
|
|
2436
|
-
"summary": "Metadata component names to convert.",
|
|
2391
|
+
"summary": "Metadata types to exclude when building a manifest from an org. Specify the name of the type, not the name of a specific component.",
|
|
2437
2392
|
"delimiter": ",",
|
|
2438
2393
|
"hasDynamicHelp": false,
|
|
2439
2394
|
"multiple": true,
|
|
2440
2395
|
"type": "option"
|
|
2396
|
+
},
|
|
2397
|
+
"from-org": {
|
|
2398
|
+
"aliases": [
|
|
2399
|
+
"fromorg"
|
|
2400
|
+
],
|
|
2401
|
+
"deprecateAliases": true,
|
|
2402
|
+
"exclusive": [
|
|
2403
|
+
"source-dir"
|
|
2404
|
+
],
|
|
2405
|
+
"name": "from-org",
|
|
2406
|
+
"summary": "Username or alias of the org that contains the metadata components from which to build a manifest.",
|
|
2407
|
+
"hasDynamicHelp": false,
|
|
2408
|
+
"multiple": false,
|
|
2409
|
+
"type": "option"
|
|
2410
|
+
},
|
|
2411
|
+
"output-dir": {
|
|
2412
|
+
"aliases": [
|
|
2413
|
+
"outputdir",
|
|
2414
|
+
"o"
|
|
2415
|
+
],
|
|
2416
|
+
"char": "d",
|
|
2417
|
+
"deprecateAliases": true,
|
|
2418
|
+
"name": "output-dir",
|
|
2419
|
+
"summary": "Directory to save the created manifest.",
|
|
2420
|
+
"hasDynamicHelp": false,
|
|
2421
|
+
"multiple": false,
|
|
2422
|
+
"type": "option"
|
|
2441
2423
|
}
|
|
2442
2424
|
},
|
|
2443
|
-
"hasDynamicHelp":
|
|
2425
|
+
"hasDynamicHelp": false,
|
|
2444
2426
|
"hiddenAliases": [],
|
|
2445
|
-
"id": "project:
|
|
2427
|
+
"id": "project:generate:manifest",
|
|
2446
2428
|
"pluginAlias": "@salesforce/plugin-deploy-retrieve",
|
|
2447
2429
|
"pluginName": "@salesforce/plugin-deploy-retrieve",
|
|
2448
2430
|
"pluginType": "core",
|
|
2449
2431
|
"strict": true,
|
|
2450
|
-
"summary": "
|
|
2432
|
+
"summary": "Create a project manifest that lists the metadata components you want to deploy or retrieve.",
|
|
2451
2433
|
"enableJsonFlag": true,
|
|
2452
2434
|
"requiresProject": true,
|
|
2453
2435
|
"isESM": true,
|
|
@@ -2455,24 +2437,42 @@
|
|
|
2455
2437
|
"lib",
|
|
2456
2438
|
"commands",
|
|
2457
2439
|
"project",
|
|
2458
|
-
"
|
|
2459
|
-
"
|
|
2440
|
+
"generate",
|
|
2441
|
+
"manifest.js"
|
|
2460
2442
|
],
|
|
2461
2443
|
"aliasPermutations": [
|
|
2462
|
-
"force:source:
|
|
2463
|
-
"source:force:
|
|
2464
|
-
"source:
|
|
2465
|
-
"
|
|
2466
|
-
"
|
|
2467
|
-
"
|
|
2444
|
+
"force:source:manifest:create",
|
|
2445
|
+
"source:force:manifest:create",
|
|
2446
|
+
"source:manifest:force:create",
|
|
2447
|
+
"source:manifest:create:force",
|
|
2448
|
+
"force:manifest:source:create",
|
|
2449
|
+
"manifest:force:source:create",
|
|
2450
|
+
"manifest:source:force:create",
|
|
2451
|
+
"manifest:source:create:force",
|
|
2452
|
+
"force:manifest:create:source",
|
|
2453
|
+
"manifest:force:create:source",
|
|
2454
|
+
"manifest:create:force:source",
|
|
2455
|
+
"manifest:create:source:force",
|
|
2456
|
+
"force:source:create:manifest",
|
|
2457
|
+
"source:force:create:manifest",
|
|
2458
|
+
"source:create:force:manifest",
|
|
2459
|
+
"source:create:manifest:force",
|
|
2460
|
+
"force:create:source:manifest",
|
|
2461
|
+
"create:force:source:manifest",
|
|
2462
|
+
"create:source:force:manifest",
|
|
2463
|
+
"create:source:manifest:force",
|
|
2464
|
+
"force:create:manifest:source",
|
|
2465
|
+
"create:force:manifest:source",
|
|
2466
|
+
"create:manifest:force:source",
|
|
2467
|
+
"create:manifest:source:force"
|
|
2468
2468
|
],
|
|
2469
2469
|
"permutations": [
|
|
2470
|
-
"project:
|
|
2471
|
-
"
|
|
2472
|
-
"
|
|
2473
|
-
"project:
|
|
2474
|
-
"
|
|
2475
|
-
"
|
|
2470
|
+
"project:generate:manifest",
|
|
2471
|
+
"generate:project:manifest",
|
|
2472
|
+
"generate:manifest:project",
|
|
2473
|
+
"project:manifest:generate",
|
|
2474
|
+
"manifest:project:generate",
|
|
2475
|
+
"manifest:generate:project"
|
|
2476
2476
|
]
|
|
2477
2477
|
},
|
|
2478
2478
|
"project:list:ignored": {
|
|
@@ -3050,5 +3050,5 @@
|
|
|
3050
3050
|
]
|
|
3051
3051
|
}
|
|
3052
3052
|
},
|
|
3053
|
-
"version": "3.20.
|
|
3053
|
+
"version": "3.20.1"
|
|
3054
3054
|
}
|