@salesforce/cli 1.4.0 → 1.5.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,8 @@
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.0](https://github.com/salesforcecli/cli/compare/v1.4.0...v1.5.0) (2021-12-01)
6
+
5
7
  ## [1.4.0](https://github.com/salesforcecli/cli/compare/v1.3.1...v1.4.0) (2021-11-17)
6
8
 
7
9
  ### [1.3.1](https://github.com/salesforcecli/cli/compare/v1.3.0...v1.3.1) (2021-11-11)
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.4.0 linux-x64 node-v14.18.1
32
+ @salesforce/cli/1.5.0 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`
@@ -995,7 +997,7 @@ EXAMPLES
995
997
  $ sf login
996
998
  ```
997
999
 
998
- _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)_
999
1001
 
1000
1002
  ## `sf login functions`
1001
1003
 
@@ -1102,16 +1104,17 @@ EXAMPLES
1102
1104
 
1103
1105
  Log in to a sandbox and set it as your default org:
1104
1106
 
1105
- $ 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
1106
1108
 
1107
1109
  Use --browser to specify a specific browser, such as Google Chrome:
1108
1110
 
1109
- $ 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
1110
1113
 
1111
1114
  Use your own connected app by specifying its consumer key (also called client ID):
1112
1115
 
1113
- $ sf login org --instance-url https://test.salesforce.com --set-default --browser chrome --clientid \
1114
- 04580y4051234051
1116
+ $ sf login org --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
1117
+ --browser chrome --clientid 04580y4051234051
1115
1118
 
1116
1119
  FLAG DESCRIPTIONS
1117
1120
  -b, --browser=<value> Browser in which to open the org.
@@ -1126,7 +1129,7 @@ FLAG DESCRIPTIONS
1126
1129
 
1127
1130
  To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
1128
1131
 
1129
- 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.
1130
1133
 
1131
1134
  CONFIGURATION VARIABLES
1132
1135
  apiVersion API version of your project. Default: API version of your Dev Hub org.
@@ -1205,10 +1208,10 @@ EXAMPLES
1205
1208
  $ sf login org jwt --username jdoe@example.org --keyfile /Users/jdoe/JWT/server.key --clientid 04580y4051234051 \
1206
1209
  --alias ci-dev-hub --set-default-dev-hub
1207
1210
 
1208
- 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:
1209
1212
 
1210
1213
  $ sf login org jwt --username jdoe@example.org --keyfile /Users/jdoe/JWT/server.key --clientid 04580y4051234051 \
1211
- --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
1212
1215
 
1213
1216
  FLAG DESCRIPTIONS
1214
1217
  -l, --instance-url=<value> URL of the instance that the org lives on.
@@ -1217,7 +1220,7 @@ FLAG DESCRIPTIONS
1217
1220
 
1218
1221
  To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
1219
1222
 
1220
- 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.
1221
1224
 
1222
1225
  CONFIGURATION VARIABLES
1223
1226
  apiVersion API version of your project. Default: API version of your Dev Hub org.
@@ -1261,7 +1264,7 @@ EXAMPLES
1261
1264
  $ sf logout --no-prompt
1262
1265
  ```
1263
1266
 
1264
- _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)_
1265
1268
 
1266
1269
  ## `sf logout functions`
1267
1270
 
@@ -1593,7 +1596,7 @@ EXAMPLES
1593
1596
 
1594
1597
  ## `sf run function start`
1595
1598
 
1596
- Build and run a Salesforce Function locally.
1599
+ Build and run a Salesforce Function in a container.
1597
1600
 
1598
1601
  ```
1599
1602
  USAGE
@@ -1610,7 +1613,7 @@ FLAGS
1610
1613
  --no-pull Skip pulling builder image before use.
1611
1614
 
1612
1615
  DESCRIPTION
1613
- Build and run a Salesforce Function locally.
1616
+ Build and run a Salesforce Function in a container.
1614
1617
 
1615
1618
  Run this command from the directory of your Salesforce Functions project.
1616
1619
 
@@ -1628,6 +1631,49 @@ EXAMPLES
1628
1631
  $ sf run function start --env KEY=VALUE --network host
1629
1632
  ```
1630
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
+
1631
1677
  ## `sf whoami functions`
1632
1678
 
1633
1679
  Show information on your Salesforce Functions login.
@@ -1 +1 @@
1
- {"version":"1.4.0","commands":{}}
1
+ {"version":"1.5.0","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.4.0",
4
+ "version": "1.5.0",
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",
@@ -76,15 +77,16 @@
76
77
  "@oclif/plugin-help": "5.1.1",
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.3.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.7",
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.6.0",
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",