Salesforce DX is the new IDE provided by Salesforce. So now we can use SFDX with Non Scratch Org. Previously we can use SFDX with environment hub and production orgs. Where we need to create scratch org to use it. But now we can use it with any org (Developer Edition / Sandbox). This makes it more useful as this is official IDE by Salesforce so we will see some great enhancement in it.
There are many custom plugins that are also available which we can use with salesforce official plugin. If you have not used it before you can check my post to get started and configure it.
Today we will check how we can use SFDX with Non Scratch Org. So I will be sharing step by step guide here:
SalesforceDX for Non–Scratch Org Steps
- Firstly, If you have already installed the SFDX CLI you need to upgrade it to the latest version. So in terminal type sfdx update and update your CLI.
- Secondly, we will create a blank project. So type Ctrl + Shift + P and search for > SFDX: Create project with Manifest.
- In the next screen we will get three options. Standard, Empty, and Analytics. Choose Standard. > Give the project name and select folder and it will create one folder as below.




- Thirdly, we need to authorize our org. For this we need to use SFDX: Authorize an Org Command. Select the Org type >Default production, Sandbox, or custom. Give an org alias and click enter.
- Finally we are ready to fetch metadata from Source org. So for this right-click on package.xml and select SFDX: Retrieve Source from Org. It will take some time based on org metadata.



- Once we get all the metadata in the editor. We can make changes in code. Once we are done our changes. We can select a single file, manifest, all files and use the command SFDX: Deploy source to org



We can enable autosave as well. Go to setting and search for Push-or-deploy-on-save and enable this. So once you save any file it will auto deploy it to org.
- We can verify the code change in our org as well.



As we can see just following some simple steps we can use SFDX CLI with our org. So you can use it in your development and can keep a local backup or quickly transfer metadata from one org to another switch between multiple projects easily.
Like My Facebook Page for more updates.
Did you want to add anything or have any question, let me know in the comments section. Happy programming 🙂