sfdx is not recognized as an internal or external command

I am trying to learn about Salesforce DX (Developer Experience). For most of the salesforce DX tasks, we require using salesforce command line interface such as authorization, creating scratch org. etc. But I am getting this error message:

Error: ‘sfdx’ is not recognized as an internal or external command, operable program or batch file

How can I fix it?

Answer

1.Verify the “Salesforce CLI” installed successfully or not

Go to → C:\Program Files\Salesforce CLI\bin → Verify sfdx.exe should be availble

2.Add this path to environment variables “Path”
Go To → Windows Search → Edit environment variables for your account
enter image description here

Attribution
Source : Link , Question Author : amit patil , Answer Author : David Reed

Leave a Comment