@salesforce/cli 1.4.0 → 1.6.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 +8 -0
- package/README.md +66 -20
- package/oclif.manifest.json +1 -1
- package/package.json +23 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.6.0](https://github.com/salesforcecli/cli/compare/v1.5.2...v1.6.0) (2021-12-08)
|
|
6
|
+
|
|
7
|
+
### [1.5.2](https://github.com/salesforcecli/cli/compare/v1.5.1...v1.5.2) (2021-12-02)
|
|
8
|
+
|
|
9
|
+
### [1.5.1](https://github.com/salesforcecli/cli/compare/v1.5.0...v1.5.1) (2021-12-02)
|
|
10
|
+
|
|
11
|
+
## [1.5.0](https://github.com/salesforcecli/cli/compare/v1.4.0...v1.5.0) (2021-12-01)
|
|
12
|
+
|
|
5
13
|
## [1.4.0](https://github.com/salesforcecli/cli/compare/v1.3.1...v1.4.0) (2021-11-17)
|
|
6
14
|
|
|
7
15
|
### [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.
|
|
32
|
+
@salesforce/cli/1.6.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`
|
|
@@ -964,7 +966,7 @@ DESCRIPTION
|
|
|
964
966
|
Display help for sf.
|
|
965
967
|
```
|
|
966
968
|
|
|
967
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
969
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.7/src/commands/help.ts)_
|
|
968
970
|
|
|
969
971
|
## `sf login`
|
|
970
972
|
|
|
@@ -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.
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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.
|
|
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
|
|
|
@@ -1334,7 +1337,7 @@ EXAMPLES
|
|
|
1334
1337
|
$ sf plugins
|
|
1335
1338
|
```
|
|
1336
1339
|
|
|
1337
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.
|
|
1340
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.2/src/commands/plugins/index.ts)_
|
|
1338
1341
|
|
|
1339
1342
|
## `sf plugins:inspect PLUGIN...`
|
|
1340
1343
|
|
|
@@ -1348,7 +1351,7 @@ ARGUMENTS
|
|
|
1348
1351
|
PLUGIN [default: .] Plugin to inspect.
|
|
1349
1352
|
|
|
1350
1353
|
FLAGS
|
|
1351
|
-
-h, --help
|
|
1354
|
+
-h, --help Show CLI help.
|
|
1352
1355
|
-v, --verbose
|
|
1353
1356
|
|
|
1354
1357
|
DESCRIPTION
|
|
@@ -1371,7 +1374,7 @@ ARGUMENTS
|
|
|
1371
1374
|
|
|
1372
1375
|
FLAGS
|
|
1373
1376
|
-f, --force Run yarn install with force flag.
|
|
1374
|
-
-h, --help
|
|
1377
|
+
-h, --help Show CLI help.
|
|
1375
1378
|
-v, --verbose
|
|
1376
1379
|
|
|
1377
1380
|
DESCRIPTION
|
|
@@ -1408,7 +1411,7 @@ ARGUMENTS
|
|
|
1408
1411
|
PATH [default: .] path to plugin
|
|
1409
1412
|
|
|
1410
1413
|
FLAGS
|
|
1411
|
-
-h, --help
|
|
1414
|
+
-h, --help Show CLI help.
|
|
1412
1415
|
-v, --verbose
|
|
1413
1416
|
|
|
1414
1417
|
DESCRIPTION
|
|
@@ -1435,7 +1438,7 @@ ARGUMENTS
|
|
|
1435
1438
|
PLUGIN plugin to uninstall
|
|
1436
1439
|
|
|
1437
1440
|
FLAGS
|
|
1438
|
-
-h, --help
|
|
1441
|
+
-h, --help Show CLI help.
|
|
1439
1442
|
-v, --verbose
|
|
1440
1443
|
|
|
1441
1444
|
DESCRIPTION
|
|
@@ -1455,7 +1458,7 @@ USAGE
|
|
|
1455
1458
|
$ sf plugins update [-h] [-v]
|
|
1456
1459
|
|
|
1457
1460
|
FLAGS
|
|
1458
|
-
-h, --help
|
|
1461
|
+
-h, --help Show CLI help.
|
|
1459
1462
|
-v, --verbose
|
|
1460
1463
|
|
|
1461
1464
|
DESCRIPTION
|
|
@@ -1593,7 +1596,7 @@ EXAMPLES
|
|
|
1593
1596
|
|
|
1594
1597
|
## `sf run function start`
|
|
1595
1598
|
|
|
1596
|
-
Build and run a Salesforce Function
|
|
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
|
|
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.1.0/src/commands/update.ts)_
|
|
1676
|
+
|
|
1631
1677
|
## `sf whoami functions`
|
|
1632
1678
|
|
|
1633
1679
|
Show information on your Salesforce Functions login.
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.6.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
|
+
"version": "1.6.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",
|
|
@@ -72,19 +73,20 @@
|
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
75
|
"dependencies": {
|
|
75
|
-
"@oclif/core": "^1.0.
|
|
76
|
-
"@oclif/plugin-help": "5.1.
|
|
76
|
+
"@oclif/core": "^1.0.7",
|
|
77
|
+
"@oclif/plugin-help": "5.1.7",
|
|
77
78
|
"@oclif/plugin-not-found": "2.2.0",
|
|
78
|
-
"@oclif/plugin-plugins": "2.0.
|
|
79
|
-
"@
|
|
79
|
+
"@oclif/plugin-plugins": "2.0.2",
|
|
80
|
+
"@oclif/plugin-update": "2.1.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.
|
|
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.
|
|
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.
|
|
89
|
+
"@sf/login": "npm:@salesforce/plugin-login@1.0.6",
|
|
88
90
|
"tslib": "^2.3.1"
|
|
89
91
|
},
|
|
90
92
|
"pinnedDependencies": [
|
|
@@ -95,10 +97,16 @@
|
|
|
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": "
|
|
107
|
+
"@salesforce/templates": "52.6.0",
|
|
108
|
+
"@oclif/config": "1.18.2",
|
|
109
|
+
"@oclif/command": "1.8.9"
|
|
102
110
|
},
|
|
103
111
|
"repository": "salesforcecli/cli",
|
|
104
112
|
"scripts": {
|
|
@@ -114,16 +122,16 @@
|
|
|
114
122
|
"pack:deb": "oclif pack:deb",
|
|
115
123
|
"pack:macos": "oclif pack:macos",
|
|
116
124
|
"pack:tarballs": "oclif pack:tarballs",
|
|
117
|
-
"pack:verify": "
|
|
125
|
+
"pack:verify": "sf-release cli:tarballs:verify --cli sf --windows-username-buffer 36",
|
|
118
126
|
"pack:win": "oclif pack:win",
|
|
119
127
|
"postpack": "rm -f oclif.manifest.json",
|
|
120
128
|
"posttest": "yarn test:deprecation-policy",
|
|
121
129
|
"prepack": "sf-prepack",
|
|
122
130
|
"prepare": "yarn compile && yarn lint",
|
|
123
|
-
"pretarball": "
|
|
131
|
+
"pretarball": "sf-release cli:tarballs:prepare --types",
|
|
124
132
|
"promote-dist-tags": "./scripts/promote-dist-tags",
|
|
125
|
-
"promote:verify": "
|
|
126
|
-
"test:smoke-unix": "
|
|
133
|
+
"promote:verify": "sf-release cli:versions:inspect --channels stable --locations archive --cli sf",
|
|
134
|
+
"test:smoke-unix": "sf-release cli:tarballs:smoke --cli sf",
|
|
127
135
|
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
128
136
|
"test": "echo disable # sf-test",
|
|
129
137
|
"upload:deb": "oclif upload:deb",
|
|
@@ -145,7 +153,7 @@
|
|
|
145
153
|
"@oclif/test": "^1",
|
|
146
154
|
"@salesforce/dev-config": "^2.1.2",
|
|
147
155
|
"@salesforce/dev-scripts": "^0.9.18",
|
|
148
|
-
"@salesforce/plugin-release-management": "^2.
|
|
156
|
+
"@salesforce/plugin-release-management": "^2.7.1",
|
|
149
157
|
"@salesforce/prettier-config": "^0.0.2",
|
|
150
158
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
151
159
|
"@typescript-eslint/parser": "^4.33.0",
|