@salesforce/plugin-org 5.1.5-beta.0 → 5.2.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/README.md +27 -26
- package/lib/commands/org/delete/scratch.js +9 -3
- package/lib/commands/org/delete/scratch.js.map +1 -1
- package/lib/commands/org/open/agent.d.ts +1 -0
- package/lib/commands/org/open/agent.js +2 -0
- package/lib/commands/org/open/agent.js.map +1 -1
- package/lib/commands/org/open.js +1 -0
- package/lib/commands/org/open.js.map +1 -1
- package/lib/shared/orgOpenCommandBase.d.ts +1 -0
- package/lib/shared/orgOpenCommandBase.js +1 -0
- package/lib/shared/orgOpenCommandBase.js.map +1 -1
- package/messages/delete_scratch.md +4 -0
- package/messages/open.agent.md +8 -8
- package/oclif.manifest.json +10 -7
- package/package.json +7 -6
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.
|
|
245
|
+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/create/sandbox.ts)_
|
|
246
246
|
|
|
247
247
|
## `sf org create scratch`
|
|
248
248
|
|
|
@@ -396,7 +396,7 @@ FLAG DESCRIPTIONS
|
|
|
396
396
|
Omit this flag to have Salesforce generate a unique username for your org.
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
399
|
+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/create/scratch.ts)_
|
|
400
400
|
|
|
401
401
|
## `sf org delete sandbox`
|
|
402
402
|
|
|
@@ -442,7 +442,7 @@ EXAMPLES
|
|
|
442
442
|
$ sf org delete sandbox --target-org my-sandbox --no-prompt
|
|
443
443
|
```
|
|
444
444
|
|
|
445
|
-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
445
|
+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/delete/sandbox.ts)_
|
|
446
446
|
|
|
447
447
|
## `sf org delete scratch`
|
|
448
448
|
|
|
@@ -486,7 +486,7 @@ EXAMPLES
|
|
|
486
486
|
$ sf org delete scratch --target-org my-scratch-org --no-prompt
|
|
487
487
|
```
|
|
488
488
|
|
|
489
|
-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
489
|
+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/delete/scratch.ts)_
|
|
490
490
|
|
|
491
491
|
## `sf org disable tracking`
|
|
492
492
|
|
|
@@ -525,7 +525,7 @@ EXAMPLES
|
|
|
525
525
|
$ sf org disable tracking
|
|
526
526
|
```
|
|
527
527
|
|
|
528
|
-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
528
|
+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/disable/tracking.ts)_
|
|
529
529
|
|
|
530
530
|
## `sf org display`
|
|
531
531
|
|
|
@@ -570,7 +570,7 @@ EXAMPLES
|
|
|
570
570
|
$ sf org display --target-org TestOrg1 --verbose
|
|
571
571
|
```
|
|
572
572
|
|
|
573
|
-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
573
|
+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/display.ts)_
|
|
574
574
|
|
|
575
575
|
## `sf org enable tracking`
|
|
576
576
|
|
|
@@ -612,7 +612,7 @@ EXAMPLES
|
|
|
612
612
|
$ sf org enable tracking
|
|
613
613
|
```
|
|
614
614
|
|
|
615
|
-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
615
|
+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/enable/tracking.ts)_
|
|
616
616
|
|
|
617
617
|
## `sf org list`
|
|
618
618
|
|
|
@@ -651,7 +651,7 @@ EXAMPLES
|
|
|
651
651
|
$ sf org list --clean
|
|
652
652
|
```
|
|
653
653
|
|
|
654
|
-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
654
|
+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/list.ts)_
|
|
655
655
|
|
|
656
656
|
## `sf org list metadata`
|
|
657
657
|
|
|
@@ -718,7 +718,7 @@ FLAG DESCRIPTIONS
|
|
|
718
718
|
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
|
|
719
719
|
```
|
|
720
720
|
|
|
721
|
-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
721
|
+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/list/metadata.ts)_
|
|
722
722
|
|
|
723
723
|
## `sf org list metadata-types`
|
|
724
724
|
|
|
@@ -773,7 +773,7 @@ FLAG DESCRIPTIONS
|
|
|
773
773
|
Override the api version used for api requests made by this command
|
|
774
774
|
```
|
|
775
775
|
|
|
776
|
-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
776
|
+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/list/metadata-types.ts)_
|
|
777
777
|
|
|
778
778
|
## `sf org open`
|
|
779
779
|
|
|
@@ -849,11 +849,11 @@ EXAMPLES
|
|
|
849
849
|
$ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
|
|
850
850
|
```
|
|
851
851
|
|
|
852
|
-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
852
|
+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/open.ts)_
|
|
853
853
|
|
|
854
854
|
## `sf org open agent`
|
|
855
855
|
|
|
856
|
-
Open an agent in
|
|
856
|
+
Open an agent in your org's Agent Builder UI in a browser.
|
|
857
857
|
|
|
858
858
|
```
|
|
859
859
|
USAGE
|
|
@@ -863,8 +863,8 @@ USAGE
|
|
|
863
863
|
FLAGS
|
|
864
864
|
-b, --browser=<option> Browser where the org opens.
|
|
865
865
|
<options: chrome|edge|firefox>
|
|
866
|
-
-n, --name=<value> (required)
|
|
867
|
-
UI.
|
|
866
|
+
-n, --name=<value> (required) API name, also known as developer name, of the agent you want to open in the
|
|
867
|
+
org's Agent Builder UI.
|
|
868
868
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
869
869
|
configuration variable is already set.
|
|
870
870
|
-r, --url-only Display navigation URL, but don’t launch browser.
|
|
@@ -876,30 +876,31 @@ GLOBAL FLAGS
|
|
|
876
876
|
--json Format output as json.
|
|
877
877
|
|
|
878
878
|
DESCRIPTION
|
|
879
|
-
Open an agent in
|
|
879
|
+
Open an agent in your org's Agent Builder UI in a browser.
|
|
880
880
|
|
|
881
|
-
Use the --name flag to open an agent using
|
|
881
|
+
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
|
|
882
|
+
name, go to Setup in your org and navigate to the agent's details page.
|
|
882
883
|
|
|
883
|
-
To generate
|
|
884
|
+
To generate the URL but not launch it in your browser, specify --url-only.
|
|
884
885
|
|
|
885
|
-
To open in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and
|
|
886
|
-
don't specify --browser, the org opens in your default browser.
|
|
886
|
+
To open Agent Builder in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and
|
|
887
|
+
"firefox". If you don't specify --browser, the org opens in your default browser.
|
|
887
888
|
|
|
888
889
|
EXAMPLES
|
|
889
|
-
Open the agent with
|
|
890
|
+
Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:
|
|
890
891
|
|
|
891
892
|
$ sf org open agent --name Coral_Cloud_Agent
|
|
892
893
|
|
|
893
894
|
Open the agent in an incognito window of your default browser:
|
|
894
895
|
|
|
895
|
-
$ sf org open agent --private --name Coral_Cloud_Agent
|
|
896
|
+
$ sf org open agent --private --name Coral_Cloud_Agent:
|
|
896
897
|
|
|
897
|
-
Open the agent in
|
|
898
|
+
Open the agent in an org with alias MyTestOrg1 using the Firefox browser:
|
|
898
899
|
|
|
899
900
|
$ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
|
|
900
901
|
```
|
|
901
902
|
|
|
902
|
-
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
903
|
+
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/open/agent.ts)_
|
|
903
904
|
|
|
904
905
|
## `sf org refresh sandbox`
|
|
905
906
|
|
|
@@ -976,7 +977,7 @@ FLAG DESCRIPTIONS
|
|
|
976
977
|
By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
|
|
977
978
|
```
|
|
978
979
|
|
|
979
|
-
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
980
|
+
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/refresh/sandbox.ts)_
|
|
980
981
|
|
|
981
982
|
## `sf org resume sandbox`
|
|
982
983
|
|
|
@@ -1039,7 +1040,7 @@ FLAG DESCRIPTIONS
|
|
|
1039
1040
|
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
1040
1041
|
```
|
|
1041
1042
|
|
|
1042
|
-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1043
|
+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/resume/sandbox.ts)_
|
|
1043
1044
|
|
|
1044
1045
|
## `sf org resume scratch`
|
|
1045
1046
|
|
|
@@ -1086,6 +1087,6 @@ FLAG DESCRIPTIONS
|
|
|
1086
1087
|
The job ID is valid for 24 hours after you start the scratch org creation.
|
|
1087
1088
|
```
|
|
1088
1089
|
|
|
1089
|
-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1090
|
+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.0/src/commands/org/resume/scratch.ts)_
|
|
1090
1091
|
|
|
1091
1092
|
<!-- commandsstop -->
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { AuthInfo, AuthRemover, Messages, Org } from '@salesforce/core';
|
|
8
8
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
9
|
+
import { ensureString } from '@salesforce/ts-types';
|
|
9
10
|
import { orgThatMightBeDeleted } from '../../../shared/flags.js';
|
|
10
11
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
11
12
|
const messages = Messages.loadMessages('@salesforce/plugin-org', 'delete_scratch');
|
|
@@ -28,13 +29,15 @@ export default class DeleteScratch extends SfCommand {
|
|
|
28
29
|
async run() {
|
|
29
30
|
const flags = (await this.parse(DeleteScratch)).flags;
|
|
30
31
|
const resolvedUsername = flags['target-org'];
|
|
31
|
-
const orgId = (await AuthInfo.create({ username: resolvedUsername })).getFields()
|
|
32
|
+
const { orgId, isScratch } = (await AuthInfo.create({ username: resolvedUsername })).getFields();
|
|
33
|
+
if (!isScratch) {
|
|
34
|
+
throw messages.createError('error.unknownScratch', [resolvedUsername]);
|
|
35
|
+
}
|
|
32
36
|
if (flags['no-prompt'] ||
|
|
33
37
|
(await this.confirm({ message: messages.getMessage('prompt.confirm', [resolvedUsername]) }))) {
|
|
34
38
|
try {
|
|
35
39
|
const org = await Org.create({ aliasOrUsername: resolvedUsername });
|
|
36
40
|
await org.delete();
|
|
37
|
-
this.logSuccess(messages.getMessage('success', [org.getUsername()]));
|
|
38
41
|
return { username: org.getUsername(), orgId: org.getOrgId() };
|
|
39
42
|
}
|
|
40
43
|
catch (e) {
|
|
@@ -53,7 +56,10 @@ export default class DeleteScratch extends SfCommand {
|
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
|
-
return {
|
|
59
|
+
return {
|
|
60
|
+
username: resolvedUsername,
|
|
61
|
+
orgId: ensureString(orgId),
|
|
62
|
+
};
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
//# sourceMappingURL=scratch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/scratch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAOnF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAgC;IAClE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,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AK,EAAE,YAAY,CAAC,KAAK,CAAC;SAC3B,CAAC;IACJ,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare class OrgOpenAgent extends OrgOpenCommandBase<OrgOpenOutput> {
|
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly examples: string[];
|
|
7
|
+
static readonly state = "beta";
|
|
7
8
|
static readonly flags: {
|
|
8
9
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -14,7 +14,9 @@ export class OrgOpenAgent extends OrgOpenCommandBase {
|
|
|
14
14
|
static summary = messages.getMessage('summary');
|
|
15
15
|
static description = messages.getMessage('description');
|
|
16
16
|
static examples = messages.getMessages('examples');
|
|
17
|
+
static state = 'beta';
|
|
17
18
|
static flags = {
|
|
19
|
+
...OrgOpenCommandBase.flags,
|
|
18
20
|
'target-org': Flags.requiredOrg(),
|
|
19
21
|
'api-version': Flags.orgApiVersion(),
|
|
20
22
|
name: Flags.string({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/commands/org/open/agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAc,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAG3E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,YAAY,CAAC,CAAC;AAE/E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ACzC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AAGH,gEAAgE;AAChE,MAAM,WAAW,GAAG,KAAK,EAAE,IAAgB,EAAE,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"}
|
package/lib/commands/org/open.js
CHANGED
|
@@ -19,6 +19,7 @@ export class OrgOpenCommand extends OrgOpenCommandBase {
|
|
|
19
19
|
static aliases = ['force:org:open', 'force:source:open'];
|
|
20
20
|
static deprecateAliases = true;
|
|
21
21
|
static flags = {
|
|
22
|
+
...OrgOpenCommandBase.flags,
|
|
22
23
|
'target-org': requiredOrgFlagWithDeprecations,
|
|
23
24
|
'api-version': orgApiVersionFlagWithDeprecations,
|
|
24
25
|
private: Flags.boolean({
|
|
@@ -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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MAAM,qBAAqB,GAAG,KAAK,EAAE,IAAgB,EAAE,QAAgB,EAAmB,EAAE,CAC1F,CACE,MAAM,IAAI,CAAC,iBAAiB,CAC1B,iDAAiD,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,GAAG,EAClG,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"}
|
|
@@ -8,6 +8,7 @@ type OrgOpenFlags = {
|
|
|
8
8
|
private: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare abstract class OrgOpenCommandBase<T> extends SfCommand<T> {
|
|
11
|
+
static enableJsonFlag: boolean;
|
|
11
12
|
protected org: Org;
|
|
12
13
|
protected connection: Connection;
|
|
13
14
|
protected openOrgUI(flags: OrgOpenFlags, frontDoorUrl: string, retUrl?: string): Promise<OrgOpenOutput>;
|
|
@@ -17,6 +17,7 @@ import utils, { fileCleanup, getFileContents, handleDomainError } from './orgOpe
|
|
|
17
17
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
18
18
|
const messages = Messages.loadMessages('@salesforce/plugin-org', 'open');
|
|
19
19
|
export class OrgOpenCommandBase extends SfCommand {
|
|
20
|
+
static enableJsonFlag = true;
|
|
20
21
|
// Set by concrete classes in `run()`
|
|
21
22
|
org;
|
|
22
23
|
connection;
|
|
@@ -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,MAAM,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAc,QAAQ,EAAO,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3F,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AASzE,MAAM,OAAgB,kBAAsB,SAAQ,SAAY;
|
|
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,MAAM,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KA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AAC;QACH,kEAAkE;QAClE,0GAA0G;QAC1G,MAAM,KAAK,CAAC,QAAQ,EAAE,KAAK,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC3D,WAAW,CAAC,YAAY,CAAC,CAAC;QAE1B,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
package/messages/open.agent.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Open an agent in
|
|
3
|
+
Open an agent in your org's Agent Builder UI in a browser.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Use the --name flag to open an agent using
|
|
7
|
+
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.
|
|
8
8
|
|
|
9
|
-
To generate
|
|
9
|
+
To generate the URL but not launch it in your browser, specify --url-only.
|
|
10
10
|
|
|
11
|
-
To open 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.
|
|
11
|
+
To 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.
|
|
12
12
|
|
|
13
13
|
# examples
|
|
14
14
|
|
|
15
|
-
- Open the agent with
|
|
15
|
+
- Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:
|
|
16
16
|
|
|
17
17
|
$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent
|
|
18
18
|
|
|
19
19
|
- Open the agent in an incognito window of your default browser:
|
|
20
20
|
|
|
21
|
-
$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent
|
|
21
|
+
$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:
|
|
22
22
|
|
|
23
|
-
- Open the agent in
|
|
23
|
+
- Open the agent in an org with alias MyTestOrg1 using the Firefox browser:
|
|
24
24
|
|
|
25
25
|
$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
|
|
26
26
|
|
|
27
27
|
# flags.name.summary
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.
|
|
30
30
|
|
|
31
31
|
# flags.private.summary
|
|
32
32
|
|
package/oclif.manifest.json
CHANGED
|
@@ -358,6 +358,7 @@
|
|
|
358
358
|
"pluginType": "core",
|
|
359
359
|
"strict": true,
|
|
360
360
|
"summary": "Open your default scratch org, or another specified org, in a browser.",
|
|
361
|
+
"enableJsonFlag": true,
|
|
361
362
|
"isESM": true,
|
|
362
363
|
"relativePath": [
|
|
363
364
|
"lib",
|
|
@@ -1380,11 +1381,11 @@
|
|
|
1380
1381
|
"org:open:agent": {
|
|
1381
1382
|
"aliases": [],
|
|
1382
1383
|
"args": {},
|
|
1383
|
-
"description": "Use the --name flag to open an agent using
|
|
1384
|
+
"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.",
|
|
1384
1385
|
"examples": [
|
|
1385
|
-
"Open the agent with
|
|
1386
|
-
"Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent",
|
|
1387
|
-
"Open the agent in
|
|
1386
|
+
"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",
|
|
1387
|
+
"Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:",
|
|
1388
|
+
"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"
|
|
1388
1389
|
],
|
|
1389
1390
|
"flags": {
|
|
1390
1391
|
"json": {
|
|
@@ -1423,7 +1424,7 @@
|
|
|
1423
1424
|
"char": "n",
|
|
1424
1425
|
"name": "name",
|
|
1425
1426
|
"required": true,
|
|
1426
|
-
"summary": "
|
|
1427
|
+
"summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
|
|
1427
1428
|
"hasDynamicHelp": false,
|
|
1428
1429
|
"multiple": false,
|
|
1429
1430
|
"type": "option"
|
|
@@ -1473,8 +1474,10 @@
|
|
|
1473
1474
|
"pluginAlias": "@salesforce/plugin-org",
|
|
1474
1475
|
"pluginName": "@salesforce/plugin-org",
|
|
1475
1476
|
"pluginType": "core",
|
|
1477
|
+
"state": "beta",
|
|
1476
1478
|
"strict": true,
|
|
1477
|
-
"summary": "Open an agent in
|
|
1479
|
+
"summary": "Open an agent in your org's Agent Builder UI in a browser.",
|
|
1480
|
+
"enableJsonFlag": true,
|
|
1478
1481
|
"isESM": true,
|
|
1479
1482
|
"relativePath": [
|
|
1480
1483
|
"lib",
|
|
@@ -1813,5 +1816,5 @@
|
|
|
1813
1816
|
]
|
|
1814
1817
|
}
|
|
1815
1818
|
},
|
|
1816
|
-
"version": "5.
|
|
1819
|
+
"version": "5.2.0"
|
|
1817
1820
|
}
|
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
|
+
"version": "5.2.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
"@oclif/multi-stage-output": "^0.7.8",
|
|
10
10
|
"@salesforce/core": "^8.6.4",
|
|
11
11
|
"@salesforce/kit": "^3.2.3",
|
|
12
|
-
"@salesforce/sf-plugins-core": "^12.0.
|
|
13
|
-
"@salesforce/source-deploy-retrieve": "^12.
|
|
12
|
+
"@salesforce/sf-plugins-core": "^12.0.9",
|
|
13
|
+
"@salesforce/source-deploy-retrieve": "^12.8.1",
|
|
14
|
+
"@salesforce/ts-types": "^2.0.12",
|
|
14
15
|
"ansis": "^3.2.0",
|
|
15
16
|
"change-case": "^5.4.4",
|
|
16
17
|
"is-wsl": "^3.1.0",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
24
25
|
"@salesforce/plugin-command-reference": "^3.1.31",
|
|
25
26
|
"@salesforce/ts-sinon": "^1.4.29",
|
|
26
|
-
"eslint-plugin-sf-plugin": "^1.20.
|
|
27
|
+
"eslint-plugin-sf-plugin": "^1.20.12",
|
|
27
28
|
"moment": "^2.30.1",
|
|
28
29
|
"oclif": "^4.15.22",
|
|
29
30
|
"ts-node": "^10.9.2",
|
|
@@ -226,7 +227,7 @@
|
|
|
226
227
|
"exports": "./lib/index.js",
|
|
227
228
|
"type": "module",
|
|
228
229
|
"sfdx": {
|
|
229
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
230
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
230
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.2.0.crt",
|
|
231
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.2.0.sig"
|
|
231
232
|
}
|
|
232
233
|
}
|