@salesforce/plugin-data 3.5.3 → 3.5.5
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 +18 -18
- package/messages/tree.export.md +1 -1
- package/oclif.manifest.json +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ EXAMPLES
|
|
|
141
141
|
$ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
144
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/create/file.ts)_
|
|
145
145
|
|
|
146
146
|
## `sf data create record`
|
|
147
147
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
TracedEntityId=01p17000000R6bLAAS"
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
200
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/create/record.ts)_
|
|
201
201
|
|
|
202
202
|
## `sf data delete bulk`
|
|
203
203
|
|
|
@@ -255,7 +255,7 @@ FLAG DESCRIPTIONS
|
|
|
255
255
|
and can be enabled only by a system administrator.
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
258
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/delete/bulk.ts)_
|
|
259
259
|
|
|
260
260
|
## `sf data delete record`
|
|
261
261
|
|
|
@@ -316,7 +316,7 @@ EXAMPLES
|
|
|
316
316
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
319
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/delete/record.ts)_
|
|
320
320
|
|
|
321
321
|
## `sf data delete resume`
|
|
322
322
|
|
|
@@ -355,7 +355,7 @@ EXAMPLES
|
|
|
355
355
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
356
356
|
```
|
|
357
357
|
|
|
358
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
358
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/delete/resume.ts)_
|
|
359
359
|
|
|
360
360
|
## `sf data export tree`
|
|
361
361
|
|
|
@@ -402,7 +402,7 @@ EXAMPLES
|
|
|
402
402
|
Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command
|
|
403
403
|
uses your default org:
|
|
404
404
|
|
|
405
|
-
$ sf data export tree --query "SELECT Id, Name, (SELECT Name,
|
|
405
|
+
$ sf data export tree --query "SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c"
|
|
406
406
|
|
|
407
407
|
Export data using a SOQL query in the "query.txt" file and generate JSON files for each object and a plan that
|
|
408
408
|
aggregates them:
|
|
@@ -416,7 +416,7 @@ EXAMPLES
|
|
|
416
416
|
my-scratch
|
|
417
417
|
```
|
|
418
418
|
|
|
419
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
419
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/export/tree.ts)_
|
|
420
420
|
|
|
421
421
|
## `sf data get record`
|
|
422
422
|
|
|
@@ -480,7 +480,7 @@ EXAMPLES
|
|
|
480
480
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
483
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/get/record.ts)_
|
|
484
484
|
|
|
485
485
|
## `sf data import tree`
|
|
486
486
|
|
|
@@ -545,7 +545,7 @@ FLAG DESCRIPTIONS
|
|
|
545
545
|
- files(array) - Files: An array of files paths to load
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
548
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/import/tree.ts)_
|
|
549
549
|
|
|
550
550
|
## `sf data query`
|
|
551
551
|
|
|
@@ -609,7 +609,7 @@ EXAMPLES
|
|
|
609
609
|
$ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
|
|
610
610
|
```
|
|
611
611
|
|
|
612
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
612
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/query.ts)_
|
|
613
613
|
|
|
614
614
|
## `sf data query resume`
|
|
615
615
|
|
|
@@ -647,7 +647,7 @@ EXAMPLES
|
|
|
647
647
|
$ sf data query resume --bulk-query-id 7500x000005BdFzXXX
|
|
648
648
|
```
|
|
649
649
|
|
|
650
|
-
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
650
|
+
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/query/resume.ts)_
|
|
651
651
|
|
|
652
652
|
## `sf data resume`
|
|
653
653
|
|
|
@@ -684,7 +684,7 @@ EXAMPLES
|
|
|
684
684
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
685
685
|
```
|
|
686
686
|
|
|
687
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
687
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/resume.ts)_
|
|
688
688
|
|
|
689
689
|
## `sf data update record`
|
|
690
690
|
|
|
@@ -746,7 +746,7 @@ EXAMPLES
|
|
|
746
746
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
747
747
|
```
|
|
748
748
|
|
|
749
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
749
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/update/record.ts)_
|
|
750
750
|
|
|
751
751
|
## `sf data upsert bulk`
|
|
752
752
|
|
|
@@ -799,7 +799,7 @@ EXAMPLES
|
|
|
799
799
|
my-scratch
|
|
800
800
|
```
|
|
801
801
|
|
|
802
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
802
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/upsert/bulk.ts)_
|
|
803
803
|
|
|
804
804
|
## `sf data upsert resume`
|
|
805
805
|
|
|
@@ -838,7 +838,7 @@ EXAMPLES
|
|
|
838
838
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
839
839
|
```
|
|
840
840
|
|
|
841
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
841
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/data/upsert/resume.ts)_
|
|
842
842
|
|
|
843
843
|
## `sf force data bulk delete`
|
|
844
844
|
|
|
@@ -885,7 +885,7 @@ EXAMPLES
|
|
|
885
885
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
886
886
|
```
|
|
887
887
|
|
|
888
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
888
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/force/data/bulk/delete.ts)_
|
|
889
889
|
|
|
890
890
|
## `sf force data bulk status`
|
|
891
891
|
|
|
@@ -922,7 +922,7 @@ EXAMPLES
|
|
|
922
922
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
923
923
|
```
|
|
924
924
|
|
|
925
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
925
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/force/data/bulk/status.ts)_
|
|
926
926
|
|
|
927
927
|
## `sf force data bulk upsert`
|
|
928
928
|
|
|
@@ -980,6 +980,6 @@ EXAMPLES
|
|
|
980
980
|
--target-org my-scratch
|
|
981
981
|
```
|
|
982
982
|
|
|
983
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
983
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.5/src/commands/force/data/bulk/upsert.ts)_
|
|
984
984
|
|
|
985
985
|
<!-- commandsstop -->
|
package/messages/tree.export.md
CHANGED
|
@@ -30,7 +30,7 @@ Directory in which to generate the JSON files; default is current directory.
|
|
|
30
30
|
|
|
31
31
|
- Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:
|
|
32
32
|
|
|
33
|
-
<%= config.bin %> <%= command.id %> --query "SELECT Id, Name, (SELECT Name,
|
|
33
|
+
<%= config.bin %> <%= command.id %> --query "SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c"
|
|
34
34
|
|
|
35
35
|
- Export data using a SOQL query in the "query.txt" file and generate JSON files for each object and a plan that aggregates them:
|
|
36
36
|
|
package/oclif.manifest.json
CHANGED
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
"deprecateAliases": true,
|
|
1028
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).",
|
|
1029
1029
|
"examples": [
|
|
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,
|
|
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\"",
|
|
1031
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",
|
|
1032
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"
|
|
1033
1033
|
],
|
|
@@ -2235,7 +2235,7 @@
|
|
|
2235
2235
|
},
|
|
2236
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).",
|
|
2237
2237
|
"examples": [
|
|
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,
|
|
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\"",
|
|
2239
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",
|
|
2240
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"
|
|
2241
2241
|
],
|
|
@@ -2979,5 +2979,5 @@
|
|
|
2979
2979
|
]
|
|
2980
2980
|
}
|
|
2981
2981
|
},
|
|
2982
|
-
"version": "3.5.
|
|
2982
|
+
"version": "3.5.5"
|
|
2983
2983
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@salesforce/plugin-command-reference": "^3.1.5",
|
|
127
127
|
"@salesforce/types": "^1.2.0",
|
|
128
128
|
"eslint-plugin-sf-plugin": "^1.18.9",
|
|
129
|
-
"oclif": "^4.13.
|
|
129
|
+
"oclif": "^4.13.12",
|
|
130
130
|
"ts-node": "^10.9.2",
|
|
131
131
|
"typescript": "^5.5.2"
|
|
132
132
|
},
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"exports": "./lib/index.js",
|
|
249
249
|
"type": "module",
|
|
250
250
|
"sfdx": {
|
|
251
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.
|
|
252
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.
|
|
251
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.5.crt",
|
|
252
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.5.sig"
|
|
253
253
|
}
|
|
254
254
|
}
|