@salesforce/plugin-org 1.8.4 → 1.10.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 +52 -46
- package/README.md +25 -17
- package/lib/commands/force/org/open.js +19 -5
- package/lib/commands/force/org/open.js.map +1 -1
- package/lib/shared/utils.d.ts +2 -1
- package/lib/shared/utils.js +2 -2
- package/lib/shared/utils.js.map +1 -1
- package/messages/display.json +1 -1
- package/messages/open.json +5 -2
- package/oclif.manifest.json +1 -1
- package/package.json +9 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,51 +2,69 @@
|
|
|
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
|
-
|
|
5
|
+
## [1.10.0](https://github.com/salesforcecli/plugin-org/compare/v1.9.2...v1.10.0) (2021-11-30)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
6
8
|
|
|
9
|
+
- do not display url for basic org:open ([b20ac79](https://github.com/salesforcecli/plugin-org/commit/b20ac7901bd44a680ac32c0e17ae4398ef97b9ce))
|
|
10
|
+
|
|
11
|
+
### [1.9.2](https://github.com/salesforcecli/plugin-org/compare/v1.9.1...v1.9.2) (2021-11-18)
|
|
7
12
|
|
|
8
13
|
### Bug Fixes
|
|
9
14
|
|
|
10
|
-
|
|
15
|
+
- update domain URL to be more secure ([769ddd8](https://github.com/salesforcecli/plugin-org/commit/769ddd8184d43a3e974f539378b8e10768b29eef))
|
|
11
16
|
|
|
12
|
-
### [1.
|
|
17
|
+
### [1.9.1](https://github.com/salesforcecli/plugin-org/compare/v1.9.0...v1.9.1) (2021-11-15)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- add warning about using --verbose.. ([5bd1511](https://github.com/salesforcecli/plugin-org/commit/5bd151136806b7f3a7056cf5c3a4bdc09a1b0d35))
|
|
22
|
+
|
|
23
|
+
## [1.9.0](https://github.com/salesforcecli/plugin-org/compare/v1.8.4...v1.9.0) (2021-10-22)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- support targeting browser in "open" command ([c06442b](https://github.com/salesforcecli/plugin-org/commit/c06442b9f42641d535674b0f258f2c6039d5370b))
|
|
28
|
+
|
|
29
|
+
### [1.8.4](https://github.com/salesforcecli/plugin-org/compare/v1.8.3...v1.8.4) (2021-10-20)
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- remove extraneous single quote ([62269a2](https://github.com/salesforcecli/plugin-org/commit/62269a24d2d0f3cdcd1277882e2ea51e41cb617e))
|
|
13
34
|
|
|
35
|
+
### [1.8.3](https://github.com/salesforcecli/plugin-org/compare/v1.8.2...v1.8.3) (2021-10-13)
|
|
14
36
|
|
|
15
37
|
### Bug Fixes
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
- warnings for json, too ([e4d5cf1](https://github.com/salesforcecli/plugin-org/commit/e4d5cf15451f6b4ed36279191655dcbba4e80b51))
|
|
18
40
|
|
|
19
41
|
### [1.8.2](https://github.com/salesforcecli/plugin-org/compare/v1.8.1...v1.8.2) (2021-10-12)
|
|
20
42
|
|
|
21
43
|
### [1.8.1](https://github.com/salesforcecli/plugin-org/compare/v1.8.0...v1.8.1) (2021-10-06)
|
|
22
44
|
|
|
23
|
-
|
|
24
45
|
### Bug Fixes
|
|
25
46
|
|
|
26
|
-
|
|
47
|
+
- update deps ([254039c](https://github.com/salesforcecli/plugin-org/commit/254039c59bbb88a85fe32d0c705a58d808d330df))
|
|
27
48
|
|
|
28
49
|
## [1.8.0](https://github.com/salesforcecli/plugin-org/compare/v1.7.0...v1.8.0) (2021-09-29)
|
|
29
50
|
|
|
30
|
-
|
|
31
51
|
### Features
|
|
32
52
|
|
|
33
|
-
|
|
53
|
+
- security warnings for display/open ([b2599be](https://github.com/salesforcecli/plugin-org/commit/b2599bed02bccf72b8b6a8766334caa41b5603a4))
|
|
34
54
|
|
|
35
55
|
## [1.7.0](https://github.com/salesforcecli/plugin-org/compare/v1.6.9...v1.7.0) (2021-08-20)
|
|
36
56
|
|
|
37
|
-
|
|
38
57
|
### Features
|
|
39
58
|
|
|
40
|
-
|
|
59
|
+
- namespace on orgList ([b1d2c61](https://github.com/salesforcecli/plugin-org/commit/b1d2c616fac9b182f2483685e0fd46fd96a28259))
|
|
41
60
|
|
|
42
61
|
### [1.6.9](https://github.com/salesforcecli/plugin-org/compare/v1.6.7...v1.6.9) (2021-08-05)
|
|
43
62
|
|
|
44
63
|
### [1.6.7](https://github.com/salesforcecli/plugin-org/compare/v1.6.6...v1.6.7) (2021-06-15)
|
|
45
64
|
|
|
46
|
-
|
|
47
65
|
### Bug Fixes
|
|
48
66
|
|
|
49
|
-
|
|
67
|
+
- use most recent alias ([0ab922a](https://github.com/salesforcecli/plugin-org/commit/0ab922a96cab70f64bdc5e4d104b007a34def1b0))
|
|
50
68
|
|
|
51
69
|
### [1.6.6](https://github.com/salesforcecli/plugin-org/compare/v1.6.5...v1.6.6) (2021-05-10)
|
|
52
70
|
|
|
@@ -54,94 +72,82 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
54
72
|
|
|
55
73
|
### [1.6.4](https://github.com/salesforcecli/plugin-org/compare/v1.6.3...v1.6.4) (2021-04-23)
|
|
56
74
|
|
|
57
|
-
|
|
58
75
|
### Bug Fixes
|
|
59
76
|
|
|
60
|
-
|
|
77
|
+
- force release of 1.6.4 ([50ee064](https://github.com/salesforcecli/plugin-org/commit/50ee064e73f4473c3b0830e5371d30dd09f88085))
|
|
61
78
|
|
|
62
79
|
### [1.6.3](https://github.com/salesforcecli/plugin-org/compare/v1.6.2...v1.6.3) (2021-04-20)
|
|
63
80
|
|
|
64
|
-
|
|
65
81
|
### Bug Fixes
|
|
66
82
|
|
|
67
|
-
|
|
83
|
+
- add missing message ([40d1cca](https://github.com/salesforcecli/plugin-org/commit/40d1ccad42a961d4452f77262b28e87351534b82))
|
|
68
84
|
|
|
69
85
|
### [1.6.2](https://github.com/salesforcecli/plugin-org/compare/v1.6.1...v1.6.2) (2021-04-06)
|
|
70
86
|
|
|
71
|
-
|
|
72
87
|
### Bug Fixes
|
|
73
88
|
|
|
74
|
-
|
|
75
|
-
|
|
89
|
+
- leif .yml merge [skip-validate-pr] ([dd28564](https://github.com/salesforcecli/plugin-org/commit/dd28564f4ae1095ad9f2304a33804ad49f1e6b82))
|
|
90
|
+
- leif .yml merge [skip-validate-pr] ([217473e](https://github.com/salesforcecli/plugin-org/commit/217473e1ddb03dd0a606b0f859322c6d3eeb5421))
|
|
76
91
|
|
|
77
92
|
### [1.6.1](https://github.com/salesforcecli/plugin-org/compare/v1.6.0...v1.6.1) (2021-03-30)
|
|
78
93
|
|
|
79
94
|
## [1.6.0](https://github.com/salesforcecli/plugin-org/compare/v1.3.3...v1.6.0) (2021-03-25)
|
|
80
95
|
|
|
81
|
-
|
|
82
96
|
### Bug Fixes
|
|
83
97
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
- clean up a few messages ([3cee3a2](https://github.com/salesforcecli/plugin-org/commit/3cee3a2d71c95b2c37f2fb7c664c0f1a8faad39f))
|
|
99
|
+
- error handling for no scratch org info from the hub ([d536bad](https://github.com/salesforcecli/plugin-org/commit/d536badb53580a73603bc9125a49029f5962cbbe))
|
|
100
|
+
- list command shows orgs that have userId ([b26a656](https://github.com/salesforcecli/plugin-org/commit/b26a656185bd84b182be29fc401231698644b499))
|
|
101
|
+
- shane's suggestion ([0f03592](https://github.com/salesforcecli/plugin-org/commit/0f0359274ca218ac8d6044c9f6282fe85c480d82))
|
|
88
102
|
|
|
89
103
|
### [1.3.3](https://github.com/salesforcecli/plugin-org/compare/v1.3.2...v1.3.3) (2021-03-03)
|
|
90
104
|
|
|
91
|
-
|
|
92
105
|
### Bug Fixes
|
|
93
106
|
|
|
94
|
-
|
|
107
|
+
- no devhub on display ([3d220ab](https://github.com/salesforcecli/plugin-org/commit/3d220ab2cff97a6fc9bfc8697a26606f70a9509e))
|
|
95
108
|
|
|
96
109
|
### [1.3.2](https://github.com/salesforcecli/plugin-org/compare/v1.3.1...v1.3.2) (2021-02-19)
|
|
97
110
|
|
|
98
|
-
|
|
99
111
|
### Bug Fixes
|
|
100
112
|
|
|
101
|
-
|
|
113
|
+
- refresh before reading files ([aa2e612](https://github.com/salesforcecli/plugin-org/commit/aa2e612738718911008b8ceaac2b4507b2fb4d1d))
|
|
102
114
|
|
|
103
115
|
### [1.3.1](https://github.com/salesforcecli/plugin-org/compare/v1.3.0...v1.3.1) (2021-02-16)
|
|
104
116
|
|
|
105
|
-
|
|
106
117
|
### Bug Fixes
|
|
107
118
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
- no connectStatus json ([5704c3f](https://github.com/salesforcecli/plugin-org/commit/5704c3f973f0936709347bdfb9acadcf2fd3c90a))
|
|
120
|
+
- no json connectedStatus on skipconnection ([7889c4b](https://github.com/salesforcecli/plugin-org/commit/7889c4ba5110b84357f8ec1f33f81acf51f33a82))
|
|
121
|
+
- org:list updates devhub status ([df45fd9](https://github.com/salesforcecli/plugin-org/commit/df45fd9f3a39d106066d3ccf6450eda38313c152))
|
|
111
122
|
|
|
112
123
|
## [1.3.0](https://github.com/salesforcecli/plugin-org/compare/v1.2.0...v1.3.0) (2021-02-16)
|
|
113
124
|
|
|
114
|
-
|
|
115
125
|
### Features
|
|
116
126
|
|
|
117
|
-
|
|
118
|
-
|
|
127
|
+
- uses default username ([5654f9e](https://github.com/salesforcecli/plugin-org/commit/5654f9e9fd26a421054b6f200a65e56f85e69975))
|
|
119
128
|
|
|
120
129
|
### Bug Fixes
|
|
121
130
|
|
|
122
|
-
|
|
131
|
+
- org:display default username ([bc815da](https://github.com/salesforcecli/plugin-org/commit/bc815da15b3c0a6e910a4b1752ad39489cabc7c9))
|
|
123
132
|
|
|
124
133
|
## [1.2.0](https://github.com/salesforcecli/plugin-org/compare/v1.1.3...v1.2.0) (2021-02-16)
|
|
125
134
|
|
|
126
|
-
|
|
127
135
|
### Features
|
|
128
136
|
|
|
129
|
-
|
|
137
|
+
- add deprecation warning ([64f0f72](https://github.com/salesforcecli/plugin-org/commit/64f0f72f0d4794ae076c71a731552103dc437a49))
|
|
130
138
|
|
|
131
139
|
### [1.1.3](https://github.com/salesforcecli/plugin-org/compare/v1.1.2...v1.1.3) (2021-02-04)
|
|
132
140
|
|
|
133
|
-
|
|
134
141
|
### Bug Fixes
|
|
135
142
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
- handle remaining orgs when decryption fails ([6276d49](https://github.com/salesforcecli/plugin-org/commit/6276d49228129cd252e9f8c98fa134146b579891))
|
|
144
|
+
- unencrypt access tokens on org:list ([38f17a0](https://github.com/salesforcecli/plugin-org/commit/38f17a0fed306d0ff0345db1cc466c7e04206379))
|
|
145
|
+
- warning and instructions for unable to clean ([78e7702](https://github.com/salesforcecli/plugin-org/commit/78e7702c3cd19c6f071152e909a5f64551f21de0))
|
|
139
146
|
|
|
140
147
|
### 1.1.2 (2021-02-03)
|
|
141
148
|
|
|
142
|
-
|
|
143
149
|
### Bug Fixes
|
|
144
150
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
- ask internal about url, not domain ([dec90df](https://github.com/salesforcecli/plugin-org/commit/dec90dfda8ae7e737580a51f818b50711eea9349))
|
|
152
|
+
- changes from code review ([b0a24a5](https://github.com/salesforcecli/plugin-org/commit/b0a24a51197415ab09b6691912e3f8db030f01d0))
|
|
153
|
+
- default open behavior ([6dc3f2f](https://github.com/salesforcecli/plugin-org/commit/6dc3f2f7ea4b13a0dbcc6adc1b9a135b3e4d7f54))
|
package/README.md
CHANGED
|
@@ -77,9 +77,10 @@ sfdx plugins
|
|
|
77
77
|
## Commands
|
|
78
78
|
|
|
79
79
|
<!-- commands -->
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
|
|
81
|
+
- [`sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgdisplay--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
82
|
+
- [`sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorglist---all--p---clean---skipconnectionstatus---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
83
|
+
- [`sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgopen--b-string---r--p-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
83
84
|
|
|
84
85
|
## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
85
86
|
|
|
@@ -88,11 +89,11 @@ get the description for the current or target org
|
|
|
88
89
|
```
|
|
89
90
|
get the description for the current or target org
|
|
90
91
|
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.
|
|
91
|
-
Use --verbose to include the SFDX auth URL.
|
|
92
|
+
Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.
|
|
92
93
|
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)
|
|
93
94
|
|
|
94
95
|
USAGE
|
|
95
|
-
$ sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
96
|
+
$ sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
96
97
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
97
98
|
|
|
98
99
|
OPTIONS
|
|
@@ -111,10 +112,11 @@ OPTIONS
|
|
|
111
112
|
stdout
|
|
112
113
|
|
|
113
114
|
DESCRIPTION
|
|
114
|
-
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
|
|
115
|
+
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
|
|
115
116
|
applicable.
|
|
116
|
-
Use --verbose to include the SFDX auth URL.
|
|
117
|
-
|
|
117
|
+
Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
|
|
118
|
+
refresh token that can be used to access an org. Don't share or distribute this URL or token.
|
|
119
|
+
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not
|
|
118
120
|
auth:jwt:grant)
|
|
119
121
|
|
|
120
122
|
EXAMPLES
|
|
@@ -124,7 +126,7 @@ EXAMPLES
|
|
|
124
126
|
sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
|
|
125
127
|
```
|
|
126
128
|
|
|
127
|
-
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
129
|
+
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.2/src/commands/force/org/display.ts)_
|
|
128
130
|
|
|
129
131
|
## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
130
132
|
|
|
@@ -134,7 +136,7 @@ list all orgs you’ve created or authenticated to
|
|
|
134
136
|
list all orgs you’ve created or authenticated to
|
|
135
137
|
|
|
136
138
|
USAGE
|
|
137
|
-
$ sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel
|
|
139
|
+
$ sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel
|
|
138
140
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
139
141
|
|
|
140
142
|
OPTIONS
|
|
@@ -162,23 +164,25 @@ EXAMPLES
|
|
|
162
164
|
sfdx force:org:list --verbose --json > tmp/MyOrgList.json
|
|
163
165
|
```
|
|
164
166
|
|
|
165
|
-
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
167
|
+
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.2/src/commands/force/org/list.ts)_
|
|
166
168
|
|
|
167
|
-
## `sfdx force:org:open [-
|
|
169
|
+
## `sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
168
170
|
|
|
169
171
|
open your default scratch org, or another specified org
|
|
170
172
|
|
|
171
173
|
```
|
|
172
174
|
open your default scratch org, or another specified org
|
|
173
|
-
To open a specific page, specify the portion of the URL after "
|
|
175
|
+
To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
|
|
174
176
|
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a Visualforce page.
|
|
175
177
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
178
|
+
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
|
|
176
179
|
|
|
177
180
|
USAGE
|
|
178
|
-
$ sfdx force:org:open [-
|
|
181
|
+
$ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
179
182
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
180
183
|
|
|
181
184
|
OPTIONS
|
|
185
|
+
-b, --browser=chrome|edge|firefox browser where the org opens
|
|
182
186
|
-p, --path=path navigation URL path
|
|
183
187
|
|
|
184
188
|
-r, --urlonly display navigation URL, but don’t
|
|
@@ -196,17 +200,21 @@ OPTIONS
|
|
|
196
200
|
this command invocation
|
|
197
201
|
|
|
198
202
|
DESCRIPTION
|
|
199
|
-
To open a specific page, specify the portion of the URL after "
|
|
200
|
-
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
203
|
+
To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
|
|
204
|
+
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
201
205
|
Visualforce page.
|
|
202
206
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
207
|
+
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
|
|
208
|
+
you don't specify --browser, the org opens in your default browser.
|
|
203
209
|
|
|
204
210
|
EXAMPLES
|
|
205
211
|
sfdx force:org:open
|
|
206
212
|
sfdx force:org:open -u me@my.org
|
|
207
213
|
sfdx force:org:open -u MyTestOrg1
|
|
208
214
|
sfdx force:org:open -r -p lightning
|
|
215
|
+
sfdx force:org:open -u me@my.org -b firefox
|
|
209
216
|
```
|
|
210
217
|
|
|
211
|
-
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
218
|
+
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.2/src/commands/force/org/open.ts)_
|
|
219
|
+
|
|
212
220
|
<!-- commandsstop -->
|
|
@@ -11,6 +11,7 @@ const os_1 = require("os");
|
|
|
11
11
|
const command_1 = require("@salesforce/command");
|
|
12
12
|
const core_1 = require("@salesforce/core");
|
|
13
13
|
const kit_1 = require("@salesforce/kit");
|
|
14
|
+
const open = require("open");
|
|
14
15
|
const utils_1 = require("../../../shared/utils");
|
|
15
16
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
17
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'open');
|
|
@@ -23,18 +24,24 @@ class OrgOpenCommand extends command_1.SfdxCommand {
|
|
|
23
24
|
const orgId = this.org.getOrgId();
|
|
24
25
|
const username = this.org.getUsername();
|
|
25
26
|
const output = { orgId, url, username };
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (
|
|
27
|
+
const containerMode = new kit_1.Env().getBoolean('SFDX_CONTAINER_MODE');
|
|
28
|
+
// security warning only for --json OR --urlonly OR containerMode
|
|
29
|
+
if (this.flags.urlonly || this.flags.json || containerMode) {
|
|
30
|
+
this.ux.warn(sharedMessages.getMessage('SecurityWarning'));
|
|
31
|
+
this.ux.log('');
|
|
32
|
+
}
|
|
33
|
+
if (containerMode) {
|
|
29
34
|
// instruct the user that they need to paste the URL into the browser
|
|
30
35
|
this.ux.styledHeader('Action Required!');
|
|
31
36
|
this.ux.log(messages.getMessage('containerAction', [orgId, url]));
|
|
32
37
|
return output;
|
|
33
38
|
}
|
|
34
|
-
this.ux.log(messages.getMessage('humanSuccess', [orgId, username, url]));
|
|
35
39
|
if (this.flags.urlonly) {
|
|
40
|
+
// this includes the URL
|
|
41
|
+
this.ux.log(messages.getMessage('humanSuccess', [orgId, username, url]));
|
|
36
42
|
return output;
|
|
37
43
|
}
|
|
44
|
+
this.ux.log(messages.getMessage('humanSuccessNoUrl', [orgId, username]));
|
|
38
45
|
// we actually need to open the org
|
|
39
46
|
try {
|
|
40
47
|
this.ux.startSpinner(messages.getMessage('domainWaiting'));
|
|
@@ -53,7 +60,8 @@ class OrgOpenCommand extends command_1.SfdxCommand {
|
|
|
53
60
|
}
|
|
54
61
|
throw core_1.SfdxError.wrap(err);
|
|
55
62
|
}
|
|
56
|
-
|
|
63
|
+
const openOptions = typeof this.flags.browser === 'string' ? { app: { name: open.apps[this.flags.browser] } } : {};
|
|
64
|
+
await (0, utils_1.openUrl)(url, openOptions);
|
|
57
65
|
return output;
|
|
58
66
|
}
|
|
59
67
|
async buildFrontdoorUrl() {
|
|
@@ -70,6 +78,12 @@ OrgOpenCommand.description = messages.getMessage('description');
|
|
|
70
78
|
OrgOpenCommand.examples = messages.getMessage('examples').split(os_1.EOL);
|
|
71
79
|
OrgOpenCommand.requiresUsername = true;
|
|
72
80
|
OrgOpenCommand.flagsConfig = {
|
|
81
|
+
browser: command_1.flags.string({
|
|
82
|
+
char: 'b',
|
|
83
|
+
description: messages.getMessage('browser'),
|
|
84
|
+
options: ['chrome', 'edge', 'firefox'],
|
|
85
|
+
exclusive: ['urlonly'],
|
|
86
|
+
}),
|
|
73
87
|
path: command_1.flags.string({
|
|
74
88
|
char: 'p',
|
|
75
89
|
description: messages.getMessage('cliPath'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../src/commands/force/org/open.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AAEzB,iDAAsE;AACtE,2CAAqE;AACrE,yCAAgD;AAChD,iDAAgD;AAEhD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AACzE,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;AAEnF,MAAa,cAAe,SAAQ,qBAAW;
|
|
1
|
+
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../src/commands/force/org/open.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AAEzB,iDAAsE;AACtE,2CAAqE;AACrE,yCAAgD;AAChD,6BAA8B;AAC9B,iDAAgD;AAEhD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG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EAAE,MAAM,EAAE,SAAS,CAAC;QACtC,SAAS,EAAE,CAAC,SAAS,CAAC;KACvB,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,GAAG,EAAE,gBAAgB;QACrB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;KAChE,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;KAC5C,CAAC;CACH,CAAC"}
|
package/lib/shared/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ChildProcess } from 'child_process';
|
|
2
|
+
import * as open from 'open';
|
|
2
3
|
export declare const getAliasByUsername: (username: string) => Promise<string>;
|
|
3
|
-
export declare const openUrl: (url: string) => Promise<ChildProcess>;
|
|
4
|
+
export declare const openUrl: (url: string, options: open.Options) => Promise<ChildProcess>;
|
package/lib/shared/utils.js
CHANGED
|
@@ -10,8 +10,8 @@ const getAliasByUsername = async (username) => {
|
|
|
10
10
|
return (keys === null || keys === void 0 ? void 0 : keys.length) ? keys[keys.length - 1] : undefined;
|
|
11
11
|
};
|
|
12
12
|
exports.getAliasByUsername = getAliasByUsername;
|
|
13
|
-
const openUrl = async (url) => {
|
|
14
|
-
return open(url);
|
|
13
|
+
const openUrl = async (url, options) => {
|
|
14
|
+
return open(url, options);
|
|
15
15
|
};
|
|
16
16
|
exports.openUrl = openUrl;
|
|
17
17
|
//# sourceMappingURL=utils.js.map
|
package/lib/shared/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/shared/utils.ts"],"names":[],"mappings":";;;AAOA,2CAA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WAElB"}
|
package/messages/display.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)",
|
|
2
|
+
"description": "get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)",
|
|
3
3
|
"examples": [
|
|
4
4
|
"sfdx force:org:display",
|
|
5
5
|
"sfdx force:org:display -u me@my.org",
|
package/messages/open.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"
|
|
2
|
+
"description": "open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"https://MyDomainName.my.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
|
|
3
3
|
"examples": [
|
|
4
4
|
"sfdx force:org:open",
|
|
5
5
|
"sfdx force:org:open -u me@my.org",
|
|
6
6
|
"sfdx force:org:open -u MyTestOrg1",
|
|
7
|
-
"sfdx force:org:open -r -p lightning"
|
|
7
|
+
"sfdx force:org:open -r -p lightning",
|
|
8
|
+
"sfdx force:org:open -u me@my.org -b firefox"
|
|
8
9
|
],
|
|
10
|
+
"browser": "browser where the org opens",
|
|
9
11
|
"cliPath": "navigation URL path",
|
|
10
12
|
"urlonly": "display navigation URL, but don’t launch browser",
|
|
11
13
|
"containerAction": "You are in a headless environment. To access the org %s, open this URL in a browser:\n\n%s",
|
|
12
14
|
"humanSuccess": "Access org %s as user %s with the following URL: %s",
|
|
15
|
+
"humanSuccessNoUrl": "Opening org %s as user %s",
|
|
13
16
|
"domainWaiting": "Waiting to resolve the Lightning Experience-enabled custom domain...",
|
|
14
17
|
"domainTimeoutError": "The Lightning Experience-enabled custom domain is unavailable.",
|
|
15
18
|
"domainTimeoutAction": "The Lightning Experience-enabled custom domain may take a few more minutes to resolve. Try the \"force:org:open\" command again."
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.10.0","commands":{"force:org:display":{"id":"force:org:display","description":"get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:display","sfdx force:org:display -u me@my.org","sfdx force:org:display -u TestOrg1 --json","sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false}},"args":[]},"force:org:list":{"id":"force:org:list","description":"list all orgs you’ve created or authenticated to","usage":"<%= command.id %> [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:list","sfdx force:org:list --verbose --json","sfdx force:org:list --verbose --json > tmp/MyOrgList.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org","allowNo":false},"all":{"name":"all","type":"boolean","description":"include expired, deleted, and unknown-status scratch orgs","allowNo":false},"clean":{"name":"clean","type":"boolean","description":"remove all local org authorizations for non-active orgs","allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false},"skipconnectionstatus":{"name":"skipconnectionstatus","type":"boolean","description":"skip retrieving the connection status of non-scratch orgs","allowNo":false}},"args":[]},"force:org:open":{"id":"force:org:open","description":"open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"https://MyDomainName.my.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.","usage":"<%= command.id %> [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:open","sfdx force:org:open -u me@my.org","sfdx force:org:open -u MyTestOrg1","sfdx force:org:open -r -p lightning","sfdx force:org:open -u me@my.org -b firefox"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"browser":{"name":"browser","type":"option","char":"b","description":"browser where the org opens","options":["chrome","edge","firefox"]},"path":{"name":"path","type":"option","char":"p","description":"navigation URL path"},"urlonly":{"name":"urlonly","type":"boolean","char":"r","description":"display navigation URL, but don’t launch browser","allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "A template repository for sfdx plugins",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/config": "^1",
|
|
8
|
+
"@oclif/config": "^1.17.1",
|
|
9
9
|
"@salesforce/command": "^4.1.3",
|
|
10
10
|
"@salesforce/core": "^2.28.0",
|
|
11
11
|
"@salesforce/kit": "^1.5.17",
|
|
12
|
-
"open": "8.
|
|
12
|
+
"open": "8.4.0",
|
|
13
13
|
"tslib": "^2"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@oclif/dev-cli": "^1",
|
|
17
|
-
"@oclif/plugin-command-snapshot": "^2.
|
|
17
|
+
"@oclif/plugin-command-snapshot": "^2.2.2",
|
|
18
18
|
"@salesforce/cli-plugins-testkit": "^1.4.10",
|
|
19
19
|
"@salesforce/dev-config": "^2.1.2",
|
|
20
|
-
"@salesforce/dev-scripts": "^0.
|
|
20
|
+
"@salesforce/dev-scripts": "^1.0.0",
|
|
21
21
|
"@salesforce/plugin-command-reference": "^1.3.0",
|
|
22
22
|
"@salesforce/prettier-config": "^0.0.2",
|
|
23
23
|
"@salesforce/ts-sinon": "1.3.21",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
33
33
|
"eslint-config-salesforce-typescript": "^0.2.8",
|
|
34
34
|
"eslint-plugin-header": "^3.0.0",
|
|
35
|
-
"eslint-plugin-import": "2.
|
|
35
|
+
"eslint-plugin-import": "2.25.2",
|
|
36
36
|
"eslint-plugin-jsdoc": "^35.1.2",
|
|
37
37
|
"eslint-plugin-prettier": "^3.1.3",
|
|
38
|
-
"husky": "^
|
|
38
|
+
"husky": "^7.0.4",
|
|
39
39
|
"lint-staged": "^11.0.0",
|
|
40
40
|
"mocha": "^8.4.0",
|
|
41
41
|
"moment": "^2.29.1",
|
|
@@ -110,18 +110,11 @@
|
|
|
110
110
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
111
111
|
"version": "oclif-dev readme"
|
|
112
112
|
},
|
|
113
|
-
"husky": {
|
|
114
|
-
"hooks": {
|
|
115
|
-
"pre-commit": "sf-husky-pre-commit",
|
|
116
|
-
"commit-msg": "sf-husky-commit-msg",
|
|
117
|
-
"pre-push": "sf-husky-pre-push"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
113
|
"publishConfig": {
|
|
121
114
|
"access": "public"
|
|
122
115
|
},
|
|
123
116
|
"sfdx": {
|
|
124
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.
|
|
125
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.
|
|
117
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.10.0.crt",
|
|
118
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.10.0.sig"
|
|
126
119
|
}
|
|
127
120
|
}
|