@salesforce/plugin-data 5.1.1 → 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 +503 -503
- package/package.json +15 -8
package/oclif.manifest.json
CHANGED
|
@@ -478,269 +478,6 @@
|
|
|
478
478
|
"results:bulk:data"
|
|
479
479
|
]
|
|
480
480
|
},
|
|
481
|
-
"data:create:file": {
|
|
482
|
-
"aliases": [],
|
|
483
|
-
"args": {},
|
|
484
|
-
"description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
|
|
485
|
-
"examples": [
|
|
486
|
-
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
|
487
|
-
"Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
|
|
488
|
-
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
489
|
-
],
|
|
490
|
-
"flags": {
|
|
491
|
-
"json": {
|
|
492
|
-
"description": "Format output as json.",
|
|
493
|
-
"helpGroup": "GLOBAL",
|
|
494
|
-
"name": "json",
|
|
495
|
-
"allowNo": false,
|
|
496
|
-
"type": "boolean"
|
|
497
|
-
},
|
|
498
|
-
"flags-dir": {
|
|
499
|
-
"helpGroup": "GLOBAL",
|
|
500
|
-
"name": "flags-dir",
|
|
501
|
-
"summary": "Import flag values from a directory.",
|
|
502
|
-
"hasDynamicHelp": false,
|
|
503
|
-
"multiple": false,
|
|
504
|
-
"type": "option"
|
|
505
|
-
},
|
|
506
|
-
"target-org": {
|
|
507
|
-
"char": "o",
|
|
508
|
-
"name": "target-org",
|
|
509
|
-
"noCacheDefault": true,
|
|
510
|
-
"required": true,
|
|
511
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
512
|
-
"hasDynamicHelp": true,
|
|
513
|
-
"multiple": false,
|
|
514
|
-
"type": "option"
|
|
515
|
-
},
|
|
516
|
-
"api-version": {
|
|
517
|
-
"description": "Override the api version used for api requests made by this command",
|
|
518
|
-
"name": "api-version",
|
|
519
|
-
"hasDynamicHelp": false,
|
|
520
|
-
"multiple": false,
|
|
521
|
-
"type": "option"
|
|
522
|
-
},
|
|
523
|
-
"title": {
|
|
524
|
-
"char": "t",
|
|
525
|
-
"name": "title",
|
|
526
|
-
"required": false,
|
|
527
|
-
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
528
|
-
"hasDynamicHelp": false,
|
|
529
|
-
"multiple": false,
|
|
530
|
-
"type": "option"
|
|
531
|
-
},
|
|
532
|
-
"file": {
|
|
533
|
-
"char": "f",
|
|
534
|
-
"name": "file",
|
|
535
|
-
"required": true,
|
|
536
|
-
"summary": "Path of file to upload.",
|
|
537
|
-
"hasDynamicHelp": false,
|
|
538
|
-
"multiple": false,
|
|
539
|
-
"type": "option"
|
|
540
|
-
},
|
|
541
|
-
"parent-id": {
|
|
542
|
-
"char": "i",
|
|
543
|
-
"name": "parent-id",
|
|
544
|
-
"summary": "ID of the record to attach the file to.",
|
|
545
|
-
"hasDynamicHelp": false,
|
|
546
|
-
"multiple": false,
|
|
547
|
-
"type": "option"
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
"hasDynamicHelp": true,
|
|
551
|
-
"hiddenAliases": [],
|
|
552
|
-
"id": "data:create:file",
|
|
553
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
554
|
-
"pluginName": "@salesforce/plugin-data",
|
|
555
|
-
"pluginType": "core",
|
|
556
|
-
"strict": true,
|
|
557
|
-
"summary": "Upload a local file to an org.",
|
|
558
|
-
"enableJsonFlag": true,
|
|
559
|
-
"isESM": true,
|
|
560
|
-
"relativePath": [
|
|
561
|
-
"lib",
|
|
562
|
-
"commands",
|
|
563
|
-
"data",
|
|
564
|
-
"create",
|
|
565
|
-
"file.js"
|
|
566
|
-
],
|
|
567
|
-
"aliasPermutations": [],
|
|
568
|
-
"permutations": [
|
|
569
|
-
"data:create:file",
|
|
570
|
-
"create:data:file",
|
|
571
|
-
"create:file:data",
|
|
572
|
-
"data:file:create",
|
|
573
|
-
"file:data:create",
|
|
574
|
-
"file:create:data"
|
|
575
|
-
]
|
|
576
|
-
},
|
|
577
|
-
"data:create:record": {
|
|
578
|
-
"aliases": [
|
|
579
|
-
"force:data:record:create"
|
|
580
|
-
],
|
|
581
|
-
"args": {},
|
|
582
|
-
"deprecateAliases": true,
|
|
583
|
-
"description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
|
|
584
|
-
"examples": [
|
|
585
|
-
"Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
|
|
586
|
-
"Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
|
|
587
|
-
"Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
|
|
588
|
-
],
|
|
589
|
-
"flags": {
|
|
590
|
-
"json": {
|
|
591
|
-
"description": "Format output as json.",
|
|
592
|
-
"helpGroup": "GLOBAL",
|
|
593
|
-
"name": "json",
|
|
594
|
-
"allowNo": false,
|
|
595
|
-
"type": "boolean"
|
|
596
|
-
},
|
|
597
|
-
"flags-dir": {
|
|
598
|
-
"helpGroup": "GLOBAL",
|
|
599
|
-
"name": "flags-dir",
|
|
600
|
-
"summary": "Import flag values from a directory.",
|
|
601
|
-
"hasDynamicHelp": false,
|
|
602
|
-
"multiple": false,
|
|
603
|
-
"type": "option"
|
|
604
|
-
},
|
|
605
|
-
"target-org": {
|
|
606
|
-
"aliases": [
|
|
607
|
-
"targetusername",
|
|
608
|
-
"u"
|
|
609
|
-
],
|
|
610
|
-
"char": "o",
|
|
611
|
-
"deprecateAliases": true,
|
|
612
|
-
"name": "target-org",
|
|
613
|
-
"noCacheDefault": true,
|
|
614
|
-
"required": true,
|
|
615
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
616
|
-
"hasDynamicHelp": true,
|
|
617
|
-
"multiple": false,
|
|
618
|
-
"type": "option"
|
|
619
|
-
},
|
|
620
|
-
"api-version": {
|
|
621
|
-
"aliases": [
|
|
622
|
-
"apiversion"
|
|
623
|
-
],
|
|
624
|
-
"deprecateAliases": true,
|
|
625
|
-
"description": "Override the api version used for api requests made by this command",
|
|
626
|
-
"name": "api-version",
|
|
627
|
-
"hasDynamicHelp": false,
|
|
628
|
-
"multiple": false,
|
|
629
|
-
"type": "option"
|
|
630
|
-
},
|
|
631
|
-
"loglevel": {
|
|
632
|
-
"deprecated": {
|
|
633
|
-
"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."
|
|
634
|
-
},
|
|
635
|
-
"hidden": true,
|
|
636
|
-
"name": "loglevel",
|
|
637
|
-
"hasDynamicHelp": false,
|
|
638
|
-
"multiple": false,
|
|
639
|
-
"type": "option"
|
|
640
|
-
},
|
|
641
|
-
"sobject": {
|
|
642
|
-
"aliases": [
|
|
643
|
-
"sobjecttype"
|
|
644
|
-
],
|
|
645
|
-
"char": "s",
|
|
646
|
-
"deprecateAliases": true,
|
|
647
|
-
"name": "sobject",
|
|
648
|
-
"required": true,
|
|
649
|
-
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
650
|
-
"hasDynamicHelp": false,
|
|
651
|
-
"multiple": false,
|
|
652
|
-
"type": "option"
|
|
653
|
-
},
|
|
654
|
-
"values": {
|
|
655
|
-
"char": "v",
|
|
656
|
-
"name": "values",
|
|
657
|
-
"required": true,
|
|
658
|
-
"summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
|
|
659
|
-
"hasDynamicHelp": false,
|
|
660
|
-
"multiple": false,
|
|
661
|
-
"type": "option"
|
|
662
|
-
},
|
|
663
|
-
"use-tooling-api": {
|
|
664
|
-
"aliases": [
|
|
665
|
-
"usetoolingapi"
|
|
666
|
-
],
|
|
667
|
-
"char": "t",
|
|
668
|
-
"deprecateAliases": true,
|
|
669
|
-
"name": "use-tooling-api",
|
|
670
|
-
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
671
|
-
"allowNo": false,
|
|
672
|
-
"type": "boolean"
|
|
673
|
-
},
|
|
674
|
-
"perflog": {
|
|
675
|
-
"deprecated": {
|
|
676
|
-
"version": "57"
|
|
677
|
-
},
|
|
678
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
679
|
-
"hidden": true,
|
|
680
|
-
"name": "perflog",
|
|
681
|
-
"summary": "Get API performance data.",
|
|
682
|
-
"allowNo": false,
|
|
683
|
-
"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
|
-
}
|
|
691
|
-
},
|
|
692
|
-
"hasDynamicHelp": true,
|
|
693
|
-
"hiddenAliases": [],
|
|
694
|
-
"id": "data:create:record",
|
|
695
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
696
|
-
"pluginName": "@salesforce/plugin-data",
|
|
697
|
-
"pluginType": "core",
|
|
698
|
-
"strict": true,
|
|
699
|
-
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
700
|
-
"enableJsonFlag": true,
|
|
701
|
-
"isESM": true,
|
|
702
|
-
"relativePath": [
|
|
703
|
-
"lib",
|
|
704
|
-
"commands",
|
|
705
|
-
"data",
|
|
706
|
-
"create",
|
|
707
|
-
"record.js"
|
|
708
|
-
],
|
|
709
|
-
"aliasPermutations": [
|
|
710
|
-
"force:data:record:create",
|
|
711
|
-
"data:force:record:create",
|
|
712
|
-
"data:record:force:create",
|
|
713
|
-
"data:record:create:force",
|
|
714
|
-
"force:record:data:create",
|
|
715
|
-
"record:force:data:create",
|
|
716
|
-
"record:data:force:create",
|
|
717
|
-
"record:data:create:force",
|
|
718
|
-
"force:record:create:data",
|
|
719
|
-
"record:force:create:data",
|
|
720
|
-
"record:create:force:data",
|
|
721
|
-
"record:create:data:force",
|
|
722
|
-
"force:data:create:record",
|
|
723
|
-
"data:force:create:record",
|
|
724
|
-
"data:create:force:record",
|
|
725
|
-
"data:create:record:force",
|
|
726
|
-
"force:create:data:record",
|
|
727
|
-
"create:force:data:record",
|
|
728
|
-
"create:data:force:record",
|
|
729
|
-
"create:data:record:force",
|
|
730
|
-
"force:create:record:data",
|
|
731
|
-
"create:force:record:data",
|
|
732
|
-
"create:record:force:data",
|
|
733
|
-
"create:record:data:force"
|
|
734
|
-
],
|
|
735
|
-
"permutations": [
|
|
736
|
-
"data:create:record",
|
|
737
|
-
"create:data:record",
|
|
738
|
-
"create:record:data",
|
|
739
|
-
"data:record:create",
|
|
740
|
-
"record:data:create",
|
|
741
|
-
"record:create:data"
|
|
742
|
-
]
|
|
743
|
-
},
|
|
744
481
|
"data:delete:bulk": {
|
|
745
482
|
"aliases": [],
|
|
746
483
|
"args": {},
|
|
@@ -1133,42 +870,305 @@
|
|
|
1133
870
|
"multiple": false,
|
|
1134
871
|
"type": "option"
|
|
1135
872
|
},
|
|
1136
|
-
"loglevel": {
|
|
873
|
+
"loglevel": {
|
|
874
|
+
"deprecated": {
|
|
875
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
876
|
+
},
|
|
877
|
+
"hidden": true,
|
|
878
|
+
"name": "loglevel",
|
|
879
|
+
"hasDynamicHelp": false,
|
|
880
|
+
"multiple": false,
|
|
881
|
+
"type": "option"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"hasDynamicHelp": true,
|
|
885
|
+
"hiddenAliases": [],
|
|
886
|
+
"id": "data:delete:resume",
|
|
887
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
888
|
+
"pluginName": "@salesforce/plugin-data",
|
|
889
|
+
"pluginType": "core",
|
|
890
|
+
"strict": true,
|
|
891
|
+
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
892
|
+
"enableJsonFlag": true,
|
|
893
|
+
"isESM": true,
|
|
894
|
+
"relativePath": [
|
|
895
|
+
"lib",
|
|
896
|
+
"commands",
|
|
897
|
+
"data",
|
|
898
|
+
"delete",
|
|
899
|
+
"resume.js"
|
|
900
|
+
],
|
|
901
|
+
"aliasPermutations": [],
|
|
902
|
+
"permutations": [
|
|
903
|
+
"data:delete:resume",
|
|
904
|
+
"delete:data:resume",
|
|
905
|
+
"delete:resume:data",
|
|
906
|
+
"data:resume:delete",
|
|
907
|
+
"resume:data:delete",
|
|
908
|
+
"resume:delete:data"
|
|
909
|
+
]
|
|
910
|
+
},
|
|
911
|
+
"data:create:file": {
|
|
912
|
+
"aliases": [],
|
|
913
|
+
"args": {},
|
|
914
|
+
"description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
|
|
915
|
+
"examples": [
|
|
916
|
+
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
|
917
|
+
"Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
|
|
918
|
+
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
919
|
+
],
|
|
920
|
+
"flags": {
|
|
921
|
+
"json": {
|
|
922
|
+
"description": "Format output as json.",
|
|
923
|
+
"helpGroup": "GLOBAL",
|
|
924
|
+
"name": "json",
|
|
925
|
+
"allowNo": false,
|
|
926
|
+
"type": "boolean"
|
|
927
|
+
},
|
|
928
|
+
"flags-dir": {
|
|
929
|
+
"helpGroup": "GLOBAL",
|
|
930
|
+
"name": "flags-dir",
|
|
931
|
+
"summary": "Import flag values from a directory.",
|
|
932
|
+
"hasDynamicHelp": false,
|
|
933
|
+
"multiple": false,
|
|
934
|
+
"type": "option"
|
|
935
|
+
},
|
|
936
|
+
"target-org": {
|
|
937
|
+
"char": "o",
|
|
938
|
+
"name": "target-org",
|
|
939
|
+
"noCacheDefault": true,
|
|
940
|
+
"required": true,
|
|
941
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
942
|
+
"hasDynamicHelp": true,
|
|
943
|
+
"multiple": false,
|
|
944
|
+
"type": "option"
|
|
945
|
+
},
|
|
946
|
+
"api-version": {
|
|
947
|
+
"description": "Override the api version used for api requests made by this command",
|
|
948
|
+
"name": "api-version",
|
|
949
|
+
"hasDynamicHelp": false,
|
|
950
|
+
"multiple": false,
|
|
951
|
+
"type": "option"
|
|
952
|
+
},
|
|
953
|
+
"title": {
|
|
954
|
+
"char": "t",
|
|
955
|
+
"name": "title",
|
|
956
|
+
"required": false,
|
|
957
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
958
|
+
"hasDynamicHelp": false,
|
|
959
|
+
"multiple": false,
|
|
960
|
+
"type": "option"
|
|
961
|
+
},
|
|
962
|
+
"file": {
|
|
963
|
+
"char": "f",
|
|
964
|
+
"name": "file",
|
|
965
|
+
"required": true,
|
|
966
|
+
"summary": "Path of file to upload.",
|
|
967
|
+
"hasDynamicHelp": false,
|
|
968
|
+
"multiple": false,
|
|
969
|
+
"type": "option"
|
|
970
|
+
},
|
|
971
|
+
"parent-id": {
|
|
972
|
+
"char": "i",
|
|
973
|
+
"name": "parent-id",
|
|
974
|
+
"summary": "ID of the record to attach the file to.",
|
|
975
|
+
"hasDynamicHelp": false,
|
|
976
|
+
"multiple": false,
|
|
977
|
+
"type": "option"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"hasDynamicHelp": true,
|
|
981
|
+
"hiddenAliases": [],
|
|
982
|
+
"id": "data:create:file",
|
|
983
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
984
|
+
"pluginName": "@salesforce/plugin-data",
|
|
985
|
+
"pluginType": "core",
|
|
986
|
+
"strict": true,
|
|
987
|
+
"summary": "Upload a local file to an org.",
|
|
988
|
+
"enableJsonFlag": true,
|
|
989
|
+
"isESM": true,
|
|
990
|
+
"relativePath": [
|
|
991
|
+
"lib",
|
|
992
|
+
"commands",
|
|
993
|
+
"data",
|
|
994
|
+
"create",
|
|
995
|
+
"file.js"
|
|
996
|
+
],
|
|
997
|
+
"aliasPermutations": [],
|
|
998
|
+
"permutations": [
|
|
999
|
+
"data:create:file",
|
|
1000
|
+
"create:data:file",
|
|
1001
|
+
"create:file:data",
|
|
1002
|
+
"data:file:create",
|
|
1003
|
+
"file:data:create",
|
|
1004
|
+
"file:create:data"
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"data:create:record": {
|
|
1008
|
+
"aliases": [
|
|
1009
|
+
"force:data:record:create"
|
|
1010
|
+
],
|
|
1011
|
+
"args": {},
|
|
1012
|
+
"deprecateAliases": true,
|
|
1013
|
+
"description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
|
|
1014
|
+
"examples": [
|
|
1015
|
+
"Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
|
|
1016
|
+
"Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
|
|
1017
|
+
"Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
|
|
1018
|
+
],
|
|
1019
|
+
"flags": {
|
|
1020
|
+
"json": {
|
|
1021
|
+
"description": "Format output as json.",
|
|
1022
|
+
"helpGroup": "GLOBAL",
|
|
1023
|
+
"name": "json",
|
|
1024
|
+
"allowNo": false,
|
|
1025
|
+
"type": "boolean"
|
|
1026
|
+
},
|
|
1027
|
+
"flags-dir": {
|
|
1028
|
+
"helpGroup": "GLOBAL",
|
|
1029
|
+
"name": "flags-dir",
|
|
1030
|
+
"summary": "Import flag values from a directory.",
|
|
1031
|
+
"hasDynamicHelp": false,
|
|
1032
|
+
"multiple": false,
|
|
1033
|
+
"type": "option"
|
|
1034
|
+
},
|
|
1035
|
+
"target-org": {
|
|
1036
|
+
"aliases": [
|
|
1037
|
+
"targetusername",
|
|
1038
|
+
"u"
|
|
1039
|
+
],
|
|
1040
|
+
"char": "o",
|
|
1041
|
+
"deprecateAliases": true,
|
|
1042
|
+
"name": "target-org",
|
|
1043
|
+
"noCacheDefault": true,
|
|
1044
|
+
"required": true,
|
|
1045
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1046
|
+
"hasDynamicHelp": true,
|
|
1047
|
+
"multiple": false,
|
|
1048
|
+
"type": "option"
|
|
1049
|
+
},
|
|
1050
|
+
"api-version": {
|
|
1051
|
+
"aliases": [
|
|
1052
|
+
"apiversion"
|
|
1053
|
+
],
|
|
1054
|
+
"deprecateAliases": true,
|
|
1055
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1056
|
+
"name": "api-version",
|
|
1057
|
+
"hasDynamicHelp": false,
|
|
1058
|
+
"multiple": false,
|
|
1059
|
+
"type": "option"
|
|
1060
|
+
},
|
|
1061
|
+
"loglevel": {
|
|
1062
|
+
"deprecated": {
|
|
1063
|
+
"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."
|
|
1064
|
+
},
|
|
1065
|
+
"hidden": true,
|
|
1066
|
+
"name": "loglevel",
|
|
1067
|
+
"hasDynamicHelp": false,
|
|
1068
|
+
"multiple": false,
|
|
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": {
|
|
1137
1105
|
"deprecated": {
|
|
1138
|
-
"
|
|
1106
|
+
"version": "57"
|
|
1139
1107
|
},
|
|
1108
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1140
1109
|
"hidden": true,
|
|
1141
|
-
"name": "
|
|
1142
|
-
"
|
|
1143
|
-
"
|
|
1144
|
-
"type": "
|
|
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": {
|
|
@@ -1501,246 +1501,73 @@
|
|
|
1501
1501
|
"char": "x",
|
|
1502
1502
|
"name": "prefix",
|
|
1503
1503
|
"summary": "Prefix of generated files.",
|
|
1504
|
-
"hasDynamicHelp": false,
|
|
1505
|
-
"multiple": false,
|
|
1506
|
-
"type": "option"
|
|
1507
|
-
},
|
|
1508
|
-
"output-dir": {
|
|
1509
|
-
"aliases": [
|
|
1510
|
-
"outputdir"
|
|
1511
|
-
],
|
|
1512
|
-
"char": "d",
|
|
1513
|
-
"deprecateAliases": true,
|
|
1514
|
-
"name": "output-dir",
|
|
1515
|
-
"summary": "Directory in which to generate the JSON files; default is current directory.",
|
|
1516
|
-
"hasDynamicHelp": false,
|
|
1517
|
-
"multiple": false,
|
|
1518
|
-
"type": "option"
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
"hasDynamicHelp": true,
|
|
1522
|
-
"hiddenAliases": [],
|
|
1523
|
-
"id": "data:export:tree",
|
|
1524
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
1525
|
-
"pluginName": "@salesforce/plugin-data",
|
|
1526
|
-
"pluginType": "core",
|
|
1527
|
-
"strict": true,
|
|
1528
|
-
"summary": "Export data from an org into one or more JSON files.",
|
|
1529
|
-
"enableJsonFlag": true,
|
|
1530
|
-
"isESM": true,
|
|
1531
|
-
"relativePath": [
|
|
1532
|
-
"lib",
|
|
1533
|
-
"commands",
|
|
1534
|
-
"data",
|
|
1535
|
-
"export",
|
|
1536
|
-
"tree.js"
|
|
1537
|
-
],
|
|
1538
|
-
"aliasPermutations": [
|
|
1539
|
-
"force:data:tree:export",
|
|
1540
|
-
"data:force:tree:export",
|
|
1541
|
-
"data:tree:force:export",
|
|
1542
|
-
"data:tree:export:force",
|
|
1543
|
-
"force:tree:data:export",
|
|
1544
|
-
"tree:force:data:export",
|
|
1545
|
-
"tree:data:force:export",
|
|
1546
|
-
"tree:data:export:force",
|
|
1547
|
-
"force:tree:export:data",
|
|
1548
|
-
"tree:force:export:data",
|
|
1549
|
-
"tree:export:force:data",
|
|
1550
|
-
"tree:export:data:force",
|
|
1551
|
-
"force:data:export:tree",
|
|
1552
|
-
"data:force:export:tree",
|
|
1553
|
-
"data:export:force:tree",
|
|
1554
|
-
"data:export:tree:force",
|
|
1555
|
-
"force:export:data:tree",
|
|
1556
|
-
"export:force:data:tree",
|
|
1557
|
-
"export:data:force:tree",
|
|
1558
|
-
"export:data:tree:force",
|
|
1559
|
-
"force:export:tree:data",
|
|
1560
|
-
"export:force:tree:data",
|
|
1561
|
-
"export:tree:force:data",
|
|
1562
|
-
"export:tree:data:force"
|
|
1563
|
-
],
|
|
1564
|
-
"permutations": [
|
|
1565
|
-
"data:export:tree",
|
|
1566
|
-
"export:data:tree",
|
|
1567
|
-
"export:tree:data",
|
|
1568
|
-
"data:tree:export",
|
|
1569
|
-
"tree:data:export",
|
|
1570
|
-
"tree:export:data"
|
|
1571
|
-
]
|
|
1572
|
-
},
|
|
1573
|
-
"data:get:record": {
|
|
1574
|
-
"aliases": [
|
|
1575
|
-
"force:data:record:get"
|
|
1576
|
-
],
|
|
1577
|
-
"args": {},
|
|
1578
|
-
"deprecateAliases": true,
|
|
1579
|
-
"description": "Specify the record you want to retrieve 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 command 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\nThe command displays all the record's fields and their values, one field per terminal line. Fields with no values are displayed as \"null\".\n\nThis command retrieves a record from Salesforce objects by default. Use the --use-tooling-api flag to retrieve from a Tooling API object.",
|
|
1580
|
-
"examples": [
|
|
1581
|
-
"Retrieve and display a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
|
|
1582
|
-
"Retrieve a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
|
|
1583
|
-
"Retrieve 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",
|
|
1584
|
-
"Retrieve 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"
|
|
1585
|
-
],
|
|
1586
|
-
"flags": {
|
|
1587
|
-
"json": {
|
|
1588
|
-
"description": "Format output as json.",
|
|
1589
|
-
"helpGroup": "GLOBAL",
|
|
1590
|
-
"name": "json",
|
|
1591
|
-
"allowNo": false,
|
|
1592
|
-
"type": "boolean"
|
|
1593
|
-
},
|
|
1594
|
-
"flags-dir": {
|
|
1595
|
-
"helpGroup": "GLOBAL",
|
|
1596
|
-
"name": "flags-dir",
|
|
1597
|
-
"summary": "Import flag values from a directory.",
|
|
1598
|
-
"hasDynamicHelp": false,
|
|
1599
|
-
"multiple": false,
|
|
1600
|
-
"type": "option"
|
|
1601
|
-
},
|
|
1602
|
-
"target-org": {
|
|
1603
|
-
"aliases": [
|
|
1604
|
-
"targetusername",
|
|
1605
|
-
"u"
|
|
1606
|
-
],
|
|
1607
|
-
"char": "o",
|
|
1608
|
-
"deprecateAliases": true,
|
|
1609
|
-
"name": "target-org",
|
|
1610
|
-
"noCacheDefault": true,
|
|
1611
|
-
"required": true,
|
|
1612
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1613
|
-
"hasDynamicHelp": true,
|
|
1614
|
-
"multiple": false,
|
|
1615
|
-
"type": "option"
|
|
1616
|
-
},
|
|
1617
|
-
"api-version": {
|
|
1618
|
-
"aliases": [
|
|
1619
|
-
"apiversion"
|
|
1620
|
-
],
|
|
1621
|
-
"deprecateAliases": true,
|
|
1622
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1623
|
-
"name": "api-version",
|
|
1624
|
-
"hasDynamicHelp": false,
|
|
1625
|
-
"multiple": false,
|
|
1626
|
-
"type": "option"
|
|
1627
|
-
},
|
|
1628
|
-
"loglevel": {
|
|
1629
|
-
"deprecated": {
|
|
1630
|
-
"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."
|
|
1631
|
-
},
|
|
1632
|
-
"hidden": true,
|
|
1633
|
-
"name": "loglevel",
|
|
1634
|
-
"hasDynamicHelp": false,
|
|
1635
|
-
"multiple": false,
|
|
1636
|
-
"type": "option"
|
|
1637
|
-
},
|
|
1638
|
-
"sobject": {
|
|
1639
|
-
"aliases": [
|
|
1640
|
-
"sobjecttype"
|
|
1641
|
-
],
|
|
1642
|
-
"char": "s",
|
|
1643
|
-
"deprecateAliases": true,
|
|
1644
|
-
"name": "sobject",
|
|
1645
|
-
"required": true,
|
|
1646
|
-
"summary": "API name of the Salesforce or Tooling API object that you're retrieving a record from.",
|
|
1647
|
-
"hasDynamicHelp": false,
|
|
1648
|
-
"multiple": false,
|
|
1649
|
-
"type": "option"
|
|
1650
|
-
},
|
|
1651
|
-
"record-id": {
|
|
1652
|
-
"aliases": [
|
|
1653
|
-
"sobjectid"
|
|
1654
|
-
],
|
|
1655
|
-
"char": "i",
|
|
1656
|
-
"deprecateAliases": true,
|
|
1657
|
-
"name": "record-id",
|
|
1658
|
-
"summary": "ID of the record you’re retrieving.",
|
|
1659
|
-
"hasDynamicHelp": false,
|
|
1660
|
-
"multiple": false,
|
|
1661
|
-
"type": "option"
|
|
1662
|
-
},
|
|
1663
|
-
"where": {
|
|
1664
|
-
"char": "w",
|
|
1665
|
-
"name": "where",
|
|
1666
|
-
"summary": "List of <fieldName>=<value> pairs that identify the record you want to display.",
|
|
1667
|
-
"hasDynamicHelp": false,
|
|
1668
|
-
"multiple": false,
|
|
1669
|
-
"type": "option"
|
|
1670
|
-
},
|
|
1671
|
-
"use-tooling-api": {
|
|
1672
|
-
"aliases": [
|
|
1673
|
-
"usetoolingapi"
|
|
1674
|
-
],
|
|
1675
|
-
"char": "t",
|
|
1676
|
-
"deprecateAliases": true,
|
|
1677
|
-
"name": "use-tooling-api",
|
|
1678
|
-
"summary": "Use Tooling API so you can retrieve a record from a Tooling API object.",
|
|
1679
|
-
"allowNo": false,
|
|
1680
|
-
"type": "boolean"
|
|
1681
|
-
},
|
|
1682
|
-
"perflog": {
|
|
1683
|
-
"deprecated": {
|
|
1684
|
-
"version": "57"
|
|
1685
|
-
},
|
|
1686
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1687
|
-
"hidden": true,
|
|
1688
|
-
"name": "perflog",
|
|
1689
|
-
"summary": "Get API performance data.",
|
|
1690
|
-
"allowNo": false,
|
|
1691
|
-
"type": "boolean"
|
|
1504
|
+
"hasDynamicHelp": false,
|
|
1505
|
+
"multiple": false,
|
|
1506
|
+
"type": "option"
|
|
1507
|
+
},
|
|
1508
|
+
"output-dir": {
|
|
1509
|
+
"aliases": [
|
|
1510
|
+
"outputdir"
|
|
1511
|
+
],
|
|
1512
|
+
"char": "d",
|
|
1513
|
+
"deprecateAliases": true,
|
|
1514
|
+
"name": "output-dir",
|
|
1515
|
+
"summary": "Directory in which to generate the JSON files; default is current directory.",
|
|
1516
|
+
"hasDynamicHelp": false,
|
|
1517
|
+
"multiple": false,
|
|
1518
|
+
"type": "option"
|
|
1692
1519
|
}
|
|
1693
1520
|
},
|
|
1694
1521
|
"hasDynamicHelp": true,
|
|
1695
1522
|
"hiddenAliases": [],
|
|
1696
|
-
"id": "data:
|
|
1523
|
+
"id": "data:export:tree",
|
|
1697
1524
|
"pluginAlias": "@salesforce/plugin-data",
|
|
1698
1525
|
"pluginName": "@salesforce/plugin-data",
|
|
1699
1526
|
"pluginType": "core",
|
|
1700
1527
|
"strict": true,
|
|
1701
|
-
"summary": "
|
|
1528
|
+
"summary": "Export data from an org into one or more JSON files.",
|
|
1702
1529
|
"enableJsonFlag": true,
|
|
1703
1530
|
"isESM": true,
|
|
1704
1531
|
"relativePath": [
|
|
1705
1532
|
"lib",
|
|
1706
1533
|
"commands",
|
|
1707
1534
|
"data",
|
|
1708
|
-
"
|
|
1709
|
-
"
|
|
1535
|
+
"export",
|
|
1536
|
+
"tree.js"
|
|
1710
1537
|
],
|
|
1711
1538
|
"aliasPermutations": [
|
|
1712
|
-
"force:data:
|
|
1713
|
-
"data:force:
|
|
1714
|
-
"data:
|
|
1715
|
-
"data:
|
|
1716
|
-
"force:
|
|
1717
|
-
"
|
|
1718
|
-
"
|
|
1719
|
-
"
|
|
1720
|
-
"force:
|
|
1721
|
-
"
|
|
1722
|
-
"
|
|
1723
|
-
"
|
|
1724
|
-
"force:data:
|
|
1725
|
-
"data:force:
|
|
1726
|
-
"data:
|
|
1727
|
-
"data:
|
|
1728
|
-
"force:
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"
|
|
1732
|
-
"force:
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1735
|
-
"
|
|
1539
|
+
"force:data:tree:export",
|
|
1540
|
+
"data:force:tree:export",
|
|
1541
|
+
"data:tree:force:export",
|
|
1542
|
+
"data:tree:export:force",
|
|
1543
|
+
"force:tree:data:export",
|
|
1544
|
+
"tree:force:data:export",
|
|
1545
|
+
"tree:data:force:export",
|
|
1546
|
+
"tree:data:export:force",
|
|
1547
|
+
"force:tree:export:data",
|
|
1548
|
+
"tree:force:export:data",
|
|
1549
|
+
"tree:export:force:data",
|
|
1550
|
+
"tree:export:data:force",
|
|
1551
|
+
"force:data:export:tree",
|
|
1552
|
+
"data:force:export:tree",
|
|
1553
|
+
"data:export:force:tree",
|
|
1554
|
+
"data:export:tree:force",
|
|
1555
|
+
"force:export:data:tree",
|
|
1556
|
+
"export:force:data:tree",
|
|
1557
|
+
"export:data:force:tree",
|
|
1558
|
+
"export:data:tree:force",
|
|
1559
|
+
"force:export:tree:data",
|
|
1560
|
+
"export:force:tree:data",
|
|
1561
|
+
"export:tree:force:data",
|
|
1562
|
+
"export:tree:data:force"
|
|
1736
1563
|
],
|
|
1737
1564
|
"permutations": [
|
|
1738
|
-
"data:
|
|
1739
|
-
"
|
|
1740
|
-
"
|
|
1741
|
-
"data:
|
|
1742
|
-
"
|
|
1743
|
-
"
|
|
1565
|
+
"data:export:tree",
|
|
1566
|
+
"export:data:tree",
|
|
1567
|
+
"export:tree:data",
|
|
1568
|
+
"data:tree:export",
|
|
1569
|
+
"tree:data:export",
|
|
1570
|
+
"tree:export:data"
|
|
1744
1571
|
]
|
|
1745
1572
|
},
|
|
1746
1573
|
"data:import:bulk": {
|
|
@@ -2079,6 +1906,179 @@
|
|
|
2079
1906
|
"tree:import:data"
|
|
2080
1907
|
]
|
|
2081
1908
|
},
|
|
1909
|
+
"data:get:record": {
|
|
1910
|
+
"aliases": [
|
|
1911
|
+
"force:data:record:get"
|
|
1912
|
+
],
|
|
1913
|
+
"args": {},
|
|
1914
|
+
"deprecateAliases": true,
|
|
1915
|
+
"description": "Specify the record you want to retrieve 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 command 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\nThe command displays all the record's fields and their values, one field per terminal line. Fields with no values are displayed as \"null\".\n\nThis command retrieves a record from Salesforce objects by default. Use the --use-tooling-api flag to retrieve from a Tooling API object.",
|
|
1916
|
+
"examples": [
|
|
1917
|
+
"Retrieve and display a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
|
|
1918
|
+
"Retrieve a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
|
|
1919
|
+
"Retrieve 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",
|
|
1920
|
+
"Retrieve 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"
|
|
1921
|
+
],
|
|
1922
|
+
"flags": {
|
|
1923
|
+
"json": {
|
|
1924
|
+
"description": "Format output as json.",
|
|
1925
|
+
"helpGroup": "GLOBAL",
|
|
1926
|
+
"name": "json",
|
|
1927
|
+
"allowNo": false,
|
|
1928
|
+
"type": "boolean"
|
|
1929
|
+
},
|
|
1930
|
+
"flags-dir": {
|
|
1931
|
+
"helpGroup": "GLOBAL",
|
|
1932
|
+
"name": "flags-dir",
|
|
1933
|
+
"summary": "Import flag values from a directory.",
|
|
1934
|
+
"hasDynamicHelp": false,
|
|
1935
|
+
"multiple": false,
|
|
1936
|
+
"type": "option"
|
|
1937
|
+
},
|
|
1938
|
+
"target-org": {
|
|
1939
|
+
"aliases": [
|
|
1940
|
+
"targetusername",
|
|
1941
|
+
"u"
|
|
1942
|
+
],
|
|
1943
|
+
"char": "o",
|
|
1944
|
+
"deprecateAliases": true,
|
|
1945
|
+
"name": "target-org",
|
|
1946
|
+
"noCacheDefault": true,
|
|
1947
|
+
"required": true,
|
|
1948
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1949
|
+
"hasDynamicHelp": true,
|
|
1950
|
+
"multiple": false,
|
|
1951
|
+
"type": "option"
|
|
1952
|
+
},
|
|
1953
|
+
"api-version": {
|
|
1954
|
+
"aliases": [
|
|
1955
|
+
"apiversion"
|
|
1956
|
+
],
|
|
1957
|
+
"deprecateAliases": true,
|
|
1958
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1959
|
+
"name": "api-version",
|
|
1960
|
+
"hasDynamicHelp": false,
|
|
1961
|
+
"multiple": false,
|
|
1962
|
+
"type": "option"
|
|
1963
|
+
},
|
|
1964
|
+
"loglevel": {
|
|
1965
|
+
"deprecated": {
|
|
1966
|
+
"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."
|
|
1967
|
+
},
|
|
1968
|
+
"hidden": true,
|
|
1969
|
+
"name": "loglevel",
|
|
1970
|
+
"hasDynamicHelp": false,
|
|
1971
|
+
"multiple": false,
|
|
1972
|
+
"type": "option"
|
|
1973
|
+
},
|
|
1974
|
+
"sobject": {
|
|
1975
|
+
"aliases": [
|
|
1976
|
+
"sobjecttype"
|
|
1977
|
+
],
|
|
1978
|
+
"char": "s",
|
|
1979
|
+
"deprecateAliases": true,
|
|
1980
|
+
"name": "sobject",
|
|
1981
|
+
"required": true,
|
|
1982
|
+
"summary": "API name of the Salesforce or Tooling API object that you're retrieving a record from.",
|
|
1983
|
+
"hasDynamicHelp": false,
|
|
1984
|
+
"multiple": false,
|
|
1985
|
+
"type": "option"
|
|
1986
|
+
},
|
|
1987
|
+
"record-id": {
|
|
1988
|
+
"aliases": [
|
|
1989
|
+
"sobjectid"
|
|
1990
|
+
],
|
|
1991
|
+
"char": "i",
|
|
1992
|
+
"deprecateAliases": true,
|
|
1993
|
+
"name": "record-id",
|
|
1994
|
+
"summary": "ID of the record you’re retrieving.",
|
|
1995
|
+
"hasDynamicHelp": false,
|
|
1996
|
+
"multiple": false,
|
|
1997
|
+
"type": "option"
|
|
1998
|
+
},
|
|
1999
|
+
"where": {
|
|
2000
|
+
"char": "w",
|
|
2001
|
+
"name": "where",
|
|
2002
|
+
"summary": "List of <fieldName>=<value> pairs that identify the record you want to display.",
|
|
2003
|
+
"hasDynamicHelp": false,
|
|
2004
|
+
"multiple": false,
|
|
2005
|
+
"type": "option"
|
|
2006
|
+
},
|
|
2007
|
+
"use-tooling-api": {
|
|
2008
|
+
"aliases": [
|
|
2009
|
+
"usetoolingapi"
|
|
2010
|
+
],
|
|
2011
|
+
"char": "t",
|
|
2012
|
+
"deprecateAliases": true,
|
|
2013
|
+
"name": "use-tooling-api",
|
|
2014
|
+
"summary": "Use Tooling API so you can retrieve a record from a Tooling API object.",
|
|
2015
|
+
"allowNo": false,
|
|
2016
|
+
"type": "boolean"
|
|
2017
|
+
},
|
|
2018
|
+
"perflog": {
|
|
2019
|
+
"deprecated": {
|
|
2020
|
+
"version": "57"
|
|
2021
|
+
},
|
|
2022
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
2023
|
+
"hidden": true,
|
|
2024
|
+
"name": "perflog",
|
|
2025
|
+
"summary": "Get API performance data.",
|
|
2026
|
+
"allowNo": false,
|
|
2027
|
+
"type": "boolean"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"hasDynamicHelp": true,
|
|
2031
|
+
"hiddenAliases": [],
|
|
2032
|
+
"id": "data:get:record",
|
|
2033
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
2034
|
+
"pluginName": "@salesforce/plugin-data",
|
|
2035
|
+
"pluginType": "core",
|
|
2036
|
+
"strict": true,
|
|
2037
|
+
"summary": "Retrieve and display a single record of a Salesforce or Tooling API object.",
|
|
2038
|
+
"enableJsonFlag": true,
|
|
2039
|
+
"isESM": true,
|
|
2040
|
+
"relativePath": [
|
|
2041
|
+
"lib",
|
|
2042
|
+
"commands",
|
|
2043
|
+
"data",
|
|
2044
|
+
"get",
|
|
2045
|
+
"record.js"
|
|
2046
|
+
],
|
|
2047
|
+
"aliasPermutations": [
|
|
2048
|
+
"force:data:record:get",
|
|
2049
|
+
"data:force:record:get",
|
|
2050
|
+
"data:record:force:get",
|
|
2051
|
+
"data:record:get:force",
|
|
2052
|
+
"force:record:data:get",
|
|
2053
|
+
"record:force:data:get",
|
|
2054
|
+
"record:data:force:get",
|
|
2055
|
+
"record:data:get:force",
|
|
2056
|
+
"force:record:get:data",
|
|
2057
|
+
"record:force:get:data",
|
|
2058
|
+
"record:get:force:data",
|
|
2059
|
+
"record:get:data:force",
|
|
2060
|
+
"force:data:get:record",
|
|
2061
|
+
"data:force:get:record",
|
|
2062
|
+
"data:get:force:record",
|
|
2063
|
+
"data:get:record:force",
|
|
2064
|
+
"force:get:data:record",
|
|
2065
|
+
"get:force:data:record",
|
|
2066
|
+
"get:data:force:record",
|
|
2067
|
+
"get:data:record:force",
|
|
2068
|
+
"force:get:record:data",
|
|
2069
|
+
"get:force:record:data",
|
|
2070
|
+
"get:record:force:data",
|
|
2071
|
+
"get:record:data:force"
|
|
2072
|
+
],
|
|
2073
|
+
"permutations": [
|
|
2074
|
+
"data:get:record",
|
|
2075
|
+
"get:data:record",
|
|
2076
|
+
"get:record:data",
|
|
2077
|
+
"data:record:get",
|
|
2078
|
+
"record:data:get",
|
|
2079
|
+
"record:get:data"
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
2082
|
"data:update:bulk": {
|
|
2083
2083
|
"aliases": [],
|
|
2084
2084
|
"args": {},
|
|
@@ -3178,5 +3178,5 @@
|
|
|
3178
3178
|
]
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
|
-
"version": "5.1.
|
|
3181
|
+
"version": "5.1.3"
|
|
3182
3182
|
}
|