+ Start a Discussion
Daniel RobertsDaniel Roberts 

Can't Create Scratch Org with GIT Bash

Hey everyone, read some of the threads on here, but can't seem to get my Git to complete the tasks. Any one find a post that solved this error for them? 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

Thanks. 
Here is the order of commands that I am running. 
$ sfdx
Usage: sfdx COMMAND

Help topics, type sfdx help TOPIC for more details:

 force    tools for the Salesforce developer
 plugins  create a new sfdx-cli plugin
 update   update the sfdx CLI


$ cat config/project-scratch-def.json
{
    "orgName": "Salesforce DX Company",
    "edition": "Developer",
    "orgPreferences" : {
        "enabled": ["S1DesktopEnabled"]
    }
}

$ sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Thanks in advance.  
Raj VakatiRaj Vakati
Give complete path and try 
 
sfdx force:org:create -s -f C:\DXPROD\myworkconfig\project-scratch-def.json -a "default scratch org"