@salesforce/cli 2.62.4 → 2.62.6

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.62.4 linux-x64 node-v20.17.0
27
+ @salesforce/cli/2.62.6 linux-x64 node-v20.17.0
28
28
  $ sf --help [COMMAND]
29
29
  USAGE
30
30
  $ sf COMMAND
@@ -66,6 +66,8 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
66
66
  - [`sf data delete bulk`](#sf-data-delete-bulk)
67
67
  - [`sf data delete record`](#sf-data-delete-record)
68
68
  - [`sf data delete resume`](#sf-data-delete-resume)
69
+ - [`sf data export bulk`](#sf-data-export-bulk)
70
+ - [`sf data export resume`](#sf-data-export-resume)
69
71
  - [`sf data export tree`](#sf-data-export-tree)
70
72
  - [`sf data get record`](#sf-data-get-record)
71
73
  - [`sf data import tree`](#sf-data-import-tree)
@@ -903,7 +905,7 @@ EXAMPLES
903
905
  $ sf api request graphql --body example.txt --stream-to-file output.txt --include
904
906
  ```
905
907
 
906
- _See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.0/src/commands/api/request/graphql.ts)_
908
+ _See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.1/src/commands/api/request/graphql.ts)_
907
909
 
908
910
  ## `sf api request rest [URL]`
909
911
 
@@ -911,8 +913,8 @@ Make an authenticated HTTP request using the Salesforce REST API.
911
913
 
912
914
  ```
913
915
  USAGE
914
- $ sf api request rest [URL] -o <value> [--flags-dir <value>] [--api-version <value>] [-i | -S Example: report.xlsx]
915
- [-X GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE] [-H key:value...] [-f file] [-b file]
916
+ $ sf api request rest [URL] -o <value> [--flags-dir <value>] [-i | -S Example: report.xlsx] [-X
917
+ GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE] [-H key:value...] [-f file | -b file]
916
918
 
917
919
  ARGUMENTS
918
920
  URL Salesforce API endpoint
@@ -923,13 +925,13 @@ FLAGS
923
925
  -X, --method=<option> HTTP method for the request.
924
926
  <options: GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS|TRACE>
925
927
  -b, --body=file File or content for the body of the HTTP request. Specify "-" to read from
926
- standard input or "" for an empty body.
928
+ standard input or "" for an empty body. If passing a file, prefix the
929
+ filename with '@'.
927
930
  -f, --file=file JSON file that contains values for the request header, body, method, and
928
931
  URL.
929
932
  -i, --include Include the HTTP response status and headers in the output.
930
933
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the
931
934
  `target-org` configuration variable is already set.
932
- --api-version=<value> Override the api version used for api requests made by this command
933
935
 
934
936
  GLOBAL FLAGS
935
937
  --flags-dir=<value> Import flag values from a directory.
@@ -946,30 +948,30 @@ DESCRIPTION
946
948
  EXAMPLES
947
949
  List information about limits in the org with alias "my-org":
948
950
 
949
- $ sf api request rest 'limits' --target-org my-org
951
+ $ sf api request rest 'services/data/v56.0/limits' --target-org my-org
950
952
 
951
953
  List all endpoints in your default org; write the output to a file called "output.txt" and include the HTTP response
952
954
  status and headers:
953
955
 
954
- $ sf api request rest '/' --stream-to-file output.txt --include
956
+ $ sf api request rest '/services/data/v56.0/' --stream-to-file output.txt --include
955
957
 
956
958
  Get the response in XML format by specifying the "Accept" HTTP header:
957
959
 
958
- $ sf api request rest 'limits' --header 'Accept: application/xml'
960
+ $ sf api request rest '/services/data/v56.0/limits' --header 'Accept: application/xml'
959
961
 
960
962
  Create an account record using the POST method; specify the request details directly in the "--body" flag:
961
963
 
962
- $ sf api request rest sobjects/account --body "{\"Name\" : \"Account from REST API\",\"ShippingCity\" : \
963
- \"Boise\"}" --method POST
964
+ $ sf api request rest /services/data/v56.0/sobjects/account --body "{\"Name\" : \"Account from REST \
965
+ API\",\"ShippingCity\" : \"Boise\"}" --method POST
964
966
 
965
- Create an account record using the information in a file called "info.json":
967
+ Create an account record using the information in a file called "info.json" (note the @ prefixing the file name):
966
968
 
967
- $ sf api request rest 'sobjects/account' --body info.json --method POST
969
+ $ sf api request rest '/services/data/v56.0/sobjects/account' --body @info.json --method POST
968
970
 
969
971
  Update an account record using the PATCH method:
970
972
 
971
- $ sf api request rest 'sobjects/account/<Account ID>' --body "{\"BillingCity\": \"San Francisco\"}" --method \
972
- PATCH
973
+ $ sf api request rest '/services/data/v56.0/sobjects/account/<Account ID>' --body "{\"BillingCity\": \"San \
974
+ Francisco\"}" --method PATCH
973
975
 
974
976
  Store the values for the request header, body, and so on, in a file, which you then specify with the --file flag;
975
977
  see the description of --file for more information:
@@ -1012,7 +1014,7 @@ FLAG DESCRIPTIONS
1012
1014
  https://github.com/salesforcecli/plugin-api/tree/main/test/test-files/data-project.
1013
1015
  ```
1014
1016
 
1015
- _See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.0/src/commands/api/request/rest.ts)_
1017
+ _See code: [@salesforce/plugin-api](https://github.com/salesforcecli/plugin-api/blob/1.3.1/src/commands/api/request/rest.ts)_
1016
1018
 
1017
1019
  ## `sf autocomplete [SHELL]`
1018
1020
 
@@ -1072,7 +1074,7 @@ DESCRIPTION
1072
1074
  List all sf commands.
1073
1075
  ```
1074
1076
 
1075
- _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/4.1.1/src/commands/commands.ts)_
1077
+ _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/4.1.3/src/commands/commands.ts)_
1076
1078
 
1077
1079
  ## `sf config get`
1078
1080
 
@@ -1329,7 +1331,7 @@ EXAMPLES
1329
1331
  $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
1330
1332
  ```
1331
1333
 
1332
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/create/file.ts)_
1334
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/create/file.ts)_
1333
1335
 
1334
1336
  ## `sf data create record`
1335
1337
 
@@ -1385,7 +1387,7 @@ EXAMPLES
1385
1387
  TracedEntityId=01p17000000R6bLAAS"
1386
1388
  ```
1387
1389
 
1388
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/create/record.ts)_
1390
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/create/record.ts)_
1389
1391
 
1390
1392
  ## `sf data delete bulk`
1391
1393
 
@@ -1443,7 +1445,7 @@ FLAG DESCRIPTIONS
1443
1445
  and can be enabled only by a system administrator.
1444
1446
  ```
1445
1447
 
1446
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/delete/bulk.ts)_
1448
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/delete/bulk.ts)_
1447
1449
 
1448
1450
  ## `sf data delete record`
1449
1451
 
@@ -1504,7 +1506,7 @@ EXAMPLES
1504
1506
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
1505
1507
  ```
1506
1508
 
1507
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/delete/record.ts)_
1509
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/delete/record.ts)_
1508
1510
 
1509
1511
  ## `sf data delete resume`
1510
1512
 
@@ -1543,7 +1545,117 @@ EXAMPLES
1543
1545
  $ sf data delete resume --use-most-recent --target-org my-scratch
1544
1546
  ```
1545
1547
 
1546
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/delete/resume.ts)_
1548
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/delete/resume.ts)_
1549
+
1550
+ ## `sf data export bulk`
1551
+
1552
+ Bulk export records from an org into a file using a SOQL query. Uses Bulk API 2.0.
1553
+
1554
+ ```
1555
+ USAGE
1556
+ $ sf data export bulk -o <value> --output-file <value> -r csv|json [--json] [--flags-dir <value>] [--api-version
1557
+ <value>] [-w <minutes> | --async] [-q <value> | --query-file <value>] [--all-rows] [--column-delimiter
1558
+ BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB] [--line-ending LF|CRLF]
1559
+
1560
+ FLAGS
1561
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1562
+ configuration variable is already set.
1563
+ -q, --query=<value> SOQL query to execute.
1564
+ -r, --result-format=<option> (required) [default: csv] Format to write the results.
1565
+ <options: csv|json>
1566
+ -w, --wait=<minutes> Time to wait for the command to finish, in minutes.
1567
+ --all-rows Include records that have been soft-deleted due to a merge or delete. By default,
1568
+ deleted records are not returned.
1569
+ --api-version=<value> Override the api version used for api requests made by this command
1570
+ --async Don't wait for the job to complete.
1571
+ --column-delimiter=<option> Column delimiter to be used when writing CSV output. Default is COMMA.
1572
+ <options: BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB>
1573
+ --line-ending=<option> Line ending to be used when writing CSV output. Default value on Windows is is
1574
+ `CRLF`; on macOS and Linux it's `LR`.
1575
+ <options: LF|CRLF>
1576
+ --output-file=<value> (required) File where records are written.
1577
+ --query-file=<value> File that contains the SOQL query.
1578
+
1579
+ GLOBAL FLAGS
1580
+ --flags-dir=<value> Import flag values from a directory.
1581
+ --json Format output as json.
1582
+
1583
+ DESCRIPTION
1584
+ Bulk export records from an org into a file using a SOQL query. Uses Bulk API 2.0.
1585
+
1586
+ You can use this command to export millions of records from an org, either to migrate data or to back it up.
1587
+
1588
+ Use a SOQL query to specify the fields of a standard or custom object that you want to export. Specify the SOQL query
1589
+ either at the command line with the --query flag or read it from a file with the --query-file flag; you can't specify
1590
+ both flags. The --output-file flag is required, which means you can only write the records to a file, in either CSV or
1591
+ JSON format.
1592
+
1593
+ Bulk exports can take a while, depending on how many records are returned by the SOQL query. If the command times out,
1594
+ or you specified the --async flag, the command displays the job ID. To see the status and get the results of the job,
1595
+ run "sf data export resume" and pass the job ID to the --job-id flag.
1596
+
1597
+ IMPORTANT: This command uses Bulk API 2.0, which limits the type of SOQL queries you can run. For example, you can't
1598
+ use aggregate functions such as count(). For the complete list of limitations, see the "SOQL Considerations" section
1599
+ in the "Bulk API 2.0 and Bulk API Developer Guide"
1600
+ (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm).
1601
+
1602
+ EXAMPLES
1603
+ Export the Id, Name, and Account.Name fields of the Contact object into a CSV-formatted file; if the export doesn't
1604
+ complete in 10 minutes, the command ends and displays a job ID. Use the org with alias "my-scratch":
1605
+
1606
+ $ sf data export bulk --query "SELECT Id, Name, Account.Name FROM Contact" --output-file export-accounts.csv \
1607
+ --wait 10 --target-org my-scratch
1608
+
1609
+ Similar to previous example, but use the default org, export the records into a JSON-formatted file, and include
1610
+ records that have been soft deleted:
1611
+
1612
+ $ sf data export bulk --query "SELECT Id, Name, Account.Name FROM Contact" --output-file export-accounts.json \
1613
+ --result-format json --wait 10 --all-rows
1614
+
1615
+ Export asynchronously; the command immediately returns a job ID that you then pass to the "sf data export resume"
1616
+ command:
1617
+
1618
+ $ sf data export bulk --query "SELECT Id, Name, Account.Name FROM Contact" --output-file export-accounts.json \
1619
+ --result-format json --async
1620
+ ```
1621
+
1622
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/export/bulk.ts)_
1623
+
1624
+ ## `sf data export resume`
1625
+
1626
+ Resume a bulk export job that you previously started.
1627
+
1628
+ ```
1629
+ USAGE
1630
+ $ sf data export resume [--json] [--flags-dir <value>] [-i <value>] [--use-most-recent] [--api-version <value>]
1631
+
1632
+ FLAGS
1633
+ -i, --job-id=<value> Job ID of the bulk export.
1634
+ --api-version=<value> Override the api version used for api requests made by this command
1635
+ --use-most-recent Use the job ID of the bulk export job that was most recently run.
1636
+
1637
+ GLOBAL FLAGS
1638
+ --flags-dir=<value> Import flag values from a directory.
1639
+ --json Format output as json.
1640
+
1641
+ DESCRIPTION
1642
+ Resume a bulk export job that you previously started.
1643
+
1644
+ When the original "data export bulk" command either times out or is run with the --async flag, it displays a job ID.
1645
+ To see the status and get the results of the bulk export, run this command by either passing it the job ID or using
1646
+ the --use-most-recent flag to specify the most recent bulk export job.
1647
+
1648
+ EXAMPLES
1649
+ Resume a bulk export job run on your default org by specifying a job ID:
1650
+
1651
+ $ sf data export resume --job-id 750xx000000005sAAA
1652
+
1653
+ Resume the most recently-run bulk export job for an org with alias my-scratch:
1654
+
1655
+ $ sf data export resume --use-most-recent --target-org my-scratch
1656
+ ```
1657
+
1658
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/export/resume.ts)_
1547
1659
 
1548
1660
  ## `sf data export tree`
1549
1661
 
@@ -1604,7 +1716,7 @@ EXAMPLES
1604
1716
  my-scratch
1605
1717
  ```
1606
1718
 
1607
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/export/tree.ts)_
1719
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/export/tree.ts)_
1608
1720
 
1609
1721
  ## `sf data get record`
1610
1722
 
@@ -1668,7 +1780,7 @@ EXAMPLES
1668
1780
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
1669
1781
  ```
1670
1782
 
1671
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/get/record.ts)_
1783
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/get/record.ts)_
1672
1784
 
1673
1785
  ## `sf data import tree`
1674
1786
 
@@ -1733,7 +1845,7 @@ FLAG DESCRIPTIONS
1733
1845
  - files(array) - Files: An array of files paths to load
1734
1846
  ```
1735
1847
 
1736
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/import/tree.ts)_
1848
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/import/tree.ts)_
1737
1849
 
1738
1850
  ## `sf data query`
1739
1851
 
@@ -1797,7 +1909,7 @@ EXAMPLES
1797
1909
  $ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
1798
1910
  ```
1799
1911
 
1800
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/query.ts)_
1912
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/query.ts)_
1801
1913
 
1802
1914
  ## `sf data query resume`
1803
1915
 
@@ -1835,7 +1947,7 @@ EXAMPLES
1835
1947
  $ sf data query resume --bulk-query-id 7500x000005BdFzXXX
1836
1948
  ```
1837
1949
 
1838
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/query/resume.ts)_
1950
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/query/resume.ts)_
1839
1951
 
1840
1952
  ## `sf data resume`
1841
1953
 
@@ -1872,7 +1984,7 @@ EXAMPLES
1872
1984
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
1873
1985
  ```
1874
1986
 
1875
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/resume.ts)_
1987
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/resume.ts)_
1876
1988
 
1877
1989
  ## `sf data search`
1878
1990
 
@@ -1922,7 +2034,7 @@ EXAMPLES
1922
2034
  $ sf data search --file query.txt --target-org my-scratch --result-format csv
1923
2035
  ```
1924
2036
 
1925
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/search.ts)_
2037
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/search.ts)_
1926
2038
 
1927
2039
  ## `sf data update record`
1928
2040
 
@@ -1984,7 +2096,7 @@ EXAMPLES
1984
2096
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
1985
2097
  ```
1986
2098
 
1987
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/update/record.ts)_
2099
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/update/record.ts)_
1988
2100
 
1989
2101
  ## `sf data upsert bulk`
1990
2102
 
@@ -2037,7 +2149,7 @@ EXAMPLES
2037
2149
  my-scratch
2038
2150
  ```
2039
2151
 
2040
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/upsert/bulk.ts)_
2152
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/upsert/bulk.ts)_
2041
2153
 
2042
2154
  ## `sf data upsert resume`
2043
2155
 
@@ -2076,7 +2188,7 @@ EXAMPLES
2076
2188
  $ sf data upsert resume --use-most-recent --target-org my-scratch
2077
2189
  ```
2078
2190
 
2079
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/data/upsert/resume.ts)_
2191
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/data/upsert/resume.ts)_
2080
2192
 
2081
2193
  ## `sf doctor`
2082
2194
 
@@ -2171,7 +2283,7 @@ EXAMPLES
2171
2283
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
2172
2284
  ```
2173
2285
 
2174
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/force/data/bulk/delete.ts)_
2286
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/force/data/bulk/delete.ts)_
2175
2287
 
2176
2288
  ## `sf force data bulk status`
2177
2289
 
@@ -2208,7 +2320,7 @@ EXAMPLES
2208
2320
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
2209
2321
  ```
2210
2322
 
2211
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/force/data/bulk/status.ts)_
2323
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/force/data/bulk/status.ts)_
2212
2324
 
2213
2325
  ## `sf force data bulk upsert`
2214
2326
 
@@ -2266,7 +2378,7 @@ EXAMPLES
2266
2378
  --target-org my-scratch
2267
2379
  ```
2268
2380
 
2269
- _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.6.9/src/commands/force/data/bulk/upsert.ts)_
2381
+ _See code: [@salesforce/plugin-data](https://github.com/salesforcecli/plugin-data/blob/3.7.0/src/commands/force/data/bulk/upsert.ts)_
2270
2382
 
2271
2383
  ## `sf help [COMMAND]`
2272
2384
 
@@ -8016,7 +8128,7 @@ EXAMPLES
8016
8128
  $ sf update --available
8017
8129
  ```
8018
8130
 
8019
- _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/4.6.1/src/commands/update.ts)_
8131
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/4.6.3/src/commands/update.ts)_
8020
8132
 
8021
8133
  ## `sf version`
8022
8134