Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix(orginfo): add front door display url to logint to the box
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Jun 6, 2023
1 parent 56be0ed commit 0562998
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions packages/sfpowerscripts-cli/src/ui/OrgInfoDisplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,29 +97,12 @@ export default class OrgInfoDisplayer
COLOR_KEY_MESSAGE(org.getUsername()),
]);
table.push([
COLOR_HEADER(`Auth URL`),
COLOR_KEY_MESSAGE(org.getConnection().getAuthInfo().getSfdxAuthUrl()),
COLOR_HEADER(`Front Door URL`),
COLOR_KEY_MESSAGE(org.getConnection().getAuthInfo().getOrgFrontDoorUrl())
]);
SFPLogger.log(table.toString(), LoggerLevel.INFO);

SFPLogger.log(
COLOR_TRACE(
`You may use the following commands to authenticate to the org`,
),
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`cat ${org.getConnection().getAuthInfo().getSfdxAuthUrl()} > ./authfile`),
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`sfdx auth sfdxurl store --sfdxurlfile authfile`),
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`sfdx force org open --u ${org.getUsername()}`),
LoggerLevel.INFO,
);


SFPLogger.log(
COLOR_HEADER(
Expand Down

0 comments on commit 0562998

Please sign in to comment.