SFDX: Authorize an Org (Allow Selection of Org Login Url)
See original GitHub issueSummary
Difficult / impossible to follow the wiki: https://github.com/forcedotcom/salesforcedx-vscode/wiki/Develop-Against-Any-Org-in-Visual-Studio-Code
to Auth to a Sandbox from within VSCode
Steps To Reproduce:
- Follow the wiki article
- run
SFDX: Authorize an Org
command in VSCode - enter a sandbox username
- it takes you to login.salesforce.com
Expected result
either it intelligently selects the domain, or switching the domain works
Actual result
- tried using custom domain without much luck
- tired passing argument
-r https://test.salesforce.com
without luck
Additional information
VS Code Version:
SFDX CLI Version:
OS and version:
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
SFDX: Authorize an Org in Visual code studio.
Hii all, I am facing issue in SFDX: Authorization. As"SFDX: Authorize an Org " Command is not showing in my option. What to...
Read more >SFDX: Authorize an Org hangs after login attempt
I login using the login I've been using successfully since yesterday, I get the prompt to Allow Access, and it just hangs. I...
Read more >Salesforce DX Org Authorizations - Amplify DX Documentation
Authorize the org whose auth URL you need using sfdx force:auth:web:login -a OrgAlias . · Log in with your credentials and authorize the...
Read more >Setup for Salesforce CLI authorization of an Org through CLI ...
Use the sfdx commands to authorize an organization through VS code. ... Use -a in your auth command to login to the default...
Read more >SFDX Org Authorization ☑️ - benahm - Medium
In order to authorize an org, just run the following command. sfdx ... you'll get the page below asking you to allow access...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@evanmcd The error
Unknown config name ...
comes from usingsfdx force:config:set
. You can not usesfdcLoginUrl
as a config variable. Instead, that needs to go in yoursfdx-project.json
file. If you want to set a config var, you can trysfdx force:config:set instanceUrl=https://test.salesforce.com
. I think the auth commands will use the following order:--instanceurl
flag on the commandssfdcLoginUrl
in thesfdx-project.json
fileinstanceUrl
inforce:config:set
SFDX_INSTANCE_URL
envvar@evanmcd - Is the
sfdcLoginUrl
property at the top level of yoursfdx-project.json
file? For example: