You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @geksiong 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).
A few more things to check:
Make sure you've provided detailed steps to reproduce your issue.
A repository that clearly demonstrates the bug is ideal.
Make sure you've installed the latest version of Salesforce CLI. (docs)
Better yet, try the rc or nightly versions. (docs)
Try running the doctor command to diagnose common issues.
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
I extracted part of the output below. I could login fine on an Ubuntu desktop with Chrome as my default browser.
I don't have my development tools on the Windows host - all my development setup is inside WSL2. If I were inside a Linux VM, I would understand login web is not possible I will have to use JWT since there's no GUI. I guess WSL2 is a different kind of environment where integration with programs on the Windows host is possible.
@geksiong I've got the same issue as yours recently, i managed to get it work with a workaround.
First be sure to have wslu installed on your wsl distro.
The next step is to disable networkingMode mirrored mode and go back to default NAT mecanism.
Open the configuration file: %USERPROFILE%/.wslconfig and comment or remove networkingMode and hostAddressLoopback changes.
then wsl --shutdown in powershell and rerun with wsl .
the sf org login web flow should work back as expected opening the windows Browser.
Once the org reauthenticated you can restore your wsl configurations back.
@guillaume-dore Thanks, that worked perfectly! I must've switched to WSL mirrored mode previously somehow. The default NAT mode seems to work well, I'll probably keep it at NAT mode.
Activity
github-actions commentedon Sep 4, 2026
Hello @geksiong 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of
version --verbose --jsonfor the CLI you're using (sforsfdx).A few more things to check:
rcornightlyversions. (docs)doctorcommand to diagnose common issues.Thank you!
github-actions commentedon Sep 4, 2026
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
iowillhoit commentedon Sep 8, 2026
Hey @geksiong, are you only seeing this issue in WSL2?
Are you able to reproduce this in powershell or command prompt?
Could you try running your
sf org login webcommand in wsl2 with the--dev-debugflag? I am curious to see exactly where it is hanging.geksiong commentedon Sep 9, 2026
I extracted part of the output below. I could login fine on an Ubuntu desktop with Chrome as my default browser.
I don't have my development tools on the Windows host - all my development setup is inside WSL2. If I were inside a Linux VM, I would understand
login webis not possible I will have to use JWT since there's no GUI. I guess WSL2 is a different kind of environment where integration with programs on the Windows host is possible.github-actions commentedon Sep 17, 2026
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.
geksiong commentedon Sep 22, 2026
Hi just wondering if there are any updates regarding this?
github-actions commentedon Sep 30, 2026
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.
guillaume-dore commentedon Oct 8, 2026
@geksiong I've got the same issue as yours recently, i managed to get it work with a workaround.
First be sure to have wslu installed on your wsl distro.
The next step is to disable networkingMode mirrored mode and go back to default NAT mecanism.
the sf org login web flow should work back as expected opening the windows Browser.
Once the org reauthenticated you can restore your wsl configurations back.
geksiong commentedon Oct 9, 2026
@guillaume-dore Thanks, that worked perfectly! I must've switched to WSL mirrored mode previously somehow. The default NAT mode seems to work well, I'll probably keep it at NAT mode.