0

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

0

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

to

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.