-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorize An Org failed because force:auth:web:login is not a sfdx command #2869
Comments
I resolved the same issue with the plugin Got solution here forcedotcom/cli#757 (comment) |
Running |
Thank you @4388331. I was also facing the error while running the command 'Authorize dev hub' . After running command "sfdx plugin:install @salesforce/plugin-auth@1.4.3" on CMD, it worked fine for me. |
This fixed the issue for me as well! Thanks for sharing! |
Thanks @4388331 - worked for me as well! |
as noted above, latest CLI resolved this. |
Thanks @4388331. |
Thank you @4388331 ... It works for me :D |
Thanks for the solution. It worked for me. |
I had also got the same issue. Then ran "sfdx plugin:install @salesforce/plugin-auth@1.4.3" Gave 'y' for the question "Did you mean plugins:install? [y/n]". |
Ran "sfdx plugin:install @salesforce/plugin-auth@1.4.3" |
I was having the same issue, for me, just "sfdx update" in cmd worked. |
For me the issue was fixed when I ran "sfdx update". Please note it worked when I used x in sfdx and not c! |
Yes correct "sfdx update" indeed. |
"sfdx update" worked even in 11/2023 on version 7.209.6 |
sfdx update worked for me Thank you..! |
worked for me as well. |
I got this error in Macbook, I tried Bothe the commands |
worked for me too, thank you for the solutions! |
Summary
When I was following the instruction in this tutorial: https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce, the
Authenticate to Your Playground
step failed. And in the output console I sawI believe it's caused by the new version sfdx cli deprecates the force versions of these commands
Steps To Reproduce:
SFDX: Authorize an Org
in VSCodeExpected result
The org is authorized successfully
Actual result
authorization failed with the error
Run sfdx help force for a list of available commands.
Additional information
VS Code Version: Version: 1.51.1
SFDX CLI Version: sfdx-cli/7.83.0-eba9c6a927 darwin-x64 node-v12.18.3
OS and version: v50.13.0
The text was updated successfully, but these errors were encountered: