@salesforce/plugin-data 4.0.99 → 4.0.101

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 +343 -343
  3. package/package.json +6 -6
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.99/src/commands/data/bulk/results.ts)_
147
+ _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/create/file.ts)_
196
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/create/record.ts)_
252
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/delete/bulk.ts)_
311
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/delete/record.ts)_
372
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/delete/resume.ts)_
411
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/export/bulk.ts)_
478
+ _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/export/resume.ts)_
517
+ _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/export/tree.ts)_
577
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/get/record.ts)_
641
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/import/bulk.ts)_
693
+ _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/import/resume.ts)_
729
+ _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/import/tree.ts)_
793
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/query.ts)_
846
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/resume.ts)_
883
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/search.ts)_
933
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/update/bulk.ts)_
988
+ _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/update/record.ts)_
1050
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/update/resume.ts)_
1089
+ _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/upsert/bulk.ts)_
1145
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/src/commands/data/upsert/resume.ts)_
1184
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.101/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.99/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.101/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.99/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.101/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.99/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.101/src/commands/force/data/bulk/upsert.ts)_
1327
1327
 
1328
1328
  <!-- commandsstop -->
@@ -401,90 +401,14 @@
401
401
  "search:data"
402
402
  ]
403
403
  },
404
- "data:bulk:results": {
405
- "aliases": [],
406
- "args": {},
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
- "examples": [
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"
410
- ],
411
- "flags": {
412
- "json": {
413
- "description": "Format output as json.",
414
- "helpGroup": "GLOBAL",
415
- "name": "json",
416
- "allowNo": false,
417
- "type": "boolean"
418
- },
419
- "flags-dir": {
420
- "helpGroup": "GLOBAL",
421
- "name": "flags-dir",
422
- "summary": "Import flag values from a directory.",
423
- "hasDynamicHelp": false,
424
- "multiple": false,
425
- "type": "option"
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
- },
436
- "target-org": {
437
- "char": "o",
438
- "name": "target-org",
439
- "noCacheDefault": true,
440
- "required": true,
441
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
442
- "hasDynamicHelp": true,
443
- "multiple": false,
444
- "type": "option"
445
- },
446
- "api-version": {
447
- "description": "Override the api version used for api requests made by this command",
448
- "name": "api-version",
449
- "hasDynamicHelp": false,
450
- "multiple": false,
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:delete:bulk": {
404
+ "data:create:file": {
482
405
  "aliases": [],
483
406
  "args": {},
484
- "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": "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
408
  "examples": [
486
- "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",
487
- "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
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
410
+ "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",
411
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
488
412
  ],
489
413
  "flags": {
490
414
  "json": {
@@ -503,12 +427,7 @@
503
427
  "type": "option"
504
428
  },
505
429
  "target-org": {
506
- "aliases": [
507
- "targetusername",
508
- "u"
509
- ],
510
430
  "char": "o",
511
- "deprecateAliases": true,
512
431
  "name": "target-org",
513
432
  "noCacheDefault": true,
514
433
  "required": true,
@@ -518,122 +437,77 @@
518
437
  "type": "option"
519
438
  },
520
439
  "api-version": {
521
- "aliases": [
522
- "apiversion"
523
- ],
524
- "deprecateAliases": true,
525
440
  "description": "Override the api version used for api requests made by this command",
526
441
  "name": "api-version",
527
442
  "hasDynamicHelp": false,
528
443
  "multiple": false,
529
444
  "type": "option"
530
445
  },
531
- "loglevel": {
532
- "deprecated": {
533
- "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."
534
- },
535
- "hidden": true,
536
- "name": "loglevel",
446
+ "title": {
447
+ "char": "t",
448
+ "name": "title",
449
+ "required": false,
450
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
537
451
  "hasDynamicHelp": false,
538
452
  "multiple": false,
539
453
  "type": "option"
540
454
  },
541
455
  "file": {
542
- "aliases": [
543
- "csvfile"
544
- ],
545
456
  "char": "f",
546
- "deprecateAliases": true,
547
457
  "name": "file",
548
458
  "required": true,
549
- "summary": "CSV file that contains the IDs of the records to update or delete.",
550
- "hasDynamicHelp": false,
551
- "multiple": false,
552
- "type": "option"
553
- },
554
- "sobject": {
555
- "aliases": [
556
- "sobjecttype"
557
- ],
558
- "char": "s",
559
- "deprecateAliases": true,
560
- "name": "sobject",
561
- "required": true,
562
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
459
+ "summary": "Path of file to upload.",
563
460
  "hasDynamicHelp": false,
564
461
  "multiple": false,
565
462
  "type": "option"
566
463
  },
567
- "wait": {
568
- "char": "w",
569
- "name": "wait",
570
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
571
- "default": "0 minutes",
572
- "hasDynamicHelp": true,
573
- "multiple": false,
574
- "type": "option"
575
- },
576
- "line-ending": {
577
- "dependsOn": [
578
- "file"
579
- ],
580
- "name": "line-ending",
581
- "summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
464
+ "parent-id": {
465
+ "char": "i",
466
+ "name": "parent-id",
467
+ "summary": "ID of the record to attach the file to.",
582
468
  "hasDynamicHelp": false,
583
469
  "multiple": false,
584
- "options": [
585
- "CRLF",
586
- "LF"
587
- ],
588
470
  "type": "option"
589
- },
590
- "hard-delete": {
591
- "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.",
592
- "name": "hard-delete",
593
- "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.",
594
- "allowNo": false,
595
- "type": "boolean"
596
471
  }
597
472
  },
598
473
  "hasDynamicHelp": true,
599
474
  "hiddenAliases": [],
600
- "id": "data:delete:bulk",
475
+ "id": "data:create:file",
601
476
  "pluginAlias": "@salesforce/plugin-data",
602
477
  "pluginName": "@salesforce/plugin-data",
603
478
  "pluginType": "core",
604
479
  "strict": true,
605
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
480
+ "summary": "Upload a local file to an org.",
606
481
  "enableJsonFlag": true,
607
482
  "isESM": true,
608
483
  "relativePath": [
609
484
  "lib",
610
485
  "commands",
611
486
  "data",
612
- "delete",
613
- "bulk.js"
487
+ "create",
488
+ "file.js"
614
489
  ],
615
490
  "aliasPermutations": [],
616
491
  "permutations": [
617
- "data:delete:bulk",
618
- "delete:data:bulk",
619
- "delete:bulk:data",
620
- "data:bulk:delete",
621
- "bulk:data:delete",
622
- "bulk:delete:data"
492
+ "data:create:file",
493
+ "create:data:file",
494
+ "create:file:data",
495
+ "data:file:create",
496
+ "file:data:create",
497
+ "file:create:data"
623
498
  ]
624
499
  },
625
- "data:delete:record": {
500
+ "data:create:record": {
626
501
  "aliases": [
627
- "force:data:record:delete"
502
+ "force:data:record:create"
628
503
  ],
629
504
  "args": {},
630
505
  "deprecateAliases": true,
631
- "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.",
506
+ "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.",
632
507
  "examples": [
633
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
634
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
635
- "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",
636
- "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"
508
+ "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\"",
509
+ "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",
510
+ "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\""
637
511
  ],
638
512
  "flags": {
639
513
  "json": {
@@ -695,27 +569,16 @@
695
569
  "deprecateAliases": true,
696
570
  "name": "sobject",
697
571
  "required": true,
698
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
699
- "hasDynamicHelp": false,
700
- "multiple": false,
701
- "type": "option"
702
- },
703
- "record-id": {
704
- "aliases": [
705
- "sobjectid"
706
- ],
707
- "char": "i",
708
- "deprecateAliases": true,
709
- "name": "record-id",
710
- "summary": "ID of the record you’re deleting.",
572
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
711
573
  "hasDynamicHelp": false,
712
574
  "multiple": false,
713
575
  "type": "option"
714
576
  },
715
- "where": {
716
- "char": "w",
717
- "name": "where",
718
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
577
+ "values": {
578
+ "char": "v",
579
+ "name": "values",
580
+ "required": true,
581
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
719
582
  "hasDynamicHelp": false,
720
583
  "multiple": false,
721
584
  "type": "option"
@@ -727,7 +590,7 @@
727
590
  "char": "t",
728
591
  "deprecateAliases": true,
729
592
  "name": "use-tooling-api",
730
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
593
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
731
594
  "allowNo": false,
732
595
  "type": "boolean"
733
596
  },
@@ -745,64 +608,62 @@
745
608
  },
746
609
  "hasDynamicHelp": true,
747
610
  "hiddenAliases": [],
748
- "id": "data:delete:record",
611
+ "id": "data:create:record",
749
612
  "pluginAlias": "@salesforce/plugin-data",
750
613
  "pluginName": "@salesforce/plugin-data",
751
614
  "pluginType": "core",
752
615
  "strict": true,
753
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
616
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
754
617
  "enableJsonFlag": true,
755
618
  "isESM": true,
756
619
  "relativePath": [
757
620
  "lib",
758
621
  "commands",
759
622
  "data",
760
- "delete",
623
+ "create",
761
624
  "record.js"
762
625
  ],
763
626
  "aliasPermutations": [
764
- "force:data:record:delete",
765
- "data:force:record:delete",
766
- "data:record:force:delete",
767
- "data:record:delete:force",
768
- "force:record:data:delete",
769
- "record:force:data:delete",
770
- "record:data:force:delete",
771
- "record:data:delete:force",
772
- "force:record:delete:data",
773
- "record:force:delete:data",
774
- "record:delete:force:data",
775
- "record:delete:data:force",
776
- "force:data:delete:record",
777
- "data:force:delete:record",
778
- "data:delete:force:record",
779
- "data:delete:record:force",
780
- "force:delete:data:record",
781
- "delete:force:data:record",
782
- "delete:data:force:record",
783
- "delete:data:record:force",
784
- "force:delete:record:data",
785
- "delete:force:record:data",
786
- "delete:record:force:data",
787
- "delete:record:data:force"
788
- ],
789
- "permutations": [
790
- "data:delete:record",
791
- "delete:data:record",
792
- "delete:record:data",
793
- "data:record:delete",
794
- "record:data:delete",
795
- "record:delete:data"
796
- ]
797
- },
798
- "data:delete:resume": {
799
- "aliases": [],
800
- "args": {},
801
- "deprecateAliases": true,
802
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
627
+ "force:data:record:create",
628
+ "data:force:record:create",
629
+ "data:record:force:create",
630
+ "data:record:create:force",
631
+ "force:record:data:create",
632
+ "record:force:data:create",
633
+ "record:data:force:create",
634
+ "record:data:create:force",
635
+ "force:record:create:data",
636
+ "record:force:create:data",
637
+ "record:create:force:data",
638
+ "record:create:data:force",
639
+ "force:data:create:record",
640
+ "data:force:create:record",
641
+ "data:create:force:record",
642
+ "data:create:record:force",
643
+ "force:create:data:record",
644
+ "create:force:data:record",
645
+ "create:data:force:record",
646
+ "create:data:record:force",
647
+ "force:create:record:data",
648
+ "create:force:record:data",
649
+ "create:record:force:data",
650
+ "create:record:data:force"
651
+ ],
652
+ "permutations": [
653
+ "data:create:record",
654
+ "create:data:record",
655
+ "create:record:data",
656
+ "data:record:create",
657
+ "record:data:create",
658
+ "record:create:data"
659
+ ]
660
+ },
661
+ "data:bulk:results": {
662
+ "aliases": [],
663
+ "args": {},
664
+ "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.",
803
665
  "examples": [
804
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
805
- "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"
666
+ "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"
806
667
  ],
807
668
  "flags": {
808
669
  "json": {
@@ -820,45 +681,21 @@
820
681
  "multiple": false,
821
682
  "type": "option"
822
683
  },
823
- "target-org": {
824
- "aliases": [
825
- "targetusername",
826
- "u"
827
- ],
828
- "char": "o",
829
- "deprecateAliases": true,
830
- "name": "target-org",
831
- "noCacheDefault": true,
832
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
833
- "hasDynamicHelp": true,
834
- "multiple": false,
835
- "type": "option"
836
- },
837
684
  "job-id": {
838
- "aliases": [
839
- "jobid"
840
- ],
841
685
  "char": "i",
842
- "deprecateAliases": true,
843
686
  "name": "job-id",
844
- "summary": "ID of the job you want to resume.",
687
+ "required": true,
688
+ "summary": "Job ID of the bulk job.",
845
689
  "hasDynamicHelp": false,
846
690
  "multiple": false,
847
691
  "type": "option"
848
692
  },
849
- "use-most-recent": {
850
- "exclusive": [
851
- "job-id"
852
- ],
853
- "name": "use-most-recent",
854
- "summary": "Use the ID of the most recently-run bulk job.",
855
- "allowNo": false,
856
- "type": "boolean"
857
- },
858
- "wait": {
859
- "name": "wait",
860
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
861
- "default": "5 minutes",
693
+ "target-org": {
694
+ "char": "o",
695
+ "name": "target-org",
696
+ "noCacheDefault": true,
697
+ "required": true,
698
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
862
699
  "hasDynamicHelp": true,
863
700
  "multiple": false,
864
701
  "type": "option"
@@ -869,53 +706,42 @@
869
706
  "hasDynamicHelp": false,
870
707
  "multiple": false,
871
708
  "type": "option"
872
- },
873
- "loglevel": {
874
- "deprecated": {
875
- "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."
876
- },
877
- "hidden": true,
878
- "name": "loglevel",
879
- "hasDynamicHelp": false,
880
- "multiple": false,
881
- "type": "option"
882
709
  }
883
710
  },
884
711
  "hasDynamicHelp": true,
885
712
  "hiddenAliases": [],
886
- "id": "data:delete:resume",
713
+ "id": "data:bulk:results",
887
714
  "pluginAlias": "@salesforce/plugin-data",
888
715
  "pluginName": "@salesforce/plugin-data",
889
716
  "pluginType": "core",
890
717
  "strict": true,
891
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
718
+ "summary": "Get the results of a bulk ingest job that you previously ran.",
892
719
  "enableJsonFlag": true,
893
720
  "isESM": true,
894
721
  "relativePath": [
895
722
  "lib",
896
723
  "commands",
897
724
  "data",
898
- "delete",
899
- "resume.js"
725
+ "bulk",
726
+ "results.js"
900
727
  ],
901
728
  "aliasPermutations": [],
902
729
  "permutations": [
903
- "data:delete:resume",
904
- "delete:data:resume",
905
- "delete:resume:data",
906
- "data:resume:delete",
907
- "resume:data:delete",
908
- "resume:delete:data"
730
+ "data:bulk:results",
731
+ "bulk:data:results",
732
+ "bulk:results:data",
733
+ "data:results:bulk",
734
+ "results:data:bulk",
735
+ "results:bulk:data"
909
736
  ]
910
737
  },
911
- "data:create:file": {
738
+ "data:delete:bulk": {
912
739
  "aliases": [],
913
740
  "args": {},
914
- "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.",
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.",
915
742
  "examples": [
916
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
917
- "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",
918
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
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"
919
745
  ],
920
746
  "flags": {
921
747
  "json": {
@@ -934,7 +760,12 @@
934
760
  "type": "option"
935
761
  },
936
762
  "target-org": {
763
+ "aliases": [
764
+ "targetusername",
765
+ "u"
766
+ ],
937
767
  "char": "o",
768
+ "deprecateAliases": true,
938
769
  "name": "target-org",
939
770
  "noCacheDefault": true,
940
771
  "required": true,
@@ -944,77 +775,122 @@
944
775
  "type": "option"
945
776
  },
946
777
  "api-version": {
778
+ "aliases": [
779
+ "apiversion"
780
+ ],
781
+ "deprecateAliases": true,
947
782
  "description": "Override the api version used for api requests made by this command",
948
783
  "name": "api-version",
949
784
  "hasDynamicHelp": false,
950
785
  "multiple": false,
951
786
  "type": "option"
952
787
  },
953
- "title": {
954
- "char": "t",
955
- "name": "title",
956
- "required": false,
957
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
788
+ "loglevel": {
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",
958
794
  "hasDynamicHelp": false,
959
795
  "multiple": false,
960
796
  "type": "option"
961
797
  },
962
798
  "file": {
799
+ "aliases": [
800
+ "csvfile"
801
+ ],
963
802
  "char": "f",
803
+ "deprecateAliases": true,
964
804
  "name": "file",
965
805
  "required": true,
966
- "summary": "Path of file to upload.",
806
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
967
807
  "hasDynamicHelp": false,
968
808
  "multiple": false,
969
809
  "type": "option"
970
810
  },
971
- "parent-id": {
972
- "char": "i",
973
- "name": "parent-id",
974
- "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.",
975
820
  "hasDynamicHelp": false,
976
821
  "multiple": false,
977
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`.",
839
+ "hasDynamicHelp": false,
840
+ "multiple": false,
841
+ "options": [
842
+ "CRLF",
843
+ "LF"
844
+ ],
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"
978
853
  }
979
854
  },
980
855
  "hasDynamicHelp": true,
981
856
  "hiddenAliases": [],
982
- "id": "data:create:file",
857
+ "id": "data:delete:bulk",
983
858
  "pluginAlias": "@salesforce/plugin-data",
984
859
  "pluginName": "@salesforce/plugin-data",
985
860
  "pluginType": "core",
986
861
  "strict": true,
987
- "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.",
988
863
  "enableJsonFlag": true,
989
864
  "isESM": true,
990
865
  "relativePath": [
991
866
  "lib",
992
867
  "commands",
993
868
  "data",
994
- "create",
995
- "file.js"
869
+ "delete",
870
+ "bulk.js"
996
871
  ],
997
872
  "aliasPermutations": [],
998
873
  "permutations": [
999
- "data:create:file",
1000
- "create:data:file",
1001
- "create:file:data",
1002
- "data:file:create",
1003
- "file:data:create",
1004
- "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"
1005
880
  ]
1006
881
  },
1007
- "data:create:record": {
882
+ "data:delete:record": {
1008
883
  "aliases": [
1009
- "force:data:record:create"
884
+ "force:data:record:delete"
1010
885
  ],
1011
886
  "args": {},
1012
887
  "deprecateAliases": true,
1013
- "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.",
1014
889
  "examples": [
1015
- "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\"",
1016
- "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",
1017
- "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"
1018
894
  ],
1019
895
  "flags": {
1020
896
  "json": {
@@ -1076,16 +952,27 @@
1076
952
  "deprecateAliases": true,
1077
953
  "name": "sobject",
1078
954
  "required": true,
1079
- "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.",
1080
956
  "hasDynamicHelp": false,
1081
957
  "multiple": false,
1082
958
  "type": "option"
1083
959
  },
1084
- "values": {
1085
- "char": "v",
1086
- "name": "values",
1087
- "required": true,
1088
- "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.",
1089
976
  "hasDynamicHelp": false,
1090
977
  "multiple": false,
1091
978
  "type": "option"
@@ -1097,7 +984,7 @@
1097
984
  "char": "t",
1098
985
  "deprecateAliases": true,
1099
986
  "name": "use-tooling-api",
1100
- "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.",
1101
988
  "allowNo": false,
1102
989
  "type": "boolean"
1103
990
  },
@@ -1115,54 +1002,167 @@
1115
1002
  },
1116
1003
  "hasDynamicHelp": true,
1117
1004
  "hiddenAliases": [],
1118
- "id": "data:create:record",
1005
+ "id": "data:delete:record",
1119
1006
  "pluginAlias": "@salesforce/plugin-data",
1120
1007
  "pluginName": "@salesforce/plugin-data",
1121
1008
  "pluginType": "core",
1122
1009
  "strict": true,
1123
- "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.",
1124
1011
  "enableJsonFlag": true,
1125
1012
  "isESM": true,
1126
1013
  "relativePath": [
1127
1014
  "lib",
1128
1015
  "commands",
1129
1016
  "data",
1130
- "create",
1017
+ "delete",
1131
1018
  "record.js"
1132
1019
  ],
1133
1020
  "aliasPermutations": [
1134
- "force:data:record:create",
1135
- "data:force:record:create",
1136
- "data:record:force:create",
1137
- "data:record:create:force",
1138
- "force:record:data:create",
1139
- "record:force:data:create",
1140
- "record:data:force:create",
1141
- "record:data:create:force",
1142
- "force:record:create:data",
1143
- "record:force:create:data",
1144
- "record:create:force:data",
1145
- "record:create:data:force",
1146
- "force:data:create:record",
1147
- "data:force:create:record",
1148
- "data:create:force:record",
1149
- "data:create:record:force",
1150
- "force:create:data:record",
1151
- "create:force:data:record",
1152
- "create:data:force:record",
1153
- "create:data:record:force",
1154
- "force:create:record:data",
1155
- "create:force:record:data",
1156
- "create:record:force:data",
1157
- "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"
1158
1045
  ],
1159
1046
  "permutations": [
1160
- "data:create:record",
1161
- "create:data:record",
1162
- "create:record:data",
1163
- "data:record:create",
1164
- "record:data:create",
1165
- "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"
1053
+ ]
1054
+ },
1055
+ "data:delete:resume": {
1056
+ "aliases": [],
1057
+ "args": {},
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.",
1060
+ "examples": [
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"
1063
+ ],
1064
+ "flags": {
1065
+ "json": {
1066
+ "description": "Format output as json.",
1067
+ "helpGroup": "GLOBAL",
1068
+ "name": "json",
1069
+ "allowNo": false,
1070
+ "type": "boolean"
1071
+ },
1072
+ "flags-dir": {
1073
+ "helpGroup": "GLOBAL",
1074
+ "name": "flags-dir",
1075
+ "summary": "Import flag values from a directory.",
1076
+ "hasDynamicHelp": false,
1077
+ "multiple": false,
1078
+ "type": "option"
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
+ },
1094
+ "job-id": {
1095
+ "aliases": [
1096
+ "jobid"
1097
+ ],
1098
+ "char": "i",
1099
+ "deprecateAliases": true,
1100
+ "name": "job-id",
1101
+ "summary": "ID of the job you want to resume.",
1102
+ "hasDynamicHelp": false,
1103
+ "multiple": false,
1104
+ "type": "option"
1105
+ },
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",
1119
+ "hasDynamicHelp": true,
1120
+ "multiple": false,
1121
+ "type": "option"
1122
+ },
1123
+ "api-version": {
1124
+ "description": "Override the api version used for api requests made by this command",
1125
+ "name": "api-version",
1126
+ "hasDynamicHelp": false,
1127
+ "multiple": false,
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
+ }
1140
+ },
1141
+ "hasDynamicHelp": true,
1142
+ "hiddenAliases": [],
1143
+ "id": "data:delete:resume",
1144
+ "pluginAlias": "@salesforce/plugin-data",
1145
+ "pluginName": "@salesforce/plugin-data",
1146
+ "pluginType": "core",
1147
+ "strict": true,
1148
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1149
+ "enableJsonFlag": true,
1150
+ "isESM": true,
1151
+ "relativePath": [
1152
+ "lib",
1153
+ "commands",
1154
+ "data",
1155
+ "delete",
1156
+ "resume.js"
1157
+ ],
1158
+ "aliasPermutations": [],
1159
+ "permutations": [
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.99"
3169
+ "version": "4.0.101"
3170
3170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "4.0.99",
3
+ "version": "4.0.101",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -123,8 +123,8 @@
123
123
  "enableO11y": true,
124
124
  "o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
125
125
  "dependencies": {
126
- "@jsforce/jsforce-node": "^3.10.14",
127
- "@oclif/multi-stage-output": "^0.8.36",
126
+ "@jsforce/jsforce-node": "^3.10.15",
127
+ "@oclif/multi-stage-output": "^0.8.41",
128
128
  "@salesforce/core": "^8.29.1",
129
129
  "@salesforce/kit": "^3.2.6",
130
130
  "@salesforce/sf-plugins-core": "^12.2.14",
@@ -144,7 +144,7 @@
144
144
  "@oclif/test": "^4.1.18",
145
145
  "@salesforce/cli-plugins-testkit": "^5.3.55",
146
146
  "@salesforce/dev-scripts": "^11.0.4",
147
- "@salesforce/plugin-command-reference": "^3.1.94",
147
+ "@salesforce/plugin-command-reference": "^3.1.101",
148
148
  "@salesforce/types": "^1.6.0",
149
149
  "eslint-plugin-sf-plugin": "^1.20.33",
150
150
  "oclif": "^4.23.0",
@@ -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.99.crt",
278
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.99.sig"
277
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.101.crt",
278
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.101.sig"
279
279
  }
280
280
  }