@salesforce/plugin-data 4.0.90 → 4.0.92

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 +327 -327
  3. package/package.json +9 -9
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.90/src/commands/data/bulk/results.ts)_
147
+ _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/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.90/src/commands/data/create/file.ts)_
196
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/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.90/src/commands/data/create/record.ts)_
252
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/create/record.ts)_
253
253
 
254
254
  ## `sf data delete bulk`
255
255
 
@@ -308,7 +308,7 @@ FLAG DESCRIPTIONS
308
308
  and can be enabled only by a system administrator.
309
309
  ```
310
310
 
311
- _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/delete/bulk.ts)_
311
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/delete/bulk.ts)_
312
312
 
313
313
  ## `sf data delete record`
314
314
 
@@ -369,7 +369,7 @@ EXAMPLES
369
369
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
370
370
  ```
371
371
 
372
- _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/delete/record.ts)_
372
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/delete/record.ts)_
373
373
 
374
374
  ## `sf data delete resume`
375
375
 
@@ -408,7 +408,7 @@ EXAMPLES
408
408
  $ sf data delete resume --use-most-recent --target-org my-scratch
409
409
  ```
410
410
 
411
- _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/delete/resume.ts)_
411
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/delete/resume.ts)_
412
412
 
413
413
  ## `sf data export bulk`
414
414
 
@@ -475,7 +475,7 @@ EXAMPLES
475
475
  --result-format json --wait 10 --all-rows
476
476
  ```
477
477
 
478
- _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/export/bulk.ts)_
478
+ _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/export/bulk.ts)_
479
479
 
480
480
  ## `sf data export resume`
481
481
 
@@ -514,7 +514,7 @@ EXAMPLES
514
514
  $ sf data export resume --use-most-recent
515
515
  ```
516
516
 
517
- _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/export/resume.ts)_
517
+ _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/export/resume.ts)_
518
518
 
519
519
  ## `sf data export tree`
520
520
 
@@ -574,7 +574,7 @@ EXAMPLES
574
574
  my-scratch
575
575
  ```
576
576
 
577
- _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/export/tree.ts)_
577
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/export/tree.ts)_
578
578
 
579
579
  ## `sf data get record`
580
580
 
@@ -638,7 +638,7 @@ EXAMPLES
638
638
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
639
639
  ```
640
640
 
641
- _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/get/record.ts)_
641
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/get/record.ts)_
642
642
 
643
643
  ## `sf data import bulk`
644
644
 
@@ -690,7 +690,7 @@ EXAMPLES
690
690
  $ sf data import bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
691
691
  ```
692
692
 
693
- _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/import/bulk.ts)_
693
+ _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/import/bulk.ts)_
694
694
 
695
695
  ## `sf data import resume`
696
696
 
@@ -726,7 +726,7 @@ EXAMPLES
726
726
  $ sf data import resume --use-most-recent --target-org my-scratch
727
727
  ```
728
728
 
729
- _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/import/resume.ts)_
729
+ _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/import/resume.ts)_
730
730
 
731
731
  ## `sf data import tree`
732
732
 
@@ -790,7 +790,7 @@ FLAG DESCRIPTIONS
790
790
  - files(array) - Files: An array of files paths to load
791
791
  ```
792
792
 
793
- _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/import/tree.ts)_
793
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/import/tree.ts)_
794
794
 
795
795
  ## `sf data query`
796
796
 
@@ -843,7 +843,7 @@ EXAMPLES
843
843
  $ sf data query --query "SELECT Name FROM ApexTrigger" --use-tooling-api
844
844
  ```
845
845
 
846
- _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/query.ts)_
846
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/query.ts)_
847
847
 
848
848
  ## `sf data resume`
849
849
 
@@ -880,7 +880,7 @@ EXAMPLES
880
880
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
881
881
  ```
882
882
 
883
- _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/resume.ts)_
883
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/resume.ts)_
884
884
 
885
885
  ## `sf data search`
886
886
 
@@ -930,7 +930,7 @@ EXAMPLES
930
930
  $ sf data search --file query.txt --target-org my-scratch --result-format csv
931
931
  ```
932
932
 
933
- _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/search.ts)_
933
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/search.ts)_
934
934
 
935
935
  ## `sf data update bulk`
936
936
 
@@ -985,7 +985,7 @@ EXAMPLES
985
985
  $ sf data update bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
986
986
  ```
987
987
 
988
- _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/update/bulk.ts)_
988
+ _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/update/bulk.ts)_
989
989
 
990
990
  ## `sf data update record`
991
991
 
@@ -1047,7 +1047,7 @@ EXAMPLES
1047
1047
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
1048
1048
  ```
1049
1049
 
1050
- _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/update/record.ts)_
1050
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/update/record.ts)_
1051
1051
 
1052
1052
  ## `sf data update resume`
1053
1053
 
@@ -1086,7 +1086,7 @@ EXAMPLES
1086
1086
  $ sf data update resume --use-most-recent
1087
1087
  ```
1088
1088
 
1089
- _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/update/resume.ts)_
1089
+ _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/update/resume.ts)_
1090
1090
 
1091
1091
  ## `sf data upsert bulk`
1092
1092
 
@@ -1142,7 +1142,7 @@ EXAMPLES
1142
1142
  my-scratch
1143
1143
  ```
1144
1144
 
1145
- _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/upsert/bulk.ts)_
1145
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/upsert/bulk.ts)_
1146
1146
 
1147
1147
  ## `sf data upsert resume`
1148
1148
 
@@ -1181,7 +1181,7 @@ EXAMPLES
1181
1181
  $ sf data upsert resume --use-most-recent --target-org my-scratch
1182
1182
  ```
1183
1183
 
1184
- _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/data/upsert/resume.ts)_
1184
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/data/upsert/resume.ts)_
1185
1185
 
1186
1186
  ## `sf force data bulk delete`
1187
1187
 
@@ -1228,7 +1228,7 @@ EXAMPLES
1228
1228
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
1229
1229
  ```
1230
1230
 
1231
- _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/force/data/bulk/delete.ts)_
1231
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/force/data/bulk/delete.ts)_
1232
1232
 
1233
1233
  ## `sf force data bulk status`
1234
1234
 
@@ -1265,7 +1265,7 @@ EXAMPLES
1265
1265
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
1266
1266
  ```
1267
1267
 
1268
- _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/force/data/bulk/status.ts)_
1268
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/force/data/bulk/status.ts)_
1269
1269
 
1270
1270
  ## `sf force data bulk upsert`
1271
1271
 
@@ -1323,6 +1323,6 @@ EXAMPLES
1323
1323
  --target-org my-scratch
1324
1324
  ```
1325
1325
 
1326
- _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.90/src/commands/force/data/bulk/upsert.ts)_
1326
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.92/src/commands/force/data/bulk/upsert.ts)_
1327
1327
 
1328
1328
  <!-- commandsstop -->
@@ -401,13 +401,12 @@
401
401
  "search:data"
402
402
  ]
403
403
  },
404
- "data:delete:bulk": {
404
+ "data:bulk:results": {
405
405
  "aliases": [],
406
406
  "args": {},
407
- "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\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 ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
407
+ "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
408
408
  "examples": [
409
- "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
410
- "Bulk delete records from 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/delete.csv --wait 5 --target-org my-scratch"
409
+ "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
411
410
  ],
412
411
  "flags": {
413
412
  "json": {
@@ -425,13 +424,17 @@
425
424
  "multiple": false,
426
425
  "type": "option"
427
426
  },
427
+ "job-id": {
428
+ "char": "i",
429
+ "name": "job-id",
430
+ "required": true,
431
+ "summary": "Job ID of the bulk job.",
432
+ "hasDynamicHelp": false,
433
+ "multiple": false,
434
+ "type": "option"
435
+ },
428
436
  "target-org": {
429
- "aliases": [
430
- "targetusername",
431
- "u"
432
- ],
433
437
  "char": "o",
434
- "deprecateAliases": true,
435
438
  "name": "target-org",
436
439
  "noCacheDefault": true,
437
440
  "required": true,
@@ -441,122 +444,147 @@
441
444
  "type": "option"
442
445
  },
443
446
  "api-version": {
444
- "aliases": [
445
- "apiversion"
446
- ],
447
- "deprecateAliases": true,
448
447
  "description": "Override the api version used for api requests made by this command",
449
448
  "name": "api-version",
450
449
  "hasDynamicHelp": false,
451
450
  "multiple": false,
452
451
  "type": "option"
452
+ }
453
+ },
454
+ "hasDynamicHelp": true,
455
+ "hiddenAliases": [],
456
+ "id": "data:bulk:results",
457
+ "pluginAlias": "@salesforce/plugin-data",
458
+ "pluginName": "@salesforce/plugin-data",
459
+ "pluginType": "core",
460
+ "strict": true,
461
+ "summary": "Get the results of a bulk ingest job that you previously ran.",
462
+ "enableJsonFlag": true,
463
+ "isESM": true,
464
+ "relativePath": [
465
+ "lib",
466
+ "commands",
467
+ "data",
468
+ "bulk",
469
+ "results.js"
470
+ ],
471
+ "aliasPermutations": [],
472
+ "permutations": [
473
+ "data:bulk:results",
474
+ "bulk:data:results",
475
+ "bulk:results:data",
476
+ "data:results:bulk",
477
+ "results:data:bulk",
478
+ "results:bulk:data"
479
+ ]
480
+ },
481
+ "data:create:file": {
482
+ "aliases": [],
483
+ "args": {},
484
+ "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
485
+ "examples": [
486
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
487
+ "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
488
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
489
+ ],
490
+ "flags": {
491
+ "json": {
492
+ "description": "Format output as json.",
493
+ "helpGroup": "GLOBAL",
494
+ "name": "json",
495
+ "allowNo": false,
496
+ "type": "boolean"
453
497
  },
454
- "loglevel": {
455
- "deprecated": {
456
- "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."
457
- },
458
- "hidden": true,
459
- "name": "loglevel",
498
+ "flags-dir": {
499
+ "helpGroup": "GLOBAL",
500
+ "name": "flags-dir",
501
+ "summary": "Import flag values from a directory.",
460
502
  "hasDynamicHelp": false,
461
503
  "multiple": false,
462
504
  "type": "option"
463
505
  },
464
- "file": {
465
- "aliases": [
466
- "csvfile"
467
- ],
468
- "char": "f",
469
- "deprecateAliases": true,
470
- "name": "file",
506
+ "target-org": {
507
+ "char": "o",
508
+ "name": "target-org",
509
+ "noCacheDefault": true,
471
510
  "required": true,
472
- "summary": "CSV file that contains the IDs of the records to update or delete.",
473
- "hasDynamicHelp": false,
511
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
512
+ "hasDynamicHelp": true,
474
513
  "multiple": false,
475
514
  "type": "option"
476
515
  },
477
- "sobject": {
478
- "aliases": [
479
- "sobjecttype"
480
- ],
481
- "char": "s",
482
- "deprecateAliases": true,
483
- "name": "sobject",
484
- "required": true,
485
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
516
+ "api-version": {
517
+ "description": "Override the api version used for api requests made by this command",
518
+ "name": "api-version",
486
519
  "hasDynamicHelp": false,
487
520
  "multiple": false,
488
521
  "type": "option"
489
522
  },
490
- "wait": {
491
- "char": "w",
492
- "name": "wait",
493
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
494
- "default": "0 minutes",
495
- "hasDynamicHelp": true,
523
+ "title": {
524
+ "char": "t",
525
+ "name": "title",
526
+ "required": false,
527
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
528
+ "hasDynamicHelp": false,
496
529
  "multiple": false,
497
530
  "type": "option"
498
531
  },
499
- "line-ending": {
500
- "dependsOn": [
501
- "file"
502
- ],
503
- "name": "line-ending",
504
- "summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
532
+ "file": {
533
+ "char": "f",
534
+ "name": "file",
535
+ "required": true,
536
+ "summary": "Path of file to upload.",
505
537
  "hasDynamicHelp": false,
506
538
  "multiple": false,
507
- "options": [
508
- "CRLF",
509
- "LF"
510
- ],
511
539
  "type": "option"
512
540
  },
513
- "hard-delete": {
514
- "description": "You must have the \"Bulk API Hard Delete\" system permission to use this flag. The permission is disabled by default and can be enabled only by a system administrator.",
515
- "name": "hard-delete",
516
- "summary": "Mark the records as immediately eligible for deletion by your org. If you don't specify this flag, the deleted records go into the Recycle Bin.",
517
- "allowNo": false,
518
- "type": "boolean"
541
+ "parent-id": {
542
+ "char": "i",
543
+ "name": "parent-id",
544
+ "summary": "ID of the record to attach the file to.",
545
+ "hasDynamicHelp": false,
546
+ "multiple": false,
547
+ "type": "option"
519
548
  }
520
549
  },
521
550
  "hasDynamicHelp": true,
522
551
  "hiddenAliases": [],
523
- "id": "data:delete:bulk",
552
+ "id": "data:create:file",
524
553
  "pluginAlias": "@salesforce/plugin-data",
525
554
  "pluginName": "@salesforce/plugin-data",
526
555
  "pluginType": "core",
527
556
  "strict": true,
528
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
557
+ "summary": "Upload a local file to an org.",
529
558
  "enableJsonFlag": true,
530
559
  "isESM": true,
531
560
  "relativePath": [
532
561
  "lib",
533
562
  "commands",
534
563
  "data",
535
- "delete",
536
- "bulk.js"
564
+ "create",
565
+ "file.js"
537
566
  ],
538
567
  "aliasPermutations": [],
539
568
  "permutations": [
540
- "data:delete:bulk",
541
- "delete:data:bulk",
542
- "delete:bulk:data",
543
- "data:bulk:delete",
544
- "bulk:data:delete",
545
- "bulk:delete:data"
569
+ "data:create:file",
570
+ "create:data:file",
571
+ "create:file:data",
572
+ "data:file:create",
573
+ "file:data:create",
574
+ "file:create:data"
546
575
  ]
547
576
  },
548
- "data:delete:record": {
577
+ "data:create:record": {
549
578
  "aliases": [
550
- "force:data:record:delete"
579
+ "force:data:record:create"
551
580
  ],
552
581
  "args": {},
553
582
  "deprecateAliases": true,
554
- "description": "Specify the record you want to delete 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 delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, 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 deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
583
+ "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, 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 inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
555
584
  "examples": [
556
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
557
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
558
- "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
559
- "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
585
+ "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
586
+ "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
587
+ "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
560
588
  ],
561
589
  "flags": {
562
590
  "json": {
@@ -618,27 +646,16 @@
618
646
  "deprecateAliases": true,
619
647
  "name": "sobject",
620
648
  "required": true,
621
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
622
- "hasDynamicHelp": false,
623
- "multiple": false,
624
- "type": "option"
625
- },
626
- "record-id": {
627
- "aliases": [
628
- "sobjectid"
629
- ],
630
- "char": "i",
631
- "deprecateAliases": true,
632
- "name": "record-id",
633
- "summary": "ID of the record you’re deleting.",
649
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
634
650
  "hasDynamicHelp": false,
635
651
  "multiple": false,
636
652
  "type": "option"
637
653
  },
638
- "where": {
639
- "char": "w",
640
- "name": "where",
641
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
654
+ "values": {
655
+ "char": "v",
656
+ "name": "values",
657
+ "required": true,
658
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
642
659
  "hasDynamicHelp": false,
643
660
  "multiple": false,
644
661
  "type": "option"
@@ -650,7 +667,7 @@
650
667
  "char": "t",
651
668
  "deprecateAliases": true,
652
669
  "name": "use-tooling-api",
653
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
670
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
654
671
  "allowNo": false,
655
672
  "type": "boolean"
656
673
  },
@@ -668,64 +685,63 @@
668
685
  },
669
686
  "hasDynamicHelp": true,
670
687
  "hiddenAliases": [],
671
- "id": "data:delete:record",
688
+ "id": "data:create:record",
672
689
  "pluginAlias": "@salesforce/plugin-data",
673
690
  "pluginName": "@salesforce/plugin-data",
674
691
  "pluginType": "core",
675
692
  "strict": true,
676
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
693
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
677
694
  "enableJsonFlag": true,
678
695
  "isESM": true,
679
696
  "relativePath": [
680
697
  "lib",
681
698
  "commands",
682
699
  "data",
683
- "delete",
700
+ "create",
684
701
  "record.js"
685
702
  ],
686
703
  "aliasPermutations": [
687
- "force:data:record:delete",
688
- "data:force:record:delete",
689
- "data:record:force:delete",
690
- "data:record:delete:force",
691
- "force:record:data:delete",
692
- "record:force:data:delete",
693
- "record:data:force:delete",
694
- "record:data:delete:force",
695
- "force:record:delete:data",
696
- "record:force:delete:data",
697
- "record:delete:force:data",
698
- "record:delete:data:force",
699
- "force:data:delete:record",
700
- "data:force:delete:record",
701
- "data:delete:force:record",
702
- "data:delete:record:force",
703
- "force:delete:data:record",
704
- "delete:force:data:record",
705
- "delete:data:force:record",
706
- "delete:data:record:force",
707
- "force:delete:record:data",
708
- "delete:force:record:data",
709
- "delete:record:force:data",
710
- "delete:record:data:force"
704
+ "force:data:record:create",
705
+ "data:force:record:create",
706
+ "data:record:force:create",
707
+ "data:record:create:force",
708
+ "force:record:data:create",
709
+ "record:force:data:create",
710
+ "record:data:force:create",
711
+ "record:data:create:force",
712
+ "force:record:create:data",
713
+ "record:force:create:data",
714
+ "record:create:force:data",
715
+ "record:create:data:force",
716
+ "force:data:create:record",
717
+ "data:force:create:record",
718
+ "data:create:force:record",
719
+ "data:create:record:force",
720
+ "force:create:data:record",
721
+ "create:force:data:record",
722
+ "create:data:force:record",
723
+ "create:data:record:force",
724
+ "force:create:record:data",
725
+ "create:force:record:data",
726
+ "create:record:force:data",
727
+ "create:record:data:force"
711
728
  ],
712
729
  "permutations": [
713
- "data:delete:record",
714
- "delete:data:record",
715
- "delete:record:data",
716
- "data:record:delete",
717
- "record:data:delete",
718
- "record:delete:data"
730
+ "data:create:record",
731
+ "create:data:record",
732
+ "create:record:data",
733
+ "data:record:create",
734
+ "record:data:create",
735
+ "record:create:data"
719
736
  ]
720
737
  },
721
- "data:delete:resume": {
738
+ "data:delete:bulk": {
722
739
  "aliases": [],
723
740
  "args": {},
724
- "deprecateAliases": true,
725
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
741
+ "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\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 ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
726
742
  "examples": [
727
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
728
- "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
743
+ "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
744
+ "Bulk delete records from 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/delete.csv --wait 5 --target-org my-scratch"
729
745
  ],
730
746
  "flags": {
731
747
  "json": {
@@ -752,41 +768,17 @@
752
768
  "deprecateAliases": true,
753
769
  "name": "target-org",
754
770
  "noCacheDefault": true,
755
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
771
+ "required": true,
772
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
756
773
  "hasDynamicHelp": true,
757
774
  "multiple": false,
758
775
  "type": "option"
759
776
  },
760
- "job-id": {
777
+ "api-version": {
761
778
  "aliases": [
762
- "jobid"
779
+ "apiversion"
763
780
  ],
764
- "char": "i",
765
781
  "deprecateAliases": true,
766
- "name": "job-id",
767
- "summary": "ID of the job you want to resume.",
768
- "hasDynamicHelp": false,
769
- "multiple": false,
770
- "type": "option"
771
- },
772
- "use-most-recent": {
773
- "exclusive": [
774
- "job-id"
775
- ],
776
- "name": "use-most-recent",
777
- "summary": "Use the ID of the most recently-run bulk job.",
778
- "allowNo": false,
779
- "type": "boolean"
780
- },
781
- "wait": {
782
- "name": "wait",
783
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
784
- "default": "5 minutes",
785
- "hasDynamicHelp": true,
786
- "multiple": false,
787
- "type": "option"
788
- },
789
- "api-version": {
790
782
  "description": "Override the api version used for api requests made by this command",
791
783
  "name": "api-version",
792
784
  "hasDynamicHelp": false,
@@ -794,150 +786,111 @@
794
786
  "type": "option"
795
787
  },
796
788
  "loglevel": {
797
- "deprecated": {
798
- "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."
799
- },
800
- "hidden": true,
801
- "name": "loglevel",
802
- "hasDynamicHelp": false,
803
- "multiple": false,
804
- "type": "option"
805
- }
806
- },
807
- "hasDynamicHelp": true,
808
- "hiddenAliases": [],
809
- "id": "data:delete:resume",
810
- "pluginAlias": "@salesforce/plugin-data",
811
- "pluginName": "@salesforce/plugin-data",
812
- "pluginType": "core",
813
- "strict": true,
814
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
815
- "enableJsonFlag": true,
816
- "isESM": true,
817
- "relativePath": [
818
- "lib",
819
- "commands",
820
- "data",
821
- "delete",
822
- "resume.js"
823
- ],
824
- "aliasPermutations": [],
825
- "permutations": [
826
- "data:delete:resume",
827
- "delete:data:resume",
828
- "delete:resume:data",
829
- "data:resume:delete",
830
- "resume:data:delete",
831
- "resume:delete:data"
832
- ]
833
- },
834
- "data:create:file": {
835
- "aliases": [],
836
- "args": {},
837
- "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
838
- "examples": [
839
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
840
- "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
841
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
842
- ],
843
- "flags": {
844
- "json": {
845
- "description": "Format output as json.",
846
- "helpGroup": "GLOBAL",
847
- "name": "json",
848
- "allowNo": false,
849
- "type": "boolean"
850
- },
851
- "flags-dir": {
852
- "helpGroup": "GLOBAL",
853
- "name": "flags-dir",
854
- "summary": "Import flag values from a directory.",
855
- "hasDynamicHelp": false,
856
- "multiple": false,
857
- "type": "option"
858
- },
859
- "target-org": {
860
- "char": "o",
861
- "name": "target-org",
862
- "noCacheDefault": true,
863
- "required": true,
864
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
865
- "hasDynamicHelp": true,
866
- "multiple": false,
867
- "type": "option"
868
- },
869
- "api-version": {
870
- "description": "Override the api version used for api requests made by this command",
871
- "name": "api-version",
872
- "hasDynamicHelp": false,
873
- "multiple": false,
874
- "type": "option"
875
- },
876
- "title": {
877
- "char": "t",
878
- "name": "title",
879
- "required": false,
880
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
789
+ "deprecated": {
790
+ "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."
791
+ },
792
+ "hidden": true,
793
+ "name": "loglevel",
881
794
  "hasDynamicHelp": false,
882
795
  "multiple": false,
883
796
  "type": "option"
884
797
  },
885
798
  "file": {
799
+ "aliases": [
800
+ "csvfile"
801
+ ],
886
802
  "char": "f",
803
+ "deprecateAliases": true,
887
804
  "name": "file",
888
805
  "required": true,
889
- "summary": "Path of file to upload.",
806
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
890
807
  "hasDynamicHelp": false,
891
808
  "multiple": false,
892
809
  "type": "option"
893
810
  },
894
- "parent-id": {
895
- "char": "i",
896
- "name": "parent-id",
897
- "summary": "ID of the record to attach the file to.",
811
+ "sobject": {
812
+ "aliases": [
813
+ "sobjecttype"
814
+ ],
815
+ "char": "s",
816
+ "deprecateAliases": true,
817
+ "name": "sobject",
818
+ "required": true,
819
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
820
+ "hasDynamicHelp": false,
821
+ "multiple": false,
822
+ "type": "option"
823
+ },
824
+ "wait": {
825
+ "char": "w",
826
+ "name": "wait",
827
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
828
+ "default": "0 minutes",
829
+ "hasDynamicHelp": true,
830
+ "multiple": false,
831
+ "type": "option"
832
+ },
833
+ "line-ending": {
834
+ "dependsOn": [
835
+ "file"
836
+ ],
837
+ "name": "line-ending",
838
+ "summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
898
839
  "hasDynamicHelp": false,
899
840
  "multiple": false,
841
+ "options": [
842
+ "CRLF",
843
+ "LF"
844
+ ],
900
845
  "type": "option"
846
+ },
847
+ "hard-delete": {
848
+ "description": "You must have the \"Bulk API Hard Delete\" system permission to use this flag. The permission is disabled by default and can be enabled only by a system administrator.",
849
+ "name": "hard-delete",
850
+ "summary": "Mark the records as immediately eligible for deletion by your org. If you don't specify this flag, the deleted records go into the Recycle Bin.",
851
+ "allowNo": false,
852
+ "type": "boolean"
901
853
  }
902
854
  },
903
855
  "hasDynamicHelp": true,
904
856
  "hiddenAliases": [],
905
- "id": "data:create:file",
857
+ "id": "data:delete:bulk",
906
858
  "pluginAlias": "@salesforce/plugin-data",
907
859
  "pluginName": "@salesforce/plugin-data",
908
860
  "pluginType": "core",
909
861
  "strict": true,
910
- "summary": "Upload a local file to an org.",
862
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
911
863
  "enableJsonFlag": true,
912
864
  "isESM": true,
913
865
  "relativePath": [
914
866
  "lib",
915
867
  "commands",
916
868
  "data",
917
- "create",
918
- "file.js"
869
+ "delete",
870
+ "bulk.js"
919
871
  ],
920
872
  "aliasPermutations": [],
921
873
  "permutations": [
922
- "data:create:file",
923
- "create:data:file",
924
- "create:file:data",
925
- "data:file:create",
926
- "file:data:create",
927
- "file:create:data"
874
+ "data:delete:bulk",
875
+ "delete:data:bulk",
876
+ "delete:bulk:data",
877
+ "data:bulk:delete",
878
+ "bulk:data:delete",
879
+ "bulk:delete:data"
928
880
  ]
929
881
  },
930
- "data:create:record": {
882
+ "data:delete:record": {
931
883
  "aliases": [
932
- "force:data:record:create"
884
+ "force:data:record:delete"
933
885
  ],
934
886
  "args": {},
935
887
  "deprecateAliases": true,
936
- "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, 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 inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
888
+ "description": "Specify the record you want to delete 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 delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, 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 deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
937
889
  "examples": [
938
- "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
939
- "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
940
- "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
890
+ "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
891
+ "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
892
+ "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
893
+ "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
941
894
  ],
942
895
  "flags": {
943
896
  "json": {
@@ -999,16 +952,27 @@
999
952
  "deprecateAliases": true,
1000
953
  "name": "sobject",
1001
954
  "required": true,
1002
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
955
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
1003
956
  "hasDynamicHelp": false,
1004
957
  "multiple": false,
1005
958
  "type": "option"
1006
959
  },
1007
- "values": {
1008
- "char": "v",
1009
- "name": "values",
1010
- "required": true,
1011
- "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
960
+ "record-id": {
961
+ "aliases": [
962
+ "sobjectid"
963
+ ],
964
+ "char": "i",
965
+ "deprecateAliases": true,
966
+ "name": "record-id",
967
+ "summary": "ID of the record you’re deleting.",
968
+ "hasDynamicHelp": false,
969
+ "multiple": false,
970
+ "type": "option"
971
+ },
972
+ "where": {
973
+ "char": "w",
974
+ "name": "where",
975
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
1012
976
  "hasDynamicHelp": false,
1013
977
  "multiple": false,
1014
978
  "type": "option"
@@ -1020,7 +984,7 @@
1020
984
  "char": "t",
1021
985
  "deprecateAliases": true,
1022
986
  "name": "use-tooling-api",
1023
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
987
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
1024
988
  "allowNo": false,
1025
989
  "type": "boolean"
1026
990
  },
@@ -1038,62 +1002,64 @@
1038
1002
  },
1039
1003
  "hasDynamicHelp": true,
1040
1004
  "hiddenAliases": [],
1041
- "id": "data:create:record",
1005
+ "id": "data:delete:record",
1042
1006
  "pluginAlias": "@salesforce/plugin-data",
1043
1007
  "pluginName": "@salesforce/plugin-data",
1044
1008
  "pluginType": "core",
1045
1009
  "strict": true,
1046
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
1010
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
1047
1011
  "enableJsonFlag": true,
1048
1012
  "isESM": true,
1049
1013
  "relativePath": [
1050
1014
  "lib",
1051
1015
  "commands",
1052
1016
  "data",
1053
- "create",
1017
+ "delete",
1054
1018
  "record.js"
1055
1019
  ],
1056
1020
  "aliasPermutations": [
1057
- "force:data:record:create",
1058
- "data:force:record:create",
1059
- "data:record:force:create",
1060
- "data:record:create:force",
1061
- "force:record:data:create",
1062
- "record:force:data:create",
1063
- "record:data:force:create",
1064
- "record:data:create:force",
1065
- "force:record:create:data",
1066
- "record:force:create:data",
1067
- "record:create:force:data",
1068
- "record:create:data:force",
1069
- "force:data:create:record",
1070
- "data:force:create:record",
1071
- "data:create:force:record",
1072
- "data:create:record:force",
1073
- "force:create:data:record",
1074
- "create:force:data:record",
1075
- "create:data:force:record",
1076
- "create:data:record:force",
1077
- "force:create:record:data",
1078
- "create:force:record:data",
1079
- "create:record:force:data",
1080
- "create:record:data:force"
1021
+ "force:data:record:delete",
1022
+ "data:force:record:delete",
1023
+ "data:record:force:delete",
1024
+ "data:record:delete:force",
1025
+ "force:record:data:delete",
1026
+ "record:force:data:delete",
1027
+ "record:data:force:delete",
1028
+ "record:data:delete:force",
1029
+ "force:record:delete:data",
1030
+ "record:force:delete:data",
1031
+ "record:delete:force:data",
1032
+ "record:delete:data:force",
1033
+ "force:data:delete:record",
1034
+ "data:force:delete:record",
1035
+ "data:delete:force:record",
1036
+ "data:delete:record:force",
1037
+ "force:delete:data:record",
1038
+ "delete:force:data:record",
1039
+ "delete:data:force:record",
1040
+ "delete:data:record:force",
1041
+ "force:delete:record:data",
1042
+ "delete:force:record:data",
1043
+ "delete:record:force:data",
1044
+ "delete:record:data:force"
1081
1045
  ],
1082
1046
  "permutations": [
1083
- "data:create:record",
1084
- "create:data:record",
1085
- "create:record:data",
1086
- "data:record:create",
1087
- "record:data:create",
1088
- "record:create:data"
1047
+ "data:delete:record",
1048
+ "delete:data:record",
1049
+ "delete:record:data",
1050
+ "data:record:delete",
1051
+ "record:data:delete",
1052
+ "record:delete:data"
1089
1053
  ]
1090
1054
  },
1091
- "data:bulk:results": {
1055
+ "data:delete:resume": {
1092
1056
  "aliases": [],
1093
1057
  "args": {},
1094
- "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
1058
+ "deprecateAliases": true,
1059
+ "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
1095
1060
  "examples": [
1096
- "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
1061
+ "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
1062
+ "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
1097
1063
  ],
1098
1064
  "flags": {
1099
1065
  "json": {
@@ -1111,21 +1077,45 @@
1111
1077
  "multiple": false,
1112
1078
  "type": "option"
1113
1079
  },
1080
+ "target-org": {
1081
+ "aliases": [
1082
+ "targetusername",
1083
+ "u"
1084
+ ],
1085
+ "char": "o",
1086
+ "deprecateAliases": true,
1087
+ "name": "target-org",
1088
+ "noCacheDefault": true,
1089
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
1090
+ "hasDynamicHelp": true,
1091
+ "multiple": false,
1092
+ "type": "option"
1093
+ },
1114
1094
  "job-id": {
1095
+ "aliases": [
1096
+ "jobid"
1097
+ ],
1115
1098
  "char": "i",
1099
+ "deprecateAliases": true,
1116
1100
  "name": "job-id",
1117
- "required": true,
1118
- "summary": "Job ID of the bulk job.",
1101
+ "summary": "ID of the job you want to resume.",
1119
1102
  "hasDynamicHelp": false,
1120
1103
  "multiple": false,
1121
1104
  "type": "option"
1122
1105
  },
1123
- "target-org": {
1124
- "char": "o",
1125
- "name": "target-org",
1126
- "noCacheDefault": true,
1127
- "required": true,
1128
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1106
+ "use-most-recent": {
1107
+ "exclusive": [
1108
+ "job-id"
1109
+ ],
1110
+ "name": "use-most-recent",
1111
+ "summary": "Use the ID of the most recently-run bulk job.",
1112
+ "allowNo": false,
1113
+ "type": "boolean"
1114
+ },
1115
+ "wait": {
1116
+ "name": "wait",
1117
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
1118
+ "default": "5 minutes",
1129
1119
  "hasDynamicHelp": true,
1130
1120
  "multiple": false,
1131
1121
  "type": "option"
@@ -1136,33 +1126,43 @@
1136
1126
  "hasDynamicHelp": false,
1137
1127
  "multiple": false,
1138
1128
  "type": "option"
1129
+ },
1130
+ "loglevel": {
1131
+ "deprecated": {
1132
+ "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."
1133
+ },
1134
+ "hidden": true,
1135
+ "name": "loglevel",
1136
+ "hasDynamicHelp": false,
1137
+ "multiple": false,
1138
+ "type": "option"
1139
1139
  }
1140
1140
  },
1141
1141
  "hasDynamicHelp": true,
1142
1142
  "hiddenAliases": [],
1143
- "id": "data:bulk:results",
1143
+ "id": "data:delete:resume",
1144
1144
  "pluginAlias": "@salesforce/plugin-data",
1145
1145
  "pluginName": "@salesforce/plugin-data",
1146
1146
  "pluginType": "core",
1147
1147
  "strict": true,
1148
- "summary": "Get the results of a bulk ingest job that you previously ran.",
1148
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1149
1149
  "enableJsonFlag": true,
1150
1150
  "isESM": true,
1151
1151
  "relativePath": [
1152
1152
  "lib",
1153
1153
  "commands",
1154
1154
  "data",
1155
- "bulk",
1156
- "results.js"
1155
+ "delete",
1156
+ "resume.js"
1157
1157
  ],
1158
1158
  "aliasPermutations": [],
1159
1159
  "permutations": [
1160
- "data:bulk:results",
1161
- "bulk:data:results",
1162
- "bulk:results:data",
1163
- "data:results:bulk",
1164
- "results:data:bulk",
1165
- "results:bulk:data"
1160
+ "data:delete:resume",
1161
+ "delete:data:resume",
1162
+ "delete:resume:data",
1163
+ "data:resume:delete",
1164
+ "resume:data:delete",
1165
+ "resume:delete:data"
1166
1166
  ]
1167
1167
  },
1168
1168
  "data:export:bulk": {
@@ -3166,5 +3166,5 @@
3166
3166
  ]
3167
3167
  }
3168
3168
  },
3169
- "version": "4.0.90"
3169
+ "version": "4.0.92"
3170
3170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "4.0.90",
3
+ "version": "4.0.92",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -132,22 +132,22 @@
132
132
  "ansis": "^3.16.0",
133
133
  "change-case": "^5.4.4",
134
134
  "csv-parse": "^5.6.0",
135
- "csv-stringify": "^6.6.0",
135
+ "csv-stringify": "^6.7.0",
136
136
  "form-data": "^4.0.5",
137
137
  "terminal-link": "^3.0.0",
138
- "undici": "^7.24.7",
138
+ "undici": "^7.25.0",
139
139
  "zod": "^4.3.6"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@oclif/core": "^4.10.5",
143
- "@oclif/plugin-command-snapshot": "^5.3.12",
144
- "@oclif/test": "^4.1.17",
145
- "@salesforce/cli-plugins-testkit": "^5.3.50",
143
+ "@oclif/plugin-command-snapshot": "^5.3.15",
144
+ "@oclif/test": "^4.1.18",
145
+ "@salesforce/cli-plugins-testkit": "^5.3.53",
146
146
  "@salesforce/dev-scripts": "^11.0.4",
147
147
  "@salesforce/plugin-command-reference": "^3.1.86",
148
148
  "@salesforce/types": "^1.6.0",
149
149
  "eslint-plugin-sf-plugin": "^1.20.33",
150
- "oclif": "^4.22.96",
150
+ "oclif": "^4.23.0",
151
151
  "ts-node": "^10.9.2",
152
152
  "typescript": "^5.8.3"
153
153
  },
@@ -274,7 +274,7 @@
274
274
  "exports": "./lib/index.js",
275
275
  "type": "module",
276
276
  "sfdx": {
277
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.90.crt",
278
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.90.sig"
277
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.92.crt",
278
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.92.sig"
279
279
  }
280
280
  }