I just downloaded the force.com cli and executed the command force login in command line but the login window is not popping up. It just hangs until i press ctrl+c. How should i proceed ?
The source code for the CLI tool is available on GitHub. You could use that to investigate why the popup isn't occurring. In particular, start from the ForceLogin method.
You could also raise an issue there to get product specific support.
Maybe try the following syntax to do a credential based login. It might be that you're having problems popping up the browser window.
force login -u <username> -p <password>
1Turns out the firewall was blocking it. I just had to allow access to it. Thanks for the help though. :) Mar 30, 2016 at 17:20
1No equals sign: force login -i <org> -u <username> -p <passwordtoken>– EmmettApr 27, 2021 at 19:40