We donot have sfdx enabled in our instances. Can I use vscode IDE and create a proejct from sandbox with any of the salesforce extensions.

I see the documentation around creating a scratch org, then retrieving and deploying the components using sfdx command. But is there a way to create a project without devhub enabled in envrionemnts. I belive I would not be able to use sfdx with my sandbox environmets with out devhub enable.

Please advise.

2 Answers 2


DevHub is not a requirement for sfdx. You can use "Create New Project" or "Create New Project From Manifest", then authorize against your production/development/sandbox orgs. If you wanted to do this with terminal commands, it would look like this:

sfdx force:project:create -n desired-project-name
cd desired-project-name
sfdx force:auth:web:login -a desired-alias -r https://someinstance.salesforce.com -s

You'll want to read the documentation for more details, but in summary, you can use the "Retrieve from Org" and "Deploy to Org" commands to deploy to most orgs. You'll need to convert to the metadata API format for deployment to production, however (force:source:convert), or create change sets/packages to manage your metadata.

In the future, it will likely be possible to use "Deploy to Org" to directly deploy to production without the conversion step.

  • Thanks a lot. It worked. It takes some time to get used to commands to retrive, convert and deploy back to salesforce. I guess I would be missing ctrl+s shortcut which used to save the changes back to salesforce from other editors. The advantage I see is that I donot have to pay for plugins and IDEs.
    – Venkata
    Commented Apr 2, 2019 at 18:05
  • 1
    @Venkata The mo-dx-plugin can help with the Ctrl-S feature if you're interested in adding it.
    – sfdcfox
    Commented Apr 2, 2019 at 18:14

You can use vscode extensions for salesforce without need to enable Dev Hub or scratch org .

There is a solid documentation on this .

Here are few things you would need to consider if you are moving away from the mavensmate or eclipse

  1. There is need for you to create package.xml and you will retrieve metadata using that .

  2. You will see the source format is in DX source format than the traditional metadata format . DX Source format has additional breakdown of object metadata making it easier to manage object metadata .

  • 1
    Thanks Mohith. The documentation links helped. I was under the wrong impression that SFDX and CLI works only if devhub is enabled. Yes, I did notice the break down of the components in objects.
    – Venkata
    Commented Apr 2, 2019 at 18:08

You must log in to answer this question.

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