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
Note
Before you submit your issue, make sure that:
You're using the latest version of Salesforce CLI.
You've searched both open and closed issues for related posts.
You've used the doctor command to diagnose common issues.
You understand that GitHub Issues don't adhere to any agreement or SLA.
If you require immediate assistance, use official channels such as Salesforce Customer Support.
Summary
Performing a login via sf org login web --set-default-dev-hub --alias dev-hub command hangs on WSL2
Steps To Reproduce
Install the CLI on WSL2 (Ubuntu 24.04.1 LTS)
cd /tmp
curl -o sf-linux-x64.tar.gz https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.gz
tar xf sf-linux-x64.tar.gz
cp -r sf /usr/local/
export PATH=$PATH:/usr/local/sf/bin
Log in
sf org login web --set-default-dev-hub --alias dev-hub
mario:~$ sf org login web --set-default-dev-hub --alias dev-hub
(node:470) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Workaround
Currently i am able to work around this by sf org login device --set-default-dev-hub --alias dev-hub
Things I tried, without success
Adding the --browser=firefox or --browser=chrome or flag. It still hangs with those.
System Information
Ubuntu 24.04.1 LTS
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.2314
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.
Salesforce CLI works best within the native Windows command prompt (cmd.exe) and the Microsoft Windows PowerShell. We don’t recommend using Salesforce CLI with a Linux terminal emulator, such as Windows 10 Subsystem for Linux, cygwin, or MinGW, because support for bugs is limited.
Note
Before you submit your issue, make sure that:
doctor
command to diagnose common issues.Summary
Performing a login via
sf org login web --set-default-dev-hub --alias dev-hub
command hangs on WSL2Steps To Reproduce
sf org login web --set-default-dev-hub --alias dev-hub
Expected result
Opens https://login.salesforce.com/ for an interactive browser login or at least prints an URL to open in a broser.
Actual result
Hangs with the following console output
Workaround
Currently i am able to work around this by
sf org login device --set-default-dev-hub --alias dev-hub
Things I tried, without success
Adding the
--browser=firefox
or--browser=chrome
or flag. It still hangs with those.System Information
The text was updated successfully, but these errors were encountered: