@salesforce/plugin-data 3.8.1 → 3.9.0

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.
@@ -424,14 +424,13 @@
424
424
  "search:data"
425
425
  ]
426
426
  },
427
- "data:create:file": {
427
+ "data:delete:bulk": {
428
428
  "aliases": [],
429
429
  "args": {},
430
- "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.",
430
+ "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.",
431
431
  "examples": [
432
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
433
- "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",
434
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
432
+ "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",
433
+ "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"
435
434
  ],
436
435
  "flags": {
437
436
  "json": {
@@ -450,7 +449,12 @@
450
449
  "type": "option"
451
450
  },
452
451
  "target-org": {
452
+ "aliases": [
453
+ "targetusername",
454
+ "u"
455
+ ],
453
456
  "char": "o",
457
+ "deprecateAliases": true,
454
458
  "name": "target-org",
455
459
  "noCacheDefault": true,
456
460
  "required": true,
@@ -460,77 +464,127 @@
460
464
  "type": "option"
461
465
  },
462
466
  "api-version": {
467
+ "aliases": [
468
+ "apiversion"
469
+ ],
470
+ "deprecateAliases": true,
463
471
  "description": "Override the api version used for api requests made by this command",
464
472
  "name": "api-version",
465
473
  "hasDynamicHelp": false,
466
474
  "multiple": false,
467
475
  "type": "option"
468
476
  },
469
- "title": {
470
- "char": "t",
471
- "name": "title",
472
- "required": false,
473
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
477
+ "loglevel": {
478
+ "deprecated": {
479
+ "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."
480
+ },
481
+ "hidden": true,
482
+ "name": "loglevel",
474
483
  "hasDynamicHelp": false,
475
484
  "multiple": false,
476
485
  "type": "option"
477
486
  },
478
487
  "file": {
488
+ "aliases": [
489
+ "csvfile"
490
+ ],
479
491
  "char": "f",
492
+ "deprecateAliases": true,
480
493
  "name": "file",
481
494
  "required": true,
482
- "summary": "Path of file to upload.",
495
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
483
496
  "hasDynamicHelp": false,
484
497
  "multiple": false,
485
498
  "type": "option"
486
499
  },
487
- "parent-id": {
488
- "char": "i",
489
- "name": "parent-id",
490
- "summary": "ID of the record to attach the file to.",
500
+ "sobject": {
501
+ "aliases": [
502
+ "sobjecttype"
503
+ ],
504
+ "char": "s",
505
+ "deprecateAliases": true,
506
+ "name": "sobject",
507
+ "required": true,
508
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
491
509
  "hasDynamicHelp": false,
492
510
  "multiple": false,
493
511
  "type": "option"
512
+ },
513
+ "wait": {
514
+ "char": "w",
515
+ "exclusive": [
516
+ "async"
517
+ ],
518
+ "name": "wait",
519
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
520
+ "default": "0 minutes",
521
+ "hasDynamicHelp": true,
522
+ "multiple": false,
523
+ "type": "option"
524
+ },
525
+ "async": {
526
+ "char": "a",
527
+ "exclusive": [
528
+ "wait"
529
+ ],
530
+ "name": "async",
531
+ "summary": "Run the command asynchronously.",
532
+ "allowNo": false,
533
+ "type": "boolean"
534
+ },
535
+ "verbose": {
536
+ "name": "verbose",
537
+ "summary": "Print verbose output of failed records if result is available.",
538
+ "allowNo": false,
539
+ "type": "boolean"
540
+ },
541
+ "hard-delete": {
542
+ "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.",
543
+ "name": "hard-delete",
544
+ "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.",
545
+ "allowNo": false,
546
+ "type": "boolean"
494
547
  }
495
548
  },
496
549
  "hasDynamicHelp": true,
497
550
  "hiddenAliases": [],
498
- "id": "data:create:file",
551
+ "id": "data:delete:bulk",
499
552
  "pluginAlias": "@salesforce/plugin-data",
500
553
  "pluginName": "@salesforce/plugin-data",
501
554
  "pluginType": "core",
502
555
  "strict": true,
503
- "summary": "Upload a local file to an org.",
556
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
504
557
  "enableJsonFlag": true,
505
558
  "isESM": true,
506
559
  "relativePath": [
507
560
  "lib",
508
561
  "commands",
509
562
  "data",
510
- "create",
511
- "file.js"
563
+ "delete",
564
+ "bulk.js"
512
565
  ],
513
566
  "aliasPermutations": [],
514
567
  "permutations": [
515
- "data:create:file",
516
- "create:data:file",
517
- "create:file:data",
518
- "data:file:create",
519
- "file:data:create",
520
- "file:create:data"
568
+ "data:delete:bulk",
569
+ "delete:data:bulk",
570
+ "delete:bulk:data",
571
+ "data:bulk:delete",
572
+ "bulk:data:delete",
573
+ "bulk:delete:data"
521
574
  ]
522
575
  },
523
- "data:create:record": {
576
+ "data:delete:record": {
524
577
  "aliases": [
525
- "force:data:record:create"
578
+ "force:data:record:delete"
526
579
  ],
527
580
  "args": {},
528
581
  "deprecateAliases": true,
529
- "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.",
582
+ "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.",
530
583
  "examples": [
531
- "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\"",
532
- "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",
533
- "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\""
584
+ "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
585
+ "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
586
+ "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",
587
+ "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"
534
588
  ],
535
589
  "flags": {
536
590
  "json": {
@@ -592,16 +646,27 @@
592
646
  "deprecateAliases": true,
593
647
  "name": "sobject",
594
648
  "required": true,
595
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
649
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
596
650
  "hasDynamicHelp": false,
597
651
  "multiple": false,
598
652
  "type": "option"
599
653
  },
600
- "values": {
601
- "char": "v",
602
- "name": "values",
603
- "required": true,
604
- "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
654
+ "record-id": {
655
+ "aliases": [
656
+ "sobjectid"
657
+ ],
658
+ "char": "i",
659
+ "deprecateAliases": true,
660
+ "name": "record-id",
661
+ "summary": "ID of the record you’re deleting.",
662
+ "hasDynamicHelp": false,
663
+ "multiple": false,
664
+ "type": "option"
665
+ },
666
+ "where": {
667
+ "char": "w",
668
+ "name": "where",
669
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
605
670
  "hasDynamicHelp": false,
606
671
  "multiple": false,
607
672
  "type": "option"
@@ -613,7 +678,7 @@
613
678
  "char": "t",
614
679
  "deprecateAliases": true,
615
680
  "name": "use-tooling-api",
616
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
681
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
617
682
  "allowNo": false,
618
683
  "type": "boolean"
619
684
  },
@@ -631,63 +696,64 @@
631
696
  },
632
697
  "hasDynamicHelp": true,
633
698
  "hiddenAliases": [],
634
- "id": "data:create:record",
699
+ "id": "data:delete:record",
635
700
  "pluginAlias": "@salesforce/plugin-data",
636
701
  "pluginName": "@salesforce/plugin-data",
637
702
  "pluginType": "core",
638
703
  "strict": true,
639
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
704
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
640
705
  "enableJsonFlag": true,
641
706
  "isESM": true,
642
707
  "relativePath": [
643
708
  "lib",
644
709
  "commands",
645
710
  "data",
646
- "create",
711
+ "delete",
647
712
  "record.js"
648
713
  ],
649
714
  "aliasPermutations": [
650
- "force:data:record:create",
651
- "data:force:record:create",
652
- "data:record:force:create",
653
- "data:record:create:force",
654
- "force:record:data:create",
655
- "record:force:data:create",
656
- "record:data:force:create",
657
- "record:data:create:force",
658
- "force:record:create:data",
659
- "record:force:create:data",
660
- "record:create:force:data",
661
- "record:create:data:force",
662
- "force:data:create:record",
663
- "data:force:create:record",
664
- "data:create:force:record",
665
- "data:create:record:force",
666
- "force:create:data:record",
667
- "create:force:data:record",
668
- "create:data:force:record",
669
- "create:data:record:force",
670
- "force:create:record:data",
671
- "create:force:record:data",
672
- "create:record:force:data",
673
- "create:record:data:force"
715
+ "force:data:record:delete",
716
+ "data:force:record:delete",
717
+ "data:record:force:delete",
718
+ "data:record:delete:force",
719
+ "force:record:data:delete",
720
+ "record:force:data:delete",
721
+ "record:data:force:delete",
722
+ "record:data:delete:force",
723
+ "force:record:delete:data",
724
+ "record:force:delete:data",
725
+ "record:delete:force:data",
726
+ "record:delete:data:force",
727
+ "force:data:delete:record",
728
+ "data:force:delete:record",
729
+ "data:delete:force:record",
730
+ "data:delete:record:force",
731
+ "force:delete:data:record",
732
+ "delete:force:data:record",
733
+ "delete:data:force:record",
734
+ "delete:data:record:force",
735
+ "force:delete:record:data",
736
+ "delete:force:record:data",
737
+ "delete:record:force:data",
738
+ "delete:record:data:force"
674
739
  ],
675
740
  "permutations": [
676
- "data:create:record",
677
- "create:data:record",
678
- "create:record:data",
679
- "data:record:create",
680
- "record:data:create",
681
- "record:create:data"
741
+ "data:delete:record",
742
+ "delete:data:record",
743
+ "delete:record:data",
744
+ "data:record:delete",
745
+ "record:data:delete",
746
+ "record:delete:data"
682
747
  ]
683
748
  },
684
- "data:delete:bulk": {
749
+ "data:delete:resume": {
685
750
  "aliases": [],
686
751
  "args": {},
687
- "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.",
752
+ "deprecateAliases": true,
753
+ "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
688
754
  "examples": [
689
- "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",
690
- "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"
755
+ "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
756
+ "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"
691
757
  ],
692
758
  "flags": {
693
759
  "json": {
@@ -714,17 +780,41 @@
714
780
  "deprecateAliases": true,
715
781
  "name": "target-org",
716
782
  "noCacheDefault": true,
717
- "required": true,
718
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
783
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
719
784
  "hasDynamicHelp": true,
720
785
  "multiple": false,
721
786
  "type": "option"
722
787
  },
723
- "api-version": {
788
+ "job-id": {
724
789
  "aliases": [
725
- "apiversion"
790
+ "jobid"
726
791
  ],
792
+ "char": "i",
727
793
  "deprecateAliases": true,
794
+ "name": "job-id",
795
+ "summary": "ID of the job you want to resume.",
796
+ "hasDynamicHelp": false,
797
+ "multiple": false,
798
+ "type": "option"
799
+ },
800
+ "use-most-recent": {
801
+ "exclusive": [
802
+ "job-id"
803
+ ],
804
+ "name": "use-most-recent",
805
+ "summary": "Use the ID of the most recently-run bulk job.",
806
+ "allowNo": false,
807
+ "type": "boolean"
808
+ },
809
+ "wait": {
810
+ "name": "wait",
811
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
812
+ "default": "0 minutes",
813
+ "hasDynamicHelp": true,
814
+ "multiple": false,
815
+ "type": "option"
816
+ },
817
+ "api-version": {
728
818
  "description": "Override the api version used for api requests made by this command",
729
819
  "name": "api-version",
730
820
  "hasDynamicHelp": false,
@@ -740,77 +830,16 @@
740
830
  "hasDynamicHelp": false,
741
831
  "multiple": false,
742
832
  "type": "option"
743
- },
744
- "file": {
745
- "aliases": [
746
- "csvfile"
747
- ],
748
- "char": "f",
749
- "deprecateAliases": true,
750
- "name": "file",
751
- "required": true,
752
- "summary": "CSV file that contains the IDs of the records to update or delete.",
753
- "hasDynamicHelp": false,
754
- "multiple": false,
755
- "type": "option"
756
- },
757
- "sobject": {
758
- "aliases": [
759
- "sobjecttype"
760
- ],
761
- "char": "s",
762
- "deprecateAliases": true,
763
- "name": "sobject",
764
- "required": true,
765
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
766
- "hasDynamicHelp": false,
767
- "multiple": false,
768
- "type": "option"
769
- },
770
- "wait": {
771
- "char": "w",
772
- "exclusive": [
773
- "async"
774
- ],
775
- "name": "wait",
776
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
777
- "default": "0 minutes",
778
- "hasDynamicHelp": true,
779
- "multiple": false,
780
- "type": "option"
781
- },
782
- "async": {
783
- "char": "a",
784
- "exclusive": [
785
- "wait"
786
- ],
787
- "name": "async",
788
- "summary": "Run the command asynchronously.",
789
- "allowNo": false,
790
- "type": "boolean"
791
- },
792
- "verbose": {
793
- "name": "verbose",
794
- "summary": "Print verbose output of failed records if result is available.",
795
- "allowNo": false,
796
- "type": "boolean"
797
- },
798
- "hard-delete": {
799
- "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.",
800
- "name": "hard-delete",
801
- "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.",
802
- "allowNo": false,
803
- "type": "boolean"
804
833
  }
805
834
  },
806
835
  "hasDynamicHelp": true,
807
836
  "hiddenAliases": [],
808
- "id": "data:delete:bulk",
837
+ "id": "data:delete:resume",
809
838
  "pluginAlias": "@salesforce/plugin-data",
810
839
  "pluginName": "@salesforce/plugin-data",
811
840
  "pluginType": "core",
812
841
  "strict": true,
813
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
842
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
814
843
  "enableJsonFlag": true,
815
844
  "isESM": true,
816
845
  "relativePath": [
@@ -818,30 +847,26 @@
818
847
  "commands",
819
848
  "data",
820
849
  "delete",
821
- "bulk.js"
850
+ "resume.js"
822
851
  ],
823
852
  "aliasPermutations": [],
824
853
  "permutations": [
825
- "data:delete:bulk",
826
- "delete:data:bulk",
827
- "delete:bulk:data",
828
- "data:bulk:delete",
829
- "bulk:data:delete",
830
- "bulk:delete:data"
854
+ "data:delete:resume",
855
+ "delete:data:resume",
856
+ "delete:resume:data",
857
+ "data:resume:delete",
858
+ "resume:data:delete",
859
+ "resume:delete:data"
831
860
  ]
832
861
  },
833
- "data:delete:record": {
834
- "aliases": [
835
- "force:data:record:delete"
836
- ],
862
+ "data:create:file": {
863
+ "aliases": [],
837
864
  "args": {},
838
- "deprecateAliases": true,
839
- "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.",
865
+ "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.",
840
866
  "examples": [
841
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
842
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
843
- "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",
844
- "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"
867
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
868
+ "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",
869
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
845
870
  ],
846
871
  "flags": {
847
872
  "json": {
@@ -860,12 +885,7 @@
860
885
  "type": "option"
861
886
  },
862
887
  "target-org": {
863
- "aliases": [
864
- "targetusername",
865
- "u"
866
- ],
867
888
  "char": "o",
868
- "deprecateAliases": true,
869
889
  "name": "target-org",
870
890
  "noCacheDefault": true,
871
891
  "required": true,
@@ -875,142 +895,77 @@
875
895
  "type": "option"
876
896
  },
877
897
  "api-version": {
878
- "aliases": [
879
- "apiversion"
880
- ],
881
- "deprecateAliases": true,
882
898
  "description": "Override the api version used for api requests made by this command",
883
899
  "name": "api-version",
884
900
  "hasDynamicHelp": false,
885
901
  "multiple": false,
886
902
  "type": "option"
887
903
  },
888
- "loglevel": {
889
- "deprecated": {
890
- "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."
891
- },
892
- "hidden": true,
893
- "name": "loglevel",
904
+ "title": {
905
+ "char": "t",
906
+ "name": "title",
907
+ "required": false,
908
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
894
909
  "hasDynamicHelp": false,
895
910
  "multiple": false,
896
911
  "type": "option"
897
912
  },
898
- "sobject": {
899
- "aliases": [
900
- "sobjecttype"
901
- ],
902
- "char": "s",
903
- "deprecateAliases": true,
904
- "name": "sobject",
913
+ "file": {
914
+ "char": "f",
915
+ "name": "file",
905
916
  "required": true,
906
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
917
+ "summary": "Path of file to upload.",
907
918
  "hasDynamicHelp": false,
908
919
  "multiple": false,
909
920
  "type": "option"
910
921
  },
911
- "record-id": {
912
- "aliases": [
913
- "sobjectid"
914
- ],
922
+ "parent-id": {
915
923
  "char": "i",
916
- "deprecateAliases": true,
917
- "name": "record-id",
918
- "summary": "ID of the record you’re deleting.",
919
- "hasDynamicHelp": false,
920
- "multiple": false,
921
- "type": "option"
922
- },
923
- "where": {
924
- "char": "w",
925
- "name": "where",
926
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
924
+ "name": "parent-id",
925
+ "summary": "ID of the record to attach the file to.",
927
926
  "hasDynamicHelp": false,
928
927
  "multiple": false,
929
928
  "type": "option"
930
- },
931
- "use-tooling-api": {
932
- "aliases": [
933
- "usetoolingapi"
934
- ],
935
- "char": "t",
936
- "deprecateAliases": true,
937
- "name": "use-tooling-api",
938
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
939
- "allowNo": false,
940
- "type": "boolean"
941
- },
942
- "perflog": {
943
- "deprecated": {
944
- "version": "57"
945
- },
946
- "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
947
- "hidden": true,
948
- "name": "perflog",
949
- "summary": "Get API performance data.",
950
- "allowNo": false,
951
- "type": "boolean"
952
929
  }
953
930
  },
954
931
  "hasDynamicHelp": true,
955
932
  "hiddenAliases": [],
956
- "id": "data:delete:record",
933
+ "id": "data:create:file",
957
934
  "pluginAlias": "@salesforce/plugin-data",
958
935
  "pluginName": "@salesforce/plugin-data",
959
936
  "pluginType": "core",
960
937
  "strict": true,
961
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
938
+ "summary": "Upload a local file to an org.",
962
939
  "enableJsonFlag": true,
963
940
  "isESM": true,
964
941
  "relativePath": [
965
942
  "lib",
966
943
  "commands",
967
944
  "data",
968
- "delete",
969
- "record.js"
970
- ],
971
- "aliasPermutations": [
972
- "force:data:record:delete",
973
- "data:force:record:delete",
974
- "data:record:force:delete",
975
- "data:record:delete:force",
976
- "force:record:data:delete",
977
- "record:force:data:delete",
978
- "record:data:force:delete",
979
- "record:data:delete:force",
980
- "force:record:delete:data",
981
- "record:force:delete:data",
982
- "record:delete:force:data",
983
- "record:delete:data:force",
984
- "force:data:delete:record",
985
- "data:force:delete:record",
986
- "data:delete:force:record",
987
- "data:delete:record:force",
988
- "force:delete:data:record",
989
- "delete:force:data:record",
990
- "delete:data:force:record",
991
- "delete:data:record:force",
992
- "force:delete:record:data",
993
- "delete:force:record:data",
994
- "delete:record:force:data",
995
- "delete:record:data:force"
945
+ "create",
946
+ "file.js"
996
947
  ],
948
+ "aliasPermutations": [],
997
949
  "permutations": [
998
- "data:delete:record",
999
- "delete:data:record",
1000
- "delete:record:data",
1001
- "data:record:delete",
1002
- "record:data:delete",
1003
- "record:delete:data"
950
+ "data:create:file",
951
+ "create:data:file",
952
+ "create:file:data",
953
+ "data:file:create",
954
+ "file:data:create",
955
+ "file:create:data"
1004
956
  ]
1005
957
  },
1006
- "data:delete:resume": {
1007
- "aliases": [],
958
+ "data:create:record": {
959
+ "aliases": [
960
+ "force:data:record:create"
961
+ ],
1008
962
  "args": {},
1009
963
  "deprecateAliases": true,
1010
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
964
+ "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.",
1011
965
  "examples": [
1012
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
1013
- "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"
966
+ "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\"",
967
+ "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",
968
+ "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\""
1014
969
  ],
1015
970
  "flags": {
1016
971
  "json": {
@@ -1037,41 +992,17 @@
1037
992
  "deprecateAliases": true,
1038
993
  "name": "target-org",
1039
994
  "noCacheDefault": true,
1040
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
995
+ "required": true,
996
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1041
997
  "hasDynamicHelp": true,
1042
998
  "multiple": false,
1043
999
  "type": "option"
1044
1000
  },
1045
- "job-id": {
1001
+ "api-version": {
1046
1002
  "aliases": [
1047
- "jobid"
1003
+ "apiversion"
1048
1004
  ],
1049
- "char": "i",
1050
1005
  "deprecateAliases": true,
1051
- "name": "job-id",
1052
- "summary": "ID of the job you want to resume.",
1053
- "hasDynamicHelp": false,
1054
- "multiple": false,
1055
- "type": "option"
1056
- },
1057
- "use-most-recent": {
1058
- "exclusive": [
1059
- "job-id"
1060
- ],
1061
- "name": "use-most-recent",
1062
- "summary": "Use the ID of the most recently-run bulk job.",
1063
- "allowNo": false,
1064
- "type": "boolean"
1065
- },
1066
- "wait": {
1067
- "name": "wait",
1068
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
1069
- "default": "0 minutes",
1070
- "hasDynamicHelp": true,
1071
- "multiple": false,
1072
- "type": "option"
1073
- },
1074
- "api-version": {
1075
1006
  "description": "Override the api version used for api requests made by this command",
1076
1007
  "name": "api-version",
1077
1008
  "hasDynamicHelp": false,
@@ -1087,33 +1018,102 @@
1087
1018
  "hasDynamicHelp": false,
1088
1019
  "multiple": false,
1089
1020
  "type": "option"
1021
+ },
1022
+ "sobject": {
1023
+ "aliases": [
1024
+ "sobjecttype"
1025
+ ],
1026
+ "char": "s",
1027
+ "deprecateAliases": true,
1028
+ "name": "sobject",
1029
+ "required": true,
1030
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
1031
+ "hasDynamicHelp": false,
1032
+ "multiple": false,
1033
+ "type": "option"
1034
+ },
1035
+ "values": {
1036
+ "char": "v",
1037
+ "name": "values",
1038
+ "required": true,
1039
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
1040
+ "hasDynamicHelp": false,
1041
+ "multiple": false,
1042
+ "type": "option"
1043
+ },
1044
+ "use-tooling-api": {
1045
+ "aliases": [
1046
+ "usetoolingapi"
1047
+ ],
1048
+ "char": "t",
1049
+ "deprecateAliases": true,
1050
+ "name": "use-tooling-api",
1051
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
1052
+ "allowNo": false,
1053
+ "type": "boolean"
1054
+ },
1055
+ "perflog": {
1056
+ "deprecated": {
1057
+ "version": "57"
1058
+ },
1059
+ "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
1060
+ "hidden": true,
1061
+ "name": "perflog",
1062
+ "summary": "Get API performance data.",
1063
+ "allowNo": false,
1064
+ "type": "boolean"
1090
1065
  }
1091
1066
  },
1092
1067
  "hasDynamicHelp": true,
1093
1068
  "hiddenAliases": [],
1094
- "id": "data:delete:resume",
1069
+ "id": "data:create:record",
1095
1070
  "pluginAlias": "@salesforce/plugin-data",
1096
1071
  "pluginName": "@salesforce/plugin-data",
1097
1072
  "pluginType": "core",
1098
1073
  "strict": true,
1099
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1074
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
1100
1075
  "enableJsonFlag": true,
1101
1076
  "isESM": true,
1102
1077
  "relativePath": [
1103
1078
  "lib",
1104
1079
  "commands",
1105
1080
  "data",
1106
- "delete",
1107
- "resume.js"
1081
+ "create",
1082
+ "record.js"
1083
+ ],
1084
+ "aliasPermutations": [
1085
+ "force:data:record:create",
1086
+ "data:force:record:create",
1087
+ "data:record:force:create",
1088
+ "data:record:create:force",
1089
+ "force:record:data:create",
1090
+ "record:force:data:create",
1091
+ "record:data:force:create",
1092
+ "record:data:create:force",
1093
+ "force:record:create:data",
1094
+ "record:force:create:data",
1095
+ "record:create:force:data",
1096
+ "record:create:data:force",
1097
+ "force:data:create:record",
1098
+ "data:force:create:record",
1099
+ "data:create:force:record",
1100
+ "data:create:record:force",
1101
+ "force:create:data:record",
1102
+ "create:force:data:record",
1103
+ "create:data:force:record",
1104
+ "create:data:record:force",
1105
+ "force:create:record:data",
1106
+ "create:force:record:data",
1107
+ "create:record:force:data",
1108
+ "create:record:data:force"
1108
1109
  ],
1109
- "aliasPermutations": [],
1110
1110
  "permutations": [
1111
- "data:delete:resume",
1112
- "delete:data:resume",
1113
- "delete:resume:data",
1114
- "data:resume:delete",
1115
- "resume:data:delete",
1116
- "resume:delete:data"
1111
+ "data:create:record",
1112
+ "create:data:record",
1113
+ "create:record:data",
1114
+ "data:record:create",
1115
+ "record:data:create",
1116
+ "record:create:data"
1117
1117
  ]
1118
1118
  },
1119
1119
  "data:export:bulk": {
@@ -3533,5 +3533,5 @@
3533
3533
  ]
3534
3534
  }
3535
3535
  },
3536
- "version": "3.8.1"
3536
+ "version": "3.9.0"
3537
3537
  }