diff --git a/packages/sfp-cli/src/ui/OrgInfoDisplayer.ts b/packages/sfp-cli/src/ui/OrgInfoDisplayer.ts index f3ef01d3e..e3cb0cbf4 100644 --- a/packages/sfp-cli/src/ui/OrgInfoDisplayer.ts +++ b/packages/sfp-cli/src/ui/OrgInfoDisplayer.ts @@ -50,21 +50,21 @@ export default class OrgInfoDisplayer { LoggerLevel.INFO, ); SFPLogger.log( - COLOR_TRACE(`cat ${scratchOrg.sfdxAuthUrl} > ./authfile`), + COLOR_TRACE(`echo ${scratchOrg.sfdxAuthUrl} > ./authfile`), LoggerLevel.INFO, ); SFPLogger.log( - COLOR_TRACE(`sfdx auth sfdxurl store --sfdxurlfile authfile`), + COLOR_TRACE(`sf org login sfdx-url --sfdx-url-file=authfile`), LoggerLevel.INFO, ); SFPLogger.log( - COLOR_TRACE(`sfdx force org open --u ${scratchOrg.username}`), + COLOR_TRACE(`sf org open --target-org=${scratchOrg.username}`), LoggerLevel.INFO, ); SFPLogger.printHeaderLine('', COLOR_HEADER, LoggerLevel.INFO); - + groupSection.end(); @@ -93,11 +93,11 @@ export default class OrgInfoDisplayer { fileOutputHandler.appendOutput(pathToMarkDownFile, `\n\nYou may use the following commands to authenticate to the org`,); - fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``); - fileOutputHandler.appendOutput(pathToMarkDownFile, `cat ${scratchOrg.sfdxAuthUrl} > ./authfile`); - fileOutputHandler.appendOutput(pathToMarkDownFile, `sfdx auth sfdxurl store --sfdxurlfile authfile`); - fileOutputHandler.appendOutput(pathToMarkDownFile, `sfdx force org open --u ${scratchOrg.username}`); - fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``); + fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``); + fileOutputHandler.appendOutput(pathToMarkDownFile, `echo ${scratchOrg.sfdxAuthUrl} > ./authfile`); + fileOutputHandler.appendOutput(pathToMarkDownFile, `sf org login sfdx-url --sfdx-url-file=authfile`); + fileOutputHandler.appendOutput(pathToMarkDownFile, `sf org open --target-org=${scratchOrg.username}`); + fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``); } @@ -153,4 +153,4 @@ export default class OrgInfoDisplayer { } -} \ No newline at end of file +}