Deploy and Retrieve Code
Retrieve and deploy org metadata by using the Command Palette or the Org Browser.
Say you want to change an existing Apex class or add a custom object to your production org. You first make and test these changes in a scratch org, check for conflicts, and then deploy the changes to another org for your team to access them. This ability to move changes between different Salesforce development environments, such as scratch orgs and sandboxes, for various stages of testing before production, is key to Salesforce development.
We support different deployment options based on your role and needs as a customer, system integrator, or independent software vendor (ISV) partner. For more information on deployment options, see Build and Release Your App in the Salesforce DX Developer Guide.
After testing your code, retrieve it to your local Salesforce project so that you can keep a single source of truth in source control.
With conflict detection turned on, you don't have to worry about accidentally overwriting changes from other developers in the org. Track changes by easily viewing changes between your local files and your default org at any time.