Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
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
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?
asked Oct 23, 2019 at 11:54
48933 silver badges1616 bronze badges
--instanceurl param is just supposed to point to the right endpoint environment. I don't think you can achieve what you're looking for within the CLI command itself.
Official Documentation for
auth:web:login doesn't give URL param options as an example, nor suggests that this could be done
- The login URL of the Salesforce instance that the org lives on.
answered Nov 11, 2019 at 14:55
Brian MillerBrian Miller
5,00733 gold badges3030 silver badges6262 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
--setdefaultusernamedoesn'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.