@salesforce/plugin-data 3.7.1 → 3.8.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.
- package/README.md +114 -20
- package/lib/bulkDataRequestCache.js +63 -0
- package/lib/bulkDataRequestCache.js.map +1 -1
- package/lib/commands/data/import/bulk.js +141 -0
- package/lib/commands/data/import/bulk.js.map +1 -0
- package/lib/commands/data/import/resume.js +96 -0
- package/lib/commands/data/import/resume.js.map +1 -0
- package/lib/ux/bulkImportStages.js +97 -0
- package/lib/ux/bulkImportStages.js.map +1 -0
- package/messages/data.import.bulk.md +79 -0
- package/messages/data.import.resume.md +61 -0
- package/messages/messages.md +1 -1
- package/oclif.manifest.json +466 -269
- package/package.json +6 -5
package/oclif.manifest.json
CHANGED
|
@@ -424,263 +424,6 @@
|
|
|
424
424
|
"search:data"
|
|
425
425
|
]
|
|
426
426
|
},
|
|
427
|
-
"data:create:file": {
|
|
428
|
-
"aliases": [],
|
|
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.",
|
|
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"
|
|
435
|
-
],
|
|
436
|
-
"flags": {
|
|
437
|
-
"json": {
|
|
438
|
-
"description": "Format output as json.",
|
|
439
|
-
"helpGroup": "GLOBAL",
|
|
440
|
-
"name": "json",
|
|
441
|
-
"allowNo": false,
|
|
442
|
-
"type": "boolean"
|
|
443
|
-
},
|
|
444
|
-
"flags-dir": {
|
|
445
|
-
"helpGroup": "GLOBAL",
|
|
446
|
-
"name": "flags-dir",
|
|
447
|
-
"summary": "Import flag values from a directory.",
|
|
448
|
-
"hasDynamicHelp": false,
|
|
449
|
-
"multiple": false,
|
|
450
|
-
"type": "option"
|
|
451
|
-
},
|
|
452
|
-
"target-org": {
|
|
453
|
-
"char": "o",
|
|
454
|
-
"name": "target-org",
|
|
455
|
-
"noCacheDefault": true,
|
|
456
|
-
"required": true,
|
|
457
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
458
|
-
"hasDynamicHelp": true,
|
|
459
|
-
"multiple": false,
|
|
460
|
-
"type": "option"
|
|
461
|
-
},
|
|
462
|
-
"api-version": {
|
|
463
|
-
"description": "Override the api version used for api requests made by this command",
|
|
464
|
-
"name": "api-version",
|
|
465
|
-
"hasDynamicHelp": false,
|
|
466
|
-
"multiple": false,
|
|
467
|
-
"type": "option"
|
|
468
|
-
},
|
|
469
|
-
"title": {
|
|
470
|
-
"char": "t",
|
|
471
|
-
"name": "title",
|
|
472
|
-
"required": false,
|
|
473
|
-
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
474
|
-
"hasDynamicHelp": false,
|
|
475
|
-
"multiple": false,
|
|
476
|
-
"type": "option"
|
|
477
|
-
},
|
|
478
|
-
"file": {
|
|
479
|
-
"char": "f",
|
|
480
|
-
"name": "file",
|
|
481
|
-
"required": true,
|
|
482
|
-
"summary": "Path of file to upload.",
|
|
483
|
-
"hasDynamicHelp": false,
|
|
484
|
-
"multiple": false,
|
|
485
|
-
"type": "option"
|
|
486
|
-
},
|
|
487
|
-
"parent-id": {
|
|
488
|
-
"char": "i",
|
|
489
|
-
"name": "parent-id",
|
|
490
|
-
"summary": "ID of the record to attach the file to.",
|
|
491
|
-
"hasDynamicHelp": false,
|
|
492
|
-
"multiple": false,
|
|
493
|
-
"type": "option"
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
"hasDynamicHelp": true,
|
|
497
|
-
"hiddenAliases": [],
|
|
498
|
-
"id": "data:create:file",
|
|
499
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
500
|
-
"pluginName": "@salesforce/plugin-data",
|
|
501
|
-
"pluginType": "core",
|
|
502
|
-
"strict": true,
|
|
503
|
-
"summary": "Upload a local file to an org.",
|
|
504
|
-
"enableJsonFlag": true,
|
|
505
|
-
"isESM": true,
|
|
506
|
-
"relativePath": [
|
|
507
|
-
"lib",
|
|
508
|
-
"commands",
|
|
509
|
-
"data",
|
|
510
|
-
"create",
|
|
511
|
-
"file.js"
|
|
512
|
-
],
|
|
513
|
-
"aliasPermutations": [],
|
|
514
|
-
"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"
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
"data:create:record": {
|
|
524
|
-
"aliases": [
|
|
525
|
-
"force:data:record:create"
|
|
526
|
-
],
|
|
527
|
-
"args": {},
|
|
528
|
-
"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.",
|
|
530
|
-
"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\""
|
|
534
|
-
],
|
|
535
|
-
"flags": {
|
|
536
|
-
"json": {
|
|
537
|
-
"description": "Format output as json.",
|
|
538
|
-
"helpGroup": "GLOBAL",
|
|
539
|
-
"name": "json",
|
|
540
|
-
"allowNo": false,
|
|
541
|
-
"type": "boolean"
|
|
542
|
-
},
|
|
543
|
-
"flags-dir": {
|
|
544
|
-
"helpGroup": "GLOBAL",
|
|
545
|
-
"name": "flags-dir",
|
|
546
|
-
"summary": "Import flag values from a directory.",
|
|
547
|
-
"hasDynamicHelp": false,
|
|
548
|
-
"multiple": false,
|
|
549
|
-
"type": "option"
|
|
550
|
-
},
|
|
551
|
-
"target-org": {
|
|
552
|
-
"aliases": [
|
|
553
|
-
"targetusername",
|
|
554
|
-
"u"
|
|
555
|
-
],
|
|
556
|
-
"char": "o",
|
|
557
|
-
"deprecateAliases": true,
|
|
558
|
-
"name": "target-org",
|
|
559
|
-
"noCacheDefault": true,
|
|
560
|
-
"required": true,
|
|
561
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
562
|
-
"hasDynamicHelp": true,
|
|
563
|
-
"multiple": false,
|
|
564
|
-
"type": "option"
|
|
565
|
-
},
|
|
566
|
-
"api-version": {
|
|
567
|
-
"aliases": [
|
|
568
|
-
"apiversion"
|
|
569
|
-
],
|
|
570
|
-
"deprecateAliases": true,
|
|
571
|
-
"description": "Override the api version used for api requests made by this command",
|
|
572
|
-
"name": "api-version",
|
|
573
|
-
"hasDynamicHelp": false,
|
|
574
|
-
"multiple": false,
|
|
575
|
-
"type": "option"
|
|
576
|
-
},
|
|
577
|
-
"loglevel": {
|
|
578
|
-
"deprecated": {
|
|
579
|
-
"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."
|
|
580
|
-
},
|
|
581
|
-
"hidden": true,
|
|
582
|
-
"name": "loglevel",
|
|
583
|
-
"hasDynamicHelp": false,
|
|
584
|
-
"multiple": false,
|
|
585
|
-
"type": "option"
|
|
586
|
-
},
|
|
587
|
-
"sobject": {
|
|
588
|
-
"aliases": [
|
|
589
|
-
"sobjecttype"
|
|
590
|
-
],
|
|
591
|
-
"char": "s",
|
|
592
|
-
"deprecateAliases": true,
|
|
593
|
-
"name": "sobject",
|
|
594
|
-
"required": true,
|
|
595
|
-
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
596
|
-
"hasDynamicHelp": false,
|
|
597
|
-
"multiple": false,
|
|
598
|
-
"type": "option"
|
|
599
|
-
},
|
|
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.",
|
|
605
|
-
"hasDynamicHelp": false,
|
|
606
|
-
"multiple": false,
|
|
607
|
-
"type": "option"
|
|
608
|
-
},
|
|
609
|
-
"use-tooling-api": {
|
|
610
|
-
"aliases": [
|
|
611
|
-
"usetoolingapi"
|
|
612
|
-
],
|
|
613
|
-
"char": "t",
|
|
614
|
-
"deprecateAliases": true,
|
|
615
|
-
"name": "use-tooling-api",
|
|
616
|
-
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
617
|
-
"allowNo": false,
|
|
618
|
-
"type": "boolean"
|
|
619
|
-
},
|
|
620
|
-
"perflog": {
|
|
621
|
-
"deprecated": {
|
|
622
|
-
"version": "57"
|
|
623
|
-
},
|
|
624
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
625
|
-
"hidden": true,
|
|
626
|
-
"name": "perflog",
|
|
627
|
-
"summary": "Get API performance data.",
|
|
628
|
-
"allowNo": false,
|
|
629
|
-
"type": "boolean"
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
"hasDynamicHelp": true,
|
|
633
|
-
"hiddenAliases": [],
|
|
634
|
-
"id": "data:create:record",
|
|
635
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
636
|
-
"pluginName": "@salesforce/plugin-data",
|
|
637
|
-
"pluginType": "core",
|
|
638
|
-
"strict": true,
|
|
639
|
-
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
640
|
-
"enableJsonFlag": true,
|
|
641
|
-
"isESM": true,
|
|
642
|
-
"relativePath": [
|
|
643
|
-
"lib",
|
|
644
|
-
"commands",
|
|
645
|
-
"data",
|
|
646
|
-
"create",
|
|
647
|
-
"record.js"
|
|
648
|
-
],
|
|
649
|
-
"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"
|
|
674
|
-
],
|
|
675
|
-
"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"
|
|
682
|
-
]
|
|
683
|
-
},
|
|
684
427
|
"data:delete:bulk": {
|
|
685
428
|
"aliases": [],
|
|
686
429
|
"args": {},
|
|
@@ -1091,29 +834,286 @@
|
|
|
1091
834
|
},
|
|
1092
835
|
"hasDynamicHelp": true,
|
|
1093
836
|
"hiddenAliases": [],
|
|
1094
|
-
"id": "data:delete:resume",
|
|
837
|
+
"id": "data:delete:resume",
|
|
838
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
839
|
+
"pluginName": "@salesforce/plugin-data",
|
|
840
|
+
"pluginType": "core",
|
|
841
|
+
"strict": true,
|
|
842
|
+
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
843
|
+
"enableJsonFlag": true,
|
|
844
|
+
"isESM": true,
|
|
845
|
+
"relativePath": [
|
|
846
|
+
"lib",
|
|
847
|
+
"commands",
|
|
848
|
+
"data",
|
|
849
|
+
"delete",
|
|
850
|
+
"resume.js"
|
|
851
|
+
],
|
|
852
|
+
"aliasPermutations": [],
|
|
853
|
+
"permutations": [
|
|
854
|
+
"data:delete:resume",
|
|
855
|
+
"delete:data:resume",
|
|
856
|
+
"delete:resume:data",
|
|
857
|
+
"data:resume:delete",
|
|
858
|
+
"resume:data:delete",
|
|
859
|
+
"resume:delete:data"
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
"data:create:file": {
|
|
863
|
+
"aliases": [],
|
|
864
|
+
"args": {},
|
|
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.",
|
|
866
|
+
"examples": [
|
|
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"
|
|
870
|
+
],
|
|
871
|
+
"flags": {
|
|
872
|
+
"json": {
|
|
873
|
+
"description": "Format output as json.",
|
|
874
|
+
"helpGroup": "GLOBAL",
|
|
875
|
+
"name": "json",
|
|
876
|
+
"allowNo": false,
|
|
877
|
+
"type": "boolean"
|
|
878
|
+
},
|
|
879
|
+
"flags-dir": {
|
|
880
|
+
"helpGroup": "GLOBAL",
|
|
881
|
+
"name": "flags-dir",
|
|
882
|
+
"summary": "Import flag values from a directory.",
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"target-org": {
|
|
888
|
+
"char": "o",
|
|
889
|
+
"name": "target-org",
|
|
890
|
+
"noCacheDefault": true,
|
|
891
|
+
"required": true,
|
|
892
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
893
|
+
"hasDynamicHelp": true,
|
|
894
|
+
"multiple": false,
|
|
895
|
+
"type": "option"
|
|
896
|
+
},
|
|
897
|
+
"api-version": {
|
|
898
|
+
"description": "Override the api version used for api requests made by this command",
|
|
899
|
+
"name": "api-version",
|
|
900
|
+
"hasDynamicHelp": false,
|
|
901
|
+
"multiple": false,
|
|
902
|
+
"type": "option"
|
|
903
|
+
},
|
|
904
|
+
"title": {
|
|
905
|
+
"char": "t",
|
|
906
|
+
"name": "title",
|
|
907
|
+
"required": false,
|
|
908
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
909
|
+
"hasDynamicHelp": false,
|
|
910
|
+
"multiple": false,
|
|
911
|
+
"type": "option"
|
|
912
|
+
},
|
|
913
|
+
"file": {
|
|
914
|
+
"char": "f",
|
|
915
|
+
"name": "file",
|
|
916
|
+
"required": true,
|
|
917
|
+
"summary": "Path of file to upload.",
|
|
918
|
+
"hasDynamicHelp": false,
|
|
919
|
+
"multiple": false,
|
|
920
|
+
"type": "option"
|
|
921
|
+
},
|
|
922
|
+
"parent-id": {
|
|
923
|
+
"char": "i",
|
|
924
|
+
"name": "parent-id",
|
|
925
|
+
"summary": "ID of the record to attach the file to.",
|
|
926
|
+
"hasDynamicHelp": false,
|
|
927
|
+
"multiple": false,
|
|
928
|
+
"type": "option"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"hasDynamicHelp": true,
|
|
932
|
+
"hiddenAliases": [],
|
|
933
|
+
"id": "data:create:file",
|
|
934
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
935
|
+
"pluginName": "@salesforce/plugin-data",
|
|
936
|
+
"pluginType": "core",
|
|
937
|
+
"strict": true,
|
|
938
|
+
"summary": "Upload a local file to an org.",
|
|
939
|
+
"enableJsonFlag": true,
|
|
940
|
+
"isESM": true,
|
|
941
|
+
"relativePath": [
|
|
942
|
+
"lib",
|
|
943
|
+
"commands",
|
|
944
|
+
"data",
|
|
945
|
+
"create",
|
|
946
|
+
"file.js"
|
|
947
|
+
],
|
|
948
|
+
"aliasPermutations": [],
|
|
949
|
+
"permutations": [
|
|
950
|
+
"data:create:file",
|
|
951
|
+
"create:data:file",
|
|
952
|
+
"create:file:data",
|
|
953
|
+
"data:file:create",
|
|
954
|
+
"file:data:create",
|
|
955
|
+
"file:create:data"
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
"data:create:record": {
|
|
959
|
+
"aliases": [
|
|
960
|
+
"force:data:record:create"
|
|
961
|
+
],
|
|
962
|
+
"args": {},
|
|
963
|
+
"deprecateAliases": true,
|
|
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.",
|
|
965
|
+
"examples": [
|
|
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\""
|
|
969
|
+
],
|
|
970
|
+
"flags": {
|
|
971
|
+
"json": {
|
|
972
|
+
"description": "Format output as json.",
|
|
973
|
+
"helpGroup": "GLOBAL",
|
|
974
|
+
"name": "json",
|
|
975
|
+
"allowNo": false,
|
|
976
|
+
"type": "boolean"
|
|
977
|
+
},
|
|
978
|
+
"flags-dir": {
|
|
979
|
+
"helpGroup": "GLOBAL",
|
|
980
|
+
"name": "flags-dir",
|
|
981
|
+
"summary": "Import flag values from a directory.",
|
|
982
|
+
"hasDynamicHelp": false,
|
|
983
|
+
"multiple": false,
|
|
984
|
+
"type": "option"
|
|
985
|
+
},
|
|
986
|
+
"target-org": {
|
|
987
|
+
"aliases": [
|
|
988
|
+
"targetusername",
|
|
989
|
+
"u"
|
|
990
|
+
],
|
|
991
|
+
"char": "o",
|
|
992
|
+
"deprecateAliases": true,
|
|
993
|
+
"name": "target-org",
|
|
994
|
+
"noCacheDefault": true,
|
|
995
|
+
"required": true,
|
|
996
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
997
|
+
"hasDynamicHelp": true,
|
|
998
|
+
"multiple": false,
|
|
999
|
+
"type": "option"
|
|
1000
|
+
},
|
|
1001
|
+
"api-version": {
|
|
1002
|
+
"aliases": [
|
|
1003
|
+
"apiversion"
|
|
1004
|
+
],
|
|
1005
|
+
"deprecateAliases": true,
|
|
1006
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1007
|
+
"name": "api-version",
|
|
1008
|
+
"hasDynamicHelp": false,
|
|
1009
|
+
"multiple": false,
|
|
1010
|
+
"type": "option"
|
|
1011
|
+
},
|
|
1012
|
+
"loglevel": {
|
|
1013
|
+
"deprecated": {
|
|
1014
|
+
"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."
|
|
1015
|
+
},
|
|
1016
|
+
"hidden": true,
|
|
1017
|
+
"name": "loglevel",
|
|
1018
|
+
"hasDynamicHelp": false,
|
|
1019
|
+
"multiple": false,
|
|
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"
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"hasDynamicHelp": true,
|
|
1068
|
+
"hiddenAliases": [],
|
|
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": "
|
|
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
|
-
"
|
|
1107
|
-
"
|
|
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:
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
"data:
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
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": {
|
|
@@ -1726,6 +1726,203 @@
|
|
|
1726
1726
|
"record:get:data"
|
|
1727
1727
|
]
|
|
1728
1728
|
},
|
|
1729
|
+
"data:import:bulk": {
|
|
1730
|
+
"aliases": [],
|
|
1731
|
+
"args": {},
|
|
1732
|
+
"description": "You can use this command to import millions of records into the object from a file in comma-separated values (CSV) format.\n\nAll the records in the CSV file must be for the same Salesforce object. Specify the object with the `--sobject` flag.\n\nBulk imports can take a while, depending on how many records are in the CSV file. If the command times out, or you specified the --async flag, the command displays the job ID. To see the status and get the results of the job, run \"sf data import resume\" and pass the job ID to the --job-id flag.\n\nFor information and examples about how to prepare your CSV files, see \"Prepare Data to Ingest\" in the \"Bulk API 2.0 and Bulk API Developer Guide\" (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_prepare_data.htm).",
|
|
1733
|
+
"examples": [
|
|
1734
|
+
"Import Account records from a CSV-formatted file into an org with alias \"my-scratch\"; if the import doesn't complete in 10 minutes, the command ends and displays a job ID:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --wait 10 --target-org my-scratch",
|
|
1735
|
+
"Import asynchronously and use the default org; the command immediately returns a job ID that you then pass to the \"sf data import resume\" command:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --async"
|
|
1736
|
+
],
|
|
1737
|
+
"flags": {
|
|
1738
|
+
"json": {
|
|
1739
|
+
"description": "Format output as json.",
|
|
1740
|
+
"helpGroup": "GLOBAL",
|
|
1741
|
+
"name": "json",
|
|
1742
|
+
"allowNo": false,
|
|
1743
|
+
"type": "boolean"
|
|
1744
|
+
},
|
|
1745
|
+
"flags-dir": {
|
|
1746
|
+
"helpGroup": "GLOBAL",
|
|
1747
|
+
"name": "flags-dir",
|
|
1748
|
+
"summary": "Import flag values from a directory.",
|
|
1749
|
+
"hasDynamicHelp": false,
|
|
1750
|
+
"multiple": false,
|
|
1751
|
+
"type": "option"
|
|
1752
|
+
},
|
|
1753
|
+
"async": {
|
|
1754
|
+
"char": "a",
|
|
1755
|
+
"exclusive": [
|
|
1756
|
+
"wait"
|
|
1757
|
+
],
|
|
1758
|
+
"name": "async",
|
|
1759
|
+
"summary": "Don't wait for the command to complete.",
|
|
1760
|
+
"allowNo": false,
|
|
1761
|
+
"type": "boolean"
|
|
1762
|
+
},
|
|
1763
|
+
"file": {
|
|
1764
|
+
"char": "f",
|
|
1765
|
+
"name": "file",
|
|
1766
|
+
"required": true,
|
|
1767
|
+
"summary": "CSV file that contains the Salesforce object records you want to import.",
|
|
1768
|
+
"hasDynamicHelp": false,
|
|
1769
|
+
"multiple": false,
|
|
1770
|
+
"type": "option"
|
|
1771
|
+
},
|
|
1772
|
+
"sobject": {
|
|
1773
|
+
"char": "s",
|
|
1774
|
+
"name": "sobject",
|
|
1775
|
+
"required": true,
|
|
1776
|
+
"summary": "API name of the Salesforce object, either standard or custom, into which you're importing records.",
|
|
1777
|
+
"hasDynamicHelp": false,
|
|
1778
|
+
"multiple": false,
|
|
1779
|
+
"type": "option"
|
|
1780
|
+
},
|
|
1781
|
+
"api-version": {
|
|
1782
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1783
|
+
"name": "api-version",
|
|
1784
|
+
"hasDynamicHelp": false,
|
|
1785
|
+
"multiple": false,
|
|
1786
|
+
"type": "option"
|
|
1787
|
+
},
|
|
1788
|
+
"wait": {
|
|
1789
|
+
"char": "w",
|
|
1790
|
+
"exclusive": [
|
|
1791
|
+
"async"
|
|
1792
|
+
],
|
|
1793
|
+
"name": "wait",
|
|
1794
|
+
"summary": "Time to wait for the command to finish, in minutes.",
|
|
1795
|
+
"hasDynamicHelp": true,
|
|
1796
|
+
"multiple": false,
|
|
1797
|
+
"type": "option"
|
|
1798
|
+
},
|
|
1799
|
+
"target-org": {
|
|
1800
|
+
"char": "o",
|
|
1801
|
+
"name": "target-org",
|
|
1802
|
+
"noCacheDefault": true,
|
|
1803
|
+
"required": true,
|
|
1804
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1805
|
+
"hasDynamicHelp": true,
|
|
1806
|
+
"multiple": false,
|
|
1807
|
+
"type": "option"
|
|
1808
|
+
},
|
|
1809
|
+
"line-ending": {
|
|
1810
|
+
"dependsOn": [
|
|
1811
|
+
"file"
|
|
1812
|
+
],
|
|
1813
|
+
"name": "line-ending",
|
|
1814
|
+
"summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LR`.",
|
|
1815
|
+
"hasDynamicHelp": false,
|
|
1816
|
+
"multiple": false,
|
|
1817
|
+
"options": [
|
|
1818
|
+
"CRLF",
|
|
1819
|
+
"LF"
|
|
1820
|
+
],
|
|
1821
|
+
"type": "option"
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"hasDynamicHelp": true,
|
|
1825
|
+
"hiddenAliases": [],
|
|
1826
|
+
"id": "data:import:bulk",
|
|
1827
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
1828
|
+
"pluginName": "@salesforce/plugin-data",
|
|
1829
|
+
"pluginType": "core",
|
|
1830
|
+
"strict": true,
|
|
1831
|
+
"summary": "Bulk import records into a Salesforce object from a CSV file. Uses Bulk API 2.0.",
|
|
1832
|
+
"enableJsonFlag": true,
|
|
1833
|
+
"isESM": true,
|
|
1834
|
+
"relativePath": [
|
|
1835
|
+
"lib",
|
|
1836
|
+
"commands",
|
|
1837
|
+
"data",
|
|
1838
|
+
"import",
|
|
1839
|
+
"bulk.js"
|
|
1840
|
+
],
|
|
1841
|
+
"aliasPermutations": [],
|
|
1842
|
+
"permutations": [
|
|
1843
|
+
"data:import:bulk",
|
|
1844
|
+
"import:data:bulk",
|
|
1845
|
+
"import:bulk:data",
|
|
1846
|
+
"data:bulk:import",
|
|
1847
|
+
"bulk:data:import",
|
|
1848
|
+
"bulk:import:data"
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1851
|
+
"data:import:resume": {
|
|
1852
|
+
"aliases": [],
|
|
1853
|
+
"args": {},
|
|
1854
|
+
"description": "When the original \"sf data import bulk\" command either times out or is run with the --async flag, it displays a job ID. To see the status and get the results of the bulk import, run this command by either passing it the job ID or using the --use-most-recent flag to specify the most recent bulk import job.",
|
|
1855
|
+
"examples": [
|
|
1856
|
+
"Resume a bulk import job to your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
1857
|
+
"Resume the most recently run bulk import job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
|
|
1858
|
+
],
|
|
1859
|
+
"flags": {
|
|
1860
|
+
"json": {
|
|
1861
|
+
"description": "Format output as json.",
|
|
1862
|
+
"helpGroup": "GLOBAL",
|
|
1863
|
+
"name": "json",
|
|
1864
|
+
"allowNo": false,
|
|
1865
|
+
"type": "boolean"
|
|
1866
|
+
},
|
|
1867
|
+
"flags-dir": {
|
|
1868
|
+
"helpGroup": "GLOBAL",
|
|
1869
|
+
"name": "flags-dir",
|
|
1870
|
+
"summary": "Import flag values from a directory.",
|
|
1871
|
+
"hasDynamicHelp": false,
|
|
1872
|
+
"multiple": false,
|
|
1873
|
+
"type": "option"
|
|
1874
|
+
},
|
|
1875
|
+
"use-most-recent": {
|
|
1876
|
+
"name": "use-most-recent",
|
|
1877
|
+
"summary": "Use the job ID of the bulk import job that was most recently run.",
|
|
1878
|
+
"allowNo": false,
|
|
1879
|
+
"type": "boolean"
|
|
1880
|
+
},
|
|
1881
|
+
"job-id": {
|
|
1882
|
+
"char": "i",
|
|
1883
|
+
"name": "job-id",
|
|
1884
|
+
"summary": "Job ID of the bulk import.",
|
|
1885
|
+
"hasDynamicHelp": false,
|
|
1886
|
+
"multiple": false,
|
|
1887
|
+
"type": "option"
|
|
1888
|
+
},
|
|
1889
|
+
"wait": {
|
|
1890
|
+
"char": "w",
|
|
1891
|
+
"name": "wait",
|
|
1892
|
+
"summary": "Time to wait for the command to finish, in minutes.",
|
|
1893
|
+
"default": "5 minutes",
|
|
1894
|
+
"hasDynamicHelp": true,
|
|
1895
|
+
"multiple": false,
|
|
1896
|
+
"type": "option"
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
"hasDynamicHelp": true,
|
|
1900
|
+
"hiddenAliases": [],
|
|
1901
|
+
"id": "data:import:resume",
|
|
1902
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
1903
|
+
"pluginName": "@salesforce/plugin-data",
|
|
1904
|
+
"pluginType": "core",
|
|
1905
|
+
"strict": true,
|
|
1906
|
+
"summary": "Resume a bulk import job that you previously started. Uses Bulk API 2.0.",
|
|
1907
|
+
"enableJsonFlag": true,
|
|
1908
|
+
"isESM": true,
|
|
1909
|
+
"relativePath": [
|
|
1910
|
+
"lib",
|
|
1911
|
+
"commands",
|
|
1912
|
+
"data",
|
|
1913
|
+
"import",
|
|
1914
|
+
"resume.js"
|
|
1915
|
+
],
|
|
1916
|
+
"aliasPermutations": [],
|
|
1917
|
+
"permutations": [
|
|
1918
|
+
"data:import:resume",
|
|
1919
|
+
"import:data:resume",
|
|
1920
|
+
"import:resume:data",
|
|
1921
|
+
"data:resume:import",
|
|
1922
|
+
"resume:data:import",
|
|
1923
|
+
"resume:import:data"
|
|
1924
|
+
]
|
|
1925
|
+
},
|
|
1729
1926
|
"data:import:tree": {
|
|
1730
1927
|
"aliases": [
|
|
1731
1928
|
"force:data:tree:import",
|
|
@@ -3336,5 +3533,5 @@
|
|
|
3336
3533
|
]
|
|
3337
3534
|
}
|
|
3338
3535
|
},
|
|
3339
|
-
"version": "3.
|
|
3536
|
+
"version": "3.8.0"
|
|
3340
3537
|
}
|