Skip to content

Commit e65e9dd

Browse files
fix: change --name to --api-name for org open agent W-18459941 (#1420)
* fix: change --name to --api-name for org open agent * docs: fix examples * docs: fix examples * Update open.agent.md --------- Co-authored-by: Juliet Shackell <[email protected]>
1 parent 28d3c23 commit e65e9dd

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

command-snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"command": "org:open:agent",
143143
"flagAliases": ["urlonly"],
144144
"flagChars": ["b", "n", "o", "r"],
145-
"flags": ["api-version", "browser", "flags-dir", "json", "name", "private", "target-org", "url-only"],
145+
"flags": ["api-name", "api-version", "browser", "flags-dir", "json", "private", "target-org", "url-only"],
146146
"plugin": "@salesforce/plugin-org"
147147
},
148148
{

messages/open.agent.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Open an agent in your org's Agent Builder UI in a browser.
44

55
# description
66

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.
7+
Use the --api-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.
88

99
To generate the URL but not launch it in your browser, specify --url-only.
1010

@@ -14,17 +14,17 @@ To open Agent Builder in a specific browser, use the --browser flag. Supported b
1414

1515
- Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:
1616

17-
$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent
17+
$ <%= config.bin %> <%= command.id %> --api-name Coral_Cloud_Agent
1818

1919
- Open the agent in an incognito window of your default browser:
2020

21-
$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:
21+
$ <%= config.bin %> <%= command.id %> --private --api-name Coral_Cloud_Agent:
2222

2323
- Open the agent in an org with alias MyTestOrg1 using the Firefox browser:
2424

25-
$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
25+
$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --api-name Coral_Cloud_Agent
2626

27-
# flags.name.summary
27+
# flags.api-name.summary
2828

2929
API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.
3030

src/commands/org/open/agent.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ export class OrgOpenAgent extends OrgOpenCommandBase<OrgOpenOutput> {
1818
public static readonly summary = messages.getMessage('summary');
1919
public static readonly description = messages.getMessage('description');
2020
public static readonly examples = messages.getMessages('examples');
21-
public static readonly state = 'beta';
2221

2322
public static readonly flags = {
2423
...OrgOpenCommandBase.flags,
2524
'target-org': Flags.requiredOrg(),
2625
'api-version': Flags.orgApiVersion(),
27-
name: Flags.string({
26+
'api-name': Flags.string({
2827
char: 'n',
29-
summary: messages.getMessage('flags.name.summary'),
28+
summary: messages.getMessage('flags.api-name.summary'),
3029
required: true,
3130
}),
3231
private: Flags.boolean({
@@ -54,7 +53,7 @@ export class OrgOpenAgent extends OrgOpenCommandBase<OrgOpenOutput> {
5453

5554
const [frontDoorUrl, retUrl] = await Promise.all([
5655
buildFrontdoorUrl(this.org, this.connection, true),
57-
buildRetUrl(this.connection, flags.name),
56+
buildRetUrl(this.connection, flags['api-name']),
5857
]);
5958

6059
return this.openOrgUI(flags, frontDoorUrl, encodeURIComponent(retUrl));

0 commit comments

Comments
 (0)