@salesforce/plugin-data 3.13.8 → 4.0.1
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 +25 -27
- package/lib/commands/data/export/tree.js +1 -4
- package/lib/commands/data/export/tree.js.map +1 -1
- package/lib/commands/data/import/tree.js +1 -1
- package/lib/commands/data/import/tree.js.map +1 -1
- package/lib/export.js +0 -11
- package/lib/export.js.map +1 -1
- package/lib/types.js.map +1 -1
- package/messages/importApi.md +0 -46
- package/messages/tree.export.md +0 -8
- package/oclif.manifest.json +178 -544
- package/package.json +5 -5
- package/lib/api/data/tree/importApi.js +0 -358
- package/lib/api/data/tree/importApi.js.map +0 -1
- package/lib/commands/data/export/legacy/tree.js +0 -58
- package/lib/commands/data/export/legacy/tree.js.map +0 -1
- package/lib/commands/data/import/legacy/tree.js +0 -84
- package/lib/commands/data/import/legacy/tree.js.map +0 -1
- package/messages/tree.import.legacy.md +0 -60
package/oclif.manifest.json
CHANGED
|
@@ -1227,179 +1227,6 @@
|
|
|
1227
1227
|
"resume:delete:data"
|
|
1228
1228
|
]
|
|
1229
1229
|
},
|
|
1230
|
-
"data:get:record": {
|
|
1231
|
-
"aliases": [
|
|
1232
|
-
"force:data:record:get"
|
|
1233
|
-
],
|
|
1234
|
-
"args": {},
|
|
1235
|
-
"deprecateAliases": true,
|
|
1236
|
-
"description": "Specify the record you want to retrieve with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the command fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThe command displays all the record's fields and their values, one field per terminal line. Fields with no values are displayed as \"null\".\n\nThis command retrieves a record from Salesforce objects by default. Use the --use-tooling-api flag to retrieve from a Tooling API object.",
|
|
1237
|
-
"examples": [
|
|
1238
|
-
"Retrieve and display a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
|
|
1239
|
-
"Retrieve a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
|
|
1240
|
-
"Retrieve a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
|
|
1241
|
-
"Retrieve a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
|
|
1242
|
-
],
|
|
1243
|
-
"flags": {
|
|
1244
|
-
"json": {
|
|
1245
|
-
"description": "Format output as json.",
|
|
1246
|
-
"helpGroup": "GLOBAL",
|
|
1247
|
-
"name": "json",
|
|
1248
|
-
"allowNo": false,
|
|
1249
|
-
"type": "boolean"
|
|
1250
|
-
},
|
|
1251
|
-
"flags-dir": {
|
|
1252
|
-
"helpGroup": "GLOBAL",
|
|
1253
|
-
"name": "flags-dir",
|
|
1254
|
-
"summary": "Import flag values from a directory.",
|
|
1255
|
-
"hasDynamicHelp": false,
|
|
1256
|
-
"multiple": false,
|
|
1257
|
-
"type": "option"
|
|
1258
|
-
},
|
|
1259
|
-
"target-org": {
|
|
1260
|
-
"aliases": [
|
|
1261
|
-
"targetusername",
|
|
1262
|
-
"u"
|
|
1263
|
-
],
|
|
1264
|
-
"char": "o",
|
|
1265
|
-
"deprecateAliases": true,
|
|
1266
|
-
"name": "target-org",
|
|
1267
|
-
"noCacheDefault": true,
|
|
1268
|
-
"required": true,
|
|
1269
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1270
|
-
"hasDynamicHelp": true,
|
|
1271
|
-
"multiple": false,
|
|
1272
|
-
"type": "option"
|
|
1273
|
-
},
|
|
1274
|
-
"api-version": {
|
|
1275
|
-
"aliases": [
|
|
1276
|
-
"apiversion"
|
|
1277
|
-
],
|
|
1278
|
-
"deprecateAliases": true,
|
|
1279
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1280
|
-
"name": "api-version",
|
|
1281
|
-
"hasDynamicHelp": false,
|
|
1282
|
-
"multiple": false,
|
|
1283
|
-
"type": "option"
|
|
1284
|
-
},
|
|
1285
|
-
"loglevel": {
|
|
1286
|
-
"deprecated": {
|
|
1287
|
-
"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."
|
|
1288
|
-
},
|
|
1289
|
-
"hidden": true,
|
|
1290
|
-
"name": "loglevel",
|
|
1291
|
-
"hasDynamicHelp": false,
|
|
1292
|
-
"multiple": false,
|
|
1293
|
-
"type": "option"
|
|
1294
|
-
},
|
|
1295
|
-
"sobject": {
|
|
1296
|
-
"aliases": [
|
|
1297
|
-
"sobjecttype"
|
|
1298
|
-
],
|
|
1299
|
-
"char": "s",
|
|
1300
|
-
"deprecateAliases": true,
|
|
1301
|
-
"name": "sobject",
|
|
1302
|
-
"required": true,
|
|
1303
|
-
"summary": "API name of the Salesforce or Tooling API object that you're retrieving a record from.",
|
|
1304
|
-
"hasDynamicHelp": false,
|
|
1305
|
-
"multiple": false,
|
|
1306
|
-
"type": "option"
|
|
1307
|
-
},
|
|
1308
|
-
"record-id": {
|
|
1309
|
-
"aliases": [
|
|
1310
|
-
"sobjectid"
|
|
1311
|
-
],
|
|
1312
|
-
"char": "i",
|
|
1313
|
-
"deprecateAliases": true,
|
|
1314
|
-
"name": "record-id",
|
|
1315
|
-
"summary": "ID of the record you’re retrieving.",
|
|
1316
|
-
"hasDynamicHelp": false,
|
|
1317
|
-
"multiple": false,
|
|
1318
|
-
"type": "option"
|
|
1319
|
-
},
|
|
1320
|
-
"where": {
|
|
1321
|
-
"char": "w",
|
|
1322
|
-
"name": "where",
|
|
1323
|
-
"summary": "List of <fieldName>=<value> pairs that identify the record you want to display.",
|
|
1324
|
-
"hasDynamicHelp": false,
|
|
1325
|
-
"multiple": false,
|
|
1326
|
-
"type": "option"
|
|
1327
|
-
},
|
|
1328
|
-
"use-tooling-api": {
|
|
1329
|
-
"aliases": [
|
|
1330
|
-
"usetoolingapi"
|
|
1331
|
-
],
|
|
1332
|
-
"char": "t",
|
|
1333
|
-
"deprecateAliases": true,
|
|
1334
|
-
"name": "use-tooling-api",
|
|
1335
|
-
"summary": "Use Tooling API so you can retrieve a record from a Tooling API object.",
|
|
1336
|
-
"allowNo": false,
|
|
1337
|
-
"type": "boolean"
|
|
1338
|
-
},
|
|
1339
|
-
"perflog": {
|
|
1340
|
-
"deprecated": {
|
|
1341
|
-
"version": "57"
|
|
1342
|
-
},
|
|
1343
|
-
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1344
|
-
"hidden": true,
|
|
1345
|
-
"name": "perflog",
|
|
1346
|
-
"summary": "Get API performance data.",
|
|
1347
|
-
"allowNo": false,
|
|
1348
|
-
"type": "boolean"
|
|
1349
|
-
}
|
|
1350
|
-
},
|
|
1351
|
-
"hasDynamicHelp": true,
|
|
1352
|
-
"hiddenAliases": [],
|
|
1353
|
-
"id": "data:get:record",
|
|
1354
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
1355
|
-
"pluginName": "@salesforce/plugin-data",
|
|
1356
|
-
"pluginType": "core",
|
|
1357
|
-
"strict": true,
|
|
1358
|
-
"summary": "Retrieve and display a single record of a Salesforce or Tooling API object.",
|
|
1359
|
-
"enableJsonFlag": true,
|
|
1360
|
-
"isESM": true,
|
|
1361
|
-
"relativePath": [
|
|
1362
|
-
"lib",
|
|
1363
|
-
"commands",
|
|
1364
|
-
"data",
|
|
1365
|
-
"get",
|
|
1366
|
-
"record.js"
|
|
1367
|
-
],
|
|
1368
|
-
"aliasPermutations": [
|
|
1369
|
-
"force:data:record:get",
|
|
1370
|
-
"data:force:record:get",
|
|
1371
|
-
"data:record:force:get",
|
|
1372
|
-
"data:record:get:force",
|
|
1373
|
-
"force:record:data:get",
|
|
1374
|
-
"record:force:data:get",
|
|
1375
|
-
"record:data:force:get",
|
|
1376
|
-
"record:data:get:force",
|
|
1377
|
-
"force:record:get:data",
|
|
1378
|
-
"record:force:get:data",
|
|
1379
|
-
"record:get:force:data",
|
|
1380
|
-
"record:get:data:force",
|
|
1381
|
-
"force:data:get:record",
|
|
1382
|
-
"data:force:get:record",
|
|
1383
|
-
"data:get:force:record",
|
|
1384
|
-
"data:get:record:force",
|
|
1385
|
-
"force:get:data:record",
|
|
1386
|
-
"get:force:data:record",
|
|
1387
|
-
"get:data:force:record",
|
|
1388
|
-
"get:data:record:force",
|
|
1389
|
-
"force:get:record:data",
|
|
1390
|
-
"get:force:record:data",
|
|
1391
|
-
"get:record:force:data",
|
|
1392
|
-
"get:record:data:force"
|
|
1393
|
-
],
|
|
1394
|
-
"permutations": [
|
|
1395
|
-
"data:get:record",
|
|
1396
|
-
"get:data:record",
|
|
1397
|
-
"get:record:data",
|
|
1398
|
-
"data:record:get",
|
|
1399
|
-
"record:data:get",
|
|
1400
|
-
"record:get:data"
|
|
1401
|
-
]
|
|
1402
|
-
},
|
|
1403
1230
|
"data:export:bulk": {
|
|
1404
1231
|
"aliases": [],
|
|
1405
1232
|
"args": {},
|
|
@@ -1661,8 +1488,7 @@
|
|
|
1661
1488
|
},
|
|
1662
1489
|
"data:export:tree": {
|
|
1663
1490
|
"aliases": [
|
|
1664
|
-
"force:data:tree:export"
|
|
1665
|
-
"data:export:beta:tree"
|
|
1491
|
+
"force:data:tree:export"
|
|
1666
1492
|
],
|
|
1667
1493
|
"args": {},
|
|
1668
1494
|
"deprecateAliases": true,
|
|
@@ -1802,31 +1628,7 @@
|
|
|
1802
1628
|
"force:export:tree:data",
|
|
1803
1629
|
"export:force:tree:data",
|
|
1804
1630
|
"export:tree:force:data",
|
|
1805
|
-
"export:tree:data:force"
|
|
1806
|
-
"data:export:beta:tree",
|
|
1807
|
-
"export:data:beta:tree",
|
|
1808
|
-
"export:beta:data:tree",
|
|
1809
|
-
"export:beta:tree:data",
|
|
1810
|
-
"data:beta:export:tree",
|
|
1811
|
-
"beta:data:export:tree",
|
|
1812
|
-
"beta:export:data:tree",
|
|
1813
|
-
"beta:export:tree:data",
|
|
1814
|
-
"data:beta:tree:export",
|
|
1815
|
-
"beta:data:tree:export",
|
|
1816
|
-
"beta:tree:data:export",
|
|
1817
|
-
"beta:tree:export:data",
|
|
1818
|
-
"data:export:tree:beta",
|
|
1819
|
-
"export:data:tree:beta",
|
|
1820
|
-
"export:tree:data:beta",
|
|
1821
|
-
"export:tree:beta:data",
|
|
1822
|
-
"data:tree:export:beta",
|
|
1823
|
-
"tree:data:export:beta",
|
|
1824
|
-
"tree:export:data:beta",
|
|
1825
|
-
"tree:export:beta:data",
|
|
1826
|
-
"data:tree:beta:export",
|
|
1827
|
-
"tree:data:beta:export",
|
|
1828
|
-
"tree:beta:data:export",
|
|
1829
|
-
"tree:beta:export:data"
|
|
1631
|
+
"export:tree:data:force"
|
|
1830
1632
|
],
|
|
1831
1633
|
"permutations": [
|
|
1832
1634
|
"data:export:tree",
|
|
@@ -1837,6 +1639,179 @@
|
|
|
1837
1639
|
"tree:export:data"
|
|
1838
1640
|
]
|
|
1839
1641
|
},
|
|
1642
|
+
"data:get:record": {
|
|
1643
|
+
"aliases": [
|
|
1644
|
+
"force:data:record:get"
|
|
1645
|
+
],
|
|
1646
|
+
"args": {},
|
|
1647
|
+
"deprecateAliases": true,
|
|
1648
|
+
"description": "Specify the record you want to retrieve with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the command fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThe command displays all the record's fields and their values, one field per terminal line. Fields with no values are displayed as \"null\".\n\nThis command retrieves a record from Salesforce objects by default. Use the --use-tooling-api flag to retrieve from a Tooling API object.",
|
|
1649
|
+
"examples": [
|
|
1650
|
+
"Retrieve and display a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
|
|
1651
|
+
"Retrieve a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
|
|
1652
|
+
"Retrieve a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
|
|
1653
|
+
"Retrieve a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
|
|
1654
|
+
],
|
|
1655
|
+
"flags": {
|
|
1656
|
+
"json": {
|
|
1657
|
+
"description": "Format output as json.",
|
|
1658
|
+
"helpGroup": "GLOBAL",
|
|
1659
|
+
"name": "json",
|
|
1660
|
+
"allowNo": false,
|
|
1661
|
+
"type": "boolean"
|
|
1662
|
+
},
|
|
1663
|
+
"flags-dir": {
|
|
1664
|
+
"helpGroup": "GLOBAL",
|
|
1665
|
+
"name": "flags-dir",
|
|
1666
|
+
"summary": "Import flag values from a directory.",
|
|
1667
|
+
"hasDynamicHelp": false,
|
|
1668
|
+
"multiple": false,
|
|
1669
|
+
"type": "option"
|
|
1670
|
+
},
|
|
1671
|
+
"target-org": {
|
|
1672
|
+
"aliases": [
|
|
1673
|
+
"targetusername",
|
|
1674
|
+
"u"
|
|
1675
|
+
],
|
|
1676
|
+
"char": "o",
|
|
1677
|
+
"deprecateAliases": true,
|
|
1678
|
+
"name": "target-org",
|
|
1679
|
+
"noCacheDefault": true,
|
|
1680
|
+
"required": true,
|
|
1681
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1682
|
+
"hasDynamicHelp": true,
|
|
1683
|
+
"multiple": false,
|
|
1684
|
+
"type": "option"
|
|
1685
|
+
},
|
|
1686
|
+
"api-version": {
|
|
1687
|
+
"aliases": [
|
|
1688
|
+
"apiversion"
|
|
1689
|
+
],
|
|
1690
|
+
"deprecateAliases": true,
|
|
1691
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1692
|
+
"name": "api-version",
|
|
1693
|
+
"hasDynamicHelp": false,
|
|
1694
|
+
"multiple": false,
|
|
1695
|
+
"type": "option"
|
|
1696
|
+
},
|
|
1697
|
+
"loglevel": {
|
|
1698
|
+
"deprecated": {
|
|
1699
|
+
"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."
|
|
1700
|
+
},
|
|
1701
|
+
"hidden": true,
|
|
1702
|
+
"name": "loglevel",
|
|
1703
|
+
"hasDynamicHelp": false,
|
|
1704
|
+
"multiple": false,
|
|
1705
|
+
"type": "option"
|
|
1706
|
+
},
|
|
1707
|
+
"sobject": {
|
|
1708
|
+
"aliases": [
|
|
1709
|
+
"sobjecttype"
|
|
1710
|
+
],
|
|
1711
|
+
"char": "s",
|
|
1712
|
+
"deprecateAliases": true,
|
|
1713
|
+
"name": "sobject",
|
|
1714
|
+
"required": true,
|
|
1715
|
+
"summary": "API name of the Salesforce or Tooling API object that you're retrieving a record from.",
|
|
1716
|
+
"hasDynamicHelp": false,
|
|
1717
|
+
"multiple": false,
|
|
1718
|
+
"type": "option"
|
|
1719
|
+
},
|
|
1720
|
+
"record-id": {
|
|
1721
|
+
"aliases": [
|
|
1722
|
+
"sobjectid"
|
|
1723
|
+
],
|
|
1724
|
+
"char": "i",
|
|
1725
|
+
"deprecateAliases": true,
|
|
1726
|
+
"name": "record-id",
|
|
1727
|
+
"summary": "ID of the record you’re retrieving.",
|
|
1728
|
+
"hasDynamicHelp": false,
|
|
1729
|
+
"multiple": false,
|
|
1730
|
+
"type": "option"
|
|
1731
|
+
},
|
|
1732
|
+
"where": {
|
|
1733
|
+
"char": "w",
|
|
1734
|
+
"name": "where",
|
|
1735
|
+
"summary": "List of <fieldName>=<value> pairs that identify the record you want to display.",
|
|
1736
|
+
"hasDynamicHelp": false,
|
|
1737
|
+
"multiple": false,
|
|
1738
|
+
"type": "option"
|
|
1739
|
+
},
|
|
1740
|
+
"use-tooling-api": {
|
|
1741
|
+
"aliases": [
|
|
1742
|
+
"usetoolingapi"
|
|
1743
|
+
],
|
|
1744
|
+
"char": "t",
|
|
1745
|
+
"deprecateAliases": true,
|
|
1746
|
+
"name": "use-tooling-api",
|
|
1747
|
+
"summary": "Use Tooling API so you can retrieve a record from a Tooling API object.",
|
|
1748
|
+
"allowNo": false,
|
|
1749
|
+
"type": "boolean"
|
|
1750
|
+
},
|
|
1751
|
+
"perflog": {
|
|
1752
|
+
"deprecated": {
|
|
1753
|
+
"version": "57"
|
|
1754
|
+
},
|
|
1755
|
+
"description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
|
|
1756
|
+
"hidden": true,
|
|
1757
|
+
"name": "perflog",
|
|
1758
|
+
"summary": "Get API performance data.",
|
|
1759
|
+
"allowNo": false,
|
|
1760
|
+
"type": "boolean"
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1763
|
+
"hasDynamicHelp": true,
|
|
1764
|
+
"hiddenAliases": [],
|
|
1765
|
+
"id": "data:get:record",
|
|
1766
|
+
"pluginAlias": "@salesforce/plugin-data",
|
|
1767
|
+
"pluginName": "@salesforce/plugin-data",
|
|
1768
|
+
"pluginType": "core",
|
|
1769
|
+
"strict": true,
|
|
1770
|
+
"summary": "Retrieve and display a single record of a Salesforce or Tooling API object.",
|
|
1771
|
+
"enableJsonFlag": true,
|
|
1772
|
+
"isESM": true,
|
|
1773
|
+
"relativePath": [
|
|
1774
|
+
"lib",
|
|
1775
|
+
"commands",
|
|
1776
|
+
"data",
|
|
1777
|
+
"get",
|
|
1778
|
+
"record.js"
|
|
1779
|
+
],
|
|
1780
|
+
"aliasPermutations": [
|
|
1781
|
+
"force:data:record:get",
|
|
1782
|
+
"data:force:record:get",
|
|
1783
|
+
"data:record:force:get",
|
|
1784
|
+
"data:record:get:force",
|
|
1785
|
+
"force:record:data:get",
|
|
1786
|
+
"record:force:data:get",
|
|
1787
|
+
"record:data:force:get",
|
|
1788
|
+
"record:data:get:force",
|
|
1789
|
+
"force:record:get:data",
|
|
1790
|
+
"record:force:get:data",
|
|
1791
|
+
"record:get:force:data",
|
|
1792
|
+
"record:get:data:force",
|
|
1793
|
+
"force:data:get:record",
|
|
1794
|
+
"data:force:get:record",
|
|
1795
|
+
"data:get:force:record",
|
|
1796
|
+
"data:get:record:force",
|
|
1797
|
+
"force:get:data:record",
|
|
1798
|
+
"get:force:data:record",
|
|
1799
|
+
"get:data:force:record",
|
|
1800
|
+
"get:data:record:force",
|
|
1801
|
+
"force:get:record:data",
|
|
1802
|
+
"get:force:record:data",
|
|
1803
|
+
"get:record:force:data",
|
|
1804
|
+
"get:record:data:force"
|
|
1805
|
+
],
|
|
1806
|
+
"permutations": [
|
|
1807
|
+
"data:get:record",
|
|
1808
|
+
"get:data:record",
|
|
1809
|
+
"get:record:data",
|
|
1810
|
+
"data:record:get",
|
|
1811
|
+
"record:data:get",
|
|
1812
|
+
"record:get:data"
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1840
1815
|
"data:import:bulk": {
|
|
1841
1816
|
"aliases": [],
|
|
1842
1817
|
"args": {},
|
|
@@ -2051,8 +2026,7 @@
|
|
|
2051
2026
|
},
|
|
2052
2027
|
"data:import:tree": {
|
|
2053
2028
|
"aliases": [
|
|
2054
|
-
"force:data:tree:import"
|
|
2055
|
-
"data:import:beta:tree"
|
|
2029
|
+
"force:data:tree:import"
|
|
2056
2030
|
],
|
|
2057
2031
|
"args": {},
|
|
2058
2032
|
"deprecateAliases": true,
|
|
@@ -2177,31 +2151,7 @@
|
|
|
2177
2151
|
"force:import:tree:data",
|
|
2178
2152
|
"import:force:tree:data",
|
|
2179
2153
|
"import:tree:force:data",
|
|
2180
|
-
"import:tree:data:force"
|
|
2181
|
-
"data:import:beta:tree",
|
|
2182
|
-
"import:data:beta:tree",
|
|
2183
|
-
"import:beta:data:tree",
|
|
2184
|
-
"import:beta:tree:data",
|
|
2185
|
-
"data:beta:import:tree",
|
|
2186
|
-
"beta:data:import:tree",
|
|
2187
|
-
"beta:import:data:tree",
|
|
2188
|
-
"beta:import:tree:data",
|
|
2189
|
-
"data:beta:tree:import",
|
|
2190
|
-
"beta:data:tree:import",
|
|
2191
|
-
"beta:tree:data:import",
|
|
2192
|
-
"beta:tree:import:data",
|
|
2193
|
-
"data:import:tree:beta",
|
|
2194
|
-
"import:data:tree:beta",
|
|
2195
|
-
"import:tree:data:beta",
|
|
2196
|
-
"import:tree:beta:data",
|
|
2197
|
-
"data:tree:import:beta",
|
|
2198
|
-
"tree:data:import:beta",
|
|
2199
|
-
"tree:import:data:beta",
|
|
2200
|
-
"tree:import:beta:data",
|
|
2201
|
-
"data:tree:beta:import",
|
|
2202
|
-
"tree:data:beta:import",
|
|
2203
|
-
"tree:beta:data:import",
|
|
2204
|
-
"tree:beta:import:data"
|
|
2154
|
+
"import:tree:data:force"
|
|
2205
2155
|
],
|
|
2206
2156
|
"permutations": [
|
|
2207
2157
|
"data:import:tree",
|
|
@@ -3148,322 +3098,6 @@
|
|
|
3148
3098
|
"resume:upsert:data"
|
|
3149
3099
|
]
|
|
3150
3100
|
},
|
|
3151
|
-
"data:export:legacy:tree": {
|
|
3152
|
-
"aliases": [],
|
|
3153
|
-
"args": {},
|
|
3154
|
-
"deprecationOptions": {
|
|
3155
|
-
"to": "data tree export",
|
|
3156
|
-
"message": "Starting on Nov 10, 2024, this command will no longer be available. Use `data export tree` instead."
|
|
3157
|
-
},
|
|
3158
|
-
"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).",
|
|
3159
|
-
"examples": [
|
|
3160
|
-
"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\"",
|
|
3161
|
-
"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",
|
|
3162
|
-
"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"
|
|
3163
|
-
],
|
|
3164
|
-
"flags": {
|
|
3165
|
-
"json": {
|
|
3166
|
-
"description": "Format output as json.",
|
|
3167
|
-
"helpGroup": "GLOBAL",
|
|
3168
|
-
"name": "json",
|
|
3169
|
-
"allowNo": false,
|
|
3170
|
-
"type": "boolean"
|
|
3171
|
-
},
|
|
3172
|
-
"flags-dir": {
|
|
3173
|
-
"helpGroup": "GLOBAL",
|
|
3174
|
-
"name": "flags-dir",
|
|
3175
|
-
"summary": "Import flag values from a directory.",
|
|
3176
|
-
"hasDynamicHelp": false,
|
|
3177
|
-
"multiple": false,
|
|
3178
|
-
"type": "option"
|
|
3179
|
-
},
|
|
3180
|
-
"target-org": {
|
|
3181
|
-
"aliases": [
|
|
3182
|
-
"targetusername",
|
|
3183
|
-
"u"
|
|
3184
|
-
],
|
|
3185
|
-
"char": "o",
|
|
3186
|
-
"deprecateAliases": true,
|
|
3187
|
-
"name": "target-org",
|
|
3188
|
-
"noCacheDefault": true,
|
|
3189
|
-
"required": true,
|
|
3190
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
3191
|
-
"hasDynamicHelp": true,
|
|
3192
|
-
"multiple": false,
|
|
3193
|
-
"type": "option"
|
|
3194
|
-
},
|
|
3195
|
-
"api-version": {
|
|
3196
|
-
"aliases": [
|
|
3197
|
-
"apiversion"
|
|
3198
|
-
],
|
|
3199
|
-
"deprecateAliases": true,
|
|
3200
|
-
"description": "Override the api version used for api requests made by this command",
|
|
3201
|
-
"name": "api-version",
|
|
3202
|
-
"hasDynamicHelp": false,
|
|
3203
|
-
"multiple": false,
|
|
3204
|
-
"type": "option"
|
|
3205
|
-
},
|
|
3206
|
-
"loglevel": {
|
|
3207
|
-
"deprecated": {
|
|
3208
|
-
"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."
|
|
3209
|
-
},
|
|
3210
|
-
"hidden": true,
|
|
3211
|
-
"name": "loglevel",
|
|
3212
|
-
"hasDynamicHelp": false,
|
|
3213
|
-
"multiple": false,
|
|
3214
|
-
"type": "option"
|
|
3215
|
-
},
|
|
3216
|
-
"query": {
|
|
3217
|
-
"char": "q",
|
|
3218
|
-
"name": "query",
|
|
3219
|
-
"required": true,
|
|
3220
|
-
"summary": "SOQL query, or filepath of a file that contains the query, to retrieve records.",
|
|
3221
|
-
"hasDynamicHelp": false,
|
|
3222
|
-
"multiple": false,
|
|
3223
|
-
"type": "option"
|
|
3224
|
-
},
|
|
3225
|
-
"plan": {
|
|
3226
|
-
"char": "p",
|
|
3227
|
-
"name": "plan",
|
|
3228
|
-
"summary": "Generate multiple sObject tree files and a plan definition file for aggregated import.",
|
|
3229
|
-
"allowNo": false,
|
|
3230
|
-
"type": "boolean"
|
|
3231
|
-
},
|
|
3232
|
-
"prefix": {
|
|
3233
|
-
"char": "x",
|
|
3234
|
-
"name": "prefix",
|
|
3235
|
-
"summary": "Prefix of generated files.",
|
|
3236
|
-
"hasDynamicHelp": false,
|
|
3237
|
-
"multiple": false,
|
|
3238
|
-
"type": "option"
|
|
3239
|
-
},
|
|
3240
|
-
"output-dir": {
|
|
3241
|
-
"aliases": [
|
|
3242
|
-
"outputdir"
|
|
3243
|
-
],
|
|
3244
|
-
"char": "d",
|
|
3245
|
-
"deprecateAliases": true,
|
|
3246
|
-
"name": "output-dir",
|
|
3247
|
-
"summary": "Directory in which to generate the JSON files; default is current directory.",
|
|
3248
|
-
"hasDynamicHelp": false,
|
|
3249
|
-
"multiple": false,
|
|
3250
|
-
"type": "option"
|
|
3251
|
-
}
|
|
3252
|
-
},
|
|
3253
|
-
"hasDynamicHelp": true,
|
|
3254
|
-
"hidden": true,
|
|
3255
|
-
"hiddenAliases": [],
|
|
3256
|
-
"id": "data:export:legacy:tree",
|
|
3257
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
3258
|
-
"pluginName": "@salesforce/plugin-data",
|
|
3259
|
-
"pluginType": "core",
|
|
3260
|
-
"state": "deprecated",
|
|
3261
|
-
"strict": true,
|
|
3262
|
-
"summary": "Export data from an org into one or more JSON files.",
|
|
3263
|
-
"enableJsonFlag": true,
|
|
3264
|
-
"isESM": true,
|
|
3265
|
-
"relativePath": [
|
|
3266
|
-
"lib",
|
|
3267
|
-
"commands",
|
|
3268
|
-
"data",
|
|
3269
|
-
"export",
|
|
3270
|
-
"legacy",
|
|
3271
|
-
"tree.js"
|
|
3272
|
-
],
|
|
3273
|
-
"aliasPermutations": [],
|
|
3274
|
-
"permutations": [
|
|
3275
|
-
"data:export:legacy:tree",
|
|
3276
|
-
"export:data:legacy:tree",
|
|
3277
|
-
"export:legacy:data:tree",
|
|
3278
|
-
"export:legacy:tree:data",
|
|
3279
|
-
"data:legacy:export:tree",
|
|
3280
|
-
"legacy:data:export:tree",
|
|
3281
|
-
"legacy:export:data:tree",
|
|
3282
|
-
"legacy:export:tree:data",
|
|
3283
|
-
"data:legacy:tree:export",
|
|
3284
|
-
"legacy:data:tree:export",
|
|
3285
|
-
"legacy:tree:data:export",
|
|
3286
|
-
"legacy:tree:export:data",
|
|
3287
|
-
"data:export:tree:legacy",
|
|
3288
|
-
"export:data:tree:legacy",
|
|
3289
|
-
"export:tree:data:legacy",
|
|
3290
|
-
"export:tree:legacy:data",
|
|
3291
|
-
"data:tree:export:legacy",
|
|
3292
|
-
"tree:data:export:legacy",
|
|
3293
|
-
"tree:export:data:legacy",
|
|
3294
|
-
"tree:export:legacy:data",
|
|
3295
|
-
"data:tree:legacy:export",
|
|
3296
|
-
"tree:data:legacy:export",
|
|
3297
|
-
"tree:legacy:data:export",
|
|
3298
|
-
"tree:legacy:export:data"
|
|
3299
|
-
]
|
|
3300
|
-
},
|
|
3301
|
-
"data:import:legacy:tree": {
|
|
3302
|
-
"aliases": [],
|
|
3303
|
-
"args": {},
|
|
3304
|
-
"deprecationOptions": {
|
|
3305
|
-
"message": "After Nov 10, 2024, this command will no longer be available. Use `data export tree`."
|
|
3306
|
-
},
|
|
3307
|
-
"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)",
|
|
3308
|
-
"examples": [
|
|
3309
|
-
"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",
|
|
3310
|
-
"Import records using a plan definition file into your default org:\n<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json"
|
|
3311
|
-
],
|
|
3312
|
-
"flags": {
|
|
3313
|
-
"json": {
|
|
3314
|
-
"description": "Format output as json.",
|
|
3315
|
-
"helpGroup": "GLOBAL",
|
|
3316
|
-
"name": "json",
|
|
3317
|
-
"allowNo": false,
|
|
3318
|
-
"type": "boolean"
|
|
3319
|
-
},
|
|
3320
|
-
"flags-dir": {
|
|
3321
|
-
"helpGroup": "GLOBAL",
|
|
3322
|
-
"name": "flags-dir",
|
|
3323
|
-
"summary": "Import flag values from a directory.",
|
|
3324
|
-
"hasDynamicHelp": false,
|
|
3325
|
-
"multiple": false,
|
|
3326
|
-
"type": "option"
|
|
3327
|
-
},
|
|
3328
|
-
"target-org": {
|
|
3329
|
-
"aliases": [
|
|
3330
|
-
"targetusername",
|
|
3331
|
-
"u"
|
|
3332
|
-
],
|
|
3333
|
-
"char": "o",
|
|
3334
|
-
"deprecateAliases": true,
|
|
3335
|
-
"name": "target-org",
|
|
3336
|
-
"noCacheDefault": true,
|
|
3337
|
-
"required": true,
|
|
3338
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
3339
|
-
"hasDynamicHelp": true,
|
|
3340
|
-
"multiple": false,
|
|
3341
|
-
"type": "option"
|
|
3342
|
-
},
|
|
3343
|
-
"api-version": {
|
|
3344
|
-
"aliases": [
|
|
3345
|
-
"apiversion"
|
|
3346
|
-
],
|
|
3347
|
-
"deprecateAliases": true,
|
|
3348
|
-
"description": "Override the api version used for api requests made by this command",
|
|
3349
|
-
"name": "api-version",
|
|
3350
|
-
"hasDynamicHelp": false,
|
|
3351
|
-
"multiple": false,
|
|
3352
|
-
"type": "option"
|
|
3353
|
-
},
|
|
3354
|
-
"loglevel": {
|
|
3355
|
-
"deprecated": {
|
|
3356
|
-
"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."
|
|
3357
|
-
},
|
|
3358
|
-
"hidden": true,
|
|
3359
|
-
"name": "loglevel",
|
|
3360
|
-
"hasDynamicHelp": false,
|
|
3361
|
-
"multiple": false,
|
|
3362
|
-
"type": "option"
|
|
3363
|
-
},
|
|
3364
|
-
"files": {
|
|
3365
|
-
"aliases": [
|
|
3366
|
-
"sobjecttreefiles"
|
|
3367
|
-
],
|
|
3368
|
-
"char": "f",
|
|
3369
|
-
"deprecateAliases": true,
|
|
3370
|
-
"exclusive": [
|
|
3371
|
-
"plan"
|
|
3372
|
-
],
|
|
3373
|
-
"name": "files",
|
|
3374
|
-
"summary": "Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.",
|
|
3375
|
-
"delimiter": ",",
|
|
3376
|
-
"hasDynamicHelp": false,
|
|
3377
|
-
"multiple": true,
|
|
3378
|
-
"type": "option"
|
|
3379
|
-
},
|
|
3380
|
-
"plan": {
|
|
3381
|
-
"char": "p",
|
|
3382
|
-
"name": "plan",
|
|
3383
|
-
"summary": "Plan definition file to insert multiple data files.",
|
|
3384
|
-
"hasDynamicHelp": false,
|
|
3385
|
-
"multiple": false,
|
|
3386
|
-
"type": "option"
|
|
3387
|
-
},
|
|
3388
|
-
"content-type": {
|
|
3389
|
-
"aliases": [
|
|
3390
|
-
"contenttype"
|
|
3391
|
-
],
|
|
3392
|
-
"char": "c",
|
|
3393
|
-
"deprecateAliases": true,
|
|
3394
|
-
"deprecated": {
|
|
3395
|
-
"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."
|
|
3396
|
-
},
|
|
3397
|
-
"hidden": true,
|
|
3398
|
-
"name": "content-type",
|
|
3399
|
-
"summary": "Content type of import files if their extention is not .json.",
|
|
3400
|
-
"hasDynamicHelp": false,
|
|
3401
|
-
"multiple": false,
|
|
3402
|
-
"type": "option"
|
|
3403
|
-
},
|
|
3404
|
-
"config-help": {
|
|
3405
|
-
"aliases": [
|
|
3406
|
-
"confighelp"
|
|
3407
|
-
],
|
|
3408
|
-
"deprecateAliases": true,
|
|
3409
|
-
"deprecated": {
|
|
3410
|
-
"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."
|
|
3411
|
-
},
|
|
3412
|
-
"hidden": true,
|
|
3413
|
-
"name": "config-help",
|
|
3414
|
-
"summary": "Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.",
|
|
3415
|
-
"allowNo": false,
|
|
3416
|
-
"type": "boolean"
|
|
3417
|
-
}
|
|
3418
|
-
},
|
|
3419
|
-
"hasDynamicHelp": true,
|
|
3420
|
-
"hidden": true,
|
|
3421
|
-
"hiddenAliases": [],
|
|
3422
|
-
"id": "data:import:legacy:tree",
|
|
3423
|
-
"pluginAlias": "@salesforce/plugin-data",
|
|
3424
|
-
"pluginName": "@salesforce/plugin-data",
|
|
3425
|
-
"pluginType": "core",
|
|
3426
|
-
"state": "deprecated",
|
|
3427
|
-
"strict": true,
|
|
3428
|
-
"summary": "Import data from one or more JSON files into an org.",
|
|
3429
|
-
"enableJsonFlag": true,
|
|
3430
|
-
"isESM": true,
|
|
3431
|
-
"relativePath": [
|
|
3432
|
-
"lib",
|
|
3433
|
-
"commands",
|
|
3434
|
-
"data",
|
|
3435
|
-
"import",
|
|
3436
|
-
"legacy",
|
|
3437
|
-
"tree.js"
|
|
3438
|
-
],
|
|
3439
|
-
"aliasPermutations": [],
|
|
3440
|
-
"permutations": [
|
|
3441
|
-
"data:import:legacy:tree",
|
|
3442
|
-
"import:data:legacy:tree",
|
|
3443
|
-
"import:legacy:data:tree",
|
|
3444
|
-
"import:legacy:tree:data",
|
|
3445
|
-
"data:legacy:import:tree",
|
|
3446
|
-
"legacy:data:import:tree",
|
|
3447
|
-
"legacy:import:data:tree",
|
|
3448
|
-
"legacy:import:tree:data",
|
|
3449
|
-
"data:legacy:tree:import",
|
|
3450
|
-
"legacy:data:tree:import",
|
|
3451
|
-
"legacy:tree:data:import",
|
|
3452
|
-
"legacy:tree:import:data",
|
|
3453
|
-
"data:import:tree:legacy",
|
|
3454
|
-
"import:data:tree:legacy",
|
|
3455
|
-
"import:tree:data:legacy",
|
|
3456
|
-
"import:tree:legacy:data",
|
|
3457
|
-
"data:tree:import:legacy",
|
|
3458
|
-
"tree:data:import:legacy",
|
|
3459
|
-
"tree:import:data:legacy",
|
|
3460
|
-
"tree:import:legacy:data",
|
|
3461
|
-
"data:tree:legacy:import",
|
|
3462
|
-
"tree:data:legacy:import",
|
|
3463
|
-
"tree:legacy:data:import",
|
|
3464
|
-
"tree:legacy:import:data"
|
|
3465
|
-
]
|
|
3466
|
-
},
|
|
3467
3101
|
"force:data:bulk:delete": {
|
|
3468
3102
|
"aliases": [],
|
|
3469
3103
|
"args": {},
|
|
@@ -3901,5 +3535,5 @@
|
|
|
3901
3535
|
]
|
|
3902
3536
|
}
|
|
3903
3537
|
},
|
|
3904
|
-
"version": "
|
|
3538
|
+
"version": "4.0.1"
|
|
3905
3539
|
}
|