@salesforce/plugin-data 3.5.1 → 3.5.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 +39 -127
- package/lib/commands/data/export/{beta → legacy}/tree.js +11 -8
- package/lib/commands/data/export/legacy/tree.js.map +1 -0
- package/lib/commands/data/export/tree.js +10 -7
- package/lib/commands/data/export/tree.js.map +1 -1
- package/lib/commands/data/import/legacy/tree.js +85 -0
- package/lib/commands/data/import/legacy/tree.js.map +1 -0
- package/lib/commands/data/import/tree.js +10 -40
- package/lib/commands/data/import/tree.js.map +1 -1
- package/lib/commands/data/query.js +4 -4
- package/lib/commands/data/query.js.map +1 -1
- package/lib/commands/data/resume.js +0 -5
- package/lib/commands/data/resume.js.map +1 -1
- package/messages/tree.export.md +9 -1
- package/messages/tree.import.legacy.md +60 -0
- package/messages/tree.import.md +11 -24
- package/oclif.manifest.json +438 -383
- package/package.json +15 -15
- package/lib/commands/data/export/beta/tree.js.map +0 -1
- package/lib/commands/data/import/beta/tree.js +0 -52
- package/lib/commands/data/import/beta/tree.js.map +0 -1
- package/messages/tree.import.beta.md +0 -43
package/oclif.manifest.json
CHANGED
|
@@ -221,10 +221,6 @@
|
|
|
221
221
|
"data:resume": {
|
|
222
222
|
"aliases": [],
|
|
223
223
|
"args": {},
|
|
224
|
-
"deprecationOptions": {
|
|
225
|
-
"to": "force:data:bulk:status",
|
|
226
|
-
"message": "Use force:data:bulk:status instead"
|
|
227
|
-
},
|
|
228
224
|
"description": "Run this command using the job ID or batch ID returned from the \"<%= config.bin %> data delete bulk\" or \"<%= config.bin %> data upsert bulk\" commands.",
|
|
229
225
|
"examples": [
|
|
230
226
|
"View the status of a bulk load job:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
@@ -314,7 +310,6 @@
|
|
|
314
310
|
"pluginAlias": "@salesforce/plugin-data",
|
|
315
311
|
"pluginName": "@salesforce/plugin-data",
|
|
316
312
|
"pluginType": "core",
|
|
317
|
-
"state": "deprecated",
|
|
318
313
|
"strict": true,
|
|
319
314
|
"summary": "View the status of a bulk data load job or batch.",
|
|
320
315
|
"enableJsonFlag": true,
|
|
@@ -331,6 +326,263 @@
|
|
|
331
326
|
"resume:data"
|
|
332
327
|
]
|
|
333
328
|
},
|
|
329
|
+
"data:create:file": {
|
|
330
|
+
"aliases": [],
|
|
331
|
+
"args": {},
|
|
332
|
+
"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.",
|
|
333
|
+
"examples": [
|
|
334
|
+
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
|
335
|
+
"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",
|
|
336
|
+
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
337
|
+
],
|
|
338
|
+
"flags": {
|
|
339
|
+
"json": {
|
|
340
|
+
"description": "Format output as json.",
|
|
341
|
+
"helpGroup": "GLOBAL",
|
|
342
|
+
"name": "json",
|
|
343
|
+
"allowNo": false,
|
|
344
|
+
"type": "boolean"
|
|
345
|
+
},
|
|
346
|
+
"flags-dir": {
|
|
347
|
+
"helpGroup": "GLOBAL",
|
|
348
|
+
"name": "flags-dir",
|
|
349
|
+
"summary": "Import flag values from a directory.",
|
|
350
|
+
"hasDynamicHelp": false,
|
|
351
|
+
"multiple": false,
|
|
352
|
+
"type": "option"
|
|
353
|
+
},
|
|
354
|
+
"target-org": {
|
|
355
|
+
"char": "o",
|
|
356
|
+
"name": "target-org",
|
|
357
|
+
"noCacheDefault": true,
|
|
358
|
+
"required": true,
|
|
359
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
360
|
+
"hasDynamicHelp": true,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"type": "option"
|
|
363
|
+
},
|
|
364
|
+
"api-version": {
|
|
365
|
+
"description": "Override the api version used for api requests made by this command",
|
|
366
|
+
"name": "api-version",
|
|
367
|
+
"hasDynamicHelp": false,
|
|
368
|
+
"multiple": false,
|
|
369
|
+
"type": "option"
|
|
370
|
+
},
|
|
371
|
+
"title": {
|
|
372
|
+
"char": "t",
|
|
373
|
+
"name": "title",
|
|
374
|
+
"required": false,
|
|
375
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
376
|
+
"hasDynamicHelp": false,
|
|
377
|
+
"multiple": false,
|
|
378
|
+
"type": "option"
|
|
379
|
+
},
|
|
380
|
+
"file": {
|
|
381
|
+
"char": "f",
|
|
382
|
+
"name": "file",
|
|
383
|
+
"required": true,
|
|
384
|
+
"summary": "Path of file to upload.",
|
|
385
|
+
"hasDynamicHelp": false,
|
|
386
|
+
"multiple": false,
|
|
387
|
+
"type": "option"
|
|
388
|
+
},
|
|
389
|
+
"parent-id": {
|
|
390
|
+
"char": "i",
|
|
391
|
+
"name": "parent-id",
|
|
392
|
+
"summary": "ID of the record to attach the file to.",
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"hasDynamicHelp": true,
|
|
399
|
+
"hiddenAliases": [],
|
|
400
|
+
"id": "data:create:file",
|
|
401
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
402
|
+
"pluginName": "@salesforce/plugin-data",
|
|
403
|
+
"pluginType": "core",
|
|
404
|
+
"strict": true,
|
|
405
|
+
"summary": "Upload a local file to an org.",
|
|
406
|
+
"enableJsonFlag": true,
|
|
407
|
+
"isESM": true,
|
|
408
|
+
"relativePath": [
|
|
409
|
+
"lib",
|
|
410
|
+
"commands",
|
|
411
|
+
"data",
|
|
412
|
+
"create",
|
|
413
|
+
"file.js"
|
|
414
|
+
],
|
|
415
|
+
"aliasPermutations": [],
|
|
416
|
+
"permutations": [
|
|
417
|
+
"data:create:file",
|
|
418
|
+
"create:data:file",
|
|
419
|
+
"create:file:data",
|
|
420
|
+
"data:file:create",
|
|
421
|
+
"file:data:create",
|
|
422
|
+
"file:create:data"
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
"data:create:record": {
|
|
426
|
+
"aliases": [
|
|
427
|
+
"force:data:record:create"
|
|
428
|
+
],
|
|
429
|
+
"args": {},
|
|
430
|
+
"deprecateAliases": true,
|
|
431
|
+
"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.",
|
|
432
|
+
"examples": [
|
|
433
|
+
"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\"",
|
|
434
|
+
"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",
|
|
435
|
+
"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\""
|
|
436
|
+
],
|
|
437
|
+
"flags": {
|
|
438
|
+
"json": {
|
|
439
|
+
"description": "Format output as json.",
|
|
440
|
+
"helpGroup": "GLOBAL",
|
|
441
|
+
"name": "json",
|
|
442
|
+
"allowNo": false,
|
|
443
|
+
"type": "boolean"
|
|
444
|
+
},
|
|
445
|
+
"flags-dir": {
|
|
446
|
+
"helpGroup": "GLOBAL",
|
|
447
|
+
"name": "flags-dir",
|
|
448
|
+
"summary": "Import flag values from a directory.",
|
|
449
|
+
"hasDynamicHelp": false,
|
|
450
|
+
"multiple": false,
|
|
451
|
+
"type": "option"
|
|
452
|
+
},
|
|
453
|
+
"target-org": {
|
|
454
|
+
"aliases": [
|
|
455
|
+
"targetusername",
|
|
456
|
+
"u"
|
|
457
|
+
],
|
|
458
|
+
"char": "o",
|
|
459
|
+
"deprecateAliases": true,
|
|
460
|
+
"name": "target-org",
|
|
461
|
+
"noCacheDefault": true,
|
|
462
|
+
"required": true,
|
|
463
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
464
|
+
"hasDynamicHelp": true,
|
|
465
|
+
"multiple": false,
|
|
466
|
+
"type": "option"
|
|
467
|
+
},
|
|
468
|
+
"api-version": {
|
|
469
|
+
"aliases": [
|
|
470
|
+
"apiversion"
|
|
471
|
+
],
|
|
472
|
+
"deprecateAliases": true,
|
|
473
|
+
"description": "Override the api version used for api requests made by this command",
|
|
474
|
+
"name": "api-version",
|
|
475
|
+
"hasDynamicHelp": false,
|
|
476
|
+
"multiple": false,
|
|
477
|
+
"type": "option"
|
|
478
|
+
},
|
|
479
|
+
"loglevel": {
|
|
480
|
+
"deprecated": {
|
|
481
|
+
"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."
|
|
482
|
+
},
|
|
483
|
+
"hidden": true,
|
|
484
|
+
"name": "loglevel",
|
|
485
|
+
"hasDynamicHelp": false,
|
|
486
|
+
"multiple": false,
|
|
487
|
+
"type": "option"
|
|
488
|
+
},
|
|
489
|
+
"sobject": {
|
|
490
|
+
"aliases": [
|
|
491
|
+
"sobjecttype"
|
|
492
|
+
],
|
|
493
|
+
"char": "s",
|
|
494
|
+
"deprecateAliases": true,
|
|
495
|
+
"name": "sobject",
|
|
496
|
+
"required": true,
|
|
497
|
+
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
498
|
+
"hasDynamicHelp": false,
|
|
499
|
+
"multiple": false,
|
|
500
|
+
"type": "option"
|
|
501
|
+
},
|
|
502
|
+
"values": {
|
|
503
|
+
"char": "v",
|
|
504
|
+
"name": "values",
|
|
505
|
+
"required": true,
|
|
506
|
+
"summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
|
|
507
|
+
"hasDynamicHelp": false,
|
|
508
|
+
"multiple": false,
|
|
509
|
+
"type": "option"
|
|
510
|
+
},
|
|
511
|
+
"use-tooling-api": {
|
|
512
|
+
"aliases": [
|
|
513
|
+
"usetoolingapi"
|
|
514
|
+
],
|
|
515
|
+
"char": "t",
|
|
516
|
+
"deprecateAliases": true,
|
|
517
|
+
"name": "use-tooling-api",
|
|
518
|
+
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
519
|
+
"allowNo": false,
|
|
520
|
+
"type": "boolean"
|
|
521
|
+
},
|
|
522
|
+
"perflog": {
|
|
523
|
+
"deprecated": {
|
|
524
|
+
"version": "57"
|
|
525
|
+
},
|
|
526
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
527
|
+
"hidden": true,
|
|
528
|
+
"name": "perflog",
|
|
529
|
+
"summary": "Get API performance data.",
|
|
530
|
+
"allowNo": false,
|
|
531
|
+
"type": "boolean"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"hasDynamicHelp": true,
|
|
535
|
+
"hiddenAliases": [],
|
|
536
|
+
"id": "data:create:record",
|
|
537
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
538
|
+
"pluginName": "@salesforce/plugin-data",
|
|
539
|
+
"pluginType": "core",
|
|
540
|
+
"strict": true,
|
|
541
|
+
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
542
|
+
"enableJsonFlag": true,
|
|
543
|
+
"isESM": true,
|
|
544
|
+
"relativePath": [
|
|
545
|
+
"lib",
|
|
546
|
+
"commands",
|
|
547
|
+
"data",
|
|
548
|
+
"create",
|
|
549
|
+
"record.js"
|
|
550
|
+
],
|
|
551
|
+
"aliasPermutations": [
|
|
552
|
+
"force:data:record:create",
|
|
553
|
+
"data:force:record:create",
|
|
554
|
+
"data:record:force:create",
|
|
555
|
+
"data:record:create:force",
|
|
556
|
+
"force:record:data:create",
|
|
557
|
+
"record:force:data:create",
|
|
558
|
+
"record:data:force:create",
|
|
559
|
+
"record:data:create:force",
|
|
560
|
+
"force:record:create:data",
|
|
561
|
+
"record:force:create:data",
|
|
562
|
+
"record:create:force:data",
|
|
563
|
+
"record:create:data:force",
|
|
564
|
+
"force:data:create:record",
|
|
565
|
+
"data:force:create:record",
|
|
566
|
+
"data:create:force:record",
|
|
567
|
+
"data:create:record:force",
|
|
568
|
+
"force:create:data:record",
|
|
569
|
+
"create:force:data:record",
|
|
570
|
+
"create:data:force:record",
|
|
571
|
+
"create:data:record:force",
|
|
572
|
+
"force:create:record:data",
|
|
573
|
+
"create:force:record:data",
|
|
574
|
+
"create:record:force:data",
|
|
575
|
+
"create:record:data:force"
|
|
576
|
+
],
|
|
577
|
+
"permutations": [
|
|
578
|
+
"data:create:record",
|
|
579
|
+
"create:data:record",
|
|
580
|
+
"create:record:data",
|
|
581
|
+
"data:record:create",
|
|
582
|
+
"record:data:create",
|
|
583
|
+
"record:create:data"
|
|
584
|
+
]
|
|
585
|
+
},
|
|
334
586
|
"data:delete:bulk": {
|
|
335
587
|
"aliases": [],
|
|
336
588
|
"args": {},
|
|
@@ -715,323 +967,67 @@
|
|
|
715
967
|
},
|
|
716
968
|
"wait": {
|
|
717
969
|
"name": "wait",
|
|
718
|
-
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
719
|
-
"default": "0 minutes",
|
|
720
|
-
"hasDynamicHelp": true,
|
|
721
|
-
"multiple": false,
|
|
722
|
-
"type": "option"
|
|
723
|
-
},
|
|
724
|
-
"api-version": {
|
|
725
|
-
"description": "Override the api version used for api requests made by this command",
|
|
726
|
-
"name": "api-version",
|
|
727
|
-
"hasDynamicHelp": false,
|
|
728
|
-
"multiple": false,
|
|
729
|
-
"type": "option"
|
|
730
|
-
},
|
|
731
|
-
"loglevel": {
|
|
732
|
-
"deprecated": {
|
|
733
|
-
"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."
|
|
734
|
-
},
|
|
735
|
-
"hidden": true,
|
|
736
|
-
"name": "loglevel",
|
|
737
|
-
"hasDynamicHelp": false,
|
|
738
|
-
"multiple": false,
|
|
739
|
-
"type": "option"
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
"hasDynamicHelp": true,
|
|
743
|
-
"hiddenAliases": [],
|
|
744
|
-
"id": "data:delete:resume",
|
|
745
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
746
|
-
"pluginName": "@salesforce/plugin-data",
|
|
747
|
-
"pluginType": "core",
|
|
748
|
-
"strict": true,
|
|
749
|
-
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
750
|
-
"enableJsonFlag": true,
|
|
751
|
-
"isESM": true,
|
|
752
|
-
"relativePath": [
|
|
753
|
-
"lib",
|
|
754
|
-
"commands",
|
|
755
|
-
"data",
|
|
756
|
-
"delete",
|
|
757
|
-
"resume.js"
|
|
758
|
-
],
|
|
759
|
-
"aliasPermutations": [],
|
|
760
|
-
"permutations": [
|
|
761
|
-
"data:delete:resume",
|
|
762
|
-
"delete:data:resume",
|
|
763
|
-
"delete:resume:data",
|
|
764
|
-
"data:resume:delete",
|
|
765
|
-
"resume:data:delete",
|
|
766
|
-
"resume:delete:data"
|
|
767
|
-
]
|
|
768
|
-
},
|
|
769
|
-
"data:create:file": {
|
|
770
|
-
"aliases": [],
|
|
771
|
-
"args": {},
|
|
772
|
-
"description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
|
|
773
|
-
"examples": [
|
|
774
|
-
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
|
775
|
-
"Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
|
|
776
|
-
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
777
|
-
],
|
|
778
|
-
"flags": {
|
|
779
|
-
"json": {
|
|
780
|
-
"description": "Format output as json.",
|
|
781
|
-
"helpGroup": "GLOBAL",
|
|
782
|
-
"name": "json",
|
|
783
|
-
"allowNo": false,
|
|
784
|
-
"type": "boolean"
|
|
785
|
-
},
|
|
786
|
-
"flags-dir": {
|
|
787
|
-
"helpGroup": "GLOBAL",
|
|
788
|
-
"name": "flags-dir",
|
|
789
|
-
"summary": "Import flag values from a directory.",
|
|
790
|
-
"hasDynamicHelp": false,
|
|
791
|
-
"multiple": false,
|
|
792
|
-
"type": "option"
|
|
793
|
-
},
|
|
794
|
-
"target-org": {
|
|
795
|
-
"char": "o",
|
|
796
|
-
"name": "target-org",
|
|
797
|
-
"noCacheDefault": true,
|
|
798
|
-
"required": true,
|
|
799
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
800
|
-
"hasDynamicHelp": true,
|
|
801
|
-
"multiple": false,
|
|
802
|
-
"type": "option"
|
|
803
|
-
},
|
|
804
|
-
"api-version": {
|
|
805
|
-
"description": "Override the api version used for api requests made by this command",
|
|
806
|
-
"name": "api-version",
|
|
807
|
-
"hasDynamicHelp": false,
|
|
808
|
-
"multiple": false,
|
|
809
|
-
"type": "option"
|
|
810
|
-
},
|
|
811
|
-
"title": {
|
|
812
|
-
"char": "t",
|
|
813
|
-
"name": "title",
|
|
814
|
-
"required": false,
|
|
815
|
-
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
816
|
-
"hasDynamicHelp": false,
|
|
817
|
-
"multiple": false,
|
|
818
|
-
"type": "option"
|
|
819
|
-
},
|
|
820
|
-
"file": {
|
|
821
|
-
"char": "f",
|
|
822
|
-
"name": "file",
|
|
823
|
-
"required": true,
|
|
824
|
-
"summary": "Path of file to upload.",
|
|
825
|
-
"hasDynamicHelp": false,
|
|
826
|
-
"multiple": false,
|
|
827
|
-
"type": "option"
|
|
828
|
-
},
|
|
829
|
-
"parent-id": {
|
|
830
|
-
"char": "i",
|
|
831
|
-
"name": "parent-id",
|
|
832
|
-
"summary": "ID of the record to attach the file to.",
|
|
833
|
-
"hasDynamicHelp": false,
|
|
834
|
-
"multiple": false,
|
|
835
|
-
"type": "option"
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
"hasDynamicHelp": true,
|
|
839
|
-
"hiddenAliases": [],
|
|
840
|
-
"id": "data:create:file",
|
|
841
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
842
|
-
"pluginName": "@salesforce/plugin-data",
|
|
843
|
-
"pluginType": "core",
|
|
844
|
-
"strict": true,
|
|
845
|
-
"summary": "Upload a local file to an org.",
|
|
846
|
-
"enableJsonFlag": true,
|
|
847
|
-
"isESM": true,
|
|
848
|
-
"relativePath": [
|
|
849
|
-
"lib",
|
|
850
|
-
"commands",
|
|
851
|
-
"data",
|
|
852
|
-
"create",
|
|
853
|
-
"file.js"
|
|
854
|
-
],
|
|
855
|
-
"aliasPermutations": [],
|
|
856
|
-
"permutations": [
|
|
857
|
-
"data:create:file",
|
|
858
|
-
"create:data:file",
|
|
859
|
-
"create:file:data",
|
|
860
|
-
"data:file:create",
|
|
861
|
-
"file:data:create",
|
|
862
|
-
"file:create:data"
|
|
863
|
-
]
|
|
864
|
-
},
|
|
865
|
-
"data:create:record": {
|
|
866
|
-
"aliases": [
|
|
867
|
-
"force:data:record:create"
|
|
868
|
-
],
|
|
869
|
-
"args": {},
|
|
870
|
-
"deprecateAliases": true,
|
|
871
|
-
"description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
|
|
872
|
-
"examples": [
|
|
873
|
-
"Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
|
|
874
|
-
"Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
|
|
875
|
-
"Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
|
|
876
|
-
],
|
|
877
|
-
"flags": {
|
|
878
|
-
"json": {
|
|
879
|
-
"description": "Format output as json.",
|
|
880
|
-
"helpGroup": "GLOBAL",
|
|
881
|
-
"name": "json",
|
|
882
|
-
"allowNo": false,
|
|
883
|
-
"type": "boolean"
|
|
884
|
-
},
|
|
885
|
-
"flags-dir": {
|
|
886
|
-
"helpGroup": "GLOBAL",
|
|
887
|
-
"name": "flags-dir",
|
|
888
|
-
"summary": "Import flag values from a directory.",
|
|
889
|
-
"hasDynamicHelp": false,
|
|
890
|
-
"multiple": false,
|
|
891
|
-
"type": "option"
|
|
892
|
-
},
|
|
893
|
-
"target-org": {
|
|
894
|
-
"aliases": [
|
|
895
|
-
"targetusername",
|
|
896
|
-
"u"
|
|
897
|
-
],
|
|
898
|
-
"char": "o",
|
|
899
|
-
"deprecateAliases": true,
|
|
900
|
-
"name": "target-org",
|
|
901
|
-
"noCacheDefault": true,
|
|
902
|
-
"required": true,
|
|
903
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
904
|
-
"hasDynamicHelp": true,
|
|
905
|
-
"multiple": false,
|
|
906
|
-
"type": "option"
|
|
907
|
-
},
|
|
908
|
-
"api-version": {
|
|
909
|
-
"aliases": [
|
|
910
|
-
"apiversion"
|
|
911
|
-
],
|
|
912
|
-
"deprecateAliases": true,
|
|
913
|
-
"description": "Override the api version used for api requests made by this command",
|
|
914
|
-
"name": "api-version",
|
|
915
|
-
"hasDynamicHelp": false,
|
|
916
|
-
"multiple": false,
|
|
917
|
-
"type": "option"
|
|
918
|
-
},
|
|
919
|
-
"loglevel": {
|
|
920
|
-
"deprecated": {
|
|
921
|
-
"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."
|
|
922
|
-
},
|
|
923
|
-
"hidden": true,
|
|
924
|
-
"name": "loglevel",
|
|
925
|
-
"hasDynamicHelp": false,
|
|
926
|
-
"multiple": false,
|
|
927
|
-
"type": "option"
|
|
928
|
-
},
|
|
929
|
-
"sobject": {
|
|
930
|
-
"aliases": [
|
|
931
|
-
"sobjecttype"
|
|
932
|
-
],
|
|
933
|
-
"char": "s",
|
|
934
|
-
"deprecateAliases": true,
|
|
935
|
-
"name": "sobject",
|
|
936
|
-
"required": true,
|
|
937
|
-
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
938
|
-
"hasDynamicHelp": false,
|
|
970
|
+
"summary": "Number of minutes to wait for the command to complete before displaying the results.",
|
|
971
|
+
"default": "0 minutes",
|
|
972
|
+
"hasDynamicHelp": true,
|
|
939
973
|
"multiple": false,
|
|
940
974
|
"type": "option"
|
|
941
975
|
},
|
|
942
|
-
"
|
|
943
|
-
"
|
|
944
|
-
"name": "
|
|
945
|
-
"required": true,
|
|
946
|
-
"summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
|
|
976
|
+
"api-version": {
|
|
977
|
+
"description": "Override the api version used for api requests made by this command",
|
|
978
|
+
"name": "api-version",
|
|
947
979
|
"hasDynamicHelp": false,
|
|
948
980
|
"multiple": false,
|
|
949
981
|
"type": "option"
|
|
950
982
|
},
|
|
951
|
-
"
|
|
952
|
-
"aliases": [
|
|
953
|
-
"usetoolingapi"
|
|
954
|
-
],
|
|
955
|
-
"char": "t",
|
|
956
|
-
"deprecateAliases": true,
|
|
957
|
-
"name": "use-tooling-api",
|
|
958
|
-
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
959
|
-
"allowNo": false,
|
|
960
|
-
"type": "boolean"
|
|
961
|
-
},
|
|
962
|
-
"perflog": {
|
|
983
|
+
"loglevel": {
|
|
963
984
|
"deprecated": {
|
|
964
|
-
"
|
|
985
|
+
"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."
|
|
965
986
|
},
|
|
966
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
967
987
|
"hidden": true,
|
|
968
|
-
"name": "
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"type": "
|
|
988
|
+
"name": "loglevel",
|
|
989
|
+
"hasDynamicHelp": false,
|
|
990
|
+
"multiple": false,
|
|
991
|
+
"type": "option"
|
|
972
992
|
}
|
|
973
993
|
},
|
|
974
994
|
"hasDynamicHelp": true,
|
|
975
995
|
"hiddenAliases": [],
|
|
976
|
-
"id": "data:
|
|
996
|
+
"id": "data:delete:resume",
|
|
977
997
|
"pluginAlias": "@salesforce/plugin-data",
|
|
978
998
|
"pluginName": "@salesforce/plugin-data",
|
|
979
999
|
"pluginType": "core",
|
|
980
1000
|
"strict": true,
|
|
981
|
-
"summary": "
|
|
1001
|
+
"summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
|
|
982
1002
|
"enableJsonFlag": true,
|
|
983
1003
|
"isESM": true,
|
|
984
1004
|
"relativePath": [
|
|
985
1005
|
"lib",
|
|
986
1006
|
"commands",
|
|
987
1007
|
"data",
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
],
|
|
991
|
-
"aliasPermutations": [
|
|
992
|
-
"force:data:record:create",
|
|
993
|
-
"data:force:record:create",
|
|
994
|
-
"data:record:force:create",
|
|
995
|
-
"data:record:create:force",
|
|
996
|
-
"force:record:data:create",
|
|
997
|
-
"record:force:data:create",
|
|
998
|
-
"record:data:force:create",
|
|
999
|
-
"record:data:create:force",
|
|
1000
|
-
"force:record:create:data",
|
|
1001
|
-
"record:force:create:data",
|
|
1002
|
-
"record:create:force:data",
|
|
1003
|
-
"record:create:data:force",
|
|
1004
|
-
"force:data:create:record",
|
|
1005
|
-
"data:force:create:record",
|
|
1006
|
-
"data:create:force:record",
|
|
1007
|
-
"data:create:record:force",
|
|
1008
|
-
"force:create:data:record",
|
|
1009
|
-
"create:force:data:record",
|
|
1010
|
-
"create:data:force:record",
|
|
1011
|
-
"create:data:record:force",
|
|
1012
|
-
"force:create:record:data",
|
|
1013
|
-
"create:force:record:data",
|
|
1014
|
-
"create:record:force:data",
|
|
1015
|
-
"create:record:data:force"
|
|
1008
|
+
"delete",
|
|
1009
|
+
"resume.js"
|
|
1016
1010
|
],
|
|
1011
|
+
"aliasPermutations": [],
|
|
1017
1012
|
"permutations": [
|
|
1018
|
-
"data:
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
"data:
|
|
1022
|
-
"
|
|
1023
|
-
"
|
|
1013
|
+
"data:delete:resume",
|
|
1014
|
+
"delete:data:resume",
|
|
1015
|
+
"delete:resume:data",
|
|
1016
|
+
"data:resume:delete",
|
|
1017
|
+
"resume:data:delete",
|
|
1018
|
+
"resume:delete:data"
|
|
1024
1019
|
]
|
|
1025
1020
|
},
|
|
1026
1021
|
"data:export:tree": {
|
|
1027
1022
|
"aliases": [
|
|
1028
|
-
"force:data:tree:export"
|
|
1023
|
+
"force:data:tree:export",
|
|
1024
|
+
"data:export:beta:tree"
|
|
1029
1025
|
],
|
|
1030
1026
|
"args": {},
|
|
1031
1027
|
"deprecateAliases": true,
|
|
1032
1028
|
"description": "Specify a SOQL query, either directly at the command line or read from a file, to retrieve the data you want to export. The exported data is written to JSON files in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use these JSON files to import data into an org with the \"<%= config.bin %> data import tree\" command.\n\nIf your SOQL query references multiple objects, the command generates a single JSON file by default. You can specify the --plan flag to generate separate JSON files for each object and a plan definition file that aggregates them. You then specify just this plan definition file when you import the data into an org.\n\nThe SOQL query can return a maximum of 2,000 records. For more information, see the REST API Developer Guide. (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm).",
|
|
1033
1029
|
"examples": [
|
|
1034
|
-
"Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:\n<%= config.bin %> <%= command.id %> --query \"SELECT Id, Name, (SELECT Name,
|
|
1030
|
+
"Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:\n<%= config.bin %> <%= command.id %> --query \"SELECT Id, Name, (SELECT Name, Address**c FROM Properties**r) FROM Broker\\_\\_c\"",
|
|
1035
1031
|
"Export data using a SOQL query in the \"query.txt\" file and generate JSON files for each object and a plan that aggregates them:\n<%= config.bin %> <%= command.id %> --query query.txt --plan",
|
|
1036
1032
|
"Prepend \"export-demo\" before each generated file and generate the files in the \"export-out\" directory; run the command on the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --query query.txt --plan --prefix export-demo --output-dir export-out --target-org my-scratch"
|
|
1037
1033
|
],
|
|
@@ -1165,7 +1161,31 @@
|
|
|
1165
1161
|
"force:export:tree:data",
|
|
1166
1162
|
"export:force:tree:data",
|
|
1167
1163
|
"export:tree:force:data",
|
|
1168
|
-
"export:tree:data:force"
|
|
1164
|
+
"export:tree:data:force",
|
|
1165
|
+
"data:export:beta:tree",
|
|
1166
|
+
"export:data:beta:tree",
|
|
1167
|
+
"export:beta:data:tree",
|
|
1168
|
+
"export:beta:tree:data",
|
|
1169
|
+
"data:beta:export:tree",
|
|
1170
|
+
"beta:data:export:tree",
|
|
1171
|
+
"beta:export:data:tree",
|
|
1172
|
+
"beta:export:tree:data",
|
|
1173
|
+
"data:beta:tree:export",
|
|
1174
|
+
"beta:data:tree:export",
|
|
1175
|
+
"beta:tree:data:export",
|
|
1176
|
+
"beta:tree:export:data",
|
|
1177
|
+
"data:export:tree:beta",
|
|
1178
|
+
"export:data:tree:beta",
|
|
1179
|
+
"export:tree:data:beta",
|
|
1180
|
+
"export:tree:beta:data",
|
|
1181
|
+
"data:tree:export:beta",
|
|
1182
|
+
"tree:data:export:beta",
|
|
1183
|
+
"tree:export:data:beta",
|
|
1184
|
+
"tree:export:beta:data",
|
|
1185
|
+
"data:tree:beta:export",
|
|
1186
|
+
"tree:data:beta:export",
|
|
1187
|
+
"tree:beta:data:export",
|
|
1188
|
+
"tree:beta:export:data"
|
|
1169
1189
|
],
|
|
1170
1190
|
"permutations": [
|
|
1171
1191
|
"data:export:tree",
|
|
@@ -1351,11 +1371,12 @@
|
|
|
1351
1371
|
},
|
|
1352
1372
|
"data:import:tree": {
|
|
1353
1373
|
"aliases": [
|
|
1354
|
-
"force:data:tree:import"
|
|
1374
|
+
"force:data:tree:import",
|
|
1375
|
+
"data:import:beta:tree"
|
|
1355
1376
|
],
|
|
1356
1377
|
"args": {},
|
|
1357
1378
|
"deprecateAliases": true,
|
|
1358
|
-
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order
|
|
1379
|
+
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.",
|
|
1359
1380
|
"examples": [
|
|
1360
1381
|
"Import the records contained in two JSON files into the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch",
|
|
1361
1382
|
"Import records using a plan definition file into your default org:\n<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json"
|
|
@@ -1418,9 +1439,6 @@
|
|
|
1418
1439
|
],
|
|
1419
1440
|
"char": "f",
|
|
1420
1441
|
"deprecateAliases": true,
|
|
1421
|
-
"exclusive": [
|
|
1422
|
-
"plan"
|
|
1423
|
-
],
|
|
1424
1442
|
"name": "files",
|
|
1425
1443
|
"summary": "Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.",
|
|
1426
1444
|
"delimiter": ",",
|
|
@@ -1430,41 +1448,12 @@
|
|
|
1430
1448
|
},
|
|
1431
1449
|
"plan": {
|
|
1432
1450
|
"char": "p",
|
|
1451
|
+
"description": "Unlike when you use the `--files` flag, the files listed in the plan definition file **can** contain more then 200 records. When the CLI executes the import, it automatically batches the records to comply with the 200 record limit set by the API.\n\nThe order in which you list the files in the plan definition file matters. Specifically, records with lookups to records in another file should be listed AFTER that file. For example, let's say you're loading Account and Contact records, and the contacts have references to those accounts. Be sure you list the Accounts file before the Contacts file.\n\nThe plan definition file has the following schema:\n\n- items(object) - SObject Type: Definition of records to be insert per SObject Type\n - sobject(string) - Name of SObject: Child file references must have SObject roots of this type\n - files(array) - Files: An array of files paths to load",
|
|
1433
1452
|
"name": "plan",
|
|
1434
1453
|
"summary": "Plan definition file to insert multiple data files.",
|
|
1435
1454
|
"hasDynamicHelp": false,
|
|
1436
1455
|
"multiple": false,
|
|
1437
1456
|
"type": "option"
|
|
1438
|
-
},
|
|
1439
|
-
"content-type": {
|
|
1440
|
-
"aliases": [
|
|
1441
|
-
"contenttype"
|
|
1442
|
-
],
|
|
1443
|
-
"char": "c",
|
|
1444
|
-
"deprecateAliases": true,
|
|
1445
|
-
"deprecated": {
|
|
1446
|
-
"message": "The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
1447
|
-
},
|
|
1448
|
-
"hidden": true,
|
|
1449
|
-
"name": "content-type",
|
|
1450
|
-
"summary": "Content type of import files if their extention is not .json.",
|
|
1451
|
-
"hasDynamicHelp": false,
|
|
1452
|
-
"multiple": false,
|
|
1453
|
-
"type": "option"
|
|
1454
|
-
},
|
|
1455
|
-
"config-help": {
|
|
1456
|
-
"aliases": [
|
|
1457
|
-
"confighelp"
|
|
1458
|
-
],
|
|
1459
|
-
"deprecateAliases": true,
|
|
1460
|
-
"deprecated": {
|
|
1461
|
-
"message": "The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
1462
|
-
},
|
|
1463
|
-
"hidden": true,
|
|
1464
|
-
"name": "config-help",
|
|
1465
|
-
"summary": "Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.",
|
|
1466
|
-
"allowNo": false,
|
|
1467
|
-
"type": "boolean"
|
|
1468
1457
|
}
|
|
1469
1458
|
},
|
|
1470
1459
|
"hasDynamicHelp": true,
|
|
@@ -1508,7 +1497,31 @@
|
|
|
1508
1497
|
"force:import:tree:data",
|
|
1509
1498
|
"import:force:tree:data",
|
|
1510
1499
|
"import:tree:force:data",
|
|
1511
|
-
"import:tree:data:force"
|
|
1500
|
+
"import:tree:data:force",
|
|
1501
|
+
"data:import:beta:tree",
|
|
1502
|
+
"import:data:beta:tree",
|
|
1503
|
+
"import:beta:data:tree",
|
|
1504
|
+
"import:beta:tree:data",
|
|
1505
|
+
"data:beta:import:tree",
|
|
1506
|
+
"beta:data:import:tree",
|
|
1507
|
+
"beta:import:data:tree",
|
|
1508
|
+
"beta:import:tree:data",
|
|
1509
|
+
"data:beta:tree:import",
|
|
1510
|
+
"beta:data:tree:import",
|
|
1511
|
+
"beta:tree:data:import",
|
|
1512
|
+
"beta:tree:import:data",
|
|
1513
|
+
"data:import:tree:beta",
|
|
1514
|
+
"import:data:tree:beta",
|
|
1515
|
+
"import:tree:data:beta",
|
|
1516
|
+
"import:tree:beta:data",
|
|
1517
|
+
"data:tree:import:beta",
|
|
1518
|
+
"tree:data:import:beta",
|
|
1519
|
+
"tree:import:data:beta",
|
|
1520
|
+
"tree:import:beta:data",
|
|
1521
|
+
"data:tree:beta:import",
|
|
1522
|
+
"tree:data:beta:import",
|
|
1523
|
+
"tree:beta:data:import",
|
|
1524
|
+
"tree:beta:import:data"
|
|
1512
1525
|
],
|
|
1513
1526
|
"permutations": [
|
|
1514
1527
|
"data:import:tree",
|
|
@@ -2213,12 +2226,16 @@
|
|
|
2213
2226
|
"resume:upsert:data"
|
|
2214
2227
|
]
|
|
2215
2228
|
},
|
|
2216
|
-
"data:export:
|
|
2229
|
+
"data:export:legacy:tree": {
|
|
2217
2230
|
"aliases": [],
|
|
2218
2231
|
"args": {},
|
|
2232
|
+
"deprecationOptions": {
|
|
2233
|
+
"to": "data tree export",
|
|
2234
|
+
"message": "Starting on Nov 10, 2024, this command will no longer be available. Use `data export tree` instead."
|
|
2235
|
+
},
|
|
2219
2236
|
"description": "Specify a SOQL query, either directly at the command line or read from a file, to retrieve the data you want to export. The exported data is written to JSON files in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use these JSON files to import data into an org with the \"<%= config.bin %> data import tree\" command.\n\nIf your SOQL query references multiple objects, the command generates a single JSON file by default. You can specify the --plan flag to generate separate JSON files for each object and a plan definition file that aggregates them. You then specify just this plan definition file when you import the data into an org.\n\nThe SOQL query can return a maximum of 2,000 records. For more information, see the REST API Developer Guide. (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm).",
|
|
2220
2237
|
"examples": [
|
|
2221
|
-
"Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:\n<%= config.bin %> <%= command.id %> --query \"SELECT Id, Name, (SELECT Name,
|
|
2238
|
+
"Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:\n<%= config.bin %> <%= command.id %> --query \"SELECT Id, Name, (SELECT Name, Address**c FROM Properties**r) FROM Broker\\_\\_c\"",
|
|
2222
2239
|
"Export data using a SOQL query in the \"query.txt\" file and generate JSON files for each object and a plan that aggregates them:\n<%= config.bin %> <%= command.id %> --query query.txt --plan",
|
|
2223
2240
|
"Prepend \"export-demo\" before each generated file and generate the files in the \"export-out\" directory; run the command on the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --query query.txt --plan --prefix export-demo --output-dir export-out --target-org my-scratch"
|
|
2224
2241
|
],
|
|
@@ -2312,12 +2329,13 @@
|
|
|
2312
2329
|
}
|
|
2313
2330
|
},
|
|
2314
2331
|
"hasDynamicHelp": true,
|
|
2332
|
+
"hidden": true,
|
|
2315
2333
|
"hiddenAliases": [],
|
|
2316
|
-
"id": "data:export:
|
|
2334
|
+
"id": "data:export:legacy:tree",
|
|
2317
2335
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2318
2336
|
"pluginName": "@salesforce/plugin-data",
|
|
2319
2337
|
"pluginType": "core",
|
|
2320
|
-
"state": "
|
|
2338
|
+
"state": "deprecated",
|
|
2321
2339
|
"strict": true,
|
|
2322
2340
|
"summary": "Export data from an org into one or more JSON files.",
|
|
2323
2341
|
"enableJsonFlag": true,
|
|
@@ -2327,41 +2345,44 @@
|
|
|
2327
2345
|
"commands",
|
|
2328
2346
|
"data",
|
|
2329
2347
|
"export",
|
|
2330
|
-
"
|
|
2348
|
+
"legacy",
|
|
2331
2349
|
"tree.js"
|
|
2332
2350
|
],
|
|
2333
2351
|
"aliasPermutations": [],
|
|
2334
2352
|
"permutations": [
|
|
2335
|
-
"data:export:
|
|
2336
|
-
"export:data:
|
|
2337
|
-
"export:
|
|
2338
|
-
"export:
|
|
2339
|
-
"data:
|
|
2340
|
-
"
|
|
2341
|
-
"
|
|
2342
|
-
"
|
|
2343
|
-
"data:
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2346
|
-
"
|
|
2347
|
-
"data:export:tree:
|
|
2348
|
-
"export:data:tree:
|
|
2349
|
-
"export:tree:data:
|
|
2350
|
-
"export:tree:
|
|
2351
|
-
"data:tree:export:
|
|
2352
|
-
"tree:data:export:
|
|
2353
|
-
"tree:export:data:
|
|
2354
|
-
"tree:export:
|
|
2355
|
-
"data:tree:
|
|
2356
|
-
"tree:data:
|
|
2357
|
-
"tree:
|
|
2358
|
-
"tree:
|
|
2353
|
+
"data:export:legacy:tree",
|
|
2354
|
+
"export:data:legacy:tree",
|
|
2355
|
+
"export:legacy:data:tree",
|
|
2356
|
+
"export:legacy:tree:data",
|
|
2357
|
+
"data:legacy:export:tree",
|
|
2358
|
+
"legacy:data:export:tree",
|
|
2359
|
+
"legacy:export:data:tree",
|
|
2360
|
+
"legacy:export:tree:data",
|
|
2361
|
+
"data:legacy:tree:export",
|
|
2362
|
+
"legacy:data:tree:export",
|
|
2363
|
+
"legacy:tree:data:export",
|
|
2364
|
+
"legacy:tree:export:data",
|
|
2365
|
+
"data:export:tree:legacy",
|
|
2366
|
+
"export:data:tree:legacy",
|
|
2367
|
+
"export:tree:data:legacy",
|
|
2368
|
+
"export:tree:legacy:data",
|
|
2369
|
+
"data:tree:export:legacy",
|
|
2370
|
+
"tree:data:export:legacy",
|
|
2371
|
+
"tree:export:data:legacy",
|
|
2372
|
+
"tree:export:legacy:data",
|
|
2373
|
+
"data:tree:legacy:export",
|
|
2374
|
+
"tree:data:legacy:export",
|
|
2375
|
+
"tree:legacy:data:export",
|
|
2376
|
+
"tree:legacy:export:data"
|
|
2359
2377
|
]
|
|
2360
2378
|
},
|
|
2361
|
-
"data:import:
|
|
2379
|
+
"data:import:legacy:tree": {
|
|
2362
2380
|
"aliases": [],
|
|
2363
2381
|
"args": {},
|
|
2364
|
-
"
|
|
2382
|
+
"deprecationOptions": {
|
|
2383
|
+
"message": "After Nov 10, 2024, this command will no longer be available. Use `data export tree`."
|
|
2384
|
+
},
|
|
2385
|
+
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.\n\nThe sObject Tree API supports requests that contain up to 200 records. For more information, see the REST API Developer Guide. (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm)",
|
|
2365
2386
|
"examples": [
|
|
2366
2387
|
"Import the records contained in two JSON files into the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch",
|
|
2367
2388
|
"Import records using a plan definition file into your default org:\n<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json"
|
|
@@ -2424,6 +2445,9 @@
|
|
|
2424
2445
|
],
|
|
2425
2446
|
"char": "f",
|
|
2426
2447
|
"deprecateAliases": true,
|
|
2448
|
+
"exclusive": [
|
|
2449
|
+
"plan"
|
|
2450
|
+
],
|
|
2427
2451
|
"name": "files",
|
|
2428
2452
|
"summary": "Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.",
|
|
2429
2453
|
"delimiter": ",",
|
|
@@ -2438,15 +2462,46 @@
|
|
|
2438
2462
|
"hasDynamicHelp": false,
|
|
2439
2463
|
"multiple": false,
|
|
2440
2464
|
"type": "option"
|
|
2465
|
+
},
|
|
2466
|
+
"content-type": {
|
|
2467
|
+
"aliases": [
|
|
2468
|
+
"contenttype"
|
|
2469
|
+
],
|
|
2470
|
+
"char": "c",
|
|
2471
|
+
"deprecateAliases": true,
|
|
2472
|
+
"deprecated": {
|
|
2473
|
+
"message": "The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
2474
|
+
},
|
|
2475
|
+
"hidden": true,
|
|
2476
|
+
"name": "content-type",
|
|
2477
|
+
"summary": "Content type of import files if their extention is not .json.",
|
|
2478
|
+
"hasDynamicHelp": false,
|
|
2479
|
+
"multiple": false,
|
|
2480
|
+
"type": "option"
|
|
2481
|
+
},
|
|
2482
|
+
"config-help": {
|
|
2483
|
+
"aliases": [
|
|
2484
|
+
"confighelp"
|
|
2485
|
+
],
|
|
2486
|
+
"deprecateAliases": true,
|
|
2487
|
+
"deprecated": {
|
|
2488
|
+
"message": "The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
2489
|
+
},
|
|
2490
|
+
"hidden": true,
|
|
2491
|
+
"name": "config-help",
|
|
2492
|
+
"summary": "Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.",
|
|
2493
|
+
"allowNo": false,
|
|
2494
|
+
"type": "boolean"
|
|
2441
2495
|
}
|
|
2442
2496
|
},
|
|
2443
2497
|
"hasDynamicHelp": true,
|
|
2498
|
+
"hidden": true,
|
|
2444
2499
|
"hiddenAliases": [],
|
|
2445
|
-
"id": "data:import:
|
|
2500
|
+
"id": "data:import:legacy:tree",
|
|
2446
2501
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2447
2502
|
"pluginName": "@salesforce/plugin-data",
|
|
2448
2503
|
"pluginType": "core",
|
|
2449
|
-
"state": "
|
|
2504
|
+
"state": "deprecated",
|
|
2450
2505
|
"strict": true,
|
|
2451
2506
|
"summary": "Import data from one or more JSON files into an org.",
|
|
2452
2507
|
"enableJsonFlag": true,
|
|
@@ -2456,35 +2511,35 @@
|
|
|
2456
2511
|
"commands",
|
|
2457
2512
|
"data",
|
|
2458
2513
|
"import",
|
|
2459
|
-
"
|
|
2514
|
+
"legacy",
|
|
2460
2515
|
"tree.js"
|
|
2461
2516
|
],
|
|
2462
2517
|
"aliasPermutations": [],
|
|
2463
2518
|
"permutations": [
|
|
2464
|
-
"data:import:
|
|
2465
|
-
"import:data:
|
|
2466
|
-
"import:
|
|
2467
|
-
"import:
|
|
2468
|
-
"data:
|
|
2469
|
-
"
|
|
2470
|
-
"
|
|
2471
|
-
"
|
|
2472
|
-
"data:
|
|
2473
|
-
"
|
|
2474
|
-
"
|
|
2475
|
-
"
|
|
2476
|
-
"data:import:tree:
|
|
2477
|
-
"import:data:tree:
|
|
2478
|
-
"import:tree:data:
|
|
2479
|
-
"import:tree:
|
|
2480
|
-
"data:tree:import:
|
|
2481
|
-
"tree:data:import:
|
|
2482
|
-
"tree:import:data:
|
|
2483
|
-
"tree:import:
|
|
2484
|
-
"data:tree:
|
|
2485
|
-
"tree:data:
|
|
2486
|
-
"tree:
|
|
2487
|
-
"tree:
|
|
2519
|
+
"data:import:legacy:tree",
|
|
2520
|
+
"import:data:legacy:tree",
|
|
2521
|
+
"import:legacy:data:tree",
|
|
2522
|
+
"import:legacy:tree:data",
|
|
2523
|
+
"data:legacy:import:tree",
|
|
2524
|
+
"legacy:data:import:tree",
|
|
2525
|
+
"legacy:import:data:tree",
|
|
2526
|
+
"legacy:import:tree:data",
|
|
2527
|
+
"data:legacy:tree:import",
|
|
2528
|
+
"legacy:data:tree:import",
|
|
2529
|
+
"legacy:tree:data:import",
|
|
2530
|
+
"legacy:tree:import:data",
|
|
2531
|
+
"data:import:tree:legacy",
|
|
2532
|
+
"import:data:tree:legacy",
|
|
2533
|
+
"import:tree:data:legacy",
|
|
2534
|
+
"import:tree:legacy:data",
|
|
2535
|
+
"data:tree:import:legacy",
|
|
2536
|
+
"tree:data:import:legacy",
|
|
2537
|
+
"tree:import:data:legacy",
|
|
2538
|
+
"tree:import:legacy:data",
|
|
2539
|
+
"data:tree:legacy:import",
|
|
2540
|
+
"tree:data:legacy:import",
|
|
2541
|
+
"tree:legacy:data:import",
|
|
2542
|
+
"tree:legacy:import:data"
|
|
2488
2543
|
]
|
|
2489
2544
|
},
|
|
2490
2545
|
"force:data:bulk:delete": {
|
|
@@ -2924,5 +2979,5 @@
|
|
|
2924
2979
|
]
|
|
2925
2980
|
}
|
|
2926
2981
|
},
|
|
2927
|
-
"version": "3.5.
|
|
2982
|
+
"version": "3.5.3"
|
|
2928
2983
|
}
|