@salesforce/plugin-data 4.0.36 → 4.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +24 -24
  2. package/oclif.manifest.json +315 -315
  3. 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.36/src/commands/data/bulk/results.ts)_
147
+ _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/create/file.ts)_
196
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/create/record.ts)_
252
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/delete/bulk.ts)_
312
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/delete/record.ts)_
373
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/delete/resume.ts)_
412
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/export/bulk.ts)_
486
+ _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/export/resume.ts)_
522
+ _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/export/tree.ts)_
582
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/get/record.ts)_
646
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/import/bulk.ts)_
704
+ _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/import/resume.ts)_
740
+ _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/import/tree.ts)_
804
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/query.ts)_
857
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/resume.ts)_
894
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/search.ts)_
944
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/update/bulk.ts)_
1005
+ _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/update/record.ts)_
1067
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/update/resume.ts)_
1103
+ _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/upsert/bulk.ts)_
1160
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/data/upsert/resume.ts)_
1199
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/force/data/bulk/delete.ts)_
1246
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/force/data/bulk/status.ts)_
1283
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/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.36/src/commands/force/data/bulk/upsert.ts)_
1341
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.38/src/commands/force/data/bulk/upsert.ts)_
1342
1342
 
1343
1343
  <!-- commandsstop -->
@@ -2116,13 +2116,13 @@
2116
2116
  "tree:import:data"
2117
2117
  ]
2118
2118
  },
2119
- "data:update:bulk": {
2119
+ "data:upsert:bulk": {
2120
2120
  "aliases": [],
2121
2121
  "args": {},
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).",
2122
+ "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)",
2123
2123
  "examples": [
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"
2124
+ "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",
2125
+ "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"
2126
2126
  ],
2127
2127
  "flags": {
2128
2128
  "json": {
@@ -2140,57 +2140,91 @@
2140
2140
  "multiple": false,
2141
2141
  "type": "option"
2142
2142
  },
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"
2150
- },
2151
- "wait": {
2152
- "char": "w",
2153
- "name": "wait",
2154
- "summary": "Time to wait for the command to finish, in minutes.",
2143
+ "target-org": {
2144
+ "aliases": [
2145
+ "targetusername",
2146
+ "u"
2147
+ ],
2148
+ "char": "o",
2149
+ "deprecateAliases": true,
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.",
2155
2154
  "hasDynamicHelp": true,
2156
2155
  "multiple": false,
2157
2156
  "type": "option"
2158
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"
2168
+ },
2169
+ "loglevel": {
2170
+ "deprecated": {
2171
+ "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."
2172
+ },
2173
+ "hidden": true,
2174
+ "name": "loglevel",
2175
+ "hasDynamicHelp": false,
2176
+ "multiple": false,
2177
+ "type": "option"
2178
+ },
2159
2179
  "file": {
2180
+ "aliases": [
2181
+ "csvfile"
2182
+ ],
2160
2183
  "char": "f",
2184
+ "deprecateAliases": true,
2161
2185
  "name": "file",
2162
2186
  "required": true,
2163
- "summary": "CSV file that contains the Salesforce object records you want to update.",
2187
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
2164
2188
  "hasDynamicHelp": false,
2165
2189
  "multiple": false,
2166
2190
  "type": "option"
2167
2191
  },
2168
2192
  "sobject": {
2193
+ "aliases": [
2194
+ "sobjecttype"
2195
+ ],
2169
2196
  "char": "s",
2197
+ "deprecateAliases": true,
2170
2198
  "name": "sobject",
2171
2199
  "required": true,
2172
- "summary": "API name of the Salesforce object, either standard or custom, which you are updating.",
2173
- "hasDynamicHelp": false,
2174
- "multiple": false,
2175
- "type": "option"
2176
- },
2177
- "api-version": {
2178
- "description": "Override the api version used for api requests made by this command",
2179
- "name": "api-version",
2200
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
2180
2201
  "hasDynamicHelp": false,
2181
2202
  "multiple": false,
2182
2203
  "type": "option"
2183
2204
  },
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.",
2205
+ "wait": {
2206
+ "char": "w",
2207
+ "exclusive": [
2208
+ "async"
2209
+ ],
2210
+ "name": "wait",
2211
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
2212
+ "default": "0 minutes",
2190
2213
  "hasDynamicHelp": true,
2191
2214
  "multiple": false,
2192
2215
  "type": "option"
2193
2216
  },
2217
+ "async": {
2218
+ "char": "a",
2219
+ "deprecated": true,
2220
+ "exclusive": [
2221
+ "wait"
2222
+ ],
2223
+ "name": "async",
2224
+ "summary": "Run the command asynchronously.",
2225
+ "allowNo": false,
2226
+ "type": "boolean"
2227
+ },
2194
2228
  "line-ending": {
2195
2229
  "dependsOn": [
2196
2230
  "file"
@@ -2219,47 +2253,55 @@
2219
2253
  "TAB"
2220
2254
  ],
2221
2255
  "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"
2222
2269
  }
2223
2270
  },
2224
2271
  "hasDynamicHelp": true,
2225
2272
  "hiddenAliases": [],
2226
- "id": "data:update:bulk",
2273
+ "id": "data:upsert:bulk",
2227
2274
  "pluginAlias": "@salesforce/plugin-data",
2228
2275
  "pluginName": "@salesforce/plugin-data",
2229
2276
  "pluginType": "core",
2230
2277
  "strict": true,
2231
- "summary": "Bulk update records to an org from a CSV file. Uses Bulk API 2.0.",
2278
+ "summary": "Bulk upsert records to an org from a CSV file. Uses Bulk API 2.0.",
2232
2279
  "enableJsonFlag": true,
2233
2280
  "isESM": true,
2234
2281
  "relativePath": [
2235
2282
  "lib",
2236
2283
  "commands",
2237
2284
  "data",
2238
- "update",
2285
+ "upsert",
2239
2286
  "bulk.js"
2240
2287
  ],
2241
2288
  "aliasPermutations": [],
2242
2289
  "permutations": [
2243
- "data:update:bulk",
2244
- "update:data:bulk",
2245
- "update:bulk:data",
2246
- "data:bulk:update",
2247
- "bulk:data:update",
2248
- "bulk:update:data"
2290
+ "data:upsert:bulk",
2291
+ "upsert:data:bulk",
2292
+ "upsert:bulk:data",
2293
+ "data:bulk:upsert",
2294
+ "bulk:data:upsert",
2295
+ "bulk:upsert:data"
2249
2296
  ]
2250
2297
  },
2251
- "data:update:record": {
2252
- "aliases": [
2253
- "force:data:record:update"
2254
- ],
2298
+ "data:upsert:resume": {
2299
+ "aliases": [],
2255
2300
  "args": {},
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.",
2301
+ "description": "The command uses the job ID returned from the \"<%= config.bin %> data upsert bulk\" command or the most recently-run bulk upsert job.",
2258
2302
  "examples": [
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\""
2303
+ "Resume a bulk upsert job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
2304
+ "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"
2263
2305
  ],
2264
2306
  "flags": {
2265
2307
  "json": {
@@ -2286,156 +2328,92 @@
2286
2328
  "deprecateAliases": true,
2287
2329
  "name": "target-org",
2288
2330
  "noCacheDefault": true,
2289
- "required": true,
2290
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
2331
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
2291
2332
  "hasDynamicHelp": true,
2292
2333
  "multiple": false,
2293
2334
  "type": "option"
2294
2335
  },
2295
- "api-version": {
2296
- "aliases": [
2297
- "apiversion"
2298
- ],
2299
- "deprecateAliases": true,
2300
- "description": "Override the api version used for api requests made by this command",
2301
- "name": "api-version",
2302
- "hasDynamicHelp": false,
2303
- "multiple": false,
2304
- "type": "option"
2305
- },
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": {
2336
+ "job-id": {
2317
2337
  "aliases": [
2318
- "sobjecttype"
2338
+ "jobid"
2319
2339
  ],
2320
- "char": "s",
2340
+ "char": "i",
2321
2341
  "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.",
2342
+ "name": "job-id",
2343
+ "summary": "ID of the job you want to resume.",
2325
2344
  "hasDynamicHelp": false,
2326
2345
  "multiple": false,
2327
2346
  "type": "option"
2328
2347
  },
2329
- "record-id": {
2330
- "aliases": [
2331
- "sobjectid"
2348
+ "use-most-recent": {
2349
+ "exclusive": [
2350
+ "job-id"
2332
2351
  ],
2333
- "char": "i",
2334
- "deprecateAliases": true,
2335
- "name": "record-id",
2336
- "summary": "ID of the record you’re updating.",
2337
- "hasDynamicHelp": false,
2338
- "multiple": false,
2339
- "type": "option"
2352
+ "name": "use-most-recent",
2353
+ "summary": "Use the ID of the most recently-run bulk job.",
2354
+ "allowNo": false,
2355
+ "type": "boolean"
2340
2356
  },
2341
- "where": {
2342
- "char": "w",
2343
- "name": "where",
2344
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to update.",
2345
- "hasDynamicHelp": false,
2357
+ "wait": {
2358
+ "name": "wait",
2359
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
2360
+ "default": "5 minutes",
2361
+ "hasDynamicHelp": true,
2346
2362
  "multiple": false,
2347
2363
  "type": "option"
2348
2364
  },
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.",
2365
+ "api-version": {
2366
+ "description": "Override the api version used for api requests made by this command",
2367
+ "name": "api-version",
2354
2368
  "hasDynamicHelp": false,
2355
2369
  "multiple": false,
2356
2370
  "type": "option"
2357
2371
  },
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": {
2372
+ "loglevel": {
2370
2373
  "deprecated": {
2371
- "version": "57"
2374
+ "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."
2372
2375
  },
2373
2376
  "hidden": true,
2374
- "name": "perflog",
2375
- "summary": "Get API performance data.",
2376
- "allowNo": false,
2377
- "type": "boolean"
2377
+ "name": "loglevel",
2378
+ "hasDynamicHelp": false,
2379
+ "multiple": false,
2380
+ "type": "option"
2378
2381
  }
2379
2382
  },
2380
2383
  "hasDynamicHelp": true,
2381
2384
  "hiddenAliases": [],
2382
- "id": "data:update:record",
2385
+ "id": "data:upsert:resume",
2383
2386
  "pluginAlias": "@salesforce/plugin-data",
2384
2387
  "pluginName": "@salesforce/plugin-data",
2385
2388
  "pluginType": "core",
2386
2389
  "strict": true,
2387
- "summary": "Updates a single record of a Salesforce or Tooling API object.",
2390
+ "summary": "Resume a bulk upsert job that you previously started. Uses Bulk API 2.0.",
2388
2391
  "enableJsonFlag": true,
2389
2392
  "isESM": true,
2390
2393
  "relativePath": [
2391
2394
  "lib",
2392
2395
  "commands",
2393
2396
  "data",
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"
2397
+ "upsert",
2398
+ "resume.js"
2422
2399
  ],
2400
+ "aliasPermutations": [],
2423
2401
  "permutations": [
2424
- "data:update:record",
2425
- "update:data:record",
2426
- "update:record:data",
2427
- "data:record:update",
2428
- "record:data:update",
2429
- "record:update:data"
2402
+ "data:upsert:resume",
2403
+ "upsert:data:resume",
2404
+ "upsert:resume:data",
2405
+ "data:resume:upsert",
2406
+ "resume:data:upsert",
2407
+ "resume:upsert:data"
2430
2408
  ]
2431
2409
  },
2432
- "data:update:resume": {
2410
+ "data:update:bulk": {
2433
2411
  "aliases": [],
2434
2412
  "args": {},
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.",
2413
+ "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).",
2436
2414
  "examples": [
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"
2415
+ "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",
2416
+ "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"
2439
2417
  ],
2440
2418
  "flags": {
2441
2419
  "json": {
@@ -2453,38 +2431,95 @@
2453
2431
  "multiple": false,
2454
2432
  "type": "option"
2455
2433
  },
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.",
2434
+ "async": {
2435
+ "char": "a",
2436
+ "deprecated": true,
2437
+ "name": "async",
2438
+ "summary": "Don't wait for the command to complete.",
2459
2439
  "allowNo": false,
2460
2440
  "type": "boolean"
2461
2441
  },
2462
- "job-id": {
2463
- "char": "i",
2464
- "name": "job-id",
2465
- "summary": "Job ID of the bulk update.",
2466
- "hasDynamicHelp": false,
2467
- "multiple": false,
2468
- "type": "option"
2469
- },
2470
2442
  "wait": {
2471
2443
  "char": "w",
2472
2444
  "name": "wait",
2473
2445
  "summary": "Time to wait for the command to finish, in minutes.",
2474
- "default": "5 minutes",
2475
2446
  "hasDynamicHelp": true,
2476
2447
  "multiple": false,
2477
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",
2471
+ "hasDynamicHelp": false,
2472
+ "multiple": false,
2473
+ "type": "option"
2474
+ },
2475
+ "target-org": {
2476
+ "char": "o",
2477
+ "name": "target-org",
2478
+ "noCacheDefault": true,
2479
+ "required": true,
2480
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
2481
+ "hasDynamicHelp": true,
2482
+ "multiple": false,
2483
+ "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"
2478
2513
  }
2479
2514
  },
2480
2515
  "hasDynamicHelp": true,
2481
2516
  "hiddenAliases": [],
2482
- "id": "data:update:resume",
2517
+ "id": "data:update:bulk",
2483
2518
  "pluginAlias": "@salesforce/plugin-data",
2484
2519
  "pluginName": "@salesforce/plugin-data",
2485
2520
  "pluginType": "core",
2486
2521
  "strict": true,
2487
- "summary": "Resume a bulk update job that you previously started. Uses Bulk API 2.0.",
2522
+ "summary": "Bulk update records to an org from a CSV file. Uses Bulk API 2.0.",
2488
2523
  "enableJsonFlag": true,
2489
2524
  "isESM": true,
2490
2525
  "relativePath": [
@@ -2492,25 +2527,30 @@
2492
2527
  "commands",
2493
2528
  "data",
2494
2529
  "update",
2495
- "resume.js"
2530
+ "bulk.js"
2496
2531
  ],
2497
2532
  "aliasPermutations": [],
2498
2533
  "permutations": [
2499
- "data:update:resume",
2500
- "update:data:resume",
2501
- "update:resume:data",
2502
- "data:resume:update",
2503
- "resume:data:update",
2504
- "resume:update:data"
2534
+ "data:update:bulk",
2535
+ "update:data:bulk",
2536
+ "update:bulk:data",
2537
+ "data:bulk:update",
2538
+ "bulk:data:update",
2539
+ "bulk:update:data"
2505
2540
  ]
2506
2541
  },
2507
- "data:upsert:bulk": {
2508
- "aliases": [],
2542
+ "data:update:record": {
2543
+ "aliases": [
2544
+ "force:data:record:update"
2545
+ ],
2509
2546
  "args": {},
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)",
2547
+ "deprecateAliases": true,
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.",
2511
2549
  "examples": [
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"
2550
+ "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\"",
2551
+ "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'\"",
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\""
2514
2554
  ],
2515
2555
  "flags": {
2516
2556
  "json": {
@@ -2564,19 +2604,6 @@
2564
2604
  "multiple": false,
2565
2605
  "type": "option"
2566
2606
  },
2567
- "file": {
2568
- "aliases": [
2569
- "csvfile"
2570
- ],
2571
- "char": "f",
2572
- "deprecateAliases": true,
2573
- "name": "file",
2574
- "required": true,
2575
- "summary": "CSV file that contains the IDs of the records to update or delete.",
2576
- "hasDynamicHelp": false,
2577
- "multiple": false,
2578
- "type": "option"
2579
- },
2580
2607
  "sobject": {
2581
2608
  "aliases": [
2582
2609
  "sobjecttype"
@@ -2585,111 +2612,121 @@
2585
2612
  "deprecateAliases": true,
2586
2613
  "name": "sobject",
2587
2614
  "required": true,
2588
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
2615
+ "summary": "API name of the Salesforce or Tooling API object that contains the record you're updating.",
2589
2616
  "hasDynamicHelp": false,
2590
2617
  "multiple": false,
2591
2618
  "type": "option"
2592
2619
  },
2593
- "wait": {
2594
- "char": "w",
2595
- "exclusive": [
2596
- "async"
2620
+ "record-id": {
2621
+ "aliases": [
2622
+ "sobjectid"
2597
2623
  ],
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,
2624
+ "char": "i",
2625
+ "deprecateAliases": true,
2626
+ "name": "record-id",
2627
+ "summary": "ID of the record you’re updating.",
2628
+ "hasDynamicHelp": false,
2602
2629
  "multiple": false,
2603
2630
  "type": "option"
2604
2631
  },
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`.",
2632
+ "where": {
2633
+ "char": "w",
2634
+ "name": "where",
2635
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to update.",
2622
2636
  "hasDynamicHelp": false,
2623
2637
  "multiple": false,
2624
- "options": [
2625
- "CRLF",
2626
- "LF"
2627
- ],
2628
2638
  "type": "option"
2629
2639
  },
2630
- "column-delimiter": {
2631
- "name": "column-delimiter",
2632
- "summary": "Column delimiter used in the CSV file.",
2640
+ "values": {
2641
+ "char": "v",
2642
+ "name": "values",
2643
+ "required": true,
2644
+ "summary": "Fields that you're updating, in the format of <fieldName>=<value> pairs.",
2633
2645
  "hasDynamicHelp": false,
2634
2646
  "multiple": false,
2635
- "options": [
2636
- "BACKQUOTE",
2637
- "CARET",
2638
- "COMMA",
2639
- "PIPE",
2640
- "SEMICOLON",
2641
- "TAB"
2642
- ],
2643
2647
  "type": "option"
2644
2648
  },
2645
- "external-id": {
2649
+ "use-tooling-api": {
2646
2650
  "aliases": [
2647
- "externalid"
2651
+ "usetoolingapi"
2648
2652
  ],
2649
- "char": "i",
2653
+ "char": "t",
2650
2654
  "deprecateAliases": true,
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"
2655
+ "name": "use-tooling-api",
2656
+ "summary": "Use Tooling API so you can update a record in a Tooling API object.",
2657
+ "allowNo": false,
2658
+ "type": "boolean"
2659
+ },
2660
+ "perflog": {
2661
+ "deprecated": {
2662
+ "version": "57"
2663
+ },
2664
+ "hidden": true,
2665
+ "name": "perflog",
2666
+ "summary": "Get API performance data.",
2667
+ "allowNo": false,
2668
+ "type": "boolean"
2657
2669
  }
2658
2670
  },
2659
2671
  "hasDynamicHelp": true,
2660
2672
  "hiddenAliases": [],
2661
- "id": "data:upsert:bulk",
2673
+ "id": "data:update:record",
2662
2674
  "pluginAlias": "@salesforce/plugin-data",
2663
2675
  "pluginName": "@salesforce/plugin-data",
2664
2676
  "pluginType": "core",
2665
2677
  "strict": true,
2666
- "summary": "Bulk upsert records to an org from a CSV file. Uses Bulk API 2.0.",
2678
+ "summary": "Updates a single record of a Salesforce or Tooling API object.",
2667
2679
  "enableJsonFlag": true,
2668
2680
  "isESM": true,
2669
2681
  "relativePath": [
2670
2682
  "lib",
2671
2683
  "commands",
2672
2684
  "data",
2673
- "upsert",
2674
- "bulk.js"
2685
+ "update",
2686
+ "record.js"
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"
2675
2713
  ],
2676
- "aliasPermutations": [],
2677
2714
  "permutations": [
2678
- "data:upsert:bulk",
2679
- "upsert:data:bulk",
2680
- "upsert:bulk:data",
2681
- "data:bulk:upsert",
2682
- "bulk:data:upsert",
2683
- "bulk:upsert:data"
2715
+ "data:update:record",
2716
+ "update:data:record",
2717
+ "update:record:data",
2718
+ "data:record:update",
2719
+ "record:data:update",
2720
+ "record:update:data"
2684
2721
  ]
2685
2722
  },
2686
- "data:upsert:resume": {
2723
+ "data:update:resume": {
2687
2724
  "aliases": [],
2688
2725
  "args": {},
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.",
2726
+ "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.",
2690
2727
  "examples": [
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"
2728
+ "Resume a bulk update job of your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
2729
+ "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"
2693
2730
  ],
2694
2731
  "flags": {
2695
2732
  "json": {
@@ -2707,92 +2744,55 @@
2707
2744
  "multiple": false,
2708
2745
  "type": "option"
2709
2746
  },
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"
2747
+ "use-most-recent": {
2748
+ "name": "use-most-recent",
2749
+ "summary": "Use the job ID of the bulk update job that was most recently run.",
2750
+ "allowNo": false,
2751
+ "type": "boolean"
2723
2752
  },
2724
2753
  "job-id": {
2725
- "aliases": [
2726
- "jobid"
2727
- ],
2728
2754
  "char": "i",
2729
- "deprecateAliases": true,
2730
2755
  "name": "job-id",
2731
- "summary": "ID of the job you want to resume.",
2756
+ "summary": "Job ID of the bulk update.",
2732
2757
  "hasDynamicHelp": false,
2733
2758
  "multiple": false,
2734
2759
  "type": "option"
2735
2760
  },
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
- },
2745
2761
  "wait": {
2762
+ "char": "w",
2746
2763
  "name": "wait",
2747
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
2764
+ "summary": "Time to wait for the command to finish, in minutes.",
2748
2765
  "default": "5 minutes",
2749
2766
  "hasDynamicHelp": true,
2750
2767
  "multiple": false,
2751
2768
  "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:upsert:resume",
2773
+ "id": "data:update: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 upsert job that you previously started. Uses Bulk API 2.0.",
2778
+ "summary": "Resume a bulk update 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
- "upsert",
2785
+ "update",
2786
2786
  "resume.js"
2787
2787
  ],
2788
2788
  "aliasPermutations": [],
2789
2789
  "permutations": [
2790
- "data:upsert:resume",
2791
- "upsert:data:resume",
2792
- "upsert:resume:data",
2793
- "data:resume:upsert",
2794
- "resume:data:upsert",
2795
- "resume:upsert:data"
2790
+ "data:update:resume",
2791
+ "update:data:resume",
2792
+ "update:resume:data",
2793
+ "data:resume:update",
2794
+ "resume:data:update",
2795
+ "resume:update: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.36"
3235
+ "version": "4.0.38"
3236
3236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "4.0.36",
3
+ "version": "4.0.38",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -122,7 +122,7 @@
122
122
  "dependencies": {
123
123
  "@jsforce/jsforce-node": "^3.8.2",
124
124
  "@oclif/multi-stage-output": "^0.8.13",
125
- "@salesforce/core": "^8.11.2",
125
+ "@salesforce/core": "^8.12.0",
126
126
  "@salesforce/kit": "^3.2.2",
127
127
  "@salesforce/sf-plugins-core": "^12.2.2",
128
128
  "@salesforce/ts-types": "^2.0.11",
@@ -135,13 +135,13 @@
135
135
  },
136
136
  "devDependencies": {
137
137
  "@oclif/core": "^4.3.0",
138
- "@oclif/plugin-command-snapshot": "^5.2.39",
138
+ "@oclif/plugin-command-snapshot": "^5.2.40",
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
- "@salesforce/plugin-command-reference": "^3.1.52",
142
+ "@salesforce/plugin-command-reference": "^3.1.54",
143
143
  "@salesforce/types": "^1.3.0",
144
- "eslint-plugin-sf-plugin": "^1.20.23",
144
+ "eslint-plugin-sf-plugin": "^1.20.24",
145
145
  "oclif": "^4.17.46",
146
146
  "ts-node": "^10.9.2",
147
147
  "typescript": "^5.8.3"
@@ -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.36.crt",
271
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.36.sig"
270
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.38.crt",
271
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.38.sig"
272
272
  }
273
273
  }