@salesforce/plugin-data 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/lib/api/data/tree/exportApi.js +1 -1
- package/lib/api/data/tree/exportApi.js.map +1 -1
- package/lib/api/data/tree/importApi.js +1 -1
- package/lib/api/data/tree/importApi.js.map +1 -1
- package/lib/api/data/tree/importFiles.js +1 -1
- package/lib/api/data/tree/importFiles.js.map +1 -1
- package/lib/api/data/tree/importPlan.js.map +1 -1
- package/lib/{bulkOperationCommand.js → bulkOperationBase.js} +12 -5
- package/lib/bulkOperationBase.js.map +1 -0
- package/lib/bulkUtils.js +76 -0
- package/lib/bulkUtils.js.map +1 -1
- package/lib/commands/data/create/record.js +1 -1
- package/lib/commands/data/create/record.js.map +1 -1
- package/lib/commands/data/delete/bulk.js +1 -1
- package/lib/commands/data/delete/bulk.js.map +1 -1
- package/lib/commands/data/delete/record.js +1 -1
- package/lib/commands/data/delete/record.js.map +1 -1
- package/lib/commands/data/delete/resume.js +1 -1
- package/lib/commands/data/delete/resume.js.map +1 -1
- package/lib/commands/data/get/record.js +1 -1
- package/lib/commands/data/get/record.js.map +1 -1
- package/lib/commands/data/query.js +1 -1
- package/lib/commands/data/query.js.map +1 -1
- package/lib/commands/data/update/record.js +1 -1
- package/lib/commands/data/update/record.js.map +1 -1
- package/lib/commands/data/upsert/bulk.js +1 -1
- package/lib/commands/data/upsert/bulk.js.map +1 -1
- package/lib/commands/data/upsert/resume.js +1 -1
- package/lib/commands/data/upsert/resume.js.map +1 -1
- package/lib/{dataCommand.js → dataUtils.js} +1 -1
- package/lib/dataUtils.js.map +1 -0
- package/lib/export.js +1 -1
- package/lib/export.js.map +1 -1
- package/lib/queryUtils.js +1 -1
- package/lib/queryUtils.js.map +1 -1
- package/lib/reporters/humanReporter.js +1 -1
- package/lib/reporters/humanReporter.js.map +1 -1
- package/lib/reporters/reporters.js +1 -1
- package/lib/reporters/reporters.js.map +1 -1
- package/lib/{resumeBulkCommand.js → resumeBulkBaseCommand.js} +2 -3
- package/lib/resumeBulkBaseCommand.js.map +1 -0
- package/lib/types.js +15 -1
- package/lib/types.js.map +1 -1
- package/messages/messages.md +25 -0
- package/oclif.manifest.json +300 -300
- package/package.json +8 -8
- package/lib/BulkBaseCommand.js +0 -86
- package/lib/BulkBaseCommand.js.map +0 -1
- package/lib/bulkOperationCommand.js.map +0 -1
- package/lib/dataCommand.js.map +0 -1
- package/lib/dataSoqlQueryTypes.js +0 -22
- package/lib/dataSoqlQueryTypes.js.map +0 -1
- package/lib/resumeBulkCommand.js.map +0 -1
- package/messages/bulk.base.command.md +0 -24
package/oclif.manifest.json
CHANGED
|
@@ -331,14 +331,13 @@
|
|
|
331
331
|
"resume:data"
|
|
332
332
|
]
|
|
333
333
|
},
|
|
334
|
-
"data:
|
|
334
|
+
"data:delete:bulk": {
|
|
335
335
|
"aliases": [],
|
|
336
336
|
"args": {},
|
|
337
|
-
"description": "
|
|
337
|
+
"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.",
|
|
338
338
|
"examples": [
|
|
339
|
-
"
|
|
340
|
-
"
|
|
341
|
-
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
339
|
+
"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",
|
|
340
|
+
"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"
|
|
342
341
|
],
|
|
343
342
|
"flags": {
|
|
344
343
|
"json": {
|
|
@@ -357,7 +356,12 @@
|
|
|
357
356
|
"type": "option"
|
|
358
357
|
},
|
|
359
358
|
"target-org": {
|
|
359
|
+
"aliases": [
|
|
360
|
+
"targetusername",
|
|
361
|
+
"u"
|
|
362
|
+
],
|
|
360
363
|
"char": "o",
|
|
364
|
+
"deprecateAliases": true,
|
|
361
365
|
"name": "target-org",
|
|
362
366
|
"noCacheDefault": true,
|
|
363
367
|
"required": true,
|
|
@@ -367,77 +371,127 @@
|
|
|
367
371
|
"type": "option"
|
|
368
372
|
},
|
|
369
373
|
"api-version": {
|
|
374
|
+
"aliases": [
|
|
375
|
+
"apiversion"
|
|
376
|
+
],
|
|
377
|
+
"deprecateAliases": true,
|
|
370
378
|
"description": "Override the api version used for api requests made by this command",
|
|
371
379
|
"name": "api-version",
|
|
372
380
|
"hasDynamicHelp": false,
|
|
373
381
|
"multiple": false,
|
|
374
382
|
"type": "option"
|
|
375
383
|
},
|
|
376
|
-
"
|
|
377
|
-
"
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"
|
|
384
|
+
"loglevel": {
|
|
385
|
+
"deprecated": {
|
|
386
|
+
"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."
|
|
387
|
+
},
|
|
388
|
+
"hidden": true,
|
|
389
|
+
"name": "loglevel",
|
|
381
390
|
"hasDynamicHelp": false,
|
|
382
391
|
"multiple": false,
|
|
383
392
|
"type": "option"
|
|
384
393
|
},
|
|
385
394
|
"file": {
|
|
395
|
+
"aliases": [
|
|
396
|
+
"csvfile"
|
|
397
|
+
],
|
|
386
398
|
"char": "f",
|
|
399
|
+
"deprecateAliases": true,
|
|
387
400
|
"name": "file",
|
|
388
401
|
"required": true,
|
|
389
|
-
"summary": "
|
|
402
|
+
"summary": "CSV file that contains the IDs of the records to update or delete.",
|
|
390
403
|
"hasDynamicHelp": false,
|
|
391
404
|
"multiple": false,
|
|
392
405
|
"type": "option"
|
|
393
406
|
},
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
|
|
407
|
+
"sobject": {
|
|
408
|
+
"aliases": [
|
|
409
|
+
"sobjecttype"
|
|
410
|
+
],
|
|
411
|
+
"char": "s",
|
|
412
|
+
"deprecateAliases": true,
|
|
413
|
+
"name": "sobject",
|
|
414
|
+
"required": true,
|
|
415
|
+
"summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
|
|
398
416
|
"hasDynamicHelp": false,
|
|
399
417
|
"multiple": false,
|
|
400
418
|
"type": "option"
|
|
419
|
+
},
|
|
420
|
+
"wait": {
|
|
421
|
+
"char": "w",
|
|
422
|
+
"exclusive": [
|
|
423
|
+
"async"
|
|
424
|
+
],
|
|
425
|
+
"name": "wait",
|
|
426
|
+
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
427
|
+
"default": "0 minutes",
|
|
428
|
+
"hasDynamicHelp": true,
|
|
429
|
+
"multiple": false,
|
|
430
|
+
"type": "option"
|
|
431
|
+
},
|
|
432
|
+
"async": {
|
|
433
|
+
"char": "a",
|
|
434
|
+
"exclusive": [
|
|
435
|
+
"wait"
|
|
436
|
+
],
|
|
437
|
+
"name": "async",
|
|
438
|
+
"summary": "Run the command asynchronously.",
|
|
439
|
+
"allowNo": false,
|
|
440
|
+
"type": "boolean"
|
|
441
|
+
},
|
|
442
|
+
"verbose": {
|
|
443
|
+
"name": "verbose",
|
|
444
|
+
"summary": "Print verbose output of failed records if result is available.",
|
|
445
|
+
"allowNo": false,
|
|
446
|
+
"type": "boolean"
|
|
447
|
+
},
|
|
448
|
+
"hard-delete": {
|
|
449
|
+
"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.",
|
|
450
|
+
"name": "hard-delete",
|
|
451
|
+
"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.",
|
|
452
|
+
"allowNo": false,
|
|
453
|
+
"type": "boolean"
|
|
401
454
|
}
|
|
402
455
|
},
|
|
403
456
|
"hasDynamicHelp": true,
|
|
404
457
|
"hiddenAliases": [],
|
|
405
|
-
"id": "data:
|
|
458
|
+
"id": "data:delete:bulk",
|
|
406
459
|
"pluginAlias": "@salesforce/plugin-data",
|
|
407
460
|
"pluginName": "@salesforce/plugin-data",
|
|
408
461
|
"pluginType": "core",
|
|
409
462
|
"strict": true,
|
|
410
|
-
"summary": "
|
|
463
|
+
"summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
|
|
411
464
|
"enableJsonFlag": true,
|
|
412
465
|
"isESM": true,
|
|
413
466
|
"relativePath": [
|
|
414
467
|
"lib",
|
|
415
468
|
"commands",
|
|
416
469
|
"data",
|
|
417
|
-
"
|
|
418
|
-
"
|
|
470
|
+
"delete",
|
|
471
|
+
"bulk.js"
|
|
419
472
|
],
|
|
420
473
|
"aliasPermutations": [],
|
|
421
474
|
"permutations": [
|
|
422
|
-
"data:
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"data:
|
|
426
|
-
"
|
|
427
|
-
"
|
|
475
|
+
"data:delete:bulk",
|
|
476
|
+
"delete:data:bulk",
|
|
477
|
+
"delete:bulk:data",
|
|
478
|
+
"data:bulk:delete",
|
|
479
|
+
"bulk:data:delete",
|
|
480
|
+
"bulk:delete:data"
|
|
428
481
|
]
|
|
429
482
|
},
|
|
430
|
-
"data:
|
|
483
|
+
"data:delete:record": {
|
|
431
484
|
"aliases": [
|
|
432
|
-
"force:data:record:
|
|
485
|
+
"force:data:record:delete"
|
|
433
486
|
],
|
|
434
487
|
"args": {},
|
|
435
488
|
"deprecateAliases": true,
|
|
436
|
-
"description": "
|
|
489
|
+
"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.",
|
|
437
490
|
"examples": [
|
|
438
|
-
"
|
|
439
|
-
"
|
|
440
|
-
"
|
|
491
|
+
"Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
|
|
492
|
+
"Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
|
|
493
|
+
"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",
|
|
494
|
+
"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"
|
|
441
495
|
],
|
|
442
496
|
"flags": {
|
|
443
497
|
"json": {
|
|
@@ -499,16 +553,27 @@
|
|
|
499
553
|
"deprecateAliases": true,
|
|
500
554
|
"name": "sobject",
|
|
501
555
|
"required": true,
|
|
502
|
-
"summary": "API name of the Salesforce or Tooling API object that you're
|
|
556
|
+
"summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
|
|
503
557
|
"hasDynamicHelp": false,
|
|
504
558
|
"multiple": false,
|
|
505
559
|
"type": "option"
|
|
506
560
|
},
|
|
507
|
-
"
|
|
508
|
-
"
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
"
|
|
561
|
+
"record-id": {
|
|
562
|
+
"aliases": [
|
|
563
|
+
"sobjectid"
|
|
564
|
+
],
|
|
565
|
+
"char": "i",
|
|
566
|
+
"deprecateAliases": true,
|
|
567
|
+
"name": "record-id",
|
|
568
|
+
"summary": "ID of the record you’re deleting.",
|
|
569
|
+
"hasDynamicHelp": false,
|
|
570
|
+
"multiple": false,
|
|
571
|
+
"type": "option"
|
|
572
|
+
},
|
|
573
|
+
"where": {
|
|
574
|
+
"char": "w",
|
|
575
|
+
"name": "where",
|
|
576
|
+
"summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
|
|
512
577
|
"hasDynamicHelp": false,
|
|
513
578
|
"multiple": false,
|
|
514
579
|
"type": "option"
|
|
@@ -520,7 +585,7 @@
|
|
|
520
585
|
"char": "t",
|
|
521
586
|
"deprecateAliases": true,
|
|
522
587
|
"name": "use-tooling-api",
|
|
523
|
-
"summary": "Use Tooling API so you can
|
|
588
|
+
"summary": "Use Tooling API so you can delete a record from a Tooling API object.",
|
|
524
589
|
"allowNo": false,
|
|
525
590
|
"type": "boolean"
|
|
526
591
|
},
|
|
@@ -538,63 +603,64 @@
|
|
|
538
603
|
},
|
|
539
604
|
"hasDynamicHelp": true,
|
|
540
605
|
"hiddenAliases": [],
|
|
541
|
-
"id": "data:
|
|
606
|
+
"id": "data:delete:record",
|
|
542
607
|
"pluginAlias": "@salesforce/plugin-data",
|
|
543
608
|
"pluginName": "@salesforce/plugin-data",
|
|
544
609
|
"pluginType": "core",
|
|
545
610
|
"strict": true,
|
|
546
|
-
"summary": "
|
|
611
|
+
"summary": "Deletes a single record from a Salesforce or Tooling API object.",
|
|
547
612
|
"enableJsonFlag": true,
|
|
548
613
|
"isESM": true,
|
|
549
614
|
"relativePath": [
|
|
550
615
|
"lib",
|
|
551
616
|
"commands",
|
|
552
617
|
"data",
|
|
553
|
-
"
|
|
618
|
+
"delete",
|
|
554
619
|
"record.js"
|
|
555
620
|
],
|
|
556
621
|
"aliasPermutations": [
|
|
557
|
-
"force:data:record:
|
|
558
|
-
"data:force:record:
|
|
559
|
-
"data:record:force:
|
|
560
|
-
"data:record:
|
|
561
|
-
"force:record:data:
|
|
562
|
-
"record:force:data:
|
|
563
|
-
"record:data:force:
|
|
564
|
-
"record:data:
|
|
565
|
-
"force:record:
|
|
566
|
-
"record:force:
|
|
567
|
-
"record:
|
|
568
|
-
"record:
|
|
569
|
-
"force:data:
|
|
570
|
-
"data:force:
|
|
571
|
-
"data:
|
|
572
|
-
"data:
|
|
573
|
-
"force:
|
|
574
|
-
"
|
|
575
|
-
"
|
|
576
|
-
"
|
|
577
|
-
"force:
|
|
578
|
-
"
|
|
579
|
-
"
|
|
580
|
-
"
|
|
622
|
+
"force:data:record:delete",
|
|
623
|
+
"data:force:record:delete",
|
|
624
|
+
"data:record:force:delete",
|
|
625
|
+
"data:record:delete:force",
|
|
626
|
+
"force:record:data:delete",
|
|
627
|
+
"record:force:data:delete",
|
|
628
|
+
"record:data:force:delete",
|
|
629
|
+
"record:data:delete:force",
|
|
630
|
+
"force:record:delete:data",
|
|
631
|
+
"record:force:delete:data",
|
|
632
|
+
"record:delete:force:data",
|
|
633
|
+
"record:delete:data:force",
|
|
634
|
+
"force:data:delete:record",
|
|
635
|
+
"data:force:delete:record",
|
|
636
|
+
"data:delete:force:record",
|
|
637
|
+
"data:delete:record:force",
|
|
638
|
+
"force:delete:data:record",
|
|
639
|
+
"delete:force:data:record",
|
|
640
|
+
"delete:data:force:record",
|
|
641
|
+
"delete:data:record:force",
|
|
642
|
+
"force:delete:record:data",
|
|
643
|
+
"delete:force:record:data",
|
|
644
|
+
"delete:record:force:data",
|
|
645
|
+
"delete:record:data:force"
|
|
581
646
|
],
|
|
582
647
|
"permutations": [
|
|
583
|
-
"data:
|
|
584
|
-
"
|
|
585
|
-
"
|
|
586
|
-
"data:record:
|
|
587
|
-
"record:data:
|
|
588
|
-
"record:
|
|
648
|
+
"data:delete:record",
|
|
649
|
+
"delete:data:record",
|
|
650
|
+
"delete:record:data",
|
|
651
|
+
"data:record:delete",
|
|
652
|
+
"record:data:delete",
|
|
653
|
+
"record:delete:data"
|
|
589
654
|
]
|
|
590
655
|
},
|
|
591
|
-
"data:delete:
|
|
656
|
+
"data:delete:resume": {
|
|
592
657
|
"aliases": [],
|
|
593
658
|
"args": {},
|
|
594
|
-
"
|
|
659
|
+
"deprecateAliases": true,
|
|
660
|
+
"description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
|
|
595
661
|
"examples": [
|
|
596
|
-
"
|
|
597
|
-
"
|
|
662
|
+
"Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
663
|
+
"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"
|
|
598
664
|
],
|
|
599
665
|
"flags": {
|
|
600
666
|
"json": {
|
|
@@ -621,17 +687,41 @@
|
|
|
621
687
|
"deprecateAliases": true,
|
|
622
688
|
"name": "target-org",
|
|
623
689
|
"noCacheDefault": true,
|
|
624
|
-
"
|
|
625
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
690
|
+
"summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
|
|
626
691
|
"hasDynamicHelp": true,
|
|
627
692
|
"multiple": false,
|
|
628
693
|
"type": "option"
|
|
629
694
|
},
|
|
630
|
-
"
|
|
695
|
+
"job-id": {
|
|
631
696
|
"aliases": [
|
|
632
|
-
"
|
|
697
|
+
"jobid"
|
|
633
698
|
],
|
|
699
|
+
"char": "i",
|
|
634
700
|
"deprecateAliases": true,
|
|
701
|
+
"name": "job-id",
|
|
702
|
+
"summary": "ID of the job you want to resume.",
|
|
703
|
+
"hasDynamicHelp": false,
|
|
704
|
+
"multiple": false,
|
|
705
|
+
"type": "option"
|
|
706
|
+
},
|
|
707
|
+
"use-most-recent": {
|
|
708
|
+
"exclusive": [
|
|
709
|
+
"job-id"
|
|
710
|
+
],
|
|
711
|
+
"name": "use-most-recent",
|
|
712
|
+
"summary": "Use the ID of the most recently-run bulk job.",
|
|
713
|
+
"allowNo": false,
|
|
714
|
+
"type": "boolean"
|
|
715
|
+
},
|
|
716
|
+
"wait": {
|
|
717
|
+
"name": "wait",
|
|
718
|
+
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
719
|
+
"default": "0 minutes",
|
|
720
|
+
"hasDynamicHelp": true,
|
|
721
|
+
"multiple": false,
|
|
722
|
+
"type": "option"
|
|
723
|
+
},
|
|
724
|
+
"api-version": {
|
|
635
725
|
"description": "Override the api version used for api requests made by this command",
|
|
636
726
|
"name": "api-version",
|
|
637
727
|
"hasDynamicHelp": false,
|
|
@@ -647,77 +737,16 @@
|
|
|
647
737
|
"hasDynamicHelp": false,
|
|
648
738
|
"multiple": false,
|
|
649
739
|
"type": "option"
|
|
650
|
-
},
|
|
651
|
-
"file": {
|
|
652
|
-
"aliases": [
|
|
653
|
-
"csvfile"
|
|
654
|
-
],
|
|
655
|
-
"char": "f",
|
|
656
|
-
"deprecateAliases": true,
|
|
657
|
-
"name": "file",
|
|
658
|
-
"required": true,
|
|
659
|
-
"summary": "CSV file that contains the IDs of the records to update or delete.",
|
|
660
|
-
"hasDynamicHelp": false,
|
|
661
|
-
"multiple": false,
|
|
662
|
-
"type": "option"
|
|
663
|
-
},
|
|
664
|
-
"sobject": {
|
|
665
|
-
"aliases": [
|
|
666
|
-
"sobjecttype"
|
|
667
|
-
],
|
|
668
|
-
"char": "s",
|
|
669
|
-
"deprecateAliases": true,
|
|
670
|
-
"name": "sobject",
|
|
671
|
-
"required": true,
|
|
672
|
-
"summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
|
|
673
|
-
"hasDynamicHelp": false,
|
|
674
|
-
"multiple": false,
|
|
675
|
-
"type": "option"
|
|
676
|
-
},
|
|
677
|
-
"wait": {
|
|
678
|
-
"char": "w",
|
|
679
|
-
"exclusive": [
|
|
680
|
-
"async"
|
|
681
|
-
],
|
|
682
|
-
"name": "wait",
|
|
683
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
684
|
-
"default": "0 minutes",
|
|
685
|
-
"hasDynamicHelp": true,
|
|
686
|
-
"multiple": false,
|
|
687
|
-
"type": "option"
|
|
688
|
-
},
|
|
689
|
-
"async": {
|
|
690
|
-
"char": "a",
|
|
691
|
-
"exclusive": [
|
|
692
|
-
"wait"
|
|
693
|
-
],
|
|
694
|
-
"name": "async",
|
|
695
|
-
"summary": "Run the command asynchronously.",
|
|
696
|
-
"allowNo": false,
|
|
697
|
-
"type": "boolean"
|
|
698
|
-
},
|
|
699
|
-
"verbose": {
|
|
700
|
-
"name": "verbose",
|
|
701
|
-
"summary": "Print verbose output of failed records if result is available.",
|
|
702
|
-
"allowNo": false,
|
|
703
|
-
"type": "boolean"
|
|
704
|
-
},
|
|
705
|
-
"hard-delete": {
|
|
706
|
-
"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.",
|
|
707
|
-
"name": "hard-delete",
|
|
708
|
-
"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.",
|
|
709
|
-
"allowNo": false,
|
|
710
|
-
"type": "boolean"
|
|
711
740
|
}
|
|
712
741
|
},
|
|
713
742
|
"hasDynamicHelp": true,
|
|
714
743
|
"hiddenAliases": [],
|
|
715
|
-
"id": "data:delete:
|
|
744
|
+
"id": "data:delete:resume",
|
|
716
745
|
"pluginAlias": "@salesforce/plugin-data",
|
|
717
746
|
"pluginName": "@salesforce/plugin-data",
|
|
718
747
|
"pluginType": "core",
|
|
719
748
|
"strict": true,
|
|
720
|
-
"summary": "
|
|
749
|
+
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
721
750
|
"enableJsonFlag": true,
|
|
722
751
|
"isESM": true,
|
|
723
752
|
"relativePath": [
|
|
@@ -725,30 +754,26 @@
|
|
|
725
754
|
"commands",
|
|
726
755
|
"data",
|
|
727
756
|
"delete",
|
|
728
|
-
"
|
|
757
|
+
"resume.js"
|
|
729
758
|
],
|
|
730
759
|
"aliasPermutations": [],
|
|
731
760
|
"permutations": [
|
|
732
|
-
"data:delete:
|
|
733
|
-
"delete:data:
|
|
734
|
-
"delete:
|
|
735
|
-
"data:
|
|
736
|
-
"
|
|
737
|
-
"
|
|
761
|
+
"data:delete:resume",
|
|
762
|
+
"delete:data:resume",
|
|
763
|
+
"delete:resume:data",
|
|
764
|
+
"data:resume:delete",
|
|
765
|
+
"resume:data:delete",
|
|
766
|
+
"resume:delete:data"
|
|
738
767
|
]
|
|
739
768
|
},
|
|
740
|
-
"data:
|
|
741
|
-
"aliases": [
|
|
742
|
-
"force:data:record:delete"
|
|
743
|
-
],
|
|
769
|
+
"data:create:file": {
|
|
770
|
+
"aliases": [],
|
|
744
771
|
"args": {},
|
|
745
|
-
"
|
|
746
|
-
"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.",
|
|
772
|
+
"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.",
|
|
747
773
|
"examples": [
|
|
748
|
-
"
|
|
749
|
-
"
|
|
750
|
-
"
|
|
751
|
-
"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"
|
|
774
|
+
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
|
775
|
+
"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",
|
|
776
|
+
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
752
777
|
],
|
|
753
778
|
"flags": {
|
|
754
779
|
"json": {
|
|
@@ -767,12 +792,7 @@
|
|
|
767
792
|
"type": "option"
|
|
768
793
|
},
|
|
769
794
|
"target-org": {
|
|
770
|
-
"aliases": [
|
|
771
|
-
"targetusername",
|
|
772
|
-
"u"
|
|
773
|
-
],
|
|
774
795
|
"char": "o",
|
|
775
|
-
"deprecateAliases": true,
|
|
776
796
|
"name": "target-org",
|
|
777
797
|
"noCacheDefault": true,
|
|
778
798
|
"required": true,
|
|
@@ -782,142 +802,77 @@
|
|
|
782
802
|
"type": "option"
|
|
783
803
|
},
|
|
784
804
|
"api-version": {
|
|
785
|
-
"aliases": [
|
|
786
|
-
"apiversion"
|
|
787
|
-
],
|
|
788
|
-
"deprecateAliases": true,
|
|
789
805
|
"description": "Override the api version used for api requests made by this command",
|
|
790
806
|
"name": "api-version",
|
|
791
807
|
"hasDynamicHelp": false,
|
|
792
808
|
"multiple": false,
|
|
793
809
|
"type": "option"
|
|
794
810
|
},
|
|
795
|
-
"
|
|
796
|
-
"
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
"
|
|
800
|
-
"name": "loglevel",
|
|
811
|
+
"title": {
|
|
812
|
+
"char": "t",
|
|
813
|
+
"name": "title",
|
|
814
|
+
"required": false,
|
|
815
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
801
816
|
"hasDynamicHelp": false,
|
|
802
817
|
"multiple": false,
|
|
803
818
|
"type": "option"
|
|
804
819
|
},
|
|
805
|
-
"
|
|
806
|
-
"
|
|
807
|
-
|
|
808
|
-
],
|
|
809
|
-
"char": "s",
|
|
810
|
-
"deprecateAliases": true,
|
|
811
|
-
"name": "sobject",
|
|
820
|
+
"file": {
|
|
821
|
+
"char": "f",
|
|
822
|
+
"name": "file",
|
|
812
823
|
"required": true,
|
|
813
|
-
"summary": "
|
|
824
|
+
"summary": "Path of file to upload.",
|
|
814
825
|
"hasDynamicHelp": false,
|
|
815
826
|
"multiple": false,
|
|
816
827
|
"type": "option"
|
|
817
828
|
},
|
|
818
|
-
"
|
|
819
|
-
"aliases": [
|
|
820
|
-
"sobjectid"
|
|
821
|
-
],
|
|
829
|
+
"parent-id": {
|
|
822
830
|
"char": "i",
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"summary": "ID of the record you’re deleting.",
|
|
826
|
-
"hasDynamicHelp": false,
|
|
827
|
-
"multiple": false,
|
|
828
|
-
"type": "option"
|
|
829
|
-
},
|
|
830
|
-
"where": {
|
|
831
|
-
"char": "w",
|
|
832
|
-
"name": "where",
|
|
833
|
-
"summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
|
|
831
|
+
"name": "parent-id",
|
|
832
|
+
"summary": "ID of the record to attach the file to.",
|
|
834
833
|
"hasDynamicHelp": false,
|
|
835
834
|
"multiple": false,
|
|
836
835
|
"type": "option"
|
|
837
|
-
},
|
|
838
|
-
"use-tooling-api": {
|
|
839
|
-
"aliases": [
|
|
840
|
-
"usetoolingapi"
|
|
841
|
-
],
|
|
842
|
-
"char": "t",
|
|
843
|
-
"deprecateAliases": true,
|
|
844
|
-
"name": "use-tooling-api",
|
|
845
|
-
"summary": "Use Tooling API so you can delete a record from a Tooling API object.",
|
|
846
|
-
"allowNo": false,
|
|
847
|
-
"type": "boolean"
|
|
848
|
-
},
|
|
849
|
-
"perflog": {
|
|
850
|
-
"deprecated": {
|
|
851
|
-
"version": "57"
|
|
852
|
-
},
|
|
853
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
854
|
-
"hidden": true,
|
|
855
|
-
"name": "perflog",
|
|
856
|
-
"summary": "Get API performance data.",
|
|
857
|
-
"allowNo": false,
|
|
858
|
-
"type": "boolean"
|
|
859
836
|
}
|
|
860
837
|
},
|
|
861
838
|
"hasDynamicHelp": true,
|
|
862
839
|
"hiddenAliases": [],
|
|
863
|
-
"id": "data:
|
|
840
|
+
"id": "data:create:file",
|
|
864
841
|
"pluginAlias": "@salesforce/plugin-data",
|
|
865
842
|
"pluginName": "@salesforce/plugin-data",
|
|
866
843
|
"pluginType": "core",
|
|
867
844
|
"strict": true,
|
|
868
|
-
"summary": "
|
|
845
|
+
"summary": "Upload a local file to an org.",
|
|
869
846
|
"enableJsonFlag": true,
|
|
870
847
|
"isESM": true,
|
|
871
848
|
"relativePath": [
|
|
872
849
|
"lib",
|
|
873
850
|
"commands",
|
|
874
851
|
"data",
|
|
875
|
-
"
|
|
876
|
-
"
|
|
877
|
-
],
|
|
878
|
-
"aliasPermutations": [
|
|
879
|
-
"force:data:record:delete",
|
|
880
|
-
"data:force:record:delete",
|
|
881
|
-
"data:record:force:delete",
|
|
882
|
-
"data:record:delete:force",
|
|
883
|
-
"force:record:data:delete",
|
|
884
|
-
"record:force:data:delete",
|
|
885
|
-
"record:data:force:delete",
|
|
886
|
-
"record:data:delete:force",
|
|
887
|
-
"force:record:delete:data",
|
|
888
|
-
"record:force:delete:data",
|
|
889
|
-
"record:delete:force:data",
|
|
890
|
-
"record:delete:data:force",
|
|
891
|
-
"force:data:delete:record",
|
|
892
|
-
"data:force:delete:record",
|
|
893
|
-
"data:delete:force:record",
|
|
894
|
-
"data:delete:record:force",
|
|
895
|
-
"force:delete:data:record",
|
|
896
|
-
"delete:force:data:record",
|
|
897
|
-
"delete:data:force:record",
|
|
898
|
-
"delete:data:record:force",
|
|
899
|
-
"force:delete:record:data",
|
|
900
|
-
"delete:force:record:data",
|
|
901
|
-
"delete:record:force:data",
|
|
902
|
-
"delete:record:data:force"
|
|
852
|
+
"create",
|
|
853
|
+
"file.js"
|
|
903
854
|
],
|
|
855
|
+
"aliasPermutations": [],
|
|
904
856
|
"permutations": [
|
|
905
|
-
"data:
|
|
906
|
-
"
|
|
907
|
-
"
|
|
908
|
-
"data:
|
|
909
|
-
"
|
|
910
|
-
"
|
|
857
|
+
"data:create:file",
|
|
858
|
+
"create:data:file",
|
|
859
|
+
"create:file:data",
|
|
860
|
+
"data:file:create",
|
|
861
|
+
"file:data:create",
|
|
862
|
+
"file:create:data"
|
|
911
863
|
]
|
|
912
864
|
},
|
|
913
|
-
"data:
|
|
914
|
-
"aliases": [
|
|
865
|
+
"data:create:record": {
|
|
866
|
+
"aliases": [
|
|
867
|
+
"force:data:record:create"
|
|
868
|
+
],
|
|
915
869
|
"args": {},
|
|
916
870
|
"deprecateAliases": true,
|
|
917
|
-
"description": "
|
|
871
|
+
"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.",
|
|
918
872
|
"examples": [
|
|
919
|
-
"
|
|
920
|
-
"
|
|
873
|
+
"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\"",
|
|
874
|
+
"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",
|
|
875
|
+
"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\""
|
|
921
876
|
],
|
|
922
877
|
"flags": {
|
|
923
878
|
"json": {
|
|
@@ -944,41 +899,17 @@
|
|
|
944
899
|
"deprecateAliases": true,
|
|
945
900
|
"name": "target-org",
|
|
946
901
|
"noCacheDefault": true,
|
|
947
|
-
"
|
|
902
|
+
"required": true,
|
|
903
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
948
904
|
"hasDynamicHelp": true,
|
|
949
905
|
"multiple": false,
|
|
950
906
|
"type": "option"
|
|
951
907
|
},
|
|
952
|
-
"
|
|
908
|
+
"api-version": {
|
|
953
909
|
"aliases": [
|
|
954
|
-
"
|
|
910
|
+
"apiversion"
|
|
955
911
|
],
|
|
956
|
-
"char": "i",
|
|
957
912
|
"deprecateAliases": true,
|
|
958
|
-
"name": "job-id",
|
|
959
|
-
"summary": "ID of the job you want to resume.",
|
|
960
|
-
"hasDynamicHelp": false,
|
|
961
|
-
"multiple": false,
|
|
962
|
-
"type": "option"
|
|
963
|
-
},
|
|
964
|
-
"use-most-recent": {
|
|
965
|
-
"exclusive": [
|
|
966
|
-
"job-id"
|
|
967
|
-
],
|
|
968
|
-
"name": "use-most-recent",
|
|
969
|
-
"summary": "Use the ID of the most recently-run bulk job.",
|
|
970
|
-
"allowNo": false,
|
|
971
|
-
"type": "boolean"
|
|
972
|
-
},
|
|
973
|
-
"wait": {
|
|
974
|
-
"name": "wait",
|
|
975
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
976
|
-
"default": "0 minutes",
|
|
977
|
-
"hasDynamicHelp": true,
|
|
978
|
-
"multiple": false,
|
|
979
|
-
"type": "option"
|
|
980
|
-
},
|
|
981
|
-
"api-version": {
|
|
982
913
|
"description": "Override the api version used for api requests made by this command",
|
|
983
914
|
"name": "api-version",
|
|
984
915
|
"hasDynamicHelp": false,
|
|
@@ -994,33 +925,102 @@
|
|
|
994
925
|
"hasDynamicHelp": false,
|
|
995
926
|
"multiple": false,
|
|
996
927
|
"type": "option"
|
|
928
|
+
},
|
|
929
|
+
"sobject": {
|
|
930
|
+
"aliases": [
|
|
931
|
+
"sobjecttype"
|
|
932
|
+
],
|
|
933
|
+
"char": "s",
|
|
934
|
+
"deprecateAliases": true,
|
|
935
|
+
"name": "sobject",
|
|
936
|
+
"required": true,
|
|
937
|
+
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
938
|
+
"hasDynamicHelp": false,
|
|
939
|
+
"multiple": false,
|
|
940
|
+
"type": "option"
|
|
941
|
+
},
|
|
942
|
+
"values": {
|
|
943
|
+
"char": "v",
|
|
944
|
+
"name": "values",
|
|
945
|
+
"required": true,
|
|
946
|
+
"summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
|
|
947
|
+
"hasDynamicHelp": false,
|
|
948
|
+
"multiple": false,
|
|
949
|
+
"type": "option"
|
|
950
|
+
},
|
|
951
|
+
"use-tooling-api": {
|
|
952
|
+
"aliases": [
|
|
953
|
+
"usetoolingapi"
|
|
954
|
+
],
|
|
955
|
+
"char": "t",
|
|
956
|
+
"deprecateAliases": true,
|
|
957
|
+
"name": "use-tooling-api",
|
|
958
|
+
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
959
|
+
"allowNo": false,
|
|
960
|
+
"type": "boolean"
|
|
961
|
+
},
|
|
962
|
+
"perflog": {
|
|
963
|
+
"deprecated": {
|
|
964
|
+
"version": "57"
|
|
965
|
+
},
|
|
966
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
967
|
+
"hidden": true,
|
|
968
|
+
"name": "perflog",
|
|
969
|
+
"summary": "Get API performance data.",
|
|
970
|
+
"allowNo": false,
|
|
971
|
+
"type": "boolean"
|
|
997
972
|
}
|
|
998
973
|
},
|
|
999
974
|
"hasDynamicHelp": true,
|
|
1000
975
|
"hiddenAliases": [],
|
|
1001
|
-
"id": "data:
|
|
976
|
+
"id": "data:create:record",
|
|
1002
977
|
"pluginAlias": "@salesforce/plugin-data",
|
|
1003
978
|
"pluginName": "@salesforce/plugin-data",
|
|
1004
979
|
"pluginType": "core",
|
|
1005
980
|
"strict": true,
|
|
1006
|
-
"summary": "
|
|
981
|
+
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
1007
982
|
"enableJsonFlag": true,
|
|
1008
983
|
"isESM": true,
|
|
1009
984
|
"relativePath": [
|
|
1010
985
|
"lib",
|
|
1011
986
|
"commands",
|
|
1012
987
|
"data",
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
988
|
+
"create",
|
|
989
|
+
"record.js"
|
|
990
|
+
],
|
|
991
|
+
"aliasPermutations": [
|
|
992
|
+
"force:data:record:create",
|
|
993
|
+
"data:force:record:create",
|
|
994
|
+
"data:record:force:create",
|
|
995
|
+
"data:record:create:force",
|
|
996
|
+
"force:record:data:create",
|
|
997
|
+
"record:force:data:create",
|
|
998
|
+
"record:data:force:create",
|
|
999
|
+
"record:data:create:force",
|
|
1000
|
+
"force:record:create:data",
|
|
1001
|
+
"record:force:create:data",
|
|
1002
|
+
"record:create:force:data",
|
|
1003
|
+
"record:create:data:force",
|
|
1004
|
+
"force:data:create:record",
|
|
1005
|
+
"data:force:create:record",
|
|
1006
|
+
"data:create:force:record",
|
|
1007
|
+
"data:create:record:force",
|
|
1008
|
+
"force:create:data:record",
|
|
1009
|
+
"create:force:data:record",
|
|
1010
|
+
"create:data:force:record",
|
|
1011
|
+
"create:data:record:force",
|
|
1012
|
+
"force:create:record:data",
|
|
1013
|
+
"create:force:record:data",
|
|
1014
|
+
"create:record:force:data",
|
|
1015
|
+
"create:record:data:force"
|
|
1015
1016
|
],
|
|
1016
|
-
"aliasPermutations": [],
|
|
1017
1017
|
"permutations": [
|
|
1018
|
-
"data:
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
"data:
|
|
1022
|
-
"
|
|
1023
|
-
"
|
|
1018
|
+
"data:create:record",
|
|
1019
|
+
"create:data:record",
|
|
1020
|
+
"create:record:data",
|
|
1021
|
+
"data:record:create",
|
|
1022
|
+
"record:data:create",
|
|
1023
|
+
"record:create:data"
|
|
1024
1024
|
]
|
|
1025
1025
|
},
|
|
1026
1026
|
"data:export:tree": {
|
|
@@ -2924,5 +2924,5 @@
|
|
|
2924
2924
|
]
|
|
2925
2925
|
}
|
|
2926
2926
|
},
|
|
2927
|
-
"version": "3.5.
|
|
2927
|
+
"version": "3.5.1"
|
|
2928
2928
|
}
|