Salesforce Fact #418 | SFDX force:source vs force:mdapi

The force:source:deploy command is not transactional and attempts to deploy all components. If any component has errors, it skips those and deploys all changes that are valid and compile. On the other hand, the force:mdapi:deploy command deploys all the components if none of the component have errors. If any component has errors, it rolls back the entire deployment. Thus, it maintains integrity during deployment.

Trailhead module reference: https://trailhead.salesforce.com/en/content/learn/modules/org-development-model

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow