When I directly go to the url https://test.salesforce.com/?un=test%40example.com.sbname (using @
instead of %40
works as well) from a browser, sandbox login page opens up with prefilled username value test@example.com.sbname
.
If I use the command,
sfdx force:auth:web:login -r https://test.salesforce.com/?un=test%40example.com.sbname
login page opens up with additional text
Is there a way to do prevent/remove those added parameters and open a sandbox login page just like the first example?
--setdefaultusername
parameter instead--setdefaultusername
doesn't accept any argument and looking at its description, I am not sure if I can use that for my case.Sets the authenticated org as the default username that all commands run against.
sfdx force:auth:web:login -r https://test.salesforce.com/?un=test%40example.com.sbname&
sfdx force:auth:web:login -r "https://test.salesforce.com/?un=test%40example.com.sbname&"
in powershell also resulted as above.