@salesforce/cli 2.30.4 → 2.30.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 CHANGED
@@ -24,7 +24,7 @@ $ npm install -g @salesforce/cli
24
24
  $ sf COMMAND
25
25
  running command...
26
26
  $ sf (--version|-v)
27
- @salesforce/cli/2.30.4 linux-x64 node-v20.11.0
27
+ @salesforce/cli/2.30.5 linux-x64 node-v20.11.0
28
28
  $ sf --help [COMMAND]
29
29
  USAGE
30
30
  $ sf COMMAND
@@ -63,8 +63,10 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
63
63
  - [`sf data delete bulk`](#sf-data-delete-bulk)
64
64
  - [`sf data delete record`](#sf-data-delete-record)
65
65
  - [`sf data delete resume`](#sf-data-delete-resume)
66
+ - [`sf data export beta tree`](#sf-data-export-beta-tree)
66
67
  - [`sf data export tree`](#sf-data-export-tree)
67
68
  - [`sf data get record`](#sf-data-get-record)
69
+ - [`sf data import beta tree`](#sf-data-import-beta-tree)
68
70
  - [`sf data import tree`](#sf-data-import-tree)
69
71
  - [`sf data query`](#sf-data-query)
70
72
  - [`sf data query resume`](#sf-data-query-resume)
@@ -1111,7 +1113,7 @@ EXAMPLES
1111
1113
  TracedEntityId=01p17000000R6bLAAS"
1112
1114
  ```
1113
1115
 
1114
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/create/record.ts)_
1116
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/create/record.ts)_
1115
1117
 
1116
1118
  ## `sf data delete bulk`
1117
1119
 
@@ -1156,7 +1158,7 @@ EXAMPLES
1156
1158
  $ sf data delete bulk --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
1157
1159
  ```
1158
1160
 
1159
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/delete/bulk.ts)_
1161
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/delete/bulk.ts)_
1160
1162
 
1161
1163
  ## `sf data delete record`
1162
1164
 
@@ -1215,7 +1217,7 @@ EXAMPLES
1215
1217
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
1216
1218
  ```
1217
1219
 
1218
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/delete/record.ts)_
1220
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/delete/record.ts)_
1219
1221
 
1220
1222
  ## `sf data delete resume`
1221
1223
 
@@ -1252,7 +1254,63 @@ EXAMPLES
1252
1254
  $ sf data delete resume --use-most-recent --target-org my-scratch
1253
1255
  ```
1254
1256
 
1255
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/delete/resume.ts)_
1257
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/delete/resume.ts)_
1258
+
1259
+ ## `sf data export beta tree`
1260
+
1261
+ Export data from an org into one or more JSON files.
1262
+
1263
+ ```
1264
+ USAGE
1265
+ $ sf data export beta tree -o <value> -q <value> [--json] [--api-version <value>] [-p] [-x <value>] [-d <value>]
1266
+
1267
+ FLAGS
1268
+ -d, --output-dir=<value> Directory in which to generate the JSON files; default is current directory.
1269
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1270
+ configuration variable is already set.
1271
+ -p, --plan Generate multiple sObject tree files and a plan definition file for aggregated import.
1272
+ -q, --query=<value> (required) SOQL query, or filepath of a file that contains the query, to retrieve records.
1273
+ -x, --prefix=<value> Prefix of generated files.
1274
+ --api-version=<value> Override the api version used for api requests made by this command
1275
+
1276
+ GLOBAL FLAGS
1277
+ --json Format output as json.
1278
+
1279
+ DESCRIPTION
1280
+ Export data from an org into one or more JSON files.
1281
+
1282
+ Specify a SOQL query, either directly at the command line or read from a file, to retrieve the data you want to
1283
+ export. The exported data is written to JSON files in sObject tree format, which is a collection of nested,
1284
+ parent-child records with a single root record. Use these JSON files to import data into an org with the "sf data
1285
+ import tree" command.
1286
+
1287
+ If your SOQL query references multiple objects, the command generates a single JSON file by default. You can specify
1288
+ the --plan flag to generate separate JSON files for each object and a plan definition file that aggregates them. You
1289
+ then specify just this plan definition file when you import the data into an org.
1290
+
1291
+ The SOQL query can return a maximum of 2,000 records. For more information, see the REST API Developer Guide.
1292
+ (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm).
1293
+
1294
+ EXAMPLES
1295
+ Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command
1296
+ uses your default org:
1297
+
1298
+ $ sf data export beta tree --query "SELECT Id, Name, (SELECT Name, Address\_\_c FROM Properties\_\_r) FROM \
1299
+ Broker\_\_c"
1300
+
1301
+ Export data using a SOQL query in the "query.txt" file and generate JSON files for each object and a plan that
1302
+ aggregates them:
1303
+
1304
+ $ sf data export beta tree --query query.txt --plan
1305
+
1306
+ Prepend "export-demo" before each generated file and generate the files in the "export-out" directory; run the
1307
+ command on the org with alias "my-scratch":
1308
+
1309
+ $ sf data export beta tree --query query.txt --plan --prefix export-demo --output-dir export-out --target-org \
1310
+ my-scratch
1311
+ ```
1312
+
1313
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/export/beta/tree.ts)_
1256
1314
 
1257
1315
  ## `sf data export tree`
1258
1316
 
@@ -1296,7 +1354,8 @@ EXAMPLES
1296
1354
  Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command
1297
1355
  uses your default org:
1298
1356
 
1299
- $ sf data export tree --query "SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c"
1357
+ $ sf data export tree --query "SELECT Id, Name, (SELECT Name, Address\_\_c FROM Properties\_\_r) FROM \
1358
+ Broker\_\_c"
1300
1359
 
1301
1360
  Export data using a SOQL query in the "query.txt" file and generate JSON files for each object and a plan that
1302
1361
  aggregates them:
@@ -1310,7 +1369,7 @@ EXAMPLES
1310
1369
  my-scratch
1311
1370
  ```
1312
1371
 
1313
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/export/tree.ts)_
1372
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/export/tree.ts)_
1314
1373
 
1315
1374
  ## `sf data get record`
1316
1375
 
@@ -1372,7 +1431,49 @@ EXAMPLES
1372
1431
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
1373
1432
  ```
1374
1433
 
1375
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/get/record.ts)_
1434
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/get/record.ts)_
1435
+
1436
+ ## `sf data import beta tree`
1437
+
1438
+ Import data from one or more JSON files into an org.
1439
+
1440
+ ```
1441
+ USAGE
1442
+ $ sf data import beta tree -o <value> [--json] [--api-version <value>] [-f <value>] [-p <value>]
1443
+
1444
+ FLAGS
1445
+ -f, --files=<value>... Comma-separated and in-order JSON files that contain the records, in sObject tree format,
1446
+ that you want to insert.
1447
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1448
+ configuration variable is already set.
1449
+ -p, --plan=<value> Plan definition file to insert multiple data files.
1450
+ --api-version=<value> Override the api version used for api requests made by this command
1451
+
1452
+ GLOBAL FLAGS
1453
+ --json Format output as json.
1454
+
1455
+ DESCRIPTION
1456
+ Import data from one or more JSON files into an org.
1457
+
1458
+ The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records
1459
+ with a single root record. Use the "sf data export tree" command to generate these JSON files.
1460
+
1461
+ If you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to
1462
+ reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify
1463
+ multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct
1464
+ order.
1465
+
1466
+ EXAMPLES
1467
+ Import the records contained in two JSON files into the org with alias "my-scratch":
1468
+
1469
+ $ sf data import beta tree --files Contact.json,Account.json --target-org my-scratch
1470
+
1471
+ Import records using a plan definition file into your default org:
1472
+
1473
+ $ sf data import beta tree --plan Account-Contact-plan.json
1474
+ ```
1475
+
1476
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/import/beta/tree.ts)_
1376
1477
 
1377
1478
  ## `sf data import tree`
1378
1479
 
@@ -1380,7 +1481,7 @@ Import data from one or more JSON files into an org.
1380
1481
 
1381
1482
  ```
1382
1483
  USAGE
1383
- $ sf data import tree -o <value> [--json] [--api-version <value>] [-f <value> | -p <value>] [--config-help]
1484
+ $ sf data import tree -o <value> [--json] [--api-version <value>] [-f <value> | -p <value>]
1384
1485
 
1385
1486
  FLAGS
1386
1487
  -f, --files=<value>... Comma-separated and in-order JSON files that contain the records, in sObject tree format,
@@ -1389,8 +1490,6 @@ FLAGS
1389
1490
  configuration variable is already set.
1390
1491
  -p, --plan=<value> Plan definition file to insert multiple data files.
1391
1492
  --api-version=<value> Override the api version used for api requests made by this command
1392
- --config-help Display schema information for the --plan configuration file to stdout; if you specify this
1393
- flag, all other flags except --json are ignored.
1394
1493
 
1395
1494
  GLOBAL FLAGS
1396
1495
  --json Format output as json.
@@ -1423,7 +1522,7 @@ EXAMPLES
1423
1522
  $ sf data import tree --plan Account-Contact-plan.json
1424
1523
  ```
1425
1524
 
1426
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/import/tree.ts)_
1525
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/import/tree.ts)_
1427
1526
 
1428
1527
  ## `sf data query`
1429
1528
 
@@ -1486,7 +1585,7 @@ EXAMPLES
1486
1585
  $ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
1487
1586
  ```
1488
1587
 
1489
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/query.ts)_
1588
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/query.ts)_
1490
1589
 
1491
1590
  ## `sf data query resume`
1492
1591
 
@@ -1522,7 +1621,7 @@ EXAMPLES
1522
1621
  $ sf data query resume --bulk-query-id 7500x000005BdFzXXX
1523
1622
  ```
1524
1623
 
1525
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/query/resume.ts)_
1624
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/query/resume.ts)_
1526
1625
 
1527
1626
  ## `sf data resume`
1528
1627
 
@@ -1558,7 +1657,7 @@ EXAMPLES
1558
1657
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
1559
1658
  ```
1560
1659
 
1561
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/resume.ts)_
1660
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/resume.ts)_
1562
1661
 
1563
1662
  ## `sf data update record`
1564
1663
 
@@ -1619,7 +1718,7 @@ EXAMPLES
1619
1718
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
1620
1719
  ```
1621
1720
 
1622
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/update/record.ts)_
1721
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/update/record.ts)_
1623
1722
 
1624
1723
  ## `sf data upsert bulk`
1625
1724
 
@@ -1671,7 +1770,7 @@ EXAMPLES
1671
1770
  my-scratch
1672
1771
  ```
1673
1772
 
1674
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/upsert/bulk.ts)_
1773
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/upsert/bulk.ts)_
1675
1774
 
1676
1775
  ## `sf data upsert resume`
1677
1776
 
@@ -1708,7 +1807,7 @@ EXAMPLES
1708
1807
  $ sf data upsert resume --use-most-recent --target-org my-scratch
1709
1808
  ```
1710
1809
 
1711
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/data/upsert/resume.ts)_
1810
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/data/upsert/resume.ts)_
1712
1811
 
1713
1812
  ## `sf doctor`
1714
1813
 
@@ -1800,7 +1899,7 @@ EXAMPLES
1800
1899
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
1801
1900
  ```
1802
1901
 
1803
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/force/data/bulk/delete.ts)_
1902
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/force/data/bulk/delete.ts)_
1804
1903
 
1805
1904
  ## `sf force data bulk status`
1806
1905
 
@@ -1836,7 +1935,7 @@ EXAMPLES
1836
1935
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
1837
1936
  ```
1838
1937
 
1839
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/force/data/bulk/status.ts)_
1938
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/force/data/bulk/status.ts)_
1840
1939
 
1841
1940
  ## `sf force data bulk upsert`
1842
1941
 
@@ -1893,7 +1992,7 @@ EXAMPLES
1893
1992
  --target-org my-scratch
1894
1993
  ```
1895
1994
 
1896
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.0.23/src/commands/force/data/bulk/upsert.ts)_
1995
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.1.0/src/commands/force/data/bulk/upsert.ts)_
1897
1996
 
1898
1997
  ## `sf help [COMMANDS]`
1899
1998
 
@@ -5107,7 +5206,7 @@ EXAMPLES
5107
5206
  $ sf plugins discover
5108
5207
  ```
5109
5208
 
5110
- _See code: [@salesforce/plugin-marketplace](https://github.com/salesforcecli/plugin-marketplace/blob/1.0.23/src/commands/plugins/discover.ts)_
5209
+ _See code: [@salesforce/plugin-marketplace](https://github.com/salesforcecli/plugin-marketplace/blob/1.0.24/src/commands/plugins/discover.ts)_
5111
5210
 
5112
5211
  ## `sf plugins:inspect PLUGIN...`
5113
5212
 
@@ -7127,7 +7226,7 @@ DESCRIPTION
7127
7226
  Once you select a command, hit enter and it will show the help for that command.
7128
7227
  ```
7129
7228
 
7130
- _See code: [@oclif/plugin-search](https://github.com/oclif/plugin-search/blob/1.0.14/src/commands/search.ts)_
7229
+ _See code: [@oclif/plugin-search](https://github.com/oclif/plugin-search/blob/1.0.15/src/commands/search.ts)_
7131
7230
 
7132
7231
  ## `sf sobject describe`
7133
7232