Salesforce CLI (SFDX) can be now used with Sandbox/Developer Edition Org (without source control). Yes!! you heard me right, there is no need to have Scratch org. Currently this feature is in Beta but you can use with DE orgs and give it a try. Let me take you through small setup and usage tour. So first thing first you need to install and configure below Software’s / Packages before we start.
VS Code Editor – https://code.visualstudio.com/download
Install Salesforce CLI – https://developer.salesforce.com/tools/sfdxcli
After you install VS Code Editor, you need to install Salesforce Extension in VS Code. Go to extension search ‘Salesforce Extensions for Visual Studio Code‘ click ‘Install’. This will install all required plugins for Salesforce. Need to reload VS Code when installations are complete.
Follow steps to setup your org in VS Code Editor.
Open VS Code Editor
Open command palette from view menu or Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows or Linux).
To create new SFDX project run a command – ‘SFDX: Create Project with Manifest’.
Enter your project name and click create project.
Now you need to authorize org with editor with command – ‘SFDX: Authorize an Org’.
Note: Before you authorize a sandbox org, edit your sfdx-project.json file and set your sfdcLoginUrl value to https://test.salesforce.com.
It will open a login page in browser enter credentials and click allow.
To retrieve source from an org without source tracking, right-click a manifest, a source file, or in the Visual Studio Code explorer (see image below). Select SFDX: Retrieve Source from Org.
Once finished all files are retrieved you can continue with development.
|VS Code File Explorer.|
To Retrieve, Deploy and delete you can right click on directory/file like displayed in below picture.
|Retrieve, Deploy and delete Files|
Read more about VS Code https://en.wikipedia.org/wiki/Visual_Studio_Code