[SalesForce] SFDX: Authorize an Org failed to run in VSCODE

SFDX: Authorize an Org failed to run in VS Code:

I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error.

SFDX: Authorize an Org failed to run

enter image description here

Best Answer

  1. Verify if salesforce CLI is installed successfully or not .
  2. Add the path of the Salesforce CLI to the environmental variables.

Please follow the below article to install and set the path for the Salesforce CLI.

Salesforce CLI Installation steps

steps for setting up VSCODE

Related Topic