forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

SFDX: Authorize an Org failed to runv #5536

Closed Tanishagodha closed 5 months ago

Tanishagodha commented 5 months ago

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

  1. This is step 1.
  2. This is step 2. All steps should start with '1.'

Expected result

Describe what should have happened.

Actual result

Describe what actually happened instead.

Additional information

Feel free to attach a screenshot.

Salesforce Extension Version in VS Code:

SFDX CLI Version:

OS and version:

VS Code version:

daphne-sfdc commented 5 months ago

Hi @Tanishagodha,

Please update this issue and provide us with all the details requested in the template of the issue. We ask for them precisely to have some context, because otherwise it is almost impossible to help users. Thanks in advance!

EEDAG commented 5 months ago

Hi everyone,

I am getting below error when i try to connect my org. Any helps would welcome

11:55:47.420 sf org:login:web --alias VSCodePlayground --instance-url https://login.salesforce.com --set-default 'sf' is not recognized as an internal or external command,

peternhale commented 5 months ago

@EEDAG this error indicates that the Salesforce CLI is either not installed or on the path.

We have recently dropped support for the previous cli, sfdx, which requires all customers to move to the the sf cli. Please see Move from sfdx (v7) to sf (v2) for instructions on how to migrate.

EEDAG commented 5 months ago

Hi @peternhale Salesforce CLI installed only in Visual Studio Code. Should have it been installed in computer as well?

EEDAG commented 5 months ago

@peternhale actually now I have different issue regards of Java version needs to be at least version 11.

peternhale commented 5 months ago

@EEDAG java 11 is the minimum version we support. Please install either java 11 or java 17 to continue.

peternhale commented 5 months ago

@EEDAG I am going to close this issue. Please reopen or file a new issue if you continue having difficulty.