@salesforce/cli 1.3.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
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.5.1](https://github.com/salesforcecli/cli/compare/v1.5.0...v1.5.1) (2021-12-02)
6
+
7
+ ## [1.5.0](https://github.com/salesforcecli/cli/compare/v1.4.0...v1.5.0) (2021-12-01)
8
+
9
+ ## [1.4.0](https://github.com/salesforcecli/cli/compare/v1.3.1...v1.4.0) (2021-11-17)
10
+
11
+ ### [1.3.1](https://github.com/salesforcecli/cli/compare/v1.3.0...v1.3.1) (2021-11-11)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * bump versions ([7983bcc](https://github.com/salesforcecli/cli/commit/7983bcc2bc8ccfdc1123a6dce2548b70e1811d1f))
17
+
5
18
  ## [1.3.0](https://github.com/salesforcecli/cli/compare/v1.2.0...v1.3.0) (2021-11-04)
6
19
 
7
20
 
package/README.md CHANGED
@@ -29,7 +29,7 @@ $ npm install -g @salesforce/cli
29
29
  $ sf COMMAND
30
30
  running command...
31
31
  $ sf (--version|-v|version)
32
- @salesforce/cli/1.3.0 linux-x64 node-v14.18.1
32
+ @salesforce/cli/1.5.1 linux-x64 node-v14.18.2
33
33
  $ sf --help [COMMAND]
34
34
  USAGE
35
35
  $ sf COMMAND
@@ -80,6 +80,8 @@ USAGE
80
80
  * [`sf retrieve metadata`](#sf-retrieve-metadata)
81
81
  * [`sf run function`](#sf-run-function)
82
82
  * [`sf run function start`](#sf-run-function-start)
83
+ * [`sf run function start local`](#sf-run-function-start-local)
84
+ * [`sf update [CHANNEL]`](#sf-update-channel)
83
85
  * [`sf whoami functions`](#sf-whoami-functions)
84
86
 
85
87
  ## `sf config get`
@@ -438,6 +440,10 @@ FLAGS
438
440
  DESCRIPTION
439
441
  Create a compute environment for use with Salesforce Functions.
440
442
 
443
+ Compute environments must be connected to a Salesforce org. By default the command uses your local environment's
444
+ connected org. Use the '--connected-org' flag to specify a specific org. Run 'sf env list' to see a list of
445
+ environments.
446
+
441
447
  EXAMPLES
442
448
  Create a compute environment to run Salesforce Functions:
443
449
 
@@ -467,6 +473,12 @@ FLAGS
467
473
  DESCRIPTION
468
474
  Delete an environment.
469
475
 
476
+ You must include the name of the environment to delete using '--target-compute'. Run 'sf env list' to see a list of
477
+ environments.
478
+
479
+ Running this command will prompt a confirmation. If you want to skip this confirmation, use the '--confirm' flag and
480
+ the environment alias to skip confirmation.
481
+
470
482
  EXAMPLES
471
483
  Delete a compute environment:
472
484
 
@@ -597,9 +609,6 @@ USAGE
597
609
  FLAGS
598
610
  -e, --target-compute=<value> Compute environment name to retrieve logs.
599
611
 
600
- DESCRIPTION
601
- Stream log output for an environment.
602
-
603
612
  EXAMPLES
604
613
  Stream log output:
605
614
 
@@ -621,6 +630,9 @@ FLAGS
621
630
  DESCRIPTION
622
631
  Add log drain to a specified environment.
623
632
 
633
+ Both '--target-compute' and '--url' are required flags. '--url' should be a HTTP or HTTPS URL that can receive the log
634
+ drain messages.
635
+
624
636
  EXAMPLES
625
637
  Add a log drain:
626
638
 
@@ -639,9 +651,6 @@ FLAGS
639
651
  -e, --target-compute=<value> Environment name.
640
652
  -j, --json Output list in JSON format.
641
653
 
642
- DESCRIPTION
643
- List log drains connected to a specified environment.
644
-
645
654
  EXAMPLES
646
655
  List log drains:
647
656
 
@@ -667,6 +676,8 @@ FLAGS
667
676
  DESCRIPTION
668
677
  Remove log drain from a specified environment.
669
678
 
679
+ Both '--target-compute' and '--drain-url' are required flags.
680
+
670
681
  EXAMPLES
671
682
  Remove a logdrain:
672
683
 
@@ -744,6 +755,8 @@ FLAGS
744
755
  DESCRIPTION
745
756
  Display a single config variable for an environment.
746
757
 
758
+ You must provide the '--target-compute' flag and the key to retrieve.
759
+
747
760
  EXAMPLES
748
761
  Get a config variable:
749
762
 
@@ -765,6 +778,8 @@ FLAGS
765
778
  DESCRIPTION
766
779
  List your environment's config vars in a table.
767
780
 
781
+ Use the '--json' flag to return config vars in JSON format.
782
+
768
783
  EXAMPLES
769
784
  List config vars:
770
785
 
@@ -786,9 +801,6 @@ USAGE
786
801
  FLAGS
787
802
  -e, --target-compute=<value> Environment name.
788
803
 
789
- DESCRIPTION
790
- Set a single config value for an environment.
791
-
792
804
  EXAMPLES
793
805
  Set a config value:
794
806
 
@@ -809,6 +821,8 @@ FLAGS
809
821
  DESCRIPTION
810
822
  Unset a single config value for an environment.
811
823
 
824
+ Run 'sf env var list' to see a list of config values that can be unset.
825
+
812
826
  EXAMPLES
813
827
  Unset a value:
814
828
 
@@ -830,6 +844,8 @@ FLAGS
830
844
  DESCRIPTION
831
845
  Create a Salesforce Function with basic scaffolding specific to a given language.
832
846
 
847
+ Both '--language' and '--name' are required flags. Function names must start with a capital letter.
848
+
833
849
  EXAMPLES
834
850
  Create a JavaScript function:
835
851
 
@@ -950,7 +966,7 @@ DESCRIPTION
950
966
  Display help for sf.
951
967
  ```
952
968
 
953
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.1/src/commands/help.ts)_
969
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.7/src/commands/help.ts)_
954
970
 
955
971
  ## `sf login`
956
972
 
@@ -981,7 +997,7 @@ EXAMPLES
981
997
  $ sf login
982
998
  ```
983
999
 
984
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.0.5/src/commands/login.ts)_
1000
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.0.6/src/commands/login.ts)_
985
1001
 
986
1002
  ## `sf login functions`
987
1003
 
@@ -994,6 +1010,8 @@ USAGE
994
1010
  DESCRIPTION
995
1011
  Log in to Salesforce Functions.
996
1012
 
1013
+ This step is required to develop or deploy Salesforce Functions.
1014
+
997
1015
  EXAMPLES
998
1016
  Log in to Salesforce Functions:
999
1017
 
@@ -1021,6 +1039,8 @@ FLAGS
1021
1039
  DESCRIPTION
1022
1040
  Login using JWT instead of default web-based flow. This will authenticate you with both sf and Salesforce Functions.
1023
1041
 
1042
+ Use this command when executing from a script.
1043
+
1024
1044
  EXAMPLES
1025
1045
  Log in using JWT:
1026
1046
 
@@ -1084,16 +1104,17 @@ EXAMPLES
1084
1104
 
1085
1105
  Log in to a sandbox and set it as your default org:
1086
1106
 
1087
- $ sf login org --instance-url https://test.salesforce.com --set-default
1107
+ $ sf login org --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default
1088
1108
 
1089
1109
  Use --browser to specify a specific browser, such as Google Chrome:
1090
1110
 
1091
- $ sf login org --instance-url https://test.salesforce.com --set-default --browser chrome
1111
+ $ sf login org --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
1112
+ --browser chrome
1092
1113
 
1093
1114
  Use your own connected app by specifying its consumer key (also called client ID):
1094
1115
 
1095
- $ sf login org --instance-url https://test.salesforce.com --set-default --browser chrome --clientid \
1096
- 04580y4051234051
1116
+ $ sf login org --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
1117
+ --browser chrome --clientid 04580y4051234051
1097
1118
 
1098
1119
  FLAG DESCRIPTIONS
1099
1120
  -b, --browser=<value> Browser in which to open the org.
@@ -1108,7 +1129,7 @@ FLAG DESCRIPTIONS
1108
1129
 
1109
1130
  To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
1110
1131
 
1111
- To specify a sandbox, set --instance-url to https://test.salesforce.com.
1132
+ To specify a sandbox, set --instance-url to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
1112
1133
 
1113
1134
  CONFIGURATION VARIABLES
1114
1135
  apiVersion API version of your project. Default: API version of your Dev Hub org.
@@ -1187,10 +1208,10 @@ EXAMPLES
1187
1208
  $ sf login org jwt --username jdoe@example.org --keyfile /Users/jdoe/JWT/server.key --clientid 04580y4051234051 \
1188
1209
  --alias ci-dev-hub --set-default-dev-hub
1189
1210
 
1190
- Log in to a sandbox using URL https://test.salesforce.com:
1211
+ Log in to a sandbox using URL https://MyDomainName--SandboxName.sandbox.my.salesforce.com:
1191
1212
 
1192
1213
  $ sf login org jwt --username jdoe@example.org --keyfile /Users/jdoe/JWT/server.key --clientid 04580y4051234051 \
1193
- --alias ci-org --set-default --instance-url https://test.salesforce.com
1214
+ --alias ci-org --set-default --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com
1194
1215
 
1195
1216
  FLAG DESCRIPTIONS
1196
1217
  -l, --instance-url=<value> URL of the instance that the org lives on.
@@ -1199,7 +1220,7 @@ FLAG DESCRIPTIONS
1199
1220
 
1200
1221
  To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
1201
1222
 
1202
- To specify a sandbox, set --instance-url to https://test.salesforce.com.
1223
+ To specify a sandbox, set --instance-url to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
1203
1224
 
1204
1225
  CONFIGURATION VARIABLES
1205
1226
  apiVersion API version of your project. Default: API version of your Dev Hub org.
@@ -1243,7 +1264,7 @@ EXAMPLES
1243
1264
  $ sf logout --no-prompt
1244
1265
  ```
1245
1266
 
1246
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.0.5/src/commands/logout.ts)_
1267
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.0.6/src/commands/logout.ts)_
1247
1268
 
1248
1269
  ## `sf logout functions`
1249
1270
 
@@ -1253,9 +1274,6 @@ Log out of your Salesforce Functions account.
1253
1274
  USAGE
1254
1275
  $ sf logout functions
1255
1276
 
1256
- DESCRIPTION
1257
- Log out of your Salesforce Functions account.
1258
-
1259
1277
  EXAMPLES
1260
1278
  Log out:
1261
1279
 
@@ -1566,9 +1584,6 @@ FLAGS
1566
1584
  -p, --payload=<value> Set the payload of the cloudevent as a JSON object or a path to a file via @file.json.
1567
1585
  -s, --structured Set the cloudevent to be emitted as a structured JSON cloudevent.
1568
1586
 
1569
- DESCRIPTION
1570
- Send a cloudevent to a function.
1571
-
1572
1587
  EXAMPLES
1573
1588
  Run a function:
1574
1589
 
@@ -1581,7 +1596,7 @@ EXAMPLES
1581
1596
 
1582
1597
  ## `sf run function start`
1583
1598
 
1584
- Build and run a Salesforce Function locally.
1599
+ Build and run a Salesforce Function in a container.
1585
1600
 
1586
1601
  ```
1587
1602
  USAGE
@@ -1598,7 +1613,9 @@ FLAGS
1598
1613
  --no-pull Skip pulling builder image before use.
1599
1614
 
1600
1615
  DESCRIPTION
1601
- Build and run a Salesforce Function locally.
1616
+ Build and run a Salesforce Function in a container.
1617
+
1618
+ Run this command from the directory of your Salesforce Functions project.
1602
1619
 
1603
1620
  EXAMPLES
1604
1621
  Build and run a function:
@@ -1614,6 +1631,49 @@ EXAMPLES
1614
1631
  $ sf run function start --env KEY=VALUE --network host
1615
1632
  ```
1616
1633
 
1634
+ ## `sf run function start local`
1635
+
1636
+ Build and run a Salesforce Function locally.
1637
+
1638
+ ```
1639
+ USAGE
1640
+ $ sf run function start local [-p <value>] [-b <value>] [-l javascript|typescript|java|auto]
1641
+
1642
+ FLAGS
1643
+ -b, --debug-port=<value> [default: 9229] Port to use for debbugging the function.
1644
+ -l, --language=(javascript|typescript|java|auto) [default: auto] The language that the function runs in.
1645
+ -p, --port=<value> [default: 8080] Port to bind the invoker to.
1646
+
1647
+ DESCRIPTION
1648
+ Build and run a Salesforce Function locally.
1649
+
1650
+ EXAMPLES
1651
+ Build a function and start the invoker
1652
+
1653
+ $ sf run function start local
1654
+
1655
+ Start the invoker with a specific language and port
1656
+
1657
+ $ sf run function start local --port 5000 --language javascript
1658
+ ```
1659
+
1660
+ ## `sf update [CHANNEL]`
1661
+
1662
+ update the sf CLI
1663
+
1664
+ ```
1665
+ USAGE
1666
+ $ sf update [CHANNEL] [--from-local]
1667
+
1668
+ FLAGS
1669
+ --from-local interactively choose an already installed version
1670
+
1671
+ DESCRIPTION
1672
+ update the sf CLI
1673
+ ```
1674
+
1675
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v2.0.0/src/commands/update.ts)_
1676
+
1617
1677
  ## `sf whoami functions`
1618
1678
 
1619
1679
  Show information on your Salesforce Functions login.
@@ -1628,6 +1688,8 @@ FLAGS
1628
1688
  DESCRIPTION
1629
1689
  Show information on your Salesforce Functions login.
1630
1690
 
1691
+ Returns your email and ID. Use '--show-token' to show your Salesforce Functions token.
1692
+
1631
1693
  EXAMPLES
1632
1694
  Get account information:
1633
1695
 
@@ -1 +1 @@
1
- {"version":"1.3.0","commands":{}}
1
+ {"version":"1.5.1","commands":{}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "1.3.0",
4
+ "version": "1.5.1",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run"
@@ -34,6 +34,7 @@
34
34
  "@oclif/plugin-help",
35
35
  "@oclif/plugin-not-found",
36
36
  "@oclif/plugin-plugins",
37
+ "@oclif/plugin-update",
37
38
  "@sf/config",
38
39
  "@sf/deploy-retrieve",
39
40
  "@sf/drm",
@@ -72,19 +73,20 @@
72
73
  ]
73
74
  },
74
75
  "dependencies": {
75
- "@oclif/core": "1.0.2",
76
- "@oclif/plugin-help": "5.1.1",
76
+ "@oclif/core": "^1.0.7",
77
+ "@oclif/plugin-help": "5.1.7",
77
78
  "@oclif/plugin-not-found": "2.2.0",
78
79
  "@oclif/plugin-plugins": "2.0.1",
79
- "@salesforce/plugin-telemetry": "1.2.8",
80
+ "@oclif/plugin-update": "2.0.0",
81
+ "@salesforce/plugin-telemetry": "1.4.0",
80
82
  "@salesforce/sf-plugins-core": "1.0.4",
81
- "@sf/config": "npm:@salesforce/plugin-config@2.2.10",
83
+ "@sf/config": "npm:@salesforce/plugin-config@2.2.11",
82
84
  "@sf/deploy-retrieve": "npm:@salesforce/plugin-deploy-retrieve@1.0.5",
83
85
  "@sf/drm": "npm:@salesforce/plugin-deploy-retrieve-metadata@1.0.7",
84
86
  "@sf/env": "npm:@salesforce/plugin-env@1.0.3",
85
- "@sf/functions": "npm:@salesforce/plugin-functions@1.1.6",
87
+ "@sf/functions": "npm:@salesforce/plugin-functions@1.2.2",
86
88
  "@sf/gen": "npm:@salesforce/plugin-generate@1.0.5",
87
- "@sf/login": "npm:@salesforce/plugin-login@1.0.5",
89
+ "@sf/login": "npm:@salesforce/plugin-login@1.0.6",
88
90
  "tslib": "^2.3.1"
89
91
  },
90
92
  "pinnedDependencies": [
@@ -95,10 +97,14 @@
95
97
  "@sf/functions",
96
98
  "@sf/gen",
97
99
  "@sf/login",
98
- "@salesforce/plugin-telemetry"
100
+ "@salesforce/plugin-telemetry",
101
+ "@oclif/plugin-help",
102
+ "@oclif/plugin-not-found",
103
+ "@oclif/plugin-plugins",
104
+ "@oclif/plugin-update"
99
105
  ],
100
106
  "resolutions": {
101
- "@salesforce/templates": "^52.4.0"
107
+ "@salesforce/templates": "52.6.0"
102
108
  },
103
109
  "repository": "salesforcecli/cli",
104
110
  "scripts": {
@@ -114,16 +120,16 @@
114
120
  "pack:deb": "oclif pack:deb",
115
121
  "pack:macos": "oclif pack:macos",
116
122
  "pack:tarballs": "oclif pack:tarballs",
117
- "pack:verify": "./bin/dev cli:tarballs:verify --cli sf --windows-username-buffer 36",
123
+ "pack:verify": "sf-release cli:tarballs:verify --cli sf --windows-username-buffer 36",
118
124
  "pack:win": "oclif pack:win",
119
125
  "postpack": "rm -f oclif.manifest.json",
120
126
  "posttest": "yarn test:deprecation-policy",
121
127
  "prepack": "sf-prepack",
122
128
  "prepare": "yarn compile && yarn lint",
123
- "pretarball": "./bin/dev cli:tarballs:prepare --types",
129
+ "pretarball": "sf-release cli:tarballs:prepare --types",
124
130
  "promote-dist-tags": "./scripts/promote-dist-tags",
125
- "promote:verify": "./bin/dev cli:versions:inspect --channels stable --locations archive --cli sf",
126
- "test:smoke-unix": "./tmp/sf/bin/sf --version && ./tmp/sf/bin/sf help && ./tmp/sf/bin/sf plugins --core",
131
+ "promote:verify": "sf-release cli:versions:inspect --channels stable --locations archive --cli sf",
132
+ "test:smoke-unix": "sf-release cli:tarballs:smoke --cli sf",
127
133
  "test:deprecation-policy": "./bin/dev snapshot:compare",
128
134
  "test": "echo disable # sf-test",
129
135
  "upload:deb": "oclif upload:deb",
@@ -145,7 +151,7 @@
145
151
  "@oclif/test": "^1",
146
152
  "@salesforce/dev-config": "^2.1.2",
147
153
  "@salesforce/dev-scripts": "^0.9.18",
148
- "@salesforce/plugin-release-management": "^2.5.3",
154
+ "@salesforce/plugin-release-management": "^2.7.1",
149
155
  "@salesforce/prettier-config": "^0.0.2",
150
156
  "@typescript-eslint/eslint-plugin": "^4.33.0",
151
157
  "@typescript-eslint/parser": "^4.33.0",
@@ -159,12 +165,12 @@
159
165
  "eslint-config-salesforce-license": "^0.1.6",
160
166
  "eslint-config-salesforce-typescript": "^0.2.8",
161
167
  "eslint-plugin-header": "^3.1.1",
162
- "eslint-plugin-import": "^2.24.2",
168
+ "eslint-plugin-import": "^2.25.3",
163
169
  "eslint-plugin-jsdoc": "^35.5.1",
164
170
  "eslint-plugin-prettier": "^3.4.1",
165
171
  "globby": "^11.0.4",
166
172
  "husky": "^4.3.8",
167
- "mocha": "^9.1.2",
173
+ "mocha": "^9.1.3",
168
174
  "nyc": "^15.1.0",
169
175
  "oclif": "^2.0.0-main.6",
170
176
  "prettier": "^2.4.1",