What is SFDX-Git-Delta (SGD)?
mainSFDX-Git-Delta is a Salesforce CLI plugin designed to optimize source deployments by:
- Speeding up deployments: It identifies only the metadata that has changed since a specific reference commit, allowing for incremental deployments instead of full deployments.
- Automating destructive deployments: It automatically builds the
destructiveChanges.xmlmanifest based on metadata that has been deleted or renamed in the Git history.
Ideal Use Cases
SGD is best suited for Technical Architects and Developers who meet these three conditions:
- The Salesforce project uses a Git repository as the source of truth.
- The project uses the Source (DX) format.
- The metadata is unmanaged (not building managed or unlocked packages).
SGD is primarily intended to be used within a CI/CD pipeline (e.g., GitHub Actions, GitLab CI, Jenkins, Azure DevOps) to handle incremental deployments to Salesforce orgs.