@salesforce/plugin-data 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/lib/api/data/tree/exportApi.js +1 -3
- package/lib/api/data/tree/exportApi.js.map +1 -1
- package/lib/batcher.js +2 -4
- package/lib/batcher.js.map +1 -1
- package/lib/bulkUtils.js +1 -1
- package/lib/bulkUtils.js.map +1 -1
- package/lib/commands/data/create/file.js +0 -2
- package/lib/commands/data/create/file.js.map +1 -1
- package/lib/commands/data/delete/record.js +1 -2
- package/lib/commands/data/delete/record.js.map +1 -1
- package/lib/commands/data/export/bulk.js.map +1 -1
- package/lib/commands/data/export/resume.js.map +1 -1
- package/lib/commands/data/get/record.js +1 -2
- package/lib/commands/data/get/record.js.map +1 -1
- package/lib/commands/data/query.js.map +1 -1
- package/lib/commands/data/update/record.js +1 -2
- package/lib/commands/data/update/record.js.map +1 -1
- package/lib/commands/force/data/bulk/delete.js +2 -2
- package/lib/commands/force/data/bulk/delete.js.map +1 -1
- package/lib/commands/force/data/bulk/upsert.js +3 -3
- package/lib/commands/force/data/bulk/upsert.js.map +1 -1
- package/lib/reporters/query/humanReporter.js +2 -2
- package/lib/reporters/query/humanReporter.js.map +1 -1
- package/oclif.manifest.json +301 -301
- package/package.json +12 -5
package/oclif.manifest.json
CHANGED
|
@@ -478,14 +478,13 @@
|
|
|
478
478
|
"results:bulk:data"
|
|
479
479
|
]
|
|
480
480
|
},
|
|
481
|
-
"data:
|
|
481
|
+
"data:delete:bulk": {
|
|
482
482
|
"aliases": [],
|
|
483
483
|
"args": {},
|
|
484
|
-
"description": "
|
|
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.",
|
|
485
485
|
"examples": [
|
|
486
|
-
"
|
|
487
|
-
"
|
|
488
|
-
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
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"
|
|
489
488
|
],
|
|
490
489
|
"flags": {
|
|
491
490
|
"json": {
|
|
@@ -504,7 +503,12 @@
|
|
|
504
503
|
"type": "option"
|
|
505
504
|
},
|
|
506
505
|
"target-org": {
|
|
506
|
+
"aliases": [
|
|
507
|
+
"targetusername",
|
|
508
|
+
"u"
|
|
509
|
+
],
|
|
507
510
|
"char": "o",
|
|
511
|
+
"deprecateAliases": true,
|
|
508
512
|
"name": "target-org",
|
|
509
513
|
"noCacheDefault": true,
|
|
510
514
|
"required": true,
|
|
@@ -514,77 +518,122 @@
|
|
|
514
518
|
"type": "option"
|
|
515
519
|
},
|
|
516
520
|
"api-version": {
|
|
521
|
+
"aliases": [
|
|
522
|
+
"apiversion"
|
|
523
|
+
],
|
|
524
|
+
"deprecateAliases": true,
|
|
517
525
|
"description": "Override the api version used for api requests made by this command",
|
|
518
526
|
"name": "api-version",
|
|
519
527
|
"hasDynamicHelp": false,
|
|
520
528
|
"multiple": false,
|
|
521
529
|
"type": "option"
|
|
522
530
|
},
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
"
|
|
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 `SF_LOG_LEVEL` environment variable."
|
|
534
|
+
},
|
|
535
|
+
"hidden": true,
|
|
536
|
+
"name": "loglevel",
|
|
528
537
|
"hasDynamicHelp": false,
|
|
529
538
|
"multiple": false,
|
|
530
539
|
"type": "option"
|
|
531
540
|
},
|
|
532
541
|
"file": {
|
|
542
|
+
"aliases": [
|
|
543
|
+
"csvfile"
|
|
544
|
+
],
|
|
533
545
|
"char": "f",
|
|
546
|
+
"deprecateAliases": true,
|
|
534
547
|
"name": "file",
|
|
535
548
|
"required": true,
|
|
536
|
-
"summary": "
|
|
549
|
+
"summary": "CSV file that contains the IDs of the records to update or delete.",
|
|
537
550
|
"hasDynamicHelp": false,
|
|
538
551
|
"multiple": false,
|
|
539
552
|
"type": "option"
|
|
540
553
|
},
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
|
|
544
|
-
|
|
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.",
|
|
563
|
+
"hasDynamicHelp": false,
|
|
564
|
+
"multiple": false,
|
|
565
|
+
"type": "option"
|
|
566
|
+
},
|
|
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`.",
|
|
545
582
|
"hasDynamicHelp": false,
|
|
546
583
|
"multiple": false,
|
|
584
|
+
"options": [
|
|
585
|
+
"CRLF",
|
|
586
|
+
"LF"
|
|
587
|
+
],
|
|
547
588
|
"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"
|
|
548
596
|
}
|
|
549
597
|
},
|
|
550
598
|
"hasDynamicHelp": true,
|
|
551
599
|
"hiddenAliases": [],
|
|
552
|
-
"id": "data:
|
|
600
|
+
"id": "data:delete:bulk",
|
|
553
601
|
"pluginAlias": "@salesforce/plugin-data",
|
|
554
602
|
"pluginName": "@salesforce/plugin-data",
|
|
555
603
|
"pluginType": "core",
|
|
556
604
|
"strict": true,
|
|
557
|
-
"summary": "
|
|
605
|
+
"summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
|
|
558
606
|
"enableJsonFlag": true,
|
|
559
607
|
"isESM": true,
|
|
560
608
|
"relativePath": [
|
|
561
609
|
"lib",
|
|
562
610
|
"commands",
|
|
563
611
|
"data",
|
|
564
|
-
"
|
|
565
|
-
"
|
|
612
|
+
"delete",
|
|
613
|
+
"bulk.js"
|
|
566
614
|
],
|
|
567
615
|
"aliasPermutations": [],
|
|
568
616
|
"permutations": [
|
|
569
|
-
"data:
|
|
570
|
-
"
|
|
571
|
-
"
|
|
572
|
-
"data:
|
|
573
|
-
"
|
|
574
|
-
"
|
|
617
|
+
"data:delete:bulk",
|
|
618
|
+
"delete:data:bulk",
|
|
619
|
+
"delete:bulk:data",
|
|
620
|
+
"data:bulk:delete",
|
|
621
|
+
"bulk:data:delete",
|
|
622
|
+
"bulk:delete:data"
|
|
575
623
|
]
|
|
576
624
|
},
|
|
577
|
-
"data:
|
|
625
|
+
"data:delete:record": {
|
|
578
626
|
"aliases": [
|
|
579
|
-
"force:data:record:
|
|
627
|
+
"force:data:record:delete"
|
|
580
628
|
],
|
|
581
629
|
"args": {},
|
|
582
630
|
"deprecateAliases": true,
|
|
583
|
-
"description": "
|
|
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.",
|
|
584
632
|
"examples": [
|
|
585
|
-
"
|
|
586
|
-
"
|
|
587
|
-
"
|
|
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"
|
|
588
637
|
],
|
|
589
638
|
"flags": {
|
|
590
639
|
"json": {
|
|
@@ -646,16 +695,27 @@
|
|
|
646
695
|
"deprecateAliases": true,
|
|
647
696
|
"name": "sobject",
|
|
648
697
|
"required": true,
|
|
649
|
-
"summary": "API name of the Salesforce or Tooling API object that you're
|
|
698
|
+
"summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
|
|
650
699
|
"hasDynamicHelp": false,
|
|
651
700
|
"multiple": false,
|
|
652
701
|
"type": "option"
|
|
653
702
|
},
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
"
|
|
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.",
|
|
711
|
+
"hasDynamicHelp": false,
|
|
712
|
+
"multiple": false,
|
|
713
|
+
"type": "option"
|
|
714
|
+
},
|
|
715
|
+
"where": {
|
|
716
|
+
"char": "w",
|
|
717
|
+
"name": "where",
|
|
718
|
+
"summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
|
|
659
719
|
"hasDynamicHelp": false,
|
|
660
720
|
"multiple": false,
|
|
661
721
|
"type": "option"
|
|
@@ -667,7 +727,7 @@
|
|
|
667
727
|
"char": "t",
|
|
668
728
|
"deprecateAliases": true,
|
|
669
729
|
"name": "use-tooling-api",
|
|
670
|
-
"summary": "Use Tooling API so you can
|
|
730
|
+
"summary": "Use Tooling API so you can delete a record from a Tooling API object.",
|
|
671
731
|
"allowNo": false,
|
|
672
732
|
"type": "boolean"
|
|
673
733
|
},
|
|
@@ -681,73 +741,68 @@
|
|
|
681
741
|
"summary": "Get API performance data.",
|
|
682
742
|
"allowNo": false,
|
|
683
743
|
"type": "boolean"
|
|
684
|
-
},
|
|
685
|
-
"skip-assignment-rules": {
|
|
686
|
-
"name": "skip-assignment-rules",
|
|
687
|
-
"summary": "Don't apply active assignment rules when creating the record; applies to Account, Case, and Lead records.",
|
|
688
|
-
"allowNo": false,
|
|
689
|
-
"type": "boolean"
|
|
690
744
|
}
|
|
691
745
|
},
|
|
692
746
|
"hasDynamicHelp": true,
|
|
693
747
|
"hiddenAliases": [],
|
|
694
|
-
"id": "data:
|
|
748
|
+
"id": "data:delete:record",
|
|
695
749
|
"pluginAlias": "@salesforce/plugin-data",
|
|
696
750
|
"pluginName": "@salesforce/plugin-data",
|
|
697
751
|
"pluginType": "core",
|
|
698
752
|
"strict": true,
|
|
699
|
-
"summary": "
|
|
753
|
+
"summary": "Deletes a single record from a Salesforce or Tooling API object.",
|
|
700
754
|
"enableJsonFlag": true,
|
|
701
755
|
"isESM": true,
|
|
702
756
|
"relativePath": [
|
|
703
757
|
"lib",
|
|
704
758
|
"commands",
|
|
705
759
|
"data",
|
|
706
|
-
"
|
|
760
|
+
"delete",
|
|
707
761
|
"record.js"
|
|
708
762
|
],
|
|
709
763
|
"aliasPermutations": [
|
|
710
|
-
"force:data:record:
|
|
711
|
-
"data:force:record:
|
|
712
|
-
"data:record:force:
|
|
713
|
-
"data:record:
|
|
714
|
-
"force:record:data:
|
|
715
|
-
"record:force:data:
|
|
716
|
-
"record:data:force:
|
|
717
|
-
"record:data:
|
|
718
|
-
"force:record:
|
|
719
|
-
"record:force:
|
|
720
|
-
"record:
|
|
721
|
-
"record:
|
|
722
|
-
"force:data:
|
|
723
|
-
"data:force:
|
|
724
|
-
"data:
|
|
725
|
-
"data:
|
|
726
|
-
"force:
|
|
727
|
-
"
|
|
728
|
-
"
|
|
729
|
-
"
|
|
730
|
-
"force:
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
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"
|
|
734
788
|
],
|
|
735
789
|
"permutations": [
|
|
736
|
-
"data:
|
|
737
|
-
"
|
|
738
|
-
"
|
|
739
|
-
"data:record:
|
|
740
|
-
"record:data:
|
|
741
|
-
"record:
|
|
790
|
+
"data:delete:record",
|
|
791
|
+
"delete:data:record",
|
|
792
|
+
"delete:record:data",
|
|
793
|
+
"data:record:delete",
|
|
794
|
+
"record:data:delete",
|
|
795
|
+
"record:delete:data"
|
|
742
796
|
]
|
|
743
797
|
},
|
|
744
|
-
"data:delete:
|
|
798
|
+
"data:delete:resume": {
|
|
745
799
|
"aliases": [],
|
|
746
800
|
"args": {},
|
|
747
|
-
"
|
|
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.",
|
|
748
803
|
"examples": [
|
|
749
|
-
"
|
|
750
|
-
"
|
|
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"
|
|
751
806
|
],
|
|
752
807
|
"flags": {
|
|
753
808
|
"json": {
|
|
@@ -774,17 +829,41 @@
|
|
|
774
829
|
"deprecateAliases": true,
|
|
775
830
|
"name": "target-org",
|
|
776
831
|
"noCacheDefault": true,
|
|
777
|
-
"
|
|
778
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
832
|
+
"summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
|
|
779
833
|
"hasDynamicHelp": true,
|
|
780
834
|
"multiple": false,
|
|
781
835
|
"type": "option"
|
|
782
836
|
},
|
|
783
|
-
"
|
|
837
|
+
"job-id": {
|
|
784
838
|
"aliases": [
|
|
785
|
-
"
|
|
839
|
+
"jobid"
|
|
786
840
|
],
|
|
841
|
+
"char": "i",
|
|
787
842
|
"deprecateAliases": true,
|
|
843
|
+
"name": "job-id",
|
|
844
|
+
"summary": "ID of the job you want to resume.",
|
|
845
|
+
"hasDynamicHelp": false,
|
|
846
|
+
"multiple": false,
|
|
847
|
+
"type": "option"
|
|
848
|
+
},
|
|
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",
|
|
862
|
+
"hasDynamicHelp": true,
|
|
863
|
+
"multiple": false,
|
|
864
|
+
"type": "option"
|
|
865
|
+
},
|
|
866
|
+
"api-version": {
|
|
788
867
|
"description": "Override the api version used for api requests made by this command",
|
|
789
868
|
"name": "api-version",
|
|
790
869
|
"hasDynamicHelp": false,
|
|
@@ -800,72 +879,16 @@
|
|
|
800
879
|
"hasDynamicHelp": false,
|
|
801
880
|
"multiple": false,
|
|
802
881
|
"type": "option"
|
|
803
|
-
},
|
|
804
|
-
"file": {
|
|
805
|
-
"aliases": [
|
|
806
|
-
"csvfile"
|
|
807
|
-
],
|
|
808
|
-
"char": "f",
|
|
809
|
-
"deprecateAliases": true,
|
|
810
|
-
"name": "file",
|
|
811
|
-
"required": true,
|
|
812
|
-
"summary": "CSV file that contains the IDs of the records to update or delete.",
|
|
813
|
-
"hasDynamicHelp": false,
|
|
814
|
-
"multiple": false,
|
|
815
|
-
"type": "option"
|
|
816
|
-
},
|
|
817
|
-
"sobject": {
|
|
818
|
-
"aliases": [
|
|
819
|
-
"sobjecttype"
|
|
820
|
-
],
|
|
821
|
-
"char": "s",
|
|
822
|
-
"deprecateAliases": true,
|
|
823
|
-
"name": "sobject",
|
|
824
|
-
"required": true,
|
|
825
|
-
"summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
|
|
826
|
-
"hasDynamicHelp": false,
|
|
827
|
-
"multiple": false,
|
|
828
|
-
"type": "option"
|
|
829
|
-
},
|
|
830
|
-
"wait": {
|
|
831
|
-
"char": "w",
|
|
832
|
-
"name": "wait",
|
|
833
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
834
|
-
"default": "0 minutes",
|
|
835
|
-
"hasDynamicHelp": true,
|
|
836
|
-
"multiple": false,
|
|
837
|
-
"type": "option"
|
|
838
|
-
},
|
|
839
|
-
"line-ending": {
|
|
840
|
-
"dependsOn": [
|
|
841
|
-
"file"
|
|
842
|
-
],
|
|
843
|
-
"name": "line-ending",
|
|
844
|
-
"summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LF`.",
|
|
845
|
-
"hasDynamicHelp": false,
|
|
846
|
-
"multiple": false,
|
|
847
|
-
"options": [
|
|
848
|
-
"CRLF",
|
|
849
|
-
"LF"
|
|
850
|
-
],
|
|
851
|
-
"type": "option"
|
|
852
|
-
},
|
|
853
|
-
"hard-delete": {
|
|
854
|
-
"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.",
|
|
855
|
-
"name": "hard-delete",
|
|
856
|
-
"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.",
|
|
857
|
-
"allowNo": false,
|
|
858
|
-
"type": "boolean"
|
|
859
882
|
}
|
|
860
883
|
},
|
|
861
884
|
"hasDynamicHelp": true,
|
|
862
885
|
"hiddenAliases": [],
|
|
863
|
-
"id": "data:delete:
|
|
886
|
+
"id": "data:delete:resume",
|
|
864
887
|
"pluginAlias": "@salesforce/plugin-data",
|
|
865
888
|
"pluginName": "@salesforce/plugin-data",
|
|
866
889
|
"pluginType": "core",
|
|
867
890
|
"strict": true,
|
|
868
|
-
"summary": "
|
|
891
|
+
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
869
892
|
"enableJsonFlag": true,
|
|
870
893
|
"isESM": true,
|
|
871
894
|
"relativePath": [
|
|
@@ -873,30 +896,26 @@
|
|
|
873
896
|
"commands",
|
|
874
897
|
"data",
|
|
875
898
|
"delete",
|
|
876
|
-
"
|
|
899
|
+
"resume.js"
|
|
877
900
|
],
|
|
878
901
|
"aliasPermutations": [],
|
|
879
902
|
"permutations": [
|
|
880
|
-
"data:delete:
|
|
881
|
-
"delete:data:
|
|
882
|
-
"delete:
|
|
883
|
-
"data:
|
|
884
|
-
"
|
|
885
|
-
"
|
|
903
|
+
"data:delete:resume",
|
|
904
|
+
"delete:data:resume",
|
|
905
|
+
"delete:resume:data",
|
|
906
|
+
"data:resume:delete",
|
|
907
|
+
"resume:data:delete",
|
|
908
|
+
"resume:delete:data"
|
|
886
909
|
]
|
|
887
910
|
},
|
|
888
|
-
"data:
|
|
889
|
-
"aliases": [
|
|
890
|
-
"force:data:record:delete"
|
|
891
|
-
],
|
|
911
|
+
"data:create:file": {
|
|
912
|
+
"aliases": [],
|
|
892
913
|
"args": {},
|
|
893
|
-
"
|
|
894
|
-
"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.",
|
|
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.",
|
|
895
915
|
"examples": [
|
|
896
|
-
"
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
"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"
|
|
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"
|
|
900
919
|
],
|
|
901
920
|
"flags": {
|
|
902
921
|
"json": {
|
|
@@ -915,12 +934,7 @@
|
|
|
915
934
|
"type": "option"
|
|
916
935
|
},
|
|
917
936
|
"target-org": {
|
|
918
|
-
"aliases": [
|
|
919
|
-
"targetusername",
|
|
920
|
-
"u"
|
|
921
|
-
],
|
|
922
937
|
"char": "o",
|
|
923
|
-
"deprecateAliases": true,
|
|
924
938
|
"name": "target-org",
|
|
925
939
|
"noCacheDefault": true,
|
|
926
940
|
"required": true,
|
|
@@ -930,142 +944,77 @@
|
|
|
930
944
|
"type": "option"
|
|
931
945
|
},
|
|
932
946
|
"api-version": {
|
|
933
|
-
"aliases": [
|
|
934
|
-
"apiversion"
|
|
935
|
-
],
|
|
936
|
-
"deprecateAliases": true,
|
|
937
947
|
"description": "Override the api version used for api requests made by this command",
|
|
938
948
|
"name": "api-version",
|
|
939
949
|
"hasDynamicHelp": false,
|
|
940
950
|
"multiple": false,
|
|
941
951
|
"type": "option"
|
|
942
952
|
},
|
|
943
|
-
"
|
|
944
|
-
"
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
"
|
|
948
|
-
"name": "loglevel",
|
|
953
|
+
"title": {
|
|
954
|
+
"char": "t",
|
|
955
|
+
"name": "title",
|
|
956
|
+
"required": false,
|
|
957
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
949
958
|
"hasDynamicHelp": false,
|
|
950
959
|
"multiple": false,
|
|
951
960
|
"type": "option"
|
|
952
961
|
},
|
|
953
|
-
"
|
|
954
|
-
"
|
|
955
|
-
|
|
956
|
-
],
|
|
957
|
-
"char": "s",
|
|
958
|
-
"deprecateAliases": true,
|
|
959
|
-
"name": "sobject",
|
|
962
|
+
"file": {
|
|
963
|
+
"char": "f",
|
|
964
|
+
"name": "file",
|
|
960
965
|
"required": true,
|
|
961
|
-
"summary": "
|
|
966
|
+
"summary": "Path of file to upload.",
|
|
962
967
|
"hasDynamicHelp": false,
|
|
963
968
|
"multiple": false,
|
|
964
969
|
"type": "option"
|
|
965
970
|
},
|
|
966
|
-
"
|
|
967
|
-
"aliases": [
|
|
968
|
-
"sobjectid"
|
|
969
|
-
],
|
|
971
|
+
"parent-id": {
|
|
970
972
|
"char": "i",
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"summary": "ID of the record you’re deleting.",
|
|
974
|
-
"hasDynamicHelp": false,
|
|
975
|
-
"multiple": false,
|
|
976
|
-
"type": "option"
|
|
977
|
-
},
|
|
978
|
-
"where": {
|
|
979
|
-
"char": "w",
|
|
980
|
-
"name": "where",
|
|
981
|
-
"summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
|
|
973
|
+
"name": "parent-id",
|
|
974
|
+
"summary": "ID of the record to attach the file to.",
|
|
982
975
|
"hasDynamicHelp": false,
|
|
983
976
|
"multiple": false,
|
|
984
977
|
"type": "option"
|
|
985
|
-
},
|
|
986
|
-
"use-tooling-api": {
|
|
987
|
-
"aliases": [
|
|
988
|
-
"usetoolingapi"
|
|
989
|
-
],
|
|
990
|
-
"char": "t",
|
|
991
|
-
"deprecateAliases": true,
|
|
992
|
-
"name": "use-tooling-api",
|
|
993
|
-
"summary": "Use Tooling API so you can delete a record from a Tooling API object.",
|
|
994
|
-
"allowNo": false,
|
|
995
|
-
"type": "boolean"
|
|
996
|
-
},
|
|
997
|
-
"perflog": {
|
|
998
|
-
"deprecated": {
|
|
999
|
-
"version": "57"
|
|
1000
|
-
},
|
|
1001
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1002
|
-
"hidden": true,
|
|
1003
|
-
"name": "perflog",
|
|
1004
|
-
"summary": "Get API performance data.",
|
|
1005
|
-
"allowNo": false,
|
|
1006
|
-
"type": "boolean"
|
|
1007
978
|
}
|
|
1008
979
|
},
|
|
1009
980
|
"hasDynamicHelp": true,
|
|
1010
981
|
"hiddenAliases": [],
|
|
1011
|
-
"id": "data:
|
|
982
|
+
"id": "data:create:file",
|
|
1012
983
|
"pluginAlias": "@salesforce/plugin-data",
|
|
1013
984
|
"pluginName": "@salesforce/plugin-data",
|
|
1014
985
|
"pluginType": "core",
|
|
1015
986
|
"strict": true,
|
|
1016
|
-
"summary": "
|
|
987
|
+
"summary": "Upload a local file to an org.",
|
|
1017
988
|
"enableJsonFlag": true,
|
|
1018
989
|
"isESM": true,
|
|
1019
990
|
"relativePath": [
|
|
1020
991
|
"lib",
|
|
1021
992
|
"commands",
|
|
1022
993
|
"data",
|
|
1023
|
-
"
|
|
1024
|
-
"
|
|
1025
|
-
],
|
|
1026
|
-
"aliasPermutations": [
|
|
1027
|
-
"force:data:record:delete",
|
|
1028
|
-
"data:force:record:delete",
|
|
1029
|
-
"data:record:force:delete",
|
|
1030
|
-
"data:record:delete:force",
|
|
1031
|
-
"force:record:data:delete",
|
|
1032
|
-
"record:force:data:delete",
|
|
1033
|
-
"record:data:force:delete",
|
|
1034
|
-
"record:data:delete:force",
|
|
1035
|
-
"force:record:delete:data",
|
|
1036
|
-
"record:force:delete:data",
|
|
1037
|
-
"record:delete:force:data",
|
|
1038
|
-
"record:delete:data:force",
|
|
1039
|
-
"force:data:delete:record",
|
|
1040
|
-
"data:force:delete:record",
|
|
1041
|
-
"data:delete:force:record",
|
|
1042
|
-
"data:delete:record:force",
|
|
1043
|
-
"force:delete:data:record",
|
|
1044
|
-
"delete:force:data:record",
|
|
1045
|
-
"delete:data:force:record",
|
|
1046
|
-
"delete:data:record:force",
|
|
1047
|
-
"force:delete:record:data",
|
|
1048
|
-
"delete:force:record:data",
|
|
1049
|
-
"delete:record:force:data",
|
|
1050
|
-
"delete:record:data:force"
|
|
994
|
+
"create",
|
|
995
|
+
"file.js"
|
|
1051
996
|
],
|
|
997
|
+
"aliasPermutations": [],
|
|
1052
998
|
"permutations": [
|
|
1053
|
-
"data:
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"data:
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
999
|
+
"data:create:file",
|
|
1000
|
+
"create:data:file",
|
|
1001
|
+
"create:file:data",
|
|
1002
|
+
"data:file:create",
|
|
1003
|
+
"file:data:create",
|
|
1004
|
+
"file:create:data"
|
|
1059
1005
|
]
|
|
1060
1006
|
},
|
|
1061
|
-
"data:
|
|
1062
|
-
"aliases": [
|
|
1007
|
+
"data:create:record": {
|
|
1008
|
+
"aliases": [
|
|
1009
|
+
"force:data:record:create"
|
|
1010
|
+
],
|
|
1063
1011
|
"args": {},
|
|
1064
1012
|
"deprecateAliases": true,
|
|
1065
|
-
"description": "
|
|
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.",
|
|
1066
1014
|
"examples": [
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
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\""
|
|
1069
1018
|
],
|
|
1070
1019
|
"flags": {
|
|
1071
1020
|
"json": {
|
|
@@ -1092,41 +1041,17 @@
|
|
|
1092
1041
|
"deprecateAliases": true,
|
|
1093
1042
|
"name": "target-org",
|
|
1094
1043
|
"noCacheDefault": true,
|
|
1095
|
-
"
|
|
1044
|
+
"required": true,
|
|
1045
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1096
1046
|
"hasDynamicHelp": true,
|
|
1097
1047
|
"multiple": false,
|
|
1098
1048
|
"type": "option"
|
|
1099
1049
|
},
|
|
1100
|
-
"
|
|
1050
|
+
"api-version": {
|
|
1101
1051
|
"aliases": [
|
|
1102
|
-
"
|
|
1052
|
+
"apiversion"
|
|
1103
1053
|
],
|
|
1104
|
-
"char": "i",
|
|
1105
1054
|
"deprecateAliases": true,
|
|
1106
|
-
"name": "job-id",
|
|
1107
|
-
"summary": "ID of the job you want to resume.",
|
|
1108
|
-
"hasDynamicHelp": false,
|
|
1109
|
-
"multiple": false,
|
|
1110
|
-
"type": "option"
|
|
1111
|
-
},
|
|
1112
|
-
"use-most-recent": {
|
|
1113
|
-
"exclusive": [
|
|
1114
|
-
"job-id"
|
|
1115
|
-
],
|
|
1116
|
-
"name": "use-most-recent",
|
|
1117
|
-
"summary": "Use the ID of the most recently-run bulk job.",
|
|
1118
|
-
"allowNo": false,
|
|
1119
|
-
"type": "boolean"
|
|
1120
|
-
},
|
|
1121
|
-
"wait": {
|
|
1122
|
-
"name": "wait",
|
|
1123
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
1124
|
-
"default": "5 minutes",
|
|
1125
|
-
"hasDynamicHelp": true,
|
|
1126
|
-
"multiple": false,
|
|
1127
|
-
"type": "option"
|
|
1128
|
-
},
|
|
1129
|
-
"api-version": {
|
|
1130
1055
|
"description": "Override the api version used for api requests made by this command",
|
|
1131
1056
|
"name": "api-version",
|
|
1132
1057
|
"hasDynamicHelp": false,
|
|
@@ -1142,33 +1067,108 @@
|
|
|
1142
1067
|
"hasDynamicHelp": false,
|
|
1143
1068
|
"multiple": false,
|
|
1144
1069
|
"type": "option"
|
|
1070
|
+
},
|
|
1071
|
+
"sobject": {
|
|
1072
|
+
"aliases": [
|
|
1073
|
+
"sobjecttype"
|
|
1074
|
+
],
|
|
1075
|
+
"char": "s",
|
|
1076
|
+
"deprecateAliases": true,
|
|
1077
|
+
"name": "sobject",
|
|
1078
|
+
"required": true,
|
|
1079
|
+
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
1080
|
+
"hasDynamicHelp": false,
|
|
1081
|
+
"multiple": false,
|
|
1082
|
+
"type": "option"
|
|
1083
|
+
},
|
|
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.",
|
|
1089
|
+
"hasDynamicHelp": false,
|
|
1090
|
+
"multiple": false,
|
|
1091
|
+
"type": "option"
|
|
1092
|
+
},
|
|
1093
|
+
"use-tooling-api": {
|
|
1094
|
+
"aliases": [
|
|
1095
|
+
"usetoolingapi"
|
|
1096
|
+
],
|
|
1097
|
+
"char": "t",
|
|
1098
|
+
"deprecateAliases": true,
|
|
1099
|
+
"name": "use-tooling-api",
|
|
1100
|
+
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
1101
|
+
"allowNo": false,
|
|
1102
|
+
"type": "boolean"
|
|
1103
|
+
},
|
|
1104
|
+
"perflog": {
|
|
1105
|
+
"deprecated": {
|
|
1106
|
+
"version": "57"
|
|
1107
|
+
},
|
|
1108
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1109
|
+
"hidden": true,
|
|
1110
|
+
"name": "perflog",
|
|
1111
|
+
"summary": "Get API performance data.",
|
|
1112
|
+
"allowNo": false,
|
|
1113
|
+
"type": "boolean"
|
|
1114
|
+
},
|
|
1115
|
+
"skip-assignment-rules": {
|
|
1116
|
+
"name": "skip-assignment-rules",
|
|
1117
|
+
"summary": "Don't apply active assignment rules when creating the record; applies to Account, Case, and Lead records.",
|
|
1118
|
+
"allowNo": false,
|
|
1119
|
+
"type": "boolean"
|
|
1145
1120
|
}
|
|
1146
1121
|
},
|
|
1147
1122
|
"hasDynamicHelp": true,
|
|
1148
1123
|
"hiddenAliases": [],
|
|
1149
|
-
"id": "data:
|
|
1124
|
+
"id": "data:create:record",
|
|
1150
1125
|
"pluginAlias": "@salesforce/plugin-data",
|
|
1151
1126
|
"pluginName": "@salesforce/plugin-data",
|
|
1152
1127
|
"pluginType": "core",
|
|
1153
1128
|
"strict": true,
|
|
1154
|
-
"summary": "
|
|
1129
|
+
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
1155
1130
|
"enableJsonFlag": true,
|
|
1156
1131
|
"isESM": true,
|
|
1157
1132
|
"relativePath": [
|
|
1158
1133
|
"lib",
|
|
1159
1134
|
"commands",
|
|
1160
1135
|
"data",
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1136
|
+
"create",
|
|
1137
|
+
"record.js"
|
|
1138
|
+
],
|
|
1139
|
+
"aliasPermutations": [
|
|
1140
|
+
"force:data:record:create",
|
|
1141
|
+
"data:force:record:create",
|
|
1142
|
+
"data:record:force:create",
|
|
1143
|
+
"data:record:create:force",
|
|
1144
|
+
"force:record:data:create",
|
|
1145
|
+
"record:force:data:create",
|
|
1146
|
+
"record:data:force:create",
|
|
1147
|
+
"record:data:create:force",
|
|
1148
|
+
"force:record:create:data",
|
|
1149
|
+
"record:force:create:data",
|
|
1150
|
+
"record:create:force:data",
|
|
1151
|
+
"record:create:data:force",
|
|
1152
|
+
"force:data:create:record",
|
|
1153
|
+
"data:force:create:record",
|
|
1154
|
+
"data:create:force:record",
|
|
1155
|
+
"data:create:record:force",
|
|
1156
|
+
"force:create:data:record",
|
|
1157
|
+
"create:force:data:record",
|
|
1158
|
+
"create:data:force:record",
|
|
1159
|
+
"create:data:record:force",
|
|
1160
|
+
"force:create:record:data",
|
|
1161
|
+
"create:force:record:data",
|
|
1162
|
+
"create:record:force:data",
|
|
1163
|
+
"create:record:data:force"
|
|
1163
1164
|
],
|
|
1164
|
-
"aliasPermutations": [],
|
|
1165
1165
|
"permutations": [
|
|
1166
|
-
"data:
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
1169
|
-
"data:
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1166
|
+
"data:create:record",
|
|
1167
|
+
"create:data:record",
|
|
1168
|
+
"create:record:data",
|
|
1169
|
+
"data:record:create",
|
|
1170
|
+
"record:data:create",
|
|
1171
|
+
"record:create:data"
|
|
1172
1172
|
]
|
|
1173
1173
|
},
|
|
1174
1174
|
"data:export:bulk": {
|
|
@@ -3178,5 +3178,5 @@
|
|
|
3178
3178
|
]
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
|
-
"version": "5.1.
|
|
3181
|
+
"version": "5.1.3"
|
|
3182
3182
|
}
|