@salesforce/plugin-data 4.0.38 → 4.0.40
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 +24 -24
- package/oclif.manifest.json +315 -315
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ EXAMPLES
|
|
|
144
144
|
$ sf data bulk results --job-id 7507i000fake341G --target-org my-scratch
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
147
|
+
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/bulk/results.ts)_
|
|
148
148
|
|
|
149
149
|
## `sf data create file`
|
|
150
150
|
|
|
@@ -193,7 +193,7 @@ EXAMPLES
|
|
|
193
193
|
$ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
196
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/create/file.ts)_
|
|
197
197
|
|
|
198
198
|
## `sf data create record`
|
|
199
199
|
|
|
@@ -249,7 +249,7 @@ EXAMPLES
|
|
|
249
249
|
TracedEntityId=01p17000000R6bLAAS"
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
252
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/create/record.ts)_
|
|
253
253
|
|
|
254
254
|
## `sf data delete bulk`
|
|
255
255
|
|
|
@@ -309,7 +309,7 @@ FLAG DESCRIPTIONS
|
|
|
309
309
|
and can be enabled only by a system administrator.
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
312
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/delete/bulk.ts)_
|
|
313
313
|
|
|
314
314
|
## `sf data delete record`
|
|
315
315
|
|
|
@@ -370,7 +370,7 @@ EXAMPLES
|
|
|
370
370
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
373
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/delete/record.ts)_
|
|
374
374
|
|
|
375
375
|
## `sf data delete resume`
|
|
376
376
|
|
|
@@ -409,7 +409,7 @@ EXAMPLES
|
|
|
409
409
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
410
410
|
```
|
|
411
411
|
|
|
412
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
412
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/delete/resume.ts)_
|
|
413
413
|
|
|
414
414
|
## `sf data export bulk`
|
|
415
415
|
|
|
@@ -483,7 +483,7 @@ EXAMPLES
|
|
|
483
483
|
--result-format json --async
|
|
484
484
|
```
|
|
485
485
|
|
|
486
|
-
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
486
|
+
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/export/bulk.ts)_
|
|
487
487
|
|
|
488
488
|
## `sf data export resume`
|
|
489
489
|
|
|
@@ -519,7 +519,7 @@ EXAMPLES
|
|
|
519
519
|
$ sf data export resume --use-most-recent --target-org my-scratch
|
|
520
520
|
```
|
|
521
521
|
|
|
522
|
-
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
522
|
+
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/export/resume.ts)_
|
|
523
523
|
|
|
524
524
|
## `sf data export tree`
|
|
525
525
|
|
|
@@ -579,7 +579,7 @@ EXAMPLES
|
|
|
579
579
|
my-scratch
|
|
580
580
|
```
|
|
581
581
|
|
|
582
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
582
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/export/tree.ts)_
|
|
583
583
|
|
|
584
584
|
## `sf data get record`
|
|
585
585
|
|
|
@@ -643,7 +643,7 @@ EXAMPLES
|
|
|
643
643
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
644
644
|
```
|
|
645
645
|
|
|
646
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
646
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/get/record.ts)_
|
|
647
647
|
|
|
648
648
|
## `sf data import bulk`
|
|
649
649
|
|
|
@@ -701,7 +701,7 @@ EXAMPLES
|
|
|
701
701
|
$ sf data import bulk --file accounts.csv --sobject Account --async
|
|
702
702
|
```
|
|
703
703
|
|
|
704
|
-
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
704
|
+
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/import/bulk.ts)_
|
|
705
705
|
|
|
706
706
|
## `sf data import resume`
|
|
707
707
|
|
|
@@ -737,7 +737,7 @@ EXAMPLES
|
|
|
737
737
|
$ sf data import resume --use-most-recent --target-org my-scratch
|
|
738
738
|
```
|
|
739
739
|
|
|
740
|
-
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
740
|
+
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/import/resume.ts)_
|
|
741
741
|
|
|
742
742
|
## `sf data import tree`
|
|
743
743
|
|
|
@@ -801,7 +801,7 @@ FLAG DESCRIPTIONS
|
|
|
801
801
|
- files(array) - Files: An array of files paths to load
|
|
802
802
|
```
|
|
803
803
|
|
|
804
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
804
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/import/tree.ts)_
|
|
805
805
|
|
|
806
806
|
## `sf data query`
|
|
807
807
|
|
|
@@ -854,7 +854,7 @@ EXAMPLES
|
|
|
854
854
|
$ sf data query --query "SELECT Name FROM ApexTrigger" --use-tooling-api
|
|
855
855
|
```
|
|
856
856
|
|
|
857
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
857
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/query.ts)_
|
|
858
858
|
|
|
859
859
|
## `sf data resume`
|
|
860
860
|
|
|
@@ -891,7 +891,7 @@ EXAMPLES
|
|
|
891
891
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
892
892
|
```
|
|
893
893
|
|
|
894
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
894
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/resume.ts)_
|
|
895
895
|
|
|
896
896
|
## `sf data search`
|
|
897
897
|
|
|
@@ -941,7 +941,7 @@ EXAMPLES
|
|
|
941
941
|
$ sf data search --file query.txt --target-org my-scratch --result-format csv
|
|
942
942
|
```
|
|
943
943
|
|
|
944
|
-
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
944
|
+
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/search.ts)_
|
|
945
945
|
|
|
946
946
|
## `sf data update bulk`
|
|
947
947
|
|
|
@@ -1002,7 +1002,7 @@ EXAMPLES
|
|
|
1002
1002
|
$ sf data update bulk --file accounts.csv --sobject Account --async
|
|
1003
1003
|
```
|
|
1004
1004
|
|
|
1005
|
-
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1005
|
+
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/update/bulk.ts)_
|
|
1006
1006
|
|
|
1007
1007
|
## `sf data update record`
|
|
1008
1008
|
|
|
@@ -1064,7 +1064,7 @@ EXAMPLES
|
|
|
1064
1064
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
1065
1065
|
```
|
|
1066
1066
|
|
|
1067
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1067
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/update/record.ts)_
|
|
1068
1068
|
|
|
1069
1069
|
## `sf data update resume`
|
|
1070
1070
|
|
|
@@ -1100,7 +1100,7 @@ EXAMPLES
|
|
|
1100
1100
|
$ sf data update resume --use-most-recent --target-org my-scratch
|
|
1101
1101
|
```
|
|
1102
1102
|
|
|
1103
|
-
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1103
|
+
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/update/resume.ts)_
|
|
1104
1104
|
|
|
1105
1105
|
## `sf data upsert bulk`
|
|
1106
1106
|
|
|
@@ -1157,7 +1157,7 @@ EXAMPLES
|
|
|
1157
1157
|
my-scratch
|
|
1158
1158
|
```
|
|
1159
1159
|
|
|
1160
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1160
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/upsert/bulk.ts)_
|
|
1161
1161
|
|
|
1162
1162
|
## `sf data upsert resume`
|
|
1163
1163
|
|
|
@@ -1196,7 +1196,7 @@ EXAMPLES
|
|
|
1196
1196
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
1197
1197
|
```
|
|
1198
1198
|
|
|
1199
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1199
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/data/upsert/resume.ts)_
|
|
1200
1200
|
|
|
1201
1201
|
## `sf force data bulk delete`
|
|
1202
1202
|
|
|
@@ -1243,7 +1243,7 @@ EXAMPLES
|
|
|
1243
1243
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
1244
1244
|
```
|
|
1245
1245
|
|
|
1246
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1246
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/force/data/bulk/delete.ts)_
|
|
1247
1247
|
|
|
1248
1248
|
## `sf force data bulk status`
|
|
1249
1249
|
|
|
@@ -1280,7 +1280,7 @@ EXAMPLES
|
|
|
1280
1280
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
1281
1281
|
```
|
|
1282
1282
|
|
|
1283
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1283
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/force/data/bulk/status.ts)_
|
|
1284
1284
|
|
|
1285
1285
|
## `sf force data bulk upsert`
|
|
1286
1286
|
|
|
@@ -1338,6 +1338,6 @@ EXAMPLES
|
|
|
1338
1338
|
--target-org my-scratch
|
|
1339
1339
|
```
|
|
1340
1340
|
|
|
1341
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1341
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.40/src/commands/force/data/bulk/upsert.ts)_
|
|
1342
1342
|
|
|
1343
1343
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -2116,13 +2116,13 @@
|
|
|
2116
2116
|
"tree:import:data"
|
|
2117
2117
|
]
|
|
2118
2118
|
},
|
|
2119
|
-
"data:
|
|
2119
|
+
"data:update:bulk": {
|
|
2120
2120
|
"aliases": [],
|
|
2121
2121
|
"args": {},
|
|
2122
|
-
"description": "
|
|
2122
|
+
"description": "You can use this command to update millions of Salesforce object records based on a file in comma-separated values (CSV) format.\n\nAll the records in the CSV file must be for the same Salesforce object. Specify the object with the `--sobject` flag. The first column of every line in the CSV file must be an ID of the record you want to update. The CSV file can contain only existing records; if a record in the file doesn't currently exist in the Salesforce object, the command fails. Consider using \"sf data upsert bulk\" if you also want to insert new records.\n\nBulk updates can take a while, depending on how many records are in the CSV file. If the command times out, or you specified the --async flag, the command displays the job ID. To see the status and get the results of the job, run \"sf data update resume\" and pass the job ID to the --job-id flag.\n\nFor information and examples about how to prepare your CSV files, see \"Prepare Data to Ingest\" in the \"Bulk API 2.0 and Bulk API Developer Guide\" (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_prepare_data.htm).",
|
|
2123
2123
|
"examples": [
|
|
2124
|
-
"
|
|
2125
|
-
"
|
|
2124
|
+
"Update Account records from a CSV-formatted file into an org with alias \"my-scratch\"; if the update doesn't complete in 10 minutes, the command ends and displays a job ID:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --wait 10 --target-org my-scratch",
|
|
2125
|
+
"Update asynchronously and use the default org; the command immediately returns a job ID that you then pass to the \"sf data update resume\" command:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --async"
|
|
2126
2126
|
],
|
|
2127
2127
|
"flags": {
|
|
2128
2128
|
"json": {
|
|
@@ -2140,90 +2140,56 @@
|
|
|
2140
2140
|
"multiple": false,
|
|
2141
2141
|
"type": "option"
|
|
2142
2142
|
},
|
|
2143
|
-
"
|
|
2144
|
-
"
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
"
|
|
2149
|
-
"
|
|
2150
|
-
"name": "target-org",
|
|
2151
|
-
"noCacheDefault": true,
|
|
2152
|
-
"required": true,
|
|
2153
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2154
|
-
"hasDynamicHelp": true,
|
|
2155
|
-
"multiple": false,
|
|
2156
|
-
"type": "option"
|
|
2157
|
-
},
|
|
2158
|
-
"api-version": {
|
|
2159
|
-
"aliases": [
|
|
2160
|
-
"apiversion"
|
|
2161
|
-
],
|
|
2162
|
-
"deprecateAliases": true,
|
|
2163
|
-
"description": "Override the api version used for api requests made by this command",
|
|
2164
|
-
"name": "api-version",
|
|
2165
|
-
"hasDynamicHelp": false,
|
|
2166
|
-
"multiple": false,
|
|
2167
|
-
"type": "option"
|
|
2143
|
+
"async": {
|
|
2144
|
+
"char": "a",
|
|
2145
|
+
"deprecated": true,
|
|
2146
|
+
"name": "async",
|
|
2147
|
+
"summary": "Don't wait for the command to complete.",
|
|
2148
|
+
"allowNo": false,
|
|
2149
|
+
"type": "boolean"
|
|
2168
2150
|
},
|
|
2169
|
-
"
|
|
2170
|
-
"
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
"
|
|
2174
|
-
"name": "loglevel",
|
|
2175
|
-
"hasDynamicHelp": false,
|
|
2151
|
+
"wait": {
|
|
2152
|
+
"char": "w",
|
|
2153
|
+
"name": "wait",
|
|
2154
|
+
"summary": "Time to wait for the command to finish, in minutes.",
|
|
2155
|
+
"hasDynamicHelp": true,
|
|
2176
2156
|
"multiple": false,
|
|
2177
2157
|
"type": "option"
|
|
2178
2158
|
},
|
|
2179
2159
|
"file": {
|
|
2180
|
-
"aliases": [
|
|
2181
|
-
"csvfile"
|
|
2182
|
-
],
|
|
2183
2160
|
"char": "f",
|
|
2184
|
-
"deprecateAliases": true,
|
|
2185
2161
|
"name": "file",
|
|
2186
2162
|
"required": true,
|
|
2187
|
-
"summary": "CSV file that contains the
|
|
2163
|
+
"summary": "CSV file that contains the Salesforce object records you want to update.",
|
|
2188
2164
|
"hasDynamicHelp": false,
|
|
2189
2165
|
"multiple": false,
|
|
2190
2166
|
"type": "option"
|
|
2191
2167
|
},
|
|
2192
2168
|
"sobject": {
|
|
2193
|
-
"aliases": [
|
|
2194
|
-
"sobjecttype"
|
|
2195
|
-
],
|
|
2196
2169
|
"char": "s",
|
|
2197
|
-
"deprecateAliases": true,
|
|
2198
2170
|
"name": "sobject",
|
|
2199
2171
|
"required": true,
|
|
2200
|
-
"summary": "API name of the Salesforce object, either standard or custom,
|
|
2172
|
+
"summary": "API name of the Salesforce object, either standard or custom, which you are updating.",
|
|
2201
2173
|
"hasDynamicHelp": false,
|
|
2202
2174
|
"multiple": false,
|
|
2203
2175
|
"type": "option"
|
|
2204
2176
|
},
|
|
2205
|
-
"
|
|
2206
|
-
"
|
|
2207
|
-
"
|
|
2208
|
-
|
|
2209
|
-
],
|
|
2210
|
-
"name": "wait",
|
|
2211
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
2212
|
-
"default": "0 minutes",
|
|
2213
|
-
"hasDynamicHelp": true,
|
|
2177
|
+
"api-version": {
|
|
2178
|
+
"description": "Override the api version used for api requests made by this command",
|
|
2179
|
+
"name": "api-version",
|
|
2180
|
+
"hasDynamicHelp": false,
|
|
2214
2181
|
"multiple": false,
|
|
2215
2182
|
"type": "option"
|
|
2216
2183
|
},
|
|
2217
|
-
"
|
|
2218
|
-
"char": "
|
|
2219
|
-
"
|
|
2220
|
-
"
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
"
|
|
2224
|
-
"
|
|
2225
|
-
"
|
|
2226
|
-
"type": "boolean"
|
|
2184
|
+
"target-org": {
|
|
2185
|
+
"char": "o",
|
|
2186
|
+
"name": "target-org",
|
|
2187
|
+
"noCacheDefault": true,
|
|
2188
|
+
"required": true,
|
|
2189
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2190
|
+
"hasDynamicHelp": true,
|
|
2191
|
+
"multiple": false,
|
|
2192
|
+
"type": "option"
|
|
2227
2193
|
},
|
|
2228
2194
|
"line-ending": {
|
|
2229
2195
|
"dependsOn": [
|
|
@@ -2253,55 +2219,47 @@
|
|
|
2253
2219
|
"TAB"
|
|
2254
2220
|
],
|
|
2255
2221
|
"type": "option"
|
|
2256
|
-
},
|
|
2257
|
-
"external-id": {
|
|
2258
|
-
"aliases": [
|
|
2259
|
-
"externalid"
|
|
2260
|
-
],
|
|
2261
|
-
"char": "i",
|
|
2262
|
-
"deprecateAliases": true,
|
|
2263
|
-
"name": "external-id",
|
|
2264
|
-
"required": true,
|
|
2265
|
-
"summary": "Name of the external ID field, or the Id field.",
|
|
2266
|
-
"hasDynamicHelp": false,
|
|
2267
|
-
"multiple": false,
|
|
2268
|
-
"type": "option"
|
|
2269
2222
|
}
|
|
2270
2223
|
},
|
|
2271
2224
|
"hasDynamicHelp": true,
|
|
2272
2225
|
"hiddenAliases": [],
|
|
2273
|
-
"id": "data:
|
|
2226
|
+
"id": "data:update:bulk",
|
|
2274
2227
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2275
2228
|
"pluginName": "@salesforce/plugin-data",
|
|
2276
2229
|
"pluginType": "core",
|
|
2277
2230
|
"strict": true,
|
|
2278
|
-
"summary": "Bulk
|
|
2231
|
+
"summary": "Bulk update records to an org from a CSV file. Uses Bulk API 2.0.",
|
|
2279
2232
|
"enableJsonFlag": true,
|
|
2280
2233
|
"isESM": true,
|
|
2281
2234
|
"relativePath": [
|
|
2282
2235
|
"lib",
|
|
2283
2236
|
"commands",
|
|
2284
2237
|
"data",
|
|
2285
|
-
"
|
|
2238
|
+
"update",
|
|
2286
2239
|
"bulk.js"
|
|
2287
2240
|
],
|
|
2288
2241
|
"aliasPermutations": [],
|
|
2289
2242
|
"permutations": [
|
|
2290
|
-
"data:
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2293
|
-
"data:bulk:
|
|
2294
|
-
"bulk:data:
|
|
2295
|
-
"bulk:
|
|
2243
|
+
"data:update:bulk",
|
|
2244
|
+
"update:data:bulk",
|
|
2245
|
+
"update:bulk:data",
|
|
2246
|
+
"data:bulk:update",
|
|
2247
|
+
"bulk:data:update",
|
|
2248
|
+
"bulk:update:data"
|
|
2296
2249
|
]
|
|
2297
2250
|
},
|
|
2298
|
-
"data:
|
|
2299
|
-
"aliases": [
|
|
2251
|
+
"data:update:record": {
|
|
2252
|
+
"aliases": [
|
|
2253
|
+
"force:data:record:update"
|
|
2254
|
+
],
|
|
2300
2255
|
"args": {},
|
|
2301
|
-
"
|
|
2256
|
+
"deprecateAliases": true,
|
|
2257
|
+
"description": "Specify the record you want to update with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the update fails; the error displays how many records were found.\n\nWhen using field-value pairs for both identifying the record and specifiyng the new field values, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command updates a record in Salesforce objects by default. Use the --use-tooling-api flag to update a Tooling API object.",
|
|
2302
2258
|
"examples": [
|
|
2303
|
-
"
|
|
2304
|
-
"
|
|
2259
|
+
"Update the Name field of an Account record with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 001D0 --values \"Name=NewAcme\"",
|
|
2260
|
+
"Update the Name field of an Account record whose current name is 'Old Acme':\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Old Acme'\" --values \"Name='New Acme'\"",
|
|
2261
|
+
"Update the Name and Website fields of an Account record with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 001D0 --values \"Name='Acme III' Website=www.example.com\"",
|
|
2262
|
+
"Update the ExpirationDate field of a record of the Tooling API object TraceFlag using the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> -t --sobject TraceFlag --record-id 7tf170000009cUBAAY --values \"ExpirationDate=2017-12-01T00:58:04.000+0000\""
|
|
2305
2263
|
],
|
|
2306
2264
|
"flags": {
|
|
2307
2265
|
"json": {
|
|
@@ -2328,92 +2286,156 @@
|
|
|
2328
2286
|
"deprecateAliases": true,
|
|
2329
2287
|
"name": "target-org",
|
|
2330
2288
|
"noCacheDefault": true,
|
|
2331
|
-
"
|
|
2289
|
+
"required": true,
|
|
2290
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2332
2291
|
"hasDynamicHelp": true,
|
|
2333
2292
|
"multiple": false,
|
|
2334
2293
|
"type": "option"
|
|
2335
2294
|
},
|
|
2336
|
-
"
|
|
2295
|
+
"api-version": {
|
|
2337
2296
|
"aliases": [
|
|
2338
|
-
"
|
|
2297
|
+
"apiversion"
|
|
2339
2298
|
],
|
|
2340
|
-
"char": "i",
|
|
2341
2299
|
"deprecateAliases": true,
|
|
2342
|
-
"
|
|
2343
|
-
"
|
|
2300
|
+
"description": "Override the api version used for api requests made by this command",
|
|
2301
|
+
"name": "api-version",
|
|
2344
2302
|
"hasDynamicHelp": false,
|
|
2345
2303
|
"multiple": false,
|
|
2346
2304
|
"type": "option"
|
|
2347
2305
|
},
|
|
2348
|
-
"
|
|
2349
|
-
"
|
|
2350
|
-
"
|
|
2306
|
+
"loglevel": {
|
|
2307
|
+
"deprecated": {
|
|
2308
|
+
"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."
|
|
2309
|
+
},
|
|
2310
|
+
"hidden": true,
|
|
2311
|
+
"name": "loglevel",
|
|
2312
|
+
"hasDynamicHelp": false,
|
|
2313
|
+
"multiple": false,
|
|
2314
|
+
"type": "option"
|
|
2315
|
+
},
|
|
2316
|
+
"sobject": {
|
|
2317
|
+
"aliases": [
|
|
2318
|
+
"sobjecttype"
|
|
2351
2319
|
],
|
|
2352
|
-
"
|
|
2353
|
-
"
|
|
2354
|
-
"
|
|
2355
|
-
"
|
|
2320
|
+
"char": "s",
|
|
2321
|
+
"deprecateAliases": true,
|
|
2322
|
+
"name": "sobject",
|
|
2323
|
+
"required": true,
|
|
2324
|
+
"summary": "API name of the Salesforce or Tooling API object that contains the record you're updating.",
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"multiple": false,
|
|
2327
|
+
"type": "option"
|
|
2356
2328
|
},
|
|
2357
|
-
"
|
|
2358
|
-
"
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
"
|
|
2329
|
+
"record-id": {
|
|
2330
|
+
"aliases": [
|
|
2331
|
+
"sobjectid"
|
|
2332
|
+
],
|
|
2333
|
+
"char": "i",
|
|
2334
|
+
"deprecateAliases": true,
|
|
2335
|
+
"name": "record-id",
|
|
2336
|
+
"summary": "ID of the record you’re updating.",
|
|
2337
|
+
"hasDynamicHelp": false,
|
|
2362
2338
|
"multiple": false,
|
|
2363
2339
|
"type": "option"
|
|
2364
2340
|
},
|
|
2365
|
-
"
|
|
2366
|
-
"
|
|
2367
|
-
"name": "
|
|
2341
|
+
"where": {
|
|
2342
|
+
"char": "w",
|
|
2343
|
+
"name": "where",
|
|
2344
|
+
"summary": "List of <fieldName>=<value> pairs that identify the record you want to update.",
|
|
2368
2345
|
"hasDynamicHelp": false,
|
|
2369
2346
|
"multiple": false,
|
|
2370
2347
|
"type": "option"
|
|
2371
2348
|
},
|
|
2372
|
-
"
|
|
2373
|
-
"
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
"
|
|
2377
|
-
"name": "loglevel",
|
|
2349
|
+
"values": {
|
|
2350
|
+
"char": "v",
|
|
2351
|
+
"name": "values",
|
|
2352
|
+
"required": true,
|
|
2353
|
+
"summary": "Fields that you're updating, in the format of <fieldName>=<value> pairs.",
|
|
2378
2354
|
"hasDynamicHelp": false,
|
|
2379
2355
|
"multiple": false,
|
|
2380
2356
|
"type": "option"
|
|
2357
|
+
},
|
|
2358
|
+
"use-tooling-api": {
|
|
2359
|
+
"aliases": [
|
|
2360
|
+
"usetoolingapi"
|
|
2361
|
+
],
|
|
2362
|
+
"char": "t",
|
|
2363
|
+
"deprecateAliases": true,
|
|
2364
|
+
"name": "use-tooling-api",
|
|
2365
|
+
"summary": "Use Tooling API so you can update a record in a Tooling API object.",
|
|
2366
|
+
"allowNo": false,
|
|
2367
|
+
"type": "boolean"
|
|
2368
|
+
},
|
|
2369
|
+
"perflog": {
|
|
2370
|
+
"deprecated": {
|
|
2371
|
+
"version": "57"
|
|
2372
|
+
},
|
|
2373
|
+
"hidden": true,
|
|
2374
|
+
"name": "perflog",
|
|
2375
|
+
"summary": "Get API performance data.",
|
|
2376
|
+
"allowNo": false,
|
|
2377
|
+
"type": "boolean"
|
|
2381
2378
|
}
|
|
2382
2379
|
},
|
|
2383
2380
|
"hasDynamicHelp": true,
|
|
2384
2381
|
"hiddenAliases": [],
|
|
2385
|
-
"id": "data:
|
|
2382
|
+
"id": "data:update:record",
|
|
2386
2383
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2387
2384
|
"pluginName": "@salesforce/plugin-data",
|
|
2388
2385
|
"pluginType": "core",
|
|
2389
2386
|
"strict": true,
|
|
2390
|
-
"summary": "
|
|
2387
|
+
"summary": "Updates a single record of a Salesforce or Tooling API object.",
|
|
2391
2388
|
"enableJsonFlag": true,
|
|
2392
2389
|
"isESM": true,
|
|
2393
2390
|
"relativePath": [
|
|
2394
2391
|
"lib",
|
|
2395
2392
|
"commands",
|
|
2396
2393
|
"data",
|
|
2397
|
-
"
|
|
2398
|
-
"
|
|
2394
|
+
"update",
|
|
2395
|
+
"record.js"
|
|
2396
|
+
],
|
|
2397
|
+
"aliasPermutations": [
|
|
2398
|
+
"force:data:record:update",
|
|
2399
|
+
"data:force:record:update",
|
|
2400
|
+
"data:record:force:update",
|
|
2401
|
+
"data:record:update:force",
|
|
2402
|
+
"force:record:data:update",
|
|
2403
|
+
"record:force:data:update",
|
|
2404
|
+
"record:data:force:update",
|
|
2405
|
+
"record:data:update:force",
|
|
2406
|
+
"force:record:update:data",
|
|
2407
|
+
"record:force:update:data",
|
|
2408
|
+
"record:update:force:data",
|
|
2409
|
+
"record:update:data:force",
|
|
2410
|
+
"force:data:update:record",
|
|
2411
|
+
"data:force:update:record",
|
|
2412
|
+
"data:update:force:record",
|
|
2413
|
+
"data:update:record:force",
|
|
2414
|
+
"force:update:data:record",
|
|
2415
|
+
"update:force:data:record",
|
|
2416
|
+
"update:data:force:record",
|
|
2417
|
+
"update:data:record:force",
|
|
2418
|
+
"force:update:record:data",
|
|
2419
|
+
"update:force:record:data",
|
|
2420
|
+
"update:record:force:data",
|
|
2421
|
+
"update:record:data:force"
|
|
2399
2422
|
],
|
|
2400
|
-
"aliasPermutations": [],
|
|
2401
2423
|
"permutations": [
|
|
2402
|
-
"data:
|
|
2403
|
-
"
|
|
2404
|
-
"
|
|
2405
|
-
"data:
|
|
2406
|
-
"
|
|
2407
|
-
"
|
|
2424
|
+
"data:update:record",
|
|
2425
|
+
"update:data:record",
|
|
2426
|
+
"update:record:data",
|
|
2427
|
+
"data:record:update",
|
|
2428
|
+
"record:data:update",
|
|
2429
|
+
"record:update:data"
|
|
2408
2430
|
]
|
|
2409
2431
|
},
|
|
2410
|
-
"data:update:
|
|
2432
|
+
"data:update:resume": {
|
|
2411
2433
|
"aliases": [],
|
|
2412
2434
|
"args": {},
|
|
2413
|
-
"description": "
|
|
2435
|
+
"description": "When the original \"sf data update bulk\" command either times out or is run with the --async flag, it displays a job ID. To see the status and get the results of the bulk update, run this command by either passing it the job ID or using the --use-most-recent flag to specify the most recent bulk update job.",
|
|
2414
2436
|
"examples": [
|
|
2415
|
-
"
|
|
2416
|
-
"
|
|
2437
|
+
"Resume a bulk update job of your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
2438
|
+
"Resume the most recently run bulk update job for an org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
|
|
2417
2439
|
],
|
|
2418
2440
|
"flags": {
|
|
2419
2441
|
"json": {
|
|
@@ -2431,95 +2453,38 @@
|
|
|
2431
2453
|
"multiple": false,
|
|
2432
2454
|
"type": "option"
|
|
2433
2455
|
},
|
|
2434
|
-
"
|
|
2435
|
-
"
|
|
2436
|
-
"
|
|
2437
|
-
"name": "async",
|
|
2438
|
-
"summary": "Don't wait for the command to complete.",
|
|
2456
|
+
"use-most-recent": {
|
|
2457
|
+
"name": "use-most-recent",
|
|
2458
|
+
"summary": "Use the job ID of the bulk update job that was most recently run.",
|
|
2439
2459
|
"allowNo": false,
|
|
2440
2460
|
"type": "boolean"
|
|
2441
2461
|
},
|
|
2442
|
-
"
|
|
2443
|
-
"char": "
|
|
2444
|
-
"name": "
|
|
2445
|
-
"summary": "
|
|
2446
|
-
"hasDynamicHelp": true,
|
|
2447
|
-
"multiple": false,
|
|
2448
|
-
"type": "option"
|
|
2449
|
-
},
|
|
2450
|
-
"file": {
|
|
2451
|
-
"char": "f",
|
|
2452
|
-
"name": "file",
|
|
2453
|
-
"required": true,
|
|
2454
|
-
"summary": "CSV file that contains the Salesforce object records you want to update.",
|
|
2455
|
-
"hasDynamicHelp": false,
|
|
2456
|
-
"multiple": false,
|
|
2457
|
-
"type": "option"
|
|
2458
|
-
},
|
|
2459
|
-
"sobject": {
|
|
2460
|
-
"char": "s",
|
|
2461
|
-
"name": "sobject",
|
|
2462
|
-
"required": true,
|
|
2463
|
-
"summary": "API name of the Salesforce object, either standard or custom, which you are updating.",
|
|
2464
|
-
"hasDynamicHelp": false,
|
|
2465
|
-
"multiple": false,
|
|
2466
|
-
"type": "option"
|
|
2467
|
-
},
|
|
2468
|
-
"api-version": {
|
|
2469
|
-
"description": "Override the api version used for api requests made by this command",
|
|
2470
|
-
"name": "api-version",
|
|
2462
|
+
"job-id": {
|
|
2463
|
+
"char": "i",
|
|
2464
|
+
"name": "job-id",
|
|
2465
|
+
"summary": "Job ID of the bulk update.",
|
|
2471
2466
|
"hasDynamicHelp": false,
|
|
2472
2467
|
"multiple": false,
|
|
2473
2468
|
"type": "option"
|
|
2474
2469
|
},
|
|
2475
|
-
"
|
|
2476
|
-
"char": "
|
|
2477
|
-
"name": "
|
|
2478
|
-
"
|
|
2479
|
-
"
|
|
2480
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2470
|
+
"wait": {
|
|
2471
|
+
"char": "w",
|
|
2472
|
+
"name": "wait",
|
|
2473
|
+
"summary": "Time to wait for the command to finish, in minutes.",
|
|
2474
|
+
"default": "5 minutes",
|
|
2481
2475
|
"hasDynamicHelp": true,
|
|
2482
2476
|
"multiple": false,
|
|
2483
2477
|
"type": "option"
|
|
2484
|
-
},
|
|
2485
|
-
"line-ending": {
|
|
2486
|
-
"dependsOn": [
|
|
2487
|
-
"file"
|
|
2488
|
-
],
|
|
2489
|
-
"name": "line-ending",
|
|
2490
|
-
"summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
|
|
2491
|
-
"hasDynamicHelp": false,
|
|
2492
|
-
"multiple": false,
|
|
2493
|
-
"options": [
|
|
2494
|
-
"CRLF",
|
|
2495
|
-
"LF"
|
|
2496
|
-
],
|
|
2497
|
-
"type": "option"
|
|
2498
|
-
},
|
|
2499
|
-
"column-delimiter": {
|
|
2500
|
-
"name": "column-delimiter",
|
|
2501
|
-
"summary": "Column delimiter used in the CSV file.",
|
|
2502
|
-
"hasDynamicHelp": false,
|
|
2503
|
-
"multiple": false,
|
|
2504
|
-
"options": [
|
|
2505
|
-
"BACKQUOTE",
|
|
2506
|
-
"CARET",
|
|
2507
|
-
"COMMA",
|
|
2508
|
-
"PIPE",
|
|
2509
|
-
"SEMICOLON",
|
|
2510
|
-
"TAB"
|
|
2511
|
-
],
|
|
2512
|
-
"type": "option"
|
|
2513
2478
|
}
|
|
2514
2479
|
},
|
|
2515
2480
|
"hasDynamicHelp": true,
|
|
2516
2481
|
"hiddenAliases": [],
|
|
2517
|
-
"id": "data:update:
|
|
2482
|
+
"id": "data:update:resume",
|
|
2518
2483
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2519
2484
|
"pluginName": "@salesforce/plugin-data",
|
|
2520
2485
|
"pluginType": "core",
|
|
2521
2486
|
"strict": true,
|
|
2522
|
-
"summary": "
|
|
2487
|
+
"summary": "Resume a bulk update job that you previously started. Uses Bulk API 2.0.",
|
|
2523
2488
|
"enableJsonFlag": true,
|
|
2524
2489
|
"isESM": true,
|
|
2525
2490
|
"relativePath": [
|
|
@@ -2527,30 +2492,25 @@
|
|
|
2527
2492
|
"commands",
|
|
2528
2493
|
"data",
|
|
2529
2494
|
"update",
|
|
2530
|
-
"
|
|
2495
|
+
"resume.js"
|
|
2531
2496
|
],
|
|
2532
2497
|
"aliasPermutations": [],
|
|
2533
2498
|
"permutations": [
|
|
2534
|
-
"data:update:
|
|
2535
|
-
"update:data:
|
|
2536
|
-
"update:
|
|
2537
|
-
"data:
|
|
2538
|
-
"
|
|
2539
|
-
"
|
|
2499
|
+
"data:update:resume",
|
|
2500
|
+
"update:data:resume",
|
|
2501
|
+
"update:resume:data",
|
|
2502
|
+
"data:resume:update",
|
|
2503
|
+
"resume:data:update",
|
|
2504
|
+
"resume:update:data"
|
|
2540
2505
|
]
|
|
2541
2506
|
},
|
|
2542
|
-
"data:
|
|
2543
|
-
"aliases": [
|
|
2544
|
-
"force:data:record:update"
|
|
2545
|
-
],
|
|
2507
|
+
"data:upsert:bulk": {
|
|
2508
|
+
"aliases": [],
|
|
2546
2509
|
"args": {},
|
|
2547
|
-
"
|
|
2548
|
-
"description": "Specify the record you want to update with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the update fails; the error displays how many records were found.\n\nWhen using field-value pairs for both identifying the record and specifiyng the new field values, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command updates a record in Salesforce objects by default. Use the --use-tooling-api flag to update a Tooling API object.",
|
|
2510
|
+
"description": "An upsert refers to inserting a record into a Salesforce object if the record doesn't already exist, or updating it if it does exist.\n\nWhen you execute this command, it starts a job, displays the ID, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job and batch IDs to check the status of the job with the \"<%= config.bin %> data upsert resume\" command.\n\nSee \"Prepare CSV Files\" in the Bulk API Developer Guide for details on formatting your CSV file. (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_prepare_csv.htm)",
|
|
2549
2511
|
"examples": [
|
|
2550
|
-
"
|
|
2551
|
-
"
|
|
2552
|
-
"Update the Name and Website fields of an Account record with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 001D0 --values \"Name='Acme III' Website=www.example.com\"",
|
|
2553
|
-
"Update the ExpirationDate field of a record of the Tooling API object TraceFlag using the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> -t --sobject TraceFlag --record-id 7tf170000009cUBAAY --values \"ExpirationDate=2017-12-01T00:58:04.000+0000\""
|
|
2512
|
+
"Bulk upsert records to the Contact object in your default org:\n<%= config.bin %> <%= command.id %> --sobject Contact --file files/contacts.csv --external-id Id",
|
|
2513
|
+
"Bulk upsert records to a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:\n<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/file.csv --external-id MyField__c --wait 5 --target-org my-scratch"
|
|
2554
2514
|
],
|
|
2555
2515
|
"flags": {
|
|
2556
2516
|
"json": {
|
|
@@ -2604,129 +2564,132 @@
|
|
|
2604
2564
|
"multiple": false,
|
|
2605
2565
|
"type": "option"
|
|
2606
2566
|
},
|
|
2607
|
-
"
|
|
2567
|
+
"file": {
|
|
2608
2568
|
"aliases": [
|
|
2609
|
-
"
|
|
2569
|
+
"csvfile"
|
|
2610
2570
|
],
|
|
2611
|
-
"char": "
|
|
2571
|
+
"char": "f",
|
|
2612
2572
|
"deprecateAliases": true,
|
|
2613
|
-
"name": "
|
|
2573
|
+
"name": "file",
|
|
2614
2574
|
"required": true,
|
|
2615
|
-
"summary": "
|
|
2575
|
+
"summary": "CSV file that contains the IDs of the records to update or delete.",
|
|
2616
2576
|
"hasDynamicHelp": false,
|
|
2617
2577
|
"multiple": false,
|
|
2618
2578
|
"type": "option"
|
|
2619
2579
|
},
|
|
2620
|
-
"
|
|
2580
|
+
"sobject": {
|
|
2621
2581
|
"aliases": [
|
|
2622
|
-
"
|
|
2582
|
+
"sobjecttype"
|
|
2623
2583
|
],
|
|
2624
|
-
"char": "
|
|
2584
|
+
"char": "s",
|
|
2625
2585
|
"deprecateAliases": true,
|
|
2626
|
-
"name": "
|
|
2627
|
-
"
|
|
2586
|
+
"name": "sobject",
|
|
2587
|
+
"required": true,
|
|
2588
|
+
"summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
|
|
2628
2589
|
"hasDynamicHelp": false,
|
|
2629
2590
|
"multiple": false,
|
|
2630
2591
|
"type": "option"
|
|
2631
2592
|
},
|
|
2632
|
-
"
|
|
2593
|
+
"wait": {
|
|
2633
2594
|
"char": "w",
|
|
2634
|
-
"
|
|
2635
|
-
|
|
2595
|
+
"exclusive": [
|
|
2596
|
+
"async"
|
|
2597
|
+
],
|
|
2598
|
+
"name": "wait",
|
|
2599
|
+
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
2600
|
+
"default": "0 minutes",
|
|
2601
|
+
"hasDynamicHelp": true,
|
|
2602
|
+
"multiple": false,
|
|
2603
|
+
"type": "option"
|
|
2604
|
+
},
|
|
2605
|
+
"async": {
|
|
2606
|
+
"char": "a",
|
|
2607
|
+
"deprecated": true,
|
|
2608
|
+
"exclusive": [
|
|
2609
|
+
"wait"
|
|
2610
|
+
],
|
|
2611
|
+
"name": "async",
|
|
2612
|
+
"summary": "Run the command asynchronously.",
|
|
2613
|
+
"allowNo": false,
|
|
2614
|
+
"type": "boolean"
|
|
2615
|
+
},
|
|
2616
|
+
"line-ending": {
|
|
2617
|
+
"dependsOn": [
|
|
2618
|
+
"file"
|
|
2619
|
+
],
|
|
2620
|
+
"name": "line-ending",
|
|
2621
|
+
"summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
|
|
2636
2622
|
"hasDynamicHelp": false,
|
|
2637
2623
|
"multiple": false,
|
|
2624
|
+
"options": [
|
|
2625
|
+
"CRLF",
|
|
2626
|
+
"LF"
|
|
2627
|
+
],
|
|
2638
2628
|
"type": "option"
|
|
2639
2629
|
},
|
|
2640
|
-
"
|
|
2641
|
-
"
|
|
2642
|
-
"
|
|
2643
|
-
"required": true,
|
|
2644
|
-
"summary": "Fields that you're updating, in the format of <fieldName>=<value> pairs.",
|
|
2630
|
+
"column-delimiter": {
|
|
2631
|
+
"name": "column-delimiter",
|
|
2632
|
+
"summary": "Column delimiter used in the CSV file.",
|
|
2645
2633
|
"hasDynamicHelp": false,
|
|
2646
2634
|
"multiple": false,
|
|
2635
|
+
"options": [
|
|
2636
|
+
"BACKQUOTE",
|
|
2637
|
+
"CARET",
|
|
2638
|
+
"COMMA",
|
|
2639
|
+
"PIPE",
|
|
2640
|
+
"SEMICOLON",
|
|
2641
|
+
"TAB"
|
|
2642
|
+
],
|
|
2647
2643
|
"type": "option"
|
|
2648
2644
|
},
|
|
2649
|
-
"
|
|
2645
|
+
"external-id": {
|
|
2650
2646
|
"aliases": [
|
|
2651
|
-
"
|
|
2647
|
+
"externalid"
|
|
2652
2648
|
],
|
|
2653
|
-
"char": "
|
|
2649
|
+
"char": "i",
|
|
2654
2650
|
"deprecateAliases": true,
|
|
2655
|
-
"name": "
|
|
2656
|
-
"
|
|
2657
|
-
"
|
|
2658
|
-
"
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
"deprecated": {
|
|
2662
|
-
"version": "57"
|
|
2663
|
-
},
|
|
2664
|
-
"hidden": true,
|
|
2665
|
-
"name": "perflog",
|
|
2666
|
-
"summary": "Get API performance data.",
|
|
2667
|
-
"allowNo": false,
|
|
2668
|
-
"type": "boolean"
|
|
2651
|
+
"name": "external-id",
|
|
2652
|
+
"required": true,
|
|
2653
|
+
"summary": "Name of the external ID field, or the Id field.",
|
|
2654
|
+
"hasDynamicHelp": false,
|
|
2655
|
+
"multiple": false,
|
|
2656
|
+
"type": "option"
|
|
2669
2657
|
}
|
|
2670
2658
|
},
|
|
2671
2659
|
"hasDynamicHelp": true,
|
|
2672
2660
|
"hiddenAliases": [],
|
|
2673
|
-
"id": "data:
|
|
2661
|
+
"id": "data:upsert:bulk",
|
|
2674
2662
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2675
2663
|
"pluginName": "@salesforce/plugin-data",
|
|
2676
2664
|
"pluginType": "core",
|
|
2677
2665
|
"strict": true,
|
|
2678
|
-
"summary": "
|
|
2666
|
+
"summary": "Bulk upsert records to an org from a CSV file. Uses Bulk API 2.0.",
|
|
2679
2667
|
"enableJsonFlag": true,
|
|
2680
2668
|
"isESM": true,
|
|
2681
2669
|
"relativePath": [
|
|
2682
2670
|
"lib",
|
|
2683
2671
|
"commands",
|
|
2684
2672
|
"data",
|
|
2685
|
-
"
|
|
2686
|
-
"
|
|
2687
|
-
],
|
|
2688
|
-
"aliasPermutations": [
|
|
2689
|
-
"force:data:record:update",
|
|
2690
|
-
"data:force:record:update",
|
|
2691
|
-
"data:record:force:update",
|
|
2692
|
-
"data:record:update:force",
|
|
2693
|
-
"force:record:data:update",
|
|
2694
|
-
"record:force:data:update",
|
|
2695
|
-
"record:data:force:update",
|
|
2696
|
-
"record:data:update:force",
|
|
2697
|
-
"force:record:update:data",
|
|
2698
|
-
"record:force:update:data",
|
|
2699
|
-
"record:update:force:data",
|
|
2700
|
-
"record:update:data:force",
|
|
2701
|
-
"force:data:update:record",
|
|
2702
|
-
"data:force:update:record",
|
|
2703
|
-
"data:update:force:record",
|
|
2704
|
-
"data:update:record:force",
|
|
2705
|
-
"force:update:data:record",
|
|
2706
|
-
"update:force:data:record",
|
|
2707
|
-
"update:data:force:record",
|
|
2708
|
-
"update:data:record:force",
|
|
2709
|
-
"force:update:record:data",
|
|
2710
|
-
"update:force:record:data",
|
|
2711
|
-
"update:record:force:data",
|
|
2712
|
-
"update:record:data:force"
|
|
2673
|
+
"upsert",
|
|
2674
|
+
"bulk.js"
|
|
2713
2675
|
],
|
|
2676
|
+
"aliasPermutations": [],
|
|
2714
2677
|
"permutations": [
|
|
2715
|
-
"data:
|
|
2716
|
-
"
|
|
2717
|
-
"
|
|
2718
|
-
"data:
|
|
2719
|
-
"
|
|
2720
|
-
"
|
|
2678
|
+
"data:upsert:bulk",
|
|
2679
|
+
"upsert:data:bulk",
|
|
2680
|
+
"upsert:bulk:data",
|
|
2681
|
+
"data:bulk:upsert",
|
|
2682
|
+
"bulk:data:upsert",
|
|
2683
|
+
"bulk:upsert:data"
|
|
2721
2684
|
]
|
|
2722
2685
|
},
|
|
2723
|
-
"data:
|
|
2686
|
+
"data:upsert:resume": {
|
|
2724
2687
|
"aliases": [],
|
|
2725
2688
|
"args": {},
|
|
2726
|
-
"description": "
|
|
2689
|
+
"description": "The command uses the job ID returned from the \"<%= config.bin %> data upsert bulk\" command or the most recently-run bulk upsert job.",
|
|
2727
2690
|
"examples": [
|
|
2728
|
-
"Resume a bulk
|
|
2729
|
-
"Resume the most recently run bulk
|
|
2691
|
+
"Resume a bulk upsert job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
2692
|
+
"Resume the most recently run bulk upsert job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
|
|
2730
2693
|
],
|
|
2731
2694
|
"flags": {
|
|
2732
2695
|
"json": {
|
|
@@ -2744,55 +2707,92 @@
|
|
|
2744
2707
|
"multiple": false,
|
|
2745
2708
|
"type": "option"
|
|
2746
2709
|
},
|
|
2747
|
-
"
|
|
2748
|
-
"
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2710
|
+
"target-org": {
|
|
2711
|
+
"aliases": [
|
|
2712
|
+
"targetusername",
|
|
2713
|
+
"u"
|
|
2714
|
+
],
|
|
2715
|
+
"char": "o",
|
|
2716
|
+
"deprecateAliases": true,
|
|
2717
|
+
"name": "target-org",
|
|
2718
|
+
"noCacheDefault": true,
|
|
2719
|
+
"summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
|
|
2720
|
+
"hasDynamicHelp": true,
|
|
2721
|
+
"multiple": false,
|
|
2722
|
+
"type": "option"
|
|
2752
2723
|
},
|
|
2753
2724
|
"job-id": {
|
|
2725
|
+
"aliases": [
|
|
2726
|
+
"jobid"
|
|
2727
|
+
],
|
|
2754
2728
|
"char": "i",
|
|
2729
|
+
"deprecateAliases": true,
|
|
2755
2730
|
"name": "job-id",
|
|
2756
|
-
"summary": "
|
|
2731
|
+
"summary": "ID of the job you want to resume.",
|
|
2757
2732
|
"hasDynamicHelp": false,
|
|
2758
2733
|
"multiple": false,
|
|
2759
2734
|
"type": "option"
|
|
2760
2735
|
},
|
|
2736
|
+
"use-most-recent": {
|
|
2737
|
+
"exclusive": [
|
|
2738
|
+
"job-id"
|
|
2739
|
+
],
|
|
2740
|
+
"name": "use-most-recent",
|
|
2741
|
+
"summary": "Use the ID of the most recently-run bulk job.",
|
|
2742
|
+
"allowNo": false,
|
|
2743
|
+
"type": "boolean"
|
|
2744
|
+
},
|
|
2761
2745
|
"wait": {
|
|
2762
|
-
"char": "w",
|
|
2763
2746
|
"name": "wait",
|
|
2764
|
-
"summary": "
|
|
2747
|
+
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
2765
2748
|
"default": "5 minutes",
|
|
2766
2749
|
"hasDynamicHelp": true,
|
|
2767
2750
|
"multiple": false,
|
|
2768
2751
|
"type": "option"
|
|
2752
|
+
},
|
|
2753
|
+
"api-version": {
|
|
2754
|
+
"description": "Override the api version used for api requests made by this command",
|
|
2755
|
+
"name": "api-version",
|
|
2756
|
+
"hasDynamicHelp": false,
|
|
2757
|
+
"multiple": false,
|
|
2758
|
+
"type": "option"
|
|
2759
|
+
},
|
|
2760
|
+
"loglevel": {
|
|
2761
|
+
"deprecated": {
|
|
2762
|
+
"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."
|
|
2763
|
+
},
|
|
2764
|
+
"hidden": true,
|
|
2765
|
+
"name": "loglevel",
|
|
2766
|
+
"hasDynamicHelp": false,
|
|
2767
|
+
"multiple": false,
|
|
2768
|
+
"type": "option"
|
|
2769
2769
|
}
|
|
2770
2770
|
},
|
|
2771
2771
|
"hasDynamicHelp": true,
|
|
2772
2772
|
"hiddenAliases": [],
|
|
2773
|
-
"id": "data:
|
|
2773
|
+
"id": "data:upsert:resume",
|
|
2774
2774
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2775
2775
|
"pluginName": "@salesforce/plugin-data",
|
|
2776
2776
|
"pluginType": "core",
|
|
2777
2777
|
"strict": true,
|
|
2778
|
-
"summary": "Resume a bulk
|
|
2778
|
+
"summary": "Resume a bulk upsert job that you previously started. Uses Bulk API 2.0.",
|
|
2779
2779
|
"enableJsonFlag": true,
|
|
2780
2780
|
"isESM": true,
|
|
2781
2781
|
"relativePath": [
|
|
2782
2782
|
"lib",
|
|
2783
2783
|
"commands",
|
|
2784
2784
|
"data",
|
|
2785
|
-
"
|
|
2785
|
+
"upsert",
|
|
2786
2786
|
"resume.js"
|
|
2787
2787
|
],
|
|
2788
2788
|
"aliasPermutations": [],
|
|
2789
2789
|
"permutations": [
|
|
2790
|
-
"data:
|
|
2791
|
-
"
|
|
2792
|
-
"
|
|
2793
|
-
"data:resume:
|
|
2794
|
-
"resume:data:
|
|
2795
|
-
"resume:
|
|
2790
|
+
"data:upsert:resume",
|
|
2791
|
+
"upsert:data:resume",
|
|
2792
|
+
"upsert:resume:data",
|
|
2793
|
+
"data:resume:upsert",
|
|
2794
|
+
"resume:data:upsert",
|
|
2795
|
+
"resume:upsert:data"
|
|
2796
2796
|
]
|
|
2797
2797
|
},
|
|
2798
2798
|
"force:data:bulk:delete": {
|
|
@@ -3232,5 +3232,5 @@
|
|
|
3232
3232
|
]
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
3235
|
-
"version": "4.0.
|
|
3235
|
+
"version": "4.0.40"
|
|
3236
3236
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.40",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@jsforce/jsforce-node": "^3.8.2",
|
|
124
|
-
"@oclif/multi-stage-output": "^0.8.
|
|
124
|
+
"@oclif/multi-stage-output": "^0.8.15",
|
|
125
125
|
"@salesforce/core": "^8.12.0",
|
|
126
126
|
"@salesforce/kit": "^3.2.2",
|
|
127
127
|
"@salesforce/sf-plugins-core": "^12.2.2",
|
|
@@ -130,19 +130,19 @@
|
|
|
130
130
|
"change-case": "^5.4.4",
|
|
131
131
|
"csv-parse": "^5.6.0",
|
|
132
132
|
"csv-stringify": "^6.5.2",
|
|
133
|
-
"form-data": "^4.0.
|
|
133
|
+
"form-data": "^4.0.3",
|
|
134
134
|
"terminal-link": "^3.0.0"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@oclif/core": "^4.3.0",
|
|
138
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
138
|
+
"@oclif/plugin-command-snapshot": "^5.3.1",
|
|
139
139
|
"@oclif/test": "^4.1.13",
|
|
140
140
|
"@salesforce/cli-plugins-testkit": "^5.3.39",
|
|
141
141
|
"@salesforce/dev-scripts": "^11.0.2",
|
|
142
142
|
"@salesforce/plugin-command-reference": "^3.1.54",
|
|
143
143
|
"@salesforce/types": "^1.3.0",
|
|
144
144
|
"eslint-plugin-sf-plugin": "^1.20.24",
|
|
145
|
-
"oclif": "^4.
|
|
145
|
+
"oclif": "^4.18.1",
|
|
146
146
|
"ts-node": "^10.9.2",
|
|
147
147
|
"typescript": "^5.8.3"
|
|
148
148
|
},
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"exports": "./lib/index.js",
|
|
268
268
|
"type": "module",
|
|
269
269
|
"sfdx": {
|
|
270
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
271
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
270
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.40.crt",
|
|
271
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.40.sig"
|
|
272
272
|
}
|
|
273
273
|
}
|