@salesforce/plugin-org 5.4.1 → 5.5.1

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/README.md CHANGED
@@ -242,7 +242,7 @@ FLAG DESCRIPTIONS
242
242
  You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
243
243
  ```
244
244
 
245
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/create/sandbox.ts)_
245
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/create/sandbox.ts)_
246
246
 
247
247
  ## `sf org create scratch`
248
248
 
@@ -424,7 +424,7 @@ FLAG DESCRIPTIONS
424
424
  Omit this flag to have Salesforce generate a unique username for your org.
425
425
  ```
426
426
 
427
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/create/scratch.ts)_
427
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/create/scratch.ts)_
428
428
 
429
429
  ## `sf org delete sandbox`
430
430
 
@@ -470,7 +470,7 @@ EXAMPLES
470
470
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
471
471
  ```
472
472
 
473
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/delete/sandbox.ts)_
473
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/delete/sandbox.ts)_
474
474
 
475
475
  ## `sf org delete scratch`
476
476
 
@@ -514,7 +514,7 @@ EXAMPLES
514
514
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
515
515
  ```
516
516
 
517
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/delete/scratch.ts)_
517
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/delete/scratch.ts)_
518
518
 
519
519
  ## `sf org disable tracking`
520
520
 
@@ -553,7 +553,7 @@ EXAMPLES
553
553
  $ sf org disable tracking
554
554
  ```
555
555
 
556
- _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/disable/tracking.ts)_
556
+ _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/disable/tracking.ts)_
557
557
 
558
558
  ## `sf org display`
559
559
 
@@ -598,7 +598,7 @@ EXAMPLES
598
598
  $ sf org display --target-org TestOrg1 --verbose
599
599
  ```
600
600
 
601
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/display.ts)_
601
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/display.ts)_
602
602
 
603
603
  ## `sf org enable tracking`
604
604
 
@@ -640,7 +640,7 @@ EXAMPLES
640
640
  $ sf org enable tracking
641
641
  ```
642
642
 
643
- _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/enable/tracking.ts)_
643
+ _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/enable/tracking.ts)_
644
644
 
645
645
  ## `sf org list`
646
646
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ sf org list --clean
680
680
  ```
681
681
 
682
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/list.ts)_
682
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/list.ts)_
683
683
 
684
684
  ## `sf org list metadata`
685
685
 
@@ -746,7 +746,7 @@ FLAG DESCRIPTIONS
746
746
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
747
747
  ```
748
748
 
749
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/list/metadata.ts)_
749
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/list/metadata.ts)_
750
750
 
751
751
  ## `sf org list metadata-types`
752
752
 
@@ -801,7 +801,7 @@ FLAG DESCRIPTIONS
801
801
  Override the api version used for api requests made by this command
802
802
  ```
803
803
 
804
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/list/metadata-types.ts)_
804
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/list/metadata-types.ts)_
805
805
 
806
806
  ## `sf org open`
807
807
 
@@ -877,7 +877,7 @@ EXAMPLES
877
877
  $ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
878
878
  ```
879
879
 
880
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/open.ts)_
880
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/open.ts)_
881
881
 
882
882
  ## `sf org open agent`
883
883
 
@@ -928,7 +928,7 @@ EXAMPLES
928
928
  $ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
929
929
  ```
930
930
 
931
- _See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/open/agent.ts)_
931
+ _See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/open/agent.ts)_
932
932
 
933
933
  ## `sf org refresh sandbox`
934
934
 
@@ -1005,7 +1005,7 @@ FLAG DESCRIPTIONS
1005
1005
  By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
1006
1006
  ```
1007
1007
 
1008
- _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/refresh/sandbox.ts)_
1008
+ _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/refresh/sandbox.ts)_
1009
1009
 
1010
1010
  ## `sf org resume sandbox`
1011
1011
 
@@ -1068,7 +1068,7 @@ FLAG DESCRIPTIONS
1068
1068
  returns the job ID. To resume checking the sandbox creation, rerun this command.
1069
1069
  ```
1070
1070
 
1071
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/resume/sandbox.ts)_
1071
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/resume/sandbox.ts)_
1072
1072
 
1073
1073
  ## `sf org resume scratch`
1074
1074
 
@@ -1115,6 +1115,6 @@ FLAG DESCRIPTIONS
1115
1115
  The job ID is valid for 24 hours after you start the scratch org creation.
1116
1116
  ```
1117
1117
 
1118
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.4.1/src/commands/org/resume/scratch.ts)_
1118
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.5.1/src/commands/org/resume/scratch.ts)_
1119
1119
 
1120
1120
  <!-- commandsstop -->
@@ -46,7 +46,7 @@ export class OrgOpenAgent extends OrgOpenCommandBase {
46
46
  this.org = flags['target-org'];
47
47
  this.connection = this.org.getConnection(flags['api-version']);
48
48
  const [frontDoorUrl, retUrl] = await Promise.all([
49
- buildFrontdoorUrl(this.org, this.connection),
49
+ buildFrontdoorUrl(this.org, this.connection, true),
50
50
  buildRetUrl(this.connection, flags.name),
51
51
  ]);
52
52
  return this.openOrgUI(flags, frontDoorUrl, retUrl);
@@ -1 +1 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/commands/org/open/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,OAAe,EAAmB,EAAE;IAC/E,MAAM,KAAK,GAAG,qDAAqD,OAAO,GAAG,CAAC;IAC9E,MAAM,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAiB,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IACvE,OAAO,0DAA0D,KAAK,EAAE,CAAC;AAC3E,CAAC,CAAC"}
@@ -8,10 +8,12 @@ import path from 'node:path';
8
8
  import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, } from '@salesforce/sf-plugins-core';
9
9
  import { Messages } from '@salesforce/core';
10
10
  import { MetadataResolver } from '@salesforce/source-deploy-retrieve';
11
+ import { env } from '@salesforce/kit';
11
12
  import { buildFrontdoorUrl } from '../../shared/orgOpenUtils.js';
12
13
  import { OrgOpenCommandBase } from '../../shared/orgOpenCommandBase.js';
13
14
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
14
15
  const messages = Messages.loadMessages('@salesforce/plugin-org', 'open');
16
+ const sharedMessages = Messages.loadMessages('@salesforce/plugin-org', 'messages');
15
17
  export class OrgOpenCommand extends OrgOpenCommandBase {
16
18
  static summary = messages.getMessage('summary');
17
19
  static description = messages.getMessage('description');
@@ -55,11 +57,14 @@ export class OrgOpenCommand extends OrgOpenCommandBase {
55
57
  }),
56
58
  };
57
59
  async run() {
60
+ this.warn(sharedMessages.getMessage('BehaviorChangeWarning'));
58
61
  const { flags } = await this.parse(OrgOpenCommand);
59
62
  this.org = flags['target-org'];
60
63
  this.connection = this.org.getConnection(flags['api-version']);
64
+ const singleUseEnvVar = env.getBoolean('SF_SINGLE_USE_ORG_OPEN_URL');
65
+ const singleUseMode = singleUseEnvVar ? singleUseEnvVar : !(flags['url-only'] || this.jsonEnabled());
61
66
  const [frontDoorUrl, retUrl] = await Promise.all([
62
- buildFrontdoorUrl(this.org, this.connection),
67
+ buildFrontdoorUrl(this.org, this.connection, singleUseMode),
63
68
  flags['source-file'] ? generateFileUrl(flags['source-file'], this.connection) : flags.path,
64
69
  ]);
65
70
  return this.openOrgUI(flags, frontDoorUrl, retUrl);
@@ -1 +1 @@
1
- {"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/commands/org/open.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAc,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAGxE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AAEzE,MAAM,OAAO,cAAe,SAAQ,kBAAiC;IAC5D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAC;IAClE,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAE/B,MAAM,CAAU,KAAK,GAAG;QAC7B,GAAG,kBAAkB,CAAC,KAAK;QAC3B,YAAY,EAAE,+BAA+B;QAC7C,aAAa,EAAE,iCAAiC;QAChD,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;YACrB,OAAO,EAAE,QAAQ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EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,CACF,CAAC,EAAE,CAAC;AAEP,oFAAoF;AACpF,MAAM,gBAAgB,GAAG,KAAK,EAAE,IAAgB,EAAE,QAAgB,EAAmB,EAAE;IACrF,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,iBAAiB,CACvC,6EAA6E,IAAI,CAAC,QAAQ,CACxF,QAAQ,EACR,gBAAgB,CACjB,uCAAuC,CACzC,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,QAAQ,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC,CAAC"}
@@ -56,27 +56,41 @@ export class OrgOpenCommandBase extends SfCommand {
56
56
  catch (err) {
57
57
  handleDomainError(err, url, env);
58
58
  }
59
- // create a local html file that contains the POST stuff.
60
- const tempFilePath = path.join(tmpdir(), `org-open-${new Date().valueOf()}.html`);
61
- await fs.promises.writeFile(tempFilePath, getFileContents(this.connection.accessToken, this.connection.instanceUrl,
62
- // the path flag is URI-encoded in its `parse` func.
63
- // For the form redirect to work we need it decoded.
64
- flags.path ? decodeURIComponent(flags.path) : retUrl));
65
- const filePathUrl = isWsl
66
- ? 'file:///' + execSync(`wslpath -m ${tempFilePath}`).toString().trim()
67
- : `file:///${tempFilePath}`;
68
- const cp = await utils.openUrl(filePathUrl, {
69
- ...(flags.browser ? { app: { name: apps[flags.browser] } } : {}),
70
- ...(flags.private ? { newInstance: platform() === 'darwin', app: { name: apps.browserPrivate } } : {}),
71
- });
72
- cp.on('error', (err) => {
59
+ if (this.jsonEnabled()) {
60
+ // TODO: remove this code path once the org open behavior changes on August 2025 (see W-17661469)
61
+ // create a local html file that contains the POST stuff.
62
+ const tempFilePath = path.join(tmpdir(), `org-open-${new Date().valueOf()}.html`);
63
+ await fs.promises.writeFile(tempFilePath, getFileContents(this.connection.accessToken, this.connection.instanceUrl,
64
+ // the path flag is URI-encoded in its `parse` func.
65
+ // For the form redirect to work we need it decoded.
66
+ flags.path ? decodeURIComponent(flags.path) : retUrl));
67
+ const filePathUrl = isWsl
68
+ ? 'file:///' + execSync(`wslpath -m ${tempFilePath}`).toString().trim()
69
+ : `file:///${tempFilePath}`;
70
+ const cp = await utils.openUrl(filePathUrl, {
71
+ ...(flags.browser ? { app: { name: apps[flags.browser] } } : {}),
72
+ ...(flags.private ? { newInstance: platform() === 'darwin', app: { name: apps.browserPrivate } } : {}),
73
+ });
74
+ cp.on('error', (err) => {
75
+ fileCleanup(tempFilePath);
76
+ throw SfError.wrap(err);
77
+ });
78
+ // so we don't delete the file while the browser is still using it
79
+ // open returns when the CP is spawned, but there's not way to know if the browser is still using the file
80
+ await sleep(platform() === 'win32' || isWsl ? 7000 : 5000);
73
81
  fileCleanup(tempFilePath);
74
- throw SfError.wrap(err);
75
- });
76
- // so we don't delete the file while the browser is still using it
77
- // open returns when the CP is spawned, but there's not way to know if the browser is still using the file
78
- await sleep(platform() === 'win32' || isWsl ? 7000 : 5000);
79
- fileCleanup(tempFilePath);
82
+ }
83
+ else {
84
+ // it means we generated a one-time use frontdoor url
85
+ // so the workaround to create a local html file is not needed
86
+ const cp = await utils.openUrl(url, {
87
+ ...(flags.browser ? { app: { name: apps[flags.browser] } } : {}),
88
+ ...(flags.private ? { newInstance: platform() === 'darwin', app: { name: apps.browserPrivate } } : {}),
89
+ });
90
+ cp.on('error', (err) => {
91
+ throw SfError.wrap(err);
92
+ });
93
+ }
80
94
  return output;
81
95
  }
82
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"orgOpenCommandBase.js","sourceRoot":"","sources":["../../src/shared/orgOpenCommandBase.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MA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CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,QAAQ,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACvG,CAAC,CAAC;YACH,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACrB,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -4,14 +4,21 @@ import { Connection, Org } from '@salesforce/core';
4
4
  import { Env } from '@salesforce/kit';
5
5
  export declare const openUrl: (url: string, options: Options) => Promise<ChildProcess>;
6
6
  export declare const fileCleanup: (tempFilePath: string) => void;
7
- export declare const buildFrontdoorUrl: (org: Org, conn: Connection) => Promise<string>;
7
+ /**
8
+ * This method generates and returns a frontdoor url for the given org.
9
+ *
10
+ * @param org org for which we generate the frontdoor url.
11
+ * @param conn the Connection for the given Org.
12
+ * @param singleUseUrl if true returns a single-use url frontdoor url.
13
+ */
14
+ export declare const buildFrontdoorUrl: (org: Org, conn: Connection, singleUseUrl: boolean) => Promise<string>;
8
15
  export declare const handleDomainError: (err: unknown, url: string, env: Env) => string;
9
16
  /** builds the html file that does an automatic post to the frontdoor url */
10
17
  export declare const getFileContents: (authToken: string, instanceUrl: string, retUrl?: string) => string;
11
18
  declare const _default: {
12
19
  openUrl: (url: string, options: Options) => Promise<ChildProcess>;
13
20
  fileCleanup: (tempFilePath: string) => void;
14
- buildFrontdoorUrl: (org: Org, conn: Connection) => Promise<string>;
21
+ buildFrontdoorUrl: (org: Org, conn: Connection, singleUseUrl: boolean) => Promise<string>;
15
22
  handleDomainError: (err: unknown, url: string, env: Env) => string;
16
23
  getFileContents: (authToken: string, instanceUrl: string, retUrl?: string) => string;
17
24
  };
@@ -10,16 +10,41 @@ import { Logger, Messages, Org, SfError } from '@salesforce/core';
10
10
  import { Duration } from '@salesforce/kit';
11
11
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
12
12
  const messages = Messages.loadMessages('@salesforce/plugin-org', 'open');
13
+ const sharedMessages = Messages.loadMessages('@salesforce/plugin-org', 'messages');
13
14
  export const openUrl = async (url, options) => open(url, options);
14
15
  export const fileCleanup = (tempFilePath) => rmSync(tempFilePath, { force: true, maxRetries: 3, recursive: true });
15
- export const buildFrontdoorUrl = async (org, conn) => {
16
+ /**
17
+ * This method generates and returns a frontdoor url for the given org.
18
+ *
19
+ * @param org org for which we generate the frontdoor url.
20
+ * @param conn the Connection for the given Org.
21
+ * @param singleUseUrl if true returns a single-use url frontdoor url.
22
+ */
23
+ export const buildFrontdoorUrl = async (org, conn, singleUseUrl) => {
16
24
  await org.refreshAuth(); // we need a live accessToken for the frontdoor url
17
25
  const accessToken = conn.accessToken;
18
26
  if (!accessToken) {
19
27
  throw new SfError('NoAccessToken', 'NoAccessToken');
20
28
  }
21
- const instanceUrlClean = org.getField(Org.Fields.INSTANCE_URL).replace(/\/$/, '');
22
- return `${instanceUrlClean}/secur/frontdoor.jsp?sid=${accessToken}`;
29
+ if (singleUseUrl) {
30
+ try {
31
+ const response = await conn.requestGet('/services/oauth2/singleaccess');
32
+ if (response.frontdoor_uri)
33
+ return response.frontdoor_uri;
34
+ throw new SfError(sharedMessages.getMessage('SingleAccessFrontdoorError')).setData(response);
35
+ }
36
+ catch (e) {
37
+ if (e instanceof SfError)
38
+ throw e;
39
+ const err = e;
40
+ throw new SfError(sharedMessages.getMessage('SingleAccessFrontdoorError'), err.message);
41
+ }
42
+ }
43
+ else {
44
+ // TODO: remove this code path once the org open behavior changes on August 2025 (see W-17661469)
45
+ const instanceUrlClean = org.getField(Org.Fields.INSTANCE_URL).replace(/\/$/, '');
46
+ return `${instanceUrlClean}/secur/frontdoor.jsp?sid=${accessToken}`;
47
+ }
23
48
  };
24
49
  export const handleDomainError = (err, url, env) => {
25
50
  if (err instance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CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACjD,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC;YACD,MAAM,MAAM,GAAG,WAAW,IAAI,sBAAsB,CAAC;YACrD,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;YACvG,MAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,kBAAkB,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACxE,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,CAAC,uBAAuB,MAAM,UAAU,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC;YAC/E,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAAC;QACrF,CAAC;QACD,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,GAAG,CAAC;AACZ,CAAC,CAAC;AAEF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,SAAiB,EACjB,WAAmB;AACnB,oGAAoG;AACpG,MAAM,GAAG,oCAAoC,EACrC,EAAE,CAAC;;;kCAGqB,WAAW;+CACE,SAAS;kDACN,MAAM;;;QAGhD,CAAC;AAET,eAAe;IACb,OAAO;IACP,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;CAChB,CAAC"}
@@ -3,3 +3,11 @@
3
3
  This command will expose sensitive information that allows for subsequent activity using your current authenticated session.
4
4
  Sharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.
5
5
  For additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm.
6
+
7
+ # BehaviorChangeWarning
8
+
9
+ Starting in August 2025, this command will generate single-use URLs when you specify either the --json or --url-only (-r) flag. These URLs can be used only one time; subsequent use won't allow you to log in to the org.
10
+
11
+ # SingleAccessFrontdoorError
12
+
13
+ Failed to generate a single-use frontdoor URL.
@@ -849,6 +849,69 @@
849
849
  "scratch:create:org"
850
850
  ]
851
851
  },
852
+ "org:disable:tracking": {
853
+ "aliases": [],
854
+ "args": {},
855
+ "description": "Disabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that no source tracking operations are executed when working with the org.",
856
+ "examples": [
857
+ "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
858
+ "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
859
+ "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
860
+ ],
861
+ "flags": {
862
+ "json": {
863
+ "description": "Format output as json.",
864
+ "helpGroup": "GLOBAL",
865
+ "name": "json",
866
+ "allowNo": false,
867
+ "type": "boolean"
868
+ },
869
+ "flags-dir": {
870
+ "helpGroup": "GLOBAL",
871
+ "name": "flags-dir",
872
+ "summary": "Import flag values from a directory.",
873
+ "hasDynamicHelp": false,
874
+ "multiple": false,
875
+ "type": "option"
876
+ },
877
+ "target-org": {
878
+ "char": "o",
879
+ "name": "target-org",
880
+ "noCacheDefault": true,
881
+ "required": true,
882
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
883
+ "hasDynamicHelp": true,
884
+ "multiple": false,
885
+ "type": "option"
886
+ }
887
+ },
888
+ "hasDynamicHelp": true,
889
+ "hiddenAliases": [],
890
+ "id": "org:disable:tracking",
891
+ "pluginAlias": "@salesforce/plugin-org",
892
+ "pluginName": "@salesforce/plugin-org",
893
+ "pluginType": "core",
894
+ "strict": true,
895
+ "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
896
+ "enableJsonFlag": true,
897
+ "isESM": true,
898
+ "relativePath": [
899
+ "lib",
900
+ "commands",
901
+ "org",
902
+ "disable",
903
+ "tracking.js"
904
+ ],
905
+ "aliasPermutations": [],
906
+ "permutations": [
907
+ "org:disable:tracking",
908
+ "disable:org:tracking",
909
+ "disable:tracking:org",
910
+ "org:tracking:disable",
911
+ "tracking:org:disable",
912
+ "tracking:disable:org"
913
+ ]
914
+ },
852
915
  "org:delete:sandbox": {
853
916
  "aliases": [
854
917
  "env:delete:sandbox"
@@ -1017,14 +1080,14 @@
1017
1080
  "scratch:delete:org"
1018
1081
  ]
1019
1082
  },
1020
- "org:disable:tracking": {
1083
+ "org:enable:tracking": {
1021
1084
  "aliases": [],
1022
1085
  "args": {},
1023
- "description": "Disabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that no source tracking operations are executed when working with the org.",
1086
+ "description": "Enabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
1024
1087
  "examples": [
1025
- "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1026
- "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1027
- "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
1088
+ "Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1089
+ "Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1090
+ "Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
1028
1091
  ],
1029
1092
  "flags": {
1030
1093
  "json": {
@@ -1055,39 +1118,39 @@
1055
1118
  },
1056
1119
  "hasDynamicHelp": true,
1057
1120
  "hiddenAliases": [],
1058
- "id": "org:disable:tracking",
1121
+ "id": "org:enable:tracking",
1059
1122
  "pluginAlias": "@salesforce/plugin-org",
1060
1123
  "pluginName": "@salesforce/plugin-org",
1061
1124
  "pluginType": "core",
1062
1125
  "strict": true,
1063
- "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
1126
+ "summary": "Allow Salesforce CLI to track changes in your source files between your project and an org.",
1064
1127
  "enableJsonFlag": true,
1065
1128
  "isESM": true,
1066
1129
  "relativePath": [
1067
1130
  "lib",
1068
1131
  "commands",
1069
1132
  "org",
1070
- "disable",
1133
+ "enable",
1071
1134
  "tracking.js"
1072
1135
  ],
1073
1136
  "aliasPermutations": [],
1074
1137
  "permutations": [
1075
- "org:disable:tracking",
1076
- "disable:org:tracking",
1077
- "disable:tracking:org",
1078
- "org:tracking:disable",
1079
- "tracking:org:disable",
1080
- "tracking:disable:org"
1138
+ "org:enable:tracking",
1139
+ "enable:org:tracking",
1140
+ "enable:tracking:org",
1141
+ "org:tracking:enable",
1142
+ "tracking:org:enable",
1143
+ "tracking:enable:org"
1081
1144
  ]
1082
1145
  },
1083
- "org:enable:tracking": {
1146
+ "org:open:agent": {
1084
1147
  "aliases": [],
1085
1148
  "args": {},
1086
- "description": "Enabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
1149
+ "description": "Use the --name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder in a specific browser, use the --browser flag. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
1087
1150
  "examples": [
1088
- "Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1089
- "Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1090
- "Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
1151
+ "Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent",
1152
+ "Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:",
1153
+ "Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent"
1091
1154
  ],
1092
1155
  "flags": {
1093
1156
  "json": {
@@ -1114,33 +1177,88 @@
1114
1177
  "hasDynamicHelp": true,
1115
1178
  "multiple": false,
1116
1179
  "type": "option"
1180
+ },
1181
+ "api-version": {
1182
+ "description": "Override the api version used for api requests made by this command",
1183
+ "name": "api-version",
1184
+ "hasDynamicHelp": false,
1185
+ "multiple": false,
1186
+ "type": "option"
1187
+ },
1188
+ "name": {
1189
+ "char": "n",
1190
+ "name": "name",
1191
+ "required": true,
1192
+ "summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
1193
+ "hasDynamicHelp": false,
1194
+ "multiple": false,
1195
+ "type": "option"
1196
+ },
1197
+ "private": {
1198
+ "exclusive": [
1199
+ "url-only",
1200
+ "browser"
1201
+ ],
1202
+ "name": "private",
1203
+ "summary": "Open the org in the default browser using private (incognito) mode.",
1204
+ "allowNo": false,
1205
+ "type": "boolean"
1206
+ },
1207
+ "browser": {
1208
+ "char": "b",
1209
+ "exclusive": [
1210
+ "url-only",
1211
+ "private"
1212
+ ],
1213
+ "name": "browser",
1214
+ "summary": "Browser where the org opens.",
1215
+ "hasDynamicHelp": false,
1216
+ "multiple": false,
1217
+ "options": [
1218
+ "chrome",
1219
+ "edge",
1220
+ "firefox"
1221
+ ],
1222
+ "type": "option"
1223
+ },
1224
+ "url-only": {
1225
+ "aliases": [
1226
+ "urlonly"
1227
+ ],
1228
+ "char": "r",
1229
+ "deprecateAliases": true,
1230
+ "name": "url-only",
1231
+ "summary": "Display navigation URL, but don’t launch browser.",
1232
+ "allowNo": false,
1233
+ "type": "boolean"
1117
1234
  }
1118
1235
  },
1119
1236
  "hasDynamicHelp": true,
1120
1237
  "hiddenAliases": [],
1121
- "id": "org:enable:tracking",
1238
+ "id": "org:open:agent",
1122
1239
  "pluginAlias": "@salesforce/plugin-org",
1123
1240
  "pluginName": "@salesforce/plugin-org",
1124
1241
  "pluginType": "core",
1242
+ "state": "beta",
1125
1243
  "strict": true,
1126
- "summary": "Allow Salesforce CLI to track changes in your source files between your project and an org.",
1244
+ "summary": "Open an agent in your org's Agent Builder UI in a browser.",
1127
1245
  "enableJsonFlag": true,
1128
1246
  "isESM": true,
1129
1247
  "relativePath": [
1130
1248
  "lib",
1131
1249
  "commands",
1132
1250
  "org",
1133
- "enable",
1134
- "tracking.js"
1251
+ "open",
1252
+ "agent.js"
1135
1253
  ],
1136
1254
  "aliasPermutations": [],
1137
1255
  "permutations": [
1138
- "org:enable:tracking",
1139
- "enable:org:tracking",
1140
- "enable:tracking:org",
1141
- "org:tracking:enable",
1142
- "tracking:org:enable",
1143
- "tracking:enable:org"
1256
+ "org:open:agent",
1257
+ "open:org:agent",
1258
+ "open:agent:org",
1259
+ "org:agent:open",
1260
+ "agent:org:open",
1261
+ "agent:open:org"
1144
1262
  ]
1145
1263
  },
1146
1264
  "org:list:metadata-types": {
@@ -1402,124 +1520,6 @@
1402
1520
  "metadata:list:org"
1403
1521
  ]
1404
1522
  },
1405
- "org:open:agent": {
1406
- "aliases": [],
1407
- "args": {},
1408
- "description": "Use the --name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder in a specific browser, use the --browser flag. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
1409
- "examples": [
1410
- "Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent",
1411
- "Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:",
1412
- "Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent"
1413
- ],
1414
- "flags": {
1415
- "json": {
1416
- "description": "Format output as json.",
1417
- "helpGroup": "GLOBAL",
1418
- "name": "json",
1419
- "allowNo": false,
1420
- "type": "boolean"
1421
- },
1422
- "flags-dir": {
1423
- "helpGroup": "GLOBAL",
1424
- "name": "flags-dir",
1425
- "summary": "Import flag values from a directory.",
1426
- "hasDynamicHelp": false,
1427
- "multiple": false,
1428
- "type": "option"
1429
- },
1430
- "target-org": {
1431
- "char": "o",
1432
- "name": "target-org",
1433
- "noCacheDefault": true,
1434
- "required": true,
1435
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1436
- "hasDynamicHelp": true,
1437
- "multiple": false,
1438
- "type": "option"
1439
- },
1440
- "api-version": {
1441
- "description": "Override the api version used for api requests made by this command",
1442
- "name": "api-version",
1443
- "hasDynamicHelp": false,
1444
- "multiple": false,
1445
- "type": "option"
1446
- },
1447
- "name": {
1448
- "char": "n",
1449
- "name": "name",
1450
- "required": true,
1451
- "summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
1452
- "hasDynamicHelp": false,
1453
- "multiple": false,
1454
- "type": "option"
1455
- },
1456
- "private": {
1457
- "exclusive": [
1458
- "url-only",
1459
- "browser"
1460
- ],
1461
- "name": "private",
1462
- "summary": "Open the org in the default browser using private (incognito) mode.",
1463
- "allowNo": false,
1464
- "type": "boolean"
1465
- },
1466
- "browser": {
1467
- "char": "b",
1468
- "exclusive": [
1469
- "url-only",
1470
- "private"
1471
- ],
1472
- "name": "browser",
1473
- "summary": "Browser where the org opens.",
1474
- "hasDynamicHelp": false,
1475
- "multiple": false,
1476
- "options": [
1477
- "chrome",
1478
- "edge",
1479
- "firefox"
1480
- ],
1481
- "type": "option"
1482
- },
1483
- "url-only": {
1484
- "aliases": [
1485
- "urlonly"
1486
- ],
1487
- "char": "r",
1488
- "deprecateAliases": true,
1489
- "name": "url-only",
1490
- "summary": "Display navigation URL, but don’t launch browser.",
1491
- "allowNo": false,
1492
- "type": "boolean"
1493
- }
1494
- },
1495
- "hasDynamicHelp": true,
1496
- "hiddenAliases": [],
1497
- "id": "org:open:agent",
1498
- "pluginAlias": "@salesforce/plugin-org",
1499
- "pluginName": "@salesforce/plugin-org",
1500
- "pluginType": "core",
1501
- "state": "beta",
1502
- "strict": true,
1503
- "summary": "Open an agent in your org's Agent Builder UI in a browser.",
1504
- "enableJsonFlag": true,
1505
- "isESM": true,
1506
- "relativePath": [
1507
- "lib",
1508
- "commands",
1509
- "org",
1510
- "open",
1511
- "agent.js"
1512
- ],
1513
- "aliasPermutations": [],
1514
- "permutations": [
1515
- "org:open:agent",
1516
- "open:org:agent",
1517
- "open:agent:org",
1518
- "org:agent:open",
1519
- "agent:org:open",
1520
- "agent:open:org"
1521
- ]
1522
- },
1523
1523
  "org:refresh:sandbox": {
1524
1524
  "aliases": [],
1525
1525
  "args": {},
@@ -1840,5 +1840,5 @@
1840
1840
  ]
1841
1841
  }
1842
1842
  },
1843
- "version": "5.4.1"
1843
+ "version": "5.5.1"
1844
1844
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "Commands to interact with Salesforce orgs",
4
- "version": "5.4.1",
4
+ "version": "5.5.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -22,13 +22,13 @@
22
22
  "@oclif/plugin-command-snapshot": "^5.2.36",
23
23
  "@salesforce/cli-plugins-testkit": "^5.3.39",
24
24
  "@salesforce/dev-scripts": "^10.2.12",
25
- "@salesforce/plugin-command-reference": "^3.1.44",
25
+ "@salesforce/plugin-command-reference": "^3.1.47",
26
26
  "@salesforce/ts-sinon": "^1.4.30",
27
27
  "eslint-plugin-sf-plugin": "^1.20.16",
28
28
  "moment": "^2.30.1",
29
- "oclif": "^4.17.33",
29
+ "oclif": "^4.17.36",
30
30
  "ts-node": "^10.9.2",
31
- "typescript": "^5.7.3"
31
+ "typescript": "^5.8.2"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=18.0.0"
@@ -227,7 +227,7 @@
227
227
  "exports": "./lib/index.js",
228
228
  "type": "module",
229
229
  "sfdx": {
230
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.4.1.crt",
231
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.4.1.sig"
230
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.5.1.crt",
231
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.5.1.sig"
232
232
  }
233
233
  }