@salesforce/plugin-data 4.0.97 → 4.0.99
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/oclif.manifest.json +217 -217
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ EXAMPLES
|
|
|
144
144
|
$ sf data bulk results --job-id 7507i000fake341G --target-org my-scratch
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
147
|
+
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/bulk/results.ts)_
|
|
148
148
|
|
|
149
149
|
## `sf data create file`
|
|
150
150
|
|
|
@@ -193,7 +193,7 @@ EXAMPLES
|
|
|
193
193
|
$ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
196
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/create/file.ts)_
|
|
197
197
|
|
|
198
198
|
## `sf data create record`
|
|
199
199
|
|
|
@@ -249,7 +249,7 @@ EXAMPLES
|
|
|
249
249
|
TracedEntityId=01p17000000R6bLAAS"
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
252
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/create/record.ts)_
|
|
253
253
|
|
|
254
254
|
## `sf data delete bulk`
|
|
255
255
|
|
|
@@ -308,7 +308,7 @@ FLAG DESCRIPTIONS
|
|
|
308
308
|
and can be enabled only by a system administrator.
|
|
309
309
|
```
|
|
310
310
|
|
|
311
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
311
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/delete/bulk.ts)_
|
|
312
312
|
|
|
313
313
|
## `sf data delete record`
|
|
314
314
|
|
|
@@ -369,7 +369,7 @@ EXAMPLES
|
|
|
369
369
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
372
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/delete/record.ts)_
|
|
373
373
|
|
|
374
374
|
## `sf data delete resume`
|
|
375
375
|
|
|
@@ -408,7 +408,7 @@ EXAMPLES
|
|
|
408
408
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
409
409
|
```
|
|
410
410
|
|
|
411
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
411
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/delete/resume.ts)_
|
|
412
412
|
|
|
413
413
|
## `sf data export bulk`
|
|
414
414
|
|
|
@@ -475,7 +475,7 @@ EXAMPLES
|
|
|
475
475
|
--result-format json --wait 10 --all-rows
|
|
476
476
|
```
|
|
477
477
|
|
|
478
|
-
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
478
|
+
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/export/bulk.ts)_
|
|
479
479
|
|
|
480
480
|
## `sf data export resume`
|
|
481
481
|
|
|
@@ -514,7 +514,7 @@ EXAMPLES
|
|
|
514
514
|
$ sf data export resume --use-most-recent
|
|
515
515
|
```
|
|
516
516
|
|
|
517
|
-
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
517
|
+
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/export/resume.ts)_
|
|
518
518
|
|
|
519
519
|
## `sf data export tree`
|
|
520
520
|
|
|
@@ -574,7 +574,7 @@ EXAMPLES
|
|
|
574
574
|
my-scratch
|
|
575
575
|
```
|
|
576
576
|
|
|
577
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
577
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/export/tree.ts)_
|
|
578
578
|
|
|
579
579
|
## `sf data get record`
|
|
580
580
|
|
|
@@ -638,7 +638,7 @@ EXAMPLES
|
|
|
638
638
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
639
639
|
```
|
|
640
640
|
|
|
641
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
641
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/get/record.ts)_
|
|
642
642
|
|
|
643
643
|
## `sf data import bulk`
|
|
644
644
|
|
|
@@ -690,7 +690,7 @@ EXAMPLES
|
|
|
690
690
|
$ sf data import bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
|
|
691
691
|
```
|
|
692
692
|
|
|
693
|
-
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
693
|
+
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/import/bulk.ts)_
|
|
694
694
|
|
|
695
695
|
## `sf data import resume`
|
|
696
696
|
|
|
@@ -726,7 +726,7 @@ EXAMPLES
|
|
|
726
726
|
$ sf data import resume --use-most-recent --target-org my-scratch
|
|
727
727
|
```
|
|
728
728
|
|
|
729
|
-
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
729
|
+
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/import/resume.ts)_
|
|
730
730
|
|
|
731
731
|
## `sf data import tree`
|
|
732
732
|
|
|
@@ -790,7 +790,7 @@ FLAG DESCRIPTIONS
|
|
|
790
790
|
- files(array) - Files: An array of files paths to load
|
|
791
791
|
```
|
|
792
792
|
|
|
793
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
793
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/import/tree.ts)_
|
|
794
794
|
|
|
795
795
|
## `sf data query`
|
|
796
796
|
|
|
@@ -843,7 +843,7 @@ EXAMPLES
|
|
|
843
843
|
$ sf data query --query "SELECT Name FROM ApexTrigger" --use-tooling-api
|
|
844
844
|
```
|
|
845
845
|
|
|
846
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
846
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/query.ts)_
|
|
847
847
|
|
|
848
848
|
## `sf data resume`
|
|
849
849
|
|
|
@@ -880,7 +880,7 @@ EXAMPLES
|
|
|
880
880
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
881
881
|
```
|
|
882
882
|
|
|
883
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
883
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/resume.ts)_
|
|
884
884
|
|
|
885
885
|
## `sf data search`
|
|
886
886
|
|
|
@@ -930,7 +930,7 @@ EXAMPLES
|
|
|
930
930
|
$ sf data search --file query.txt --target-org my-scratch --result-format csv
|
|
931
931
|
```
|
|
932
932
|
|
|
933
|
-
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
933
|
+
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/search.ts)_
|
|
934
934
|
|
|
935
935
|
## `sf data update bulk`
|
|
936
936
|
|
|
@@ -985,7 +985,7 @@ EXAMPLES
|
|
|
985
985
|
$ sf data update bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
|
|
986
986
|
```
|
|
987
987
|
|
|
988
|
-
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
988
|
+
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/update/bulk.ts)_
|
|
989
989
|
|
|
990
990
|
## `sf data update record`
|
|
991
991
|
|
|
@@ -1047,7 +1047,7 @@ EXAMPLES
|
|
|
1047
1047
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
1048
1048
|
```
|
|
1049
1049
|
|
|
1050
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1050
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/update/record.ts)_
|
|
1051
1051
|
|
|
1052
1052
|
## `sf data update resume`
|
|
1053
1053
|
|
|
@@ -1086,7 +1086,7 @@ EXAMPLES
|
|
|
1086
1086
|
$ sf data update resume --use-most-recent
|
|
1087
1087
|
```
|
|
1088
1088
|
|
|
1089
|
-
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1089
|
+
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/update/resume.ts)_
|
|
1090
1090
|
|
|
1091
1091
|
## `sf data upsert bulk`
|
|
1092
1092
|
|
|
@@ -1142,7 +1142,7 @@ EXAMPLES
|
|
|
1142
1142
|
my-scratch
|
|
1143
1143
|
```
|
|
1144
1144
|
|
|
1145
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1145
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/upsert/bulk.ts)_
|
|
1146
1146
|
|
|
1147
1147
|
## `sf data upsert resume`
|
|
1148
1148
|
|
|
@@ -1181,7 +1181,7 @@ EXAMPLES
|
|
|
1181
1181
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
1182
1182
|
```
|
|
1183
1183
|
|
|
1184
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1184
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/data/upsert/resume.ts)_
|
|
1185
1185
|
|
|
1186
1186
|
## `sf force data bulk delete`
|
|
1187
1187
|
|
|
@@ -1228,7 +1228,7 @@ EXAMPLES
|
|
|
1228
1228
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
1229
1229
|
```
|
|
1230
1230
|
|
|
1231
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1231
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/force/data/bulk/delete.ts)_
|
|
1232
1232
|
|
|
1233
1233
|
## `sf force data bulk status`
|
|
1234
1234
|
|
|
@@ -1265,7 +1265,7 @@ EXAMPLES
|
|
|
1265
1265
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
1266
1266
|
```
|
|
1267
1267
|
|
|
1268
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1268
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/force/data/bulk/status.ts)_
|
|
1269
1269
|
|
|
1270
1270
|
## `sf force data bulk upsert`
|
|
1271
1271
|
|
|
@@ -1323,6 +1323,6 @@ EXAMPLES
|
|
|
1323
1323
|
--target-org my-scratch
|
|
1324
1324
|
```
|
|
1325
1325
|
|
|
1326
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.
|
|
1326
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.99/src/commands/force/data/bulk/upsert.ts)_
|
|
1327
1327
|
|
|
1328
1328
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -401,14 +401,12 @@
|
|
|
401
401
|
"search:data"
|
|
402
402
|
]
|
|
403
403
|
},
|
|
404
|
-
"data:
|
|
404
|
+
"data:bulk:results": {
|
|
405
405
|
"aliases": [],
|
|
406
406
|
"args": {},
|
|
407
|
-
"description": "
|
|
407
|
+
"description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
|
|
408
408
|
"examples": [
|
|
409
|
-
"
|
|
410
|
-
"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",
|
|
411
|
-
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
|
409
|
+
"Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
|
|
412
410
|
],
|
|
413
411
|
"flags": {
|
|
414
412
|
"json": {
|
|
@@ -426,112 +424,17 @@
|
|
|
426
424
|
"multiple": false,
|
|
427
425
|
"type": "option"
|
|
428
426
|
},
|
|
429
|
-
"
|
|
430
|
-
"char": "o",
|
|
431
|
-
"name": "target-org",
|
|
432
|
-
"noCacheDefault": true,
|
|
433
|
-
"required": true,
|
|
434
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
435
|
-
"hasDynamicHelp": true,
|
|
436
|
-
"multiple": false,
|
|
437
|
-
"type": "option"
|
|
438
|
-
},
|
|
439
|
-
"api-version": {
|
|
440
|
-
"description": "Override the api version used for api requests made by this command",
|
|
441
|
-
"name": "api-version",
|
|
442
|
-
"hasDynamicHelp": false,
|
|
443
|
-
"multiple": false,
|
|
444
|
-
"type": "option"
|
|
445
|
-
},
|
|
446
|
-
"title": {
|
|
447
|
-
"char": "t",
|
|
448
|
-
"name": "title",
|
|
449
|
-
"required": false,
|
|
450
|
-
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
|
451
|
-
"hasDynamicHelp": false,
|
|
452
|
-
"multiple": false,
|
|
453
|
-
"type": "option"
|
|
454
|
-
},
|
|
455
|
-
"file": {
|
|
456
|
-
"char": "f",
|
|
457
|
-
"name": "file",
|
|
458
|
-
"required": true,
|
|
459
|
-
"summary": "Path of file to upload.",
|
|
460
|
-
"hasDynamicHelp": false,
|
|
461
|
-
"multiple": false,
|
|
462
|
-
"type": "option"
|
|
463
|
-
},
|
|
464
|
-
"parent-id": {
|
|
427
|
+
"job-id": {
|
|
465
428
|
"char": "i",
|
|
466
|
-
"name": "
|
|
467
|
-
"
|
|
468
|
-
"
|
|
469
|
-
"multiple": false,
|
|
470
|
-
"type": "option"
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"hasDynamicHelp": true,
|
|
474
|
-
"hiddenAliases": [],
|
|
475
|
-
"id": "data:create:file",
|
|
476
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
477
|
-
"pluginName": "@salesforce/plugin-data",
|
|
478
|
-
"pluginType": "core",
|
|
479
|
-
"strict": true,
|
|
480
|
-
"summary": "Upload a local file to an org.",
|
|
481
|
-
"enableJsonFlag": true,
|
|
482
|
-
"isESM": true,
|
|
483
|
-
"relativePath": [
|
|
484
|
-
"lib",
|
|
485
|
-
"commands",
|
|
486
|
-
"data",
|
|
487
|
-
"create",
|
|
488
|
-
"file.js"
|
|
489
|
-
],
|
|
490
|
-
"aliasPermutations": [],
|
|
491
|
-
"permutations": [
|
|
492
|
-
"data:create:file",
|
|
493
|
-
"create:data:file",
|
|
494
|
-
"create:file:data",
|
|
495
|
-
"data:file:create",
|
|
496
|
-
"file:data:create",
|
|
497
|
-
"file:create:data"
|
|
498
|
-
]
|
|
499
|
-
},
|
|
500
|
-
"data:create:record": {
|
|
501
|
-
"aliases": [
|
|
502
|
-
"force:data:record:create"
|
|
503
|
-
],
|
|
504
|
-
"args": {},
|
|
505
|
-
"deprecateAliases": true,
|
|
506
|
-
"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.",
|
|
507
|
-
"examples": [
|
|
508
|
-
"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\"",
|
|
509
|
-
"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",
|
|
510
|
-
"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\""
|
|
511
|
-
],
|
|
512
|
-
"flags": {
|
|
513
|
-
"json": {
|
|
514
|
-
"description": "Format output as json.",
|
|
515
|
-
"helpGroup": "GLOBAL",
|
|
516
|
-
"name": "json",
|
|
517
|
-
"allowNo": false,
|
|
518
|
-
"type": "boolean"
|
|
519
|
-
},
|
|
520
|
-
"flags-dir": {
|
|
521
|
-
"helpGroup": "GLOBAL",
|
|
522
|
-
"name": "flags-dir",
|
|
523
|
-
"summary": "Import flag values from a directory.",
|
|
429
|
+
"name": "job-id",
|
|
430
|
+
"required": true,
|
|
431
|
+
"summary": "Job ID of the bulk job.",
|
|
524
432
|
"hasDynamicHelp": false,
|
|
525
433
|
"multiple": false,
|
|
526
434
|
"type": "option"
|
|
527
435
|
},
|
|
528
436
|
"target-org": {
|
|
529
|
-
"aliases": [
|
|
530
|
-
"targetusername",
|
|
531
|
-
"u"
|
|
532
|
-
],
|
|
533
437
|
"char": "o",
|
|
534
|
-
"deprecateAliases": true,
|
|
535
438
|
"name": "target-org",
|
|
536
439
|
"noCacheDefault": true,
|
|
537
440
|
"required": true,
|
|
@@ -541,121 +444,38 @@
|
|
|
541
444
|
"type": "option"
|
|
542
445
|
},
|
|
543
446
|
"api-version": {
|
|
544
|
-
"aliases": [
|
|
545
|
-
"apiversion"
|
|
546
|
-
],
|
|
547
|
-
"deprecateAliases": true,
|
|
548
447
|
"description": "Override the api version used for api requests made by this command",
|
|
549
448
|
"name": "api-version",
|
|
550
449
|
"hasDynamicHelp": false,
|
|
551
450
|
"multiple": false,
|
|
552
451
|
"type": "option"
|
|
553
|
-
},
|
|
554
|
-
"loglevel": {
|
|
555
|
-
"deprecated": {
|
|
556
|
-
"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."
|
|
557
|
-
},
|
|
558
|
-
"hidden": true,
|
|
559
|
-
"name": "loglevel",
|
|
560
|
-
"hasDynamicHelp": false,
|
|
561
|
-
"multiple": false,
|
|
562
|
-
"type": "option"
|
|
563
|
-
},
|
|
564
|
-
"sobject": {
|
|
565
|
-
"aliases": [
|
|
566
|
-
"sobjecttype"
|
|
567
|
-
],
|
|
568
|
-
"char": "s",
|
|
569
|
-
"deprecateAliases": true,
|
|
570
|
-
"name": "sobject",
|
|
571
|
-
"required": true,
|
|
572
|
-
"summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
|
|
573
|
-
"hasDynamicHelp": false,
|
|
574
|
-
"multiple": false,
|
|
575
|
-
"type": "option"
|
|
576
|
-
},
|
|
577
|
-
"values": {
|
|
578
|
-
"char": "v",
|
|
579
|
-
"name": "values",
|
|
580
|
-
"required": true,
|
|
581
|
-
"summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
|
|
582
|
-
"hasDynamicHelp": false,
|
|
583
|
-
"multiple": false,
|
|
584
|
-
"type": "option"
|
|
585
|
-
},
|
|
586
|
-
"use-tooling-api": {
|
|
587
|
-
"aliases": [
|
|
588
|
-
"usetoolingapi"
|
|
589
|
-
],
|
|
590
|
-
"char": "t",
|
|
591
|
-
"deprecateAliases": true,
|
|
592
|
-
"name": "use-tooling-api",
|
|
593
|
-
"summary": "Use Tooling API so you can insert a record in a Tooling API object.",
|
|
594
|
-
"allowNo": false,
|
|
595
|
-
"type": "boolean"
|
|
596
|
-
},
|
|
597
|
-
"perflog": {
|
|
598
|
-
"deprecated": {
|
|
599
|
-
"version": "57"
|
|
600
|
-
},
|
|
601
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
602
|
-
"hidden": true,
|
|
603
|
-
"name": "perflog",
|
|
604
|
-
"summary": "Get API performance data.",
|
|
605
|
-
"allowNo": false,
|
|
606
|
-
"type": "boolean"
|
|
607
452
|
}
|
|
608
453
|
},
|
|
609
454
|
"hasDynamicHelp": true,
|
|
610
455
|
"hiddenAliases": [],
|
|
611
|
-
"id": "data:
|
|
456
|
+
"id": "data:bulk:results",
|
|
612
457
|
"pluginAlias": "@salesforce/plugin-data",
|
|
613
458
|
"pluginName": "@salesforce/plugin-data",
|
|
614
459
|
"pluginType": "core",
|
|
615
460
|
"strict": true,
|
|
616
|
-
"summary": "
|
|
461
|
+
"summary": "Get the results of a bulk ingest job that you previously ran.",
|
|
617
462
|
"enableJsonFlag": true,
|
|
618
463
|
"isESM": true,
|
|
619
464
|
"relativePath": [
|
|
620
465
|
"lib",
|
|
621
466
|
"commands",
|
|
622
467
|
"data",
|
|
623
|
-
"
|
|
624
|
-
"
|
|
625
|
-
],
|
|
626
|
-
"aliasPermutations": [
|
|
627
|
-
"force:data:record:create",
|
|
628
|
-
"data:force:record:create",
|
|
629
|
-
"data:record:force:create",
|
|
630
|
-
"data:record:create:force",
|
|
631
|
-
"force:record:data:create",
|
|
632
|
-
"record:force:data:create",
|
|
633
|
-
"record:data:force:create",
|
|
634
|
-
"record:data:create:force",
|
|
635
|
-
"force:record:create:data",
|
|
636
|
-
"record:force:create:data",
|
|
637
|
-
"record:create:force:data",
|
|
638
|
-
"record:create:data:force",
|
|
639
|
-
"force:data:create:record",
|
|
640
|
-
"data:force:create:record",
|
|
641
|
-
"data:create:force:record",
|
|
642
|
-
"data:create:record:force",
|
|
643
|
-
"force:create:data:record",
|
|
644
|
-
"create:force:data:record",
|
|
645
|
-
"create:data:force:record",
|
|
646
|
-
"create:data:record:force",
|
|
647
|
-
"force:create:record:data",
|
|
648
|
-
"create:force:record:data",
|
|
649
|
-
"create:record:force:data",
|
|
650
|
-
"create:record:data:force"
|
|
468
|
+
"bulk",
|
|
469
|
+
"results.js"
|
|
651
470
|
],
|
|
471
|
+
"aliasPermutations": [],
|
|
652
472
|
"permutations": [
|
|
653
|
-
"data:
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"data:
|
|
657
|
-
"
|
|
658
|
-
"
|
|
473
|
+
"data:bulk:results",
|
|
474
|
+
"bulk:data:results",
|
|
475
|
+
"bulk:results:data",
|
|
476
|
+
"data:results:bulk",
|
|
477
|
+
"results:data:bulk",
|
|
478
|
+
"results:bulk:data"
|
|
659
479
|
]
|
|
660
480
|
},
|
|
661
481
|
"data:delete:bulk": {
|
|
@@ -1088,12 +908,14 @@
|
|
|
1088
908
|
"resume:delete:data"
|
|
1089
909
|
]
|
|
1090
910
|
},
|
|
1091
|
-
"data:
|
|
911
|
+
"data:create:file": {
|
|
1092
912
|
"aliases": [],
|
|
1093
913
|
"args": {},
|
|
1094
|
-
"description": "
|
|
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.",
|
|
1095
915
|
"examples": [
|
|
1096
|
-
"
|
|
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"
|
|
1097
919
|
],
|
|
1098
920
|
"flags": {
|
|
1099
921
|
"json": {
|
|
@@ -1111,17 +933,112 @@
|
|
|
1111
933
|
"multiple": false,
|
|
1112
934
|
"type": "option"
|
|
1113
935
|
},
|
|
1114
|
-
"
|
|
1115
|
-
"char": "
|
|
1116
|
-
"name": "
|
|
936
|
+
"target-org": {
|
|
937
|
+
"char": "o",
|
|
938
|
+
"name": "target-org",
|
|
939
|
+
"noCacheDefault": true,
|
|
1117
940
|
"required": true,
|
|
1118
|
-
"summary": "
|
|
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.",
|
|
1119
1031
|
"hasDynamicHelp": false,
|
|
1120
1032
|
"multiple": false,
|
|
1121
1033
|
"type": "option"
|
|
1122
1034
|
},
|
|
1123
1035
|
"target-org": {
|
|
1036
|
+
"aliases": [
|
|
1037
|
+
"targetusername",
|
|
1038
|
+
"u"
|
|
1039
|
+
],
|
|
1124
1040
|
"char": "o",
|
|
1041
|
+
"deprecateAliases": true,
|
|
1125
1042
|
"name": "target-org",
|
|
1126
1043
|
"noCacheDefault": true,
|
|
1127
1044
|
"required": true,
|
|
@@ -1131,38 +1048,121 @@
|
|
|
1131
1048
|
"type": "option"
|
|
1132
1049
|
},
|
|
1133
1050
|
"api-version": {
|
|
1051
|
+
"aliases": [
|
|
1052
|
+
"apiversion"
|
|
1053
|
+
],
|
|
1054
|
+
"deprecateAliases": true,
|
|
1134
1055
|
"description": "Override the api version used for api requests made by this command",
|
|
1135
1056
|
"name": "api-version",
|
|
1136
1057
|
"hasDynamicHelp": false,
|
|
1137
1058
|
"multiple": false,
|
|
1138
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 `SFDX_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": {
|
|
1105
|
+
"deprecated": {
|
|
1106
|
+
"version": "57"
|
|
1107
|
+
},
|
|
1108
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1109
|
+
"hidden": true,
|
|
1110
|
+
"name": "perflog",
|
|
1111
|
+
"summary": "Get API performance data.",
|
|
1112
|
+
"allowNo": false,
|
|
1113
|
+
"type": "boolean"
|
|
1139
1114
|
}
|
|
1140
1115
|
},
|
|
1141
1116
|
"hasDynamicHelp": true,
|
|
1142
1117
|
"hiddenAliases": [],
|
|
1143
|
-
"id": "data:
|
|
1118
|
+
"id": "data:create:record",
|
|
1144
1119
|
"pluginAlias": "@salesforce/plugin-data",
|
|
1145
1120
|
"pluginName": "@salesforce/plugin-data",
|
|
1146
1121
|
"pluginType": "core",
|
|
1147
1122
|
"strict": true,
|
|
1148
|
-
"summary": "
|
|
1123
|
+
"summary": "Create and insert a record into a Salesforce or Tooling API object.",
|
|
1149
1124
|
"enableJsonFlag": true,
|
|
1150
1125
|
"isESM": true,
|
|
1151
1126
|
"relativePath": [
|
|
1152
1127
|
"lib",
|
|
1153
1128
|
"commands",
|
|
1154
1129
|
"data",
|
|
1155
|
-
"
|
|
1156
|
-
"
|
|
1130
|
+
"create",
|
|
1131
|
+
"record.js"
|
|
1132
|
+
],
|
|
1133
|
+
"aliasPermutations": [
|
|
1134
|
+
"force:data:record:create",
|
|
1135
|
+
"data:force:record:create",
|
|
1136
|
+
"data:record:force:create",
|
|
1137
|
+
"data:record:create:force",
|
|
1138
|
+
"force:record:data:create",
|
|
1139
|
+
"record:force:data:create",
|
|
1140
|
+
"record:data:force:create",
|
|
1141
|
+
"record:data:create:force",
|
|
1142
|
+
"force:record:create:data",
|
|
1143
|
+
"record:force:create:data",
|
|
1144
|
+
"record:create:force:data",
|
|
1145
|
+
"record:create:data:force",
|
|
1146
|
+
"force:data:create:record",
|
|
1147
|
+
"data:force:create:record",
|
|
1148
|
+
"data:create:force:record",
|
|
1149
|
+
"data:create:record:force",
|
|
1150
|
+
"force:create:data:record",
|
|
1151
|
+
"create:force:data:record",
|
|
1152
|
+
"create:data:force:record",
|
|
1153
|
+
"create:data:record:force",
|
|
1154
|
+
"force:create:record:data",
|
|
1155
|
+
"create:force:record:data",
|
|
1156
|
+
"create:record:force:data",
|
|
1157
|
+
"create:record:data:force"
|
|
1157
1158
|
],
|
|
1158
|
-
"aliasPermutations": [],
|
|
1159
1159
|
"permutations": [
|
|
1160
|
-
"data:
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1163
|
-
"data:
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1160
|
+
"data:create:record",
|
|
1161
|
+
"create:data:record",
|
|
1162
|
+
"create:record:data",
|
|
1163
|
+
"data:record:create",
|
|
1164
|
+
"record:data:create",
|
|
1165
|
+
"record:create:data"
|
|
1166
1166
|
]
|
|
1167
1167
|
},
|
|
1168
1168
|
"data:export:bulk": {
|
|
@@ -3166,5 +3166,5 @@
|
|
|
3166
3166
|
]
|
|
3167
3167
|
}
|
|
3168
3168
|
},
|
|
3169
|
-
"version": "4.0.
|
|
3169
|
+
"version": "4.0.99"
|
|
3170
3170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.99",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"exports": "./lib/index.js",
|
|
275
275
|
"type": "module",
|
|
276
276
|
"sfdx": {
|
|
277
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
278
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
277
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.99.crt",
|
|
278
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.99.sig"
|
|
279
279
|
}
|
|
280
280
|
}
|