sfdx force:org:create -s -f ./config/project-scratch-def.json -a AppScratch

using above command for scratch org creation gives error on proxy

ERROR: location is not defined.

enter image description here

i have tried to set http proxy and https proxy according to the below salesforce doccumentation Use the Salesforce CLI from Behind a Company Firewall or Web Proxy

please share if someone has more knowledge on it or has faced the similar issue

1 Answer 1


I think you have included the wrong location.

You should change your command from

sfdx force:org:create -s -f ./config/project-scratch-def.json -a AppScratch


sfdx force:org:create -s -f /config/project-scratch-def.json -a AppScratch

Just remove the dot before the config path and this will solve your problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .