@salesforce/plugin-org 1.8.1 → 1.9.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 +23 -0
- package/README.md +12 -8
- package/lib/commands/force/org/display.js +1 -1
- package/lib/commands/force/org/display.js.map +1 -1
- package/lib/commands/force/org/open.js +11 -1
- 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/list.json +1 -1
- package/messages/open.json +4 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.9.0](https://github.com/salesforcecli/plugin-org/compare/v1.8.4...v1.9.0) (2021-10-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* support targeting browser in "open" command ([c06442b](https://github.com/salesforcecli/plugin-org/commit/c06442b9f42641d535674b0f258f2c6039d5370b))
|
|
11
|
+
|
|
12
|
+
### [1.8.4](https://github.com/salesforcecli/plugin-org/compare/v1.8.3...v1.8.4) (2021-10-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove extraneous single quote ([62269a2](https://github.com/salesforcecli/plugin-org/commit/62269a24d2d0f3cdcd1277882e2ea51e41cb617e))
|
|
18
|
+
|
|
19
|
+
### [1.8.3](https://github.com/salesforcecli/plugin-org/compare/v1.8.2...v1.8.3) (2021-10-13)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* warnings for json, too ([e4d5cf1](https://github.com/salesforcecli/plugin-org/commit/e4d5cf15451f6b4ed36279191655dcbba4e80b51))
|
|
25
|
+
|
|
26
|
+
### [1.8.2](https://github.com/salesforcecli/plugin-org/compare/v1.8.1...v1.8.2) (2021-10-12)
|
|
27
|
+
|
|
5
28
|
### [1.8.1](https://github.com/salesforcecli/plugin-org/compare/v1.8.0...v1.8.1) (2021-10-06)
|
|
6
29
|
|
|
7
30
|
|
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ sfdx plugins
|
|
|
79
79
|
<!-- commands -->
|
|
80
80
|
* [`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)
|
|
81
81
|
* [`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)
|
|
82
|
-
* [`sfdx force:org:open [-
|
|
82
|
+
* [`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
83
|
|
|
84
84
|
## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
85
85
|
|
|
@@ -124,7 +124,7 @@ EXAMPLES
|
|
|
124
124
|
sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.
|
|
127
|
+
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.4/src/commands/force/org/display.ts)_
|
|
128
128
|
|
|
129
129
|
## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
130
130
|
|
|
@@ -154,8 +154,7 @@ OPTIONS
|
|
|
154
154
|
--skipconnectionstatus skip retrieving the connection
|
|
155
155
|
status of non-scratch orgs
|
|
156
156
|
|
|
157
|
-
--verbose list more information about each
|
|
158
|
-
org'
|
|
157
|
+
--verbose list more information about each org
|
|
159
158
|
|
|
160
159
|
EXAMPLES
|
|
161
160
|
sfdx force:org:list
|
|
@@ -163,9 +162,9 @@ EXAMPLES
|
|
|
163
162
|
sfdx force:org:list --verbose --json > tmp/MyOrgList.json
|
|
164
163
|
```
|
|
165
164
|
|
|
166
|
-
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.
|
|
165
|
+
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.4/src/commands/force/org/list.ts)_
|
|
167
166
|
|
|
168
|
-
## `sfdx force:org:open [-
|
|
167
|
+
## `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]`
|
|
169
168
|
|
|
170
169
|
open your default scratch org, or another specified org
|
|
171
170
|
|
|
@@ -174,12 +173,14 @@ open your default scratch org, or another specified org
|
|
|
174
173
|
To open a specific page, specify the portion of the URL after "yourInstance.salesforce.com/" as --path.
|
|
175
174
|
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a Visualforce page.
|
|
176
175
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
176
|
+
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.
|
|
177
177
|
|
|
178
178
|
USAGE
|
|
179
|
-
$ sfdx force:org:open [-
|
|
179
|
+
$ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
180
180
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
181
181
|
|
|
182
182
|
OPTIONS
|
|
183
|
+
-b, --browser=chrome|edge|firefox browser where the org opens
|
|
183
184
|
-p, --path=path navigation URL path
|
|
184
185
|
|
|
185
186
|
-r, --urlonly display navigation URL, but don’t
|
|
@@ -201,13 +202,16 @@ DESCRIPTION
|
|
|
201
202
|
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
202
203
|
Visualforce page.
|
|
203
204
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
205
|
+
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
|
|
206
|
+
you don't specify --browser, the org opens in your default browser.
|
|
204
207
|
|
|
205
208
|
EXAMPLES
|
|
206
209
|
sfdx force:org:open
|
|
207
210
|
sfdx force:org:open -u me@my.org
|
|
208
211
|
sfdx force:org:open -u MyTestOrg1
|
|
209
212
|
sfdx force:org:open -r -p lightning
|
|
213
|
+
sfdx force:org:open -u me@my.org -b firefox
|
|
210
214
|
```
|
|
211
215
|
|
|
212
|
-
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.
|
|
216
|
+
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.4/src/commands/force/org/open.ts)_
|
|
213
217
|
<!-- commandsstop -->
|
|
@@ -50,13 +50,13 @@ class OrgDisplayCommand extends command_1.SfdxCommand {
|
|
|
50
50
|
sfdxAuthUrl: this.flags.verbose && fields.refreshToken ? authInfo.getSfdxAuthUrl() : undefined,
|
|
51
51
|
alias: await (0, utils_1.getAliasByUsername)(fields.username),
|
|
52
52
|
};
|
|
53
|
+
this.ux.warn(sharedMessages.getMessage('SecurityWarning'));
|
|
53
54
|
if (!this.flags.json) {
|
|
54
55
|
this.print(returnValue);
|
|
55
56
|
}
|
|
56
57
|
return returnValue;
|
|
57
58
|
}
|
|
58
59
|
print(result) {
|
|
59
|
-
this.ux.warn(sharedMessages.getMessage('SecurityWarning'));
|
|
60
60
|
this.ux.log('');
|
|
61
61
|
const columns = {
|
|
62
62
|
columns: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../src/commands/force/org/display.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAAuE;AACvE,yCAAuD;AAGvD,iDAA2D;AAC3D,mEAAgE;AAChE,6DAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;AAC5E,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;AACnF,MAAa,iBAAkB,SAAQ,qBAAW;IAQzC,KAAK,CAAC,GAAG;QACd,IAAI;YACF,kGAAkG;YAClG,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;SAC9B;QAAC,OAAO,KAAK,EAAE;YACd,wFAAwF;YACxF,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;SAChD;QACD,kCAAkC;QAClC,MAAM,QAAQ,GAAG,MAAM,eAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC7E,MA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;;AA7FH,8CA8FC;AA7FwB,6BAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,0BAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,kCAAgB,GAAG,IAAI,CAAC;AACxB,6BAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,OAAO,EAAE;CACzB,CAAC"}
|
|
@@ -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');
|
|
@@ -53,7 +54,10 @@ class OrgOpenCommand extends command_1.SfdxCommand {
|
|
|
53
54
|
}
|
|
54
55
|
throw core_1.SfdxError.wrap(err);
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
const openOptions = this.flags.browser
|
|
58
|
+
? { app: { name: open.apps[this.flags.browser] } }
|
|
59
|
+
: {};
|
|
60
|
+
await (0, utils_1.openUrl)(url, openOptions);
|
|
57
61
|
return output;
|
|
58
62
|
}
|
|
59
63
|
async buildFrontdoorUrl() {
|
|
@@ -70,6 +74,12 @@ OrgOpenCommand.description = messages.getMessage('description');
|
|
|
70
74
|
OrgOpenCommand.examples = messages.getMessage('examples').split(os_1.EOL);
|
|
71
75
|
OrgOpenCommand.requiresUsername = true;
|
|
72
76
|
OrgOpenCommand.flagsConfig = {
|
|
77
|
+
browser: command_1.flags.string({
|
|
78
|
+
char: 'b',
|
|
79
|
+
description: messages.getMessage('browser'),
|
|
80
|
+
options: ['chrome', 'edge', 'firefox'],
|
|
81
|
+
exclusive: ['urlonly'],
|
|
82
|
+
}),
|
|
73
83
|
path: command_1.flags.string({
|
|
74
84
|
char: 'p',
|
|
75
85
|
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,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;IAuBtC,KAAK,CAAC,GAAG;;QACd,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,WAAW,IAAI,CAAC,KAAK,CAAC,IAAc,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;QACn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W,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACxD,OAAO,GAAG,gBAAgB,4BAA4B,WAAW,EAAE,CAAC;IACtE,CAAC;;AA9EH,wCA+EC;AA9EwB,0BAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,uBAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,QAAG,CAAC,CAAC;AACtD,+BAAgB,GAAG,IAAI,CAAC;AACxB,0BAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,OAAO,EAAE,CAAC,QAAQ,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,2CAA2C;AAC3C,6BAA6B;AAEtB,MAAM,kBAAkB,GAAG,KAAK,EAAE,QAAgB,EAAmB,EAAE;IAC5E,MAAM,KAAK,GAAG,MAAM,cAAO,CAAC,MAAM,CAAC,cAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,sDAAsD;IACtD,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,kBAAkB,sBAK7B;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,GAAW,EAAyB,EAAE;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/shared/utils.ts"],"names":[],"mappings":";;;AAOA,2CAA2C;AAC3C,6BAA6B;AAEtB,MAAM,kBAAkB,GAAG,KAAK,EAAE,QAAgB,EAAmB,EAAE;IAC5E,MAAM,KAAK,GAAG,MAAM,cAAO,CAAC,MAAM,CAAC,cAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,sDAAsD;IACtD,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,kBAAkB,sBAK7B;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,GAAW,EAAE,OAAqB,EAAyB,EAAE;IACzF,OAAO,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB"}
|
package/messages/list.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"sfdx force:org:list --verbose --json",
|
|
6
6
|
"sfdx force:org:list --verbose --json > tmp/MyOrgList.json"
|
|
7
7
|
],
|
|
8
|
-
"verbose": "list more information about each org
|
|
8
|
+
"verbose": "list more information about each org",
|
|
9
9
|
"all": "include expired, deleted, and unknown-status scratch orgs",
|
|
10
10
|
"clean": "remove all local org authorizations for non-active orgs",
|
|
11
11
|
"noPrompt": "do not prompt for confirmation",
|
package/messages/open.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
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 \"yourInstance.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.",
|
|
2
|
+
"description": "open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"yourInstance.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",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.9.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.\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 \"yourInstance.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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "A template repository for sfdx plugins",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"access": "public"
|
|
122
122
|
},
|
|
123
123
|
"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.
|
|
124
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.9.0.crt",
|
|
125
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.9.0.sig"
|
|
126
126
|
}
|
|
127
127
|
}
|