@salesforce/cli 1.36.0 → 1.37.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.37.0](https://github.com/salesforcecli/cli/compare/v1.36.0...v1.37.0) (2022-07-13)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **deps:** update plugin-functions to 1.12.1 ([42f5ecd](https://github.com/salesforcecli/cli/commit/42f5ecdd30e395d823678658da1df51409c89028))
10
+
5
11
  ## [1.36.0](https://github.com/salesforcecli/cli/compare/v1.35.0...v1.36.0) (2022-07-06)
6
12
 
7
13
  ## [1.35.0](https://github.com/salesforcecli/cli/compare/v1.34.0...v1.35.0) (2022-06-29)
package/README.md CHANGED
@@ -31,7 +31,7 @@ $ npm install -g @salesforce/cli
31
31
  $ sf COMMAND
32
32
  running command...
33
33
  $ sf (--version|-v)
34
- @salesforce/cli/1.36.0 linux-x64 node-v14.19.3
34
+ @salesforce/cli/1.37.0 linux-x64 node-v14.20.0
35
35
  $ sf --help [COMMAND]
36
36
  USAGE
37
37
  $ sf COMMAND
@@ -66,6 +66,7 @@ USAGE
66
66
  - [`sf env delete scratch`](#sf-env-delete-scratch)
67
67
  - [`sf env display`](#sf-env-display)
68
68
  - [`sf env list`](#sf-env-list)
69
+ - [`sf env log`](#sf-env-log)
69
70
  - [`sf env log tail`](#sf-env-log-tail)
70
71
  - [`sf env logdrain add`](#sf-env-logdrain-add)
71
72
  - [`sf env logdrain list`](#sf-env-logdrain-list)
@@ -342,16 +343,38 @@ _See code: [@salesforce/plugin-deploy-retrieve](https://github.com/salesforcecli
342
343
 
343
344
  ## `sf deploy functions`
344
345
 
346
+ Deploy a Salesforce Function to an org from your local project.
347
+
345
348
  ```
346
349
  USAGE
347
- $ sf deploy functions -o <value> [-b <value>] [--force] [-q]
350
+ $ sf deploy functions -o <value> [-b <value>] [--force] [-q] [-j]
348
351
 
349
352
  FLAGS
350
353
  -b, --branch=<value> Deploy the latest commit from a branch different from the currently active branch.
354
+ -j, --json Output list in JSON format.
351
355
  -o, --connected-org=<value> (required) Username or alias for the org that the compute environment should be connected
352
356
  to.
353
357
  -q, --quiet Limit the amount of output displayed from the deploy process.
354
358
  --force Ignore warnings and overwrite remote repository (not allowed in production).
359
+
360
+ DESCRIPTION
361
+ Deploy a Salesforce Function to an org from your local project.
362
+
363
+ You must run this command from within a git repository. Only committed changes to Functions are deployed. The active
364
+ branch is deployed unless specified otherwise with `--branch`.
365
+
366
+ EXAMPLES
367
+ Deploy a Salesforce Function:
368
+
369
+ $ sf deploy functions --connected-org org-alias
370
+
371
+ Deploy to 'deploy-branch':
372
+
373
+ $ sf deploy functions --connected-org org-alias --branch deploy-branch
374
+
375
+ Overwrite the remote repository:
376
+
377
+ $ sf deploy functions --connected-org org-alias --force
355
378
  ```
356
379
 
357
380
  ## `sf deploy metadata`
@@ -965,10 +988,11 @@ Create a compute environment for use with Salesforce Functions.
965
988
 
966
989
  ```
967
990
  USAGE
968
- $ sf env create compute [-o <value>] [-a <value> | ]
991
+ $ sf env create compute [-o <value>] [-a <value>] [-j]
969
992
 
970
993
  FLAGS
971
994
  -a, --alias=<value> Alias for the created environment.
995
+ -j, --json Output list in JSON format.
972
996
  -o, --connected-org=<value> Username or alias for the org that the compute environment should be connected to.
973
997
 
974
998
  DESCRIPTION
@@ -1203,10 +1227,11 @@ Delete an environment.
1203
1227
 
1204
1228
  ```
1205
1229
  USAGE
1206
- $ sf env delete [-e <value> | ] [--confirm <value>]
1230
+ $ sf env delete [-e <value> | ] [--confirm <value>] [-j]
1207
1231
 
1208
1232
  FLAGS
1209
1233
  -e, --target-compute=<value> Environment name.
1234
+ -j, --json Output list in JSON format.
1210
1235
  --confirm=name... Confirmation name.
1211
1236
 
1212
1237
  DESCRIPTION
@@ -1408,6 +1433,24 @@ EXAMPLES
1408
1433
  $ sf env list --csv --no-header
1409
1434
  ```
1410
1435
 
1436
+ ## `sf env log`
1437
+
1438
+ Stream log output for an environment.
1439
+
1440
+ ```
1441
+ USAGE
1442
+ $ sf env log [-e <value> | ] [-n <value>]
1443
+
1444
+ FLAGS
1445
+ -e, --target-compute=<value> Compute environment name to retrieve logs.
1446
+ -n, --num=<value> Number of lines to display.
1447
+
1448
+ EXAMPLES
1449
+ Stream log output:
1450
+
1451
+ $ sf env log --target-compute environment-alias
1452
+ ```
1453
+
1411
1454
  ## `sf env log tail`
1412
1455
 
1413
1456
  Stream log output for an environment.
@@ -1431,10 +1474,11 @@ Add log drain to a specified environment.
1431
1474
 
1432
1475
  ```
1433
1476
  USAGE
1434
- $ sf env logdrain add [-e <value> | ] [-l <value> | ]
1477
+ $ sf env logdrain add [-e <value> | ] [-l <value> | ] [-j]
1435
1478
 
1436
1479
  FLAGS
1437
1480
  -e, --target-compute=<value> Environment name.
1481
+ -j, --json Output list in JSON format.
1438
1482
  -l, --drain-url=<value> Endpoint that will receive sent logs.
1439
1483
 
1440
1484
  DESCRIPTION
@@ -1477,10 +1521,11 @@ Remove log drain from a specified environment.
1477
1521
 
1478
1522
  ```
1479
1523
  USAGE
1480
- $ sf env logdrain remove [-e <value> | ] [-l <value> | ]
1524
+ $ sf env logdrain remove [-e <value> | ] [-l <value> | ] [-j]
1481
1525
 
1482
1526
  FLAGS
1483
1527
  -e, --target-compute=<value> Environment name.
1528
+ -j, --json Output list in JSON format.
1484
1529
  -l, --drain-url=<value> Log drain url to remove.
1485
1530
 
1486
1531
  DESCRIPTION
@@ -1705,10 +1750,11 @@ Set a single config value for an environment.
1705
1750
 
1706
1751
  ```
1707
1752
  USAGE
1708
- $ sf env var set [-e <value> | ]
1753
+ $ sf env var set [-e <value> | ] [-j]
1709
1754
 
1710
1755
  FLAGS
1711
1756
  -e, --target-compute=<value> Environment name.
1757
+ -j, --json Output list in JSON format.
1712
1758
 
1713
1759
  EXAMPLES
1714
1760
  Set a config value:
@@ -1722,10 +1768,11 @@ Unset a single config value for an environment.
1722
1768
 
1723
1769
  ```
1724
1770
  USAGE
1725
- $ sf env var unset [-e <value> | ]
1771
+ $ sf env var unset [-e <value> | ] [-j]
1726
1772
 
1727
1773
  FLAGS
1728
1774
  -e, --target-compute=<value> Environment name.
1775
+ -j, --json Output list in JSON format.
1729
1776
 
1730
1777
  DESCRIPTION
1731
1778
  Unset a single config value for an environment.
@@ -1758,7 +1805,7 @@ DESCRIPTION
1758
1805
  EXAMPLES
1759
1806
  Create a JavaScript function:
1760
1807
 
1761
- $ sf generate function --function-name MyFunction --language javascript
1808
+ $ sf generate function --function-name myfunction --language javascript
1762
1809
  ```
1763
1810
 
1764
1811
  ## `sf generate project`
@@ -1969,17 +2016,17 @@ Login using JWT instead of default web-based flow. This will authenticate you wi
1969
2016
 
1970
2017
  ```
1971
2018
  USAGE
1972
- $ sf login functions jwt -u <value> -f <value> -i <value> [-l <value> | ] [--json] [-a <value>] [-d] [-v]
2019
+ $ sf login functions jwt -u <value> -f <value> -i <value> [-l <value> | ] [-j] [-a <value>] [-d] [-v]
1973
2020
 
1974
2021
  FLAGS
1975
2022
  -a, --alias=<value> Alias for the org.
1976
2023
  -d, --set-default Set the org as the default that all org-related commands run against.
1977
2024
  -f, --keyfile=<value> (required) Path to JWT keyfile.
1978
2025
  -i, --clientid=<value> (required) OAuth client ID.
2026
+ -j, --json Output list in JSON format.
1979
2027
  -l, --instance-url=<value> The login URL of the instance the org lives on.
1980
2028
  -u, --username=<value> (required) Authentication username.
1981
2029
  -v, --set-default-dev-hub Set the org as the default Dev Hub for scratch org creation.
1982
- --json Format output as JSON.
1983
2030
 
1984
2031
  DESCRIPTION
1985
2032
  Login using JWT instead of default web-based flow. This will authenticate you with both sf and Salesforce Functions.
@@ -2217,7 +2264,10 @@ Log out of your Salesforce Functions account.
2217
2264
 
2218
2265
  ```
2219
2266
  USAGE
2220
- $ sf logout functions
2267
+ $ sf logout functions [-j]
2268
+
2269
+ FLAGS
2270
+ -j, --json Output list in JSON format.
2221
2271
 
2222
2272
  EXAMPLES
2223
2273
  Log out:
@@ -2616,10 +2666,11 @@ Send a cloudevent to a function.
2616
2666
 
2617
2667
  ```
2618
2668
  USAGE
2619
- $ sf run function [-l <value> | ] [-H <value>] [-p <value>] [-s] [-o <value>]
2669
+ $ sf run function [-l <value> | ] [-H <value>] [-p <value>] [-s] [-o <value>] [-j]
2620
2670
 
2621
2671
  FLAGS
2622
2672
  -H, --headers=<value>... Set headers.
2673
+ -j, --json Output list in JSON format.
2623
2674
  -l, --function-url=<value> URL of the function to run.
2624
2675
  -o, --connected-org=<value> Username or alias for the target org; overrides default target org.
2625
2676
  -p, --payload=<value> Set the payload of the cloudevent as a JSON object or a path to a file via @file.json.