You can leverage JQ tool to quickly grab the SFDX Auth URL from the command using --json switch. Still you need to authorize the env sfdx force:auth:web:login -a al -r https://test.salesforce.com for sandbox or skip -r parameter for production/Developer Edition environment and substitute al with actual desired alias for the org; and then use --json parameter and pass the result to jq command sfdx force:org:display -u al --verbose --json | jq '.result.sfdxAuthUrl' -r To install jq, use brew install jq on MacOS. Share Improve this answer Follow answered Jul 19, 2023 at 15:35 Patlatus 17.4k1313 gold badges7979 silver badges182182 bronze badges Add a comment 0 Complementary info with respect to @patlatus answer: The following command can help to obtain the SFDX Auth URL in a temporary file in your local folder. The authorization to the environment is a pre-requisite here as well. sfdx org:display --target-org alias --verbose --json > authFile.json where alias is your org alias and authFile.json is the file generated after running the command. Then open the authFile.json file to retrieve the sfdxAuthUrl value. You can delete the file locally afterwards
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter