@salesforce/plugin-org 1.8.3 → 1.9.2

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,34 @@
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.2](https://github.com/salesforcecli/plugin-org/compare/v1.9.1...v1.9.2) (2021-11-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * update domain URL to be more secure ([769ddd8](https://github.com/salesforcecli/plugin-org/commit/769ddd8184d43a3e974f539378b8e10768b29eef))
11
+
12
+ ### [1.9.1](https://github.com/salesforcecli/plugin-org/compare/v1.9.0...v1.9.1) (2021-11-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * add warning about using --verbose.. ([5bd1511](https://github.com/salesforcecli/plugin-org/commit/5bd151136806b7f3a7056cf5c3a4bdc09a1b0d35))
18
+
19
+ ## [1.9.0](https://github.com/salesforcecli/plugin-org/compare/v1.8.4...v1.9.0) (2021-10-22)
20
+
21
+
22
+ ### Features
23
+
24
+ * support targeting browser in "open" command ([c06442b](https://github.com/salesforcecli/plugin-org/commit/c06442b9f42641d535674b0f258f2c6039d5370b))
25
+
26
+ ### [1.8.4](https://github.com/salesforcecli/plugin-org/compare/v1.8.3...v1.8.4) (2021-10-20)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * remove extraneous single quote ([62269a2](https://github.com/salesforcecli/plugin-org/commit/62269a24d2d0f3cdcd1277882e2ea51e41cb617e))
32
+
5
33
  ### [1.8.3](https://github.com/salesforcecli/plugin-org/compare/v1.8.2...v1.8.3) (2021-10-13)
6
34
 
7
35
 
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 [-p <string>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgopen--p-string--r--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
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
 
@@ -88,7 +88,7 @@ get the description for the current or target org
88
88
  ```
89
89
  get the description for the current or target org
90
90
  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.
91
+ 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
92
  Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)
93
93
 
94
94
  USAGE
@@ -113,7 +113,8 @@ OPTIONS
113
113
  DESCRIPTION
114
114
  Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
115
115
  applicable.
116
- Use --verbose to include the SFDX auth URL.
116
+ Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
117
+ refresh token that can be used to access an org. Don't share or distribute this URL or token.
117
118
  Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not
118
119
  auth:jwt:grant)
119
120
 
@@ -124,7 +125,7 @@ EXAMPLES
124
125
  sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
125
126
  ```
126
127
 
127
- _See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.2/src/commands/force/org/display.ts)_
128
+ _See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.1/src/commands/force/org/display.ts)_
128
129
 
129
130
  ## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
130
131
 
@@ -154,8 +155,7 @@ OPTIONS
154
155
  --skipconnectionstatus skip retrieving the connection
155
156
  status of non-scratch orgs
156
157
 
157
- --verbose list more information about each
158
- org'
158
+ --verbose list more information about each org
159
159
 
160
160
  EXAMPLES
161
161
  sfdx force:org:list
@@ -163,23 +163,25 @@ EXAMPLES
163
163
  sfdx force:org:list --verbose --json > tmp/MyOrgList.json
164
164
  ```
165
165
 
166
- _See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.2/src/commands/force/org/list.ts)_
166
+ _See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.1/src/commands/force/org/list.ts)_
167
167
 
168
- ## `sfdx force:org:open [-p <string>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
168
+ ## `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
169
 
170
170
  open your default scratch org, or another specified org
171
171
 
172
172
  ```
173
173
  open your default scratch org, or another specified org
174
- To open a specific page, specify the portion of the URL after "yourInstance.salesforce.com/" as --path.
174
+ To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
175
175
  For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a Visualforce page.
176
176
  To generate a URL but not launch it in your browser, specify --urlonly.
177
+ 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
178
 
178
179
  USAGE
179
- $ sfdx force:org:open [-p <string>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel
180
+ $ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
180
181
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
181
182
 
182
183
  OPTIONS
184
+ -b, --browser=chrome|edge|firefox browser where the org opens
183
185
  -p, --path=path navigation URL path
184
186
 
185
187
  -r, --urlonly display navigation URL, but don’t
@@ -197,17 +199,20 @@ OPTIONS
197
199
  this command invocation
198
200
 
199
201
  DESCRIPTION
200
- To open a specific page, specify the portion of the URL after "yourInstance.salesforce.com/" as --path.
202
+ To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
201
203
  For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
202
204
  Visualforce page.
203
205
  To generate a URL but not launch it in your browser, specify --urlonly.
206
+ To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
207
+ you don't specify --browser, the org opens in your default browser.
204
208
 
205
209
  EXAMPLES
206
210
  sfdx force:org:open
207
211
  sfdx force:org:open -u me@my.org
208
212
  sfdx force:org:open -u MyTestOrg1
209
213
  sfdx force:org:open -r -p lightning
214
+ sfdx force:org:open -u me@my.org -b firefox
210
215
  ```
211
216
 
212
- _See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.8.2/src/commands/force/org/open.ts)_
217
+ _See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.9.1/src/commands/force/org/open.ts)_
213
218
  <!-- 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');
@@ -53,7 +54,10 @@ class OrgOpenCommand extends command_1.SfdxCommand {
53
54
  }
54
55
  throw core_1.SfdxError.wrap(err);
55
56
  }
56
- await (0, utils_1.openUrl)(url);
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,2BAA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C,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"}
@@ -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>;
@@ -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
@@ -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;IAClE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB"}
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"}
@@ -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",
@@ -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",
@@ -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 \"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",
@@ -1 +1 @@
1
- {"version":"1.8.3","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.","usage":"<%= command.id %> [-p <string>] [-r] [-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"],"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"},"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":[]}}}
1
+ {"version":"1.9.2","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,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "A template repository for sfdx plugins",
4
- "version": "1.8.3",
4
+ "version": "1.9.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@salesforce/command": "^4.1.3",
10
10
  "@salesforce/core": "^2.28.0",
11
11
  "@salesforce/kit": "^1.5.17",
12
- "open": "8.2.1",
12
+ "open": "8.4.0",
13
13
  "tslib": "^2"
14
14
  },
15
15
  "devDependencies": {
@@ -32,7 +32,7 @@
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.24.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
38
  "husky": "^4.3.8",
@@ -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.8.3.crt",
125
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.8.3.sig"
124
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.9.2.crt",
125
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.9.2.sig"
126
126
  }
127
127
  }