You need to sign in to do that
Don't have an account?

Can't authenticate with cli
Hello. I am trying to learn my way around the CLI. It is properly installed. I cannot seem to authenticate with any org.
Using the command
On my browser I get: 'local host did not send any data'
On the terminal I get:
Using the command
sfdx force:auth:web:loginThe browers will open a login page at the default login.salesforce.com. I enter the credentials and the get the following messages.
On my browser I get: 'local host did not send any data'
On the terminal I get:
ERROR: Command failed with response. - security: SecKeychainItemCreateFromContent (<default>): The user name or passphrase you entered is not correct. . Try this: Determine why this command failed to set an encryption key for user andykallio: [/usr/bin/security add-generic-password -a local -s sfdx -w 7e91f8815b82c8172111410fa91dc6a8].
I have tried this with my production, and sanbox orgs and I am definitely entering the right username and password.
I have uninstalled/reinstalled the cli.
My IT guy says there are not any IP restrictions that he is impossing.
Any ideas would be really appreciated. Thanks!
Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again.
All Answers
Greetings to you!
First, delete all the references to the CLI and install it again.
Delete all the references to the CLI with the following commands:
And then install it again:
https://developer.salesforce.com/tools/sfdxcli
Also, make sure you don't have a firewall or proxy that is interfering. The URL should work under normal circumstances. And check whether loginUrl is your custom domain.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again.