Is it possible to deploy metadata with sfdx to orgs that don't have source tracking, such as sandoboxes, either with sfdx force:source:deploy or sfdx force:mdapi:deploy?
The first one uses metadata in source format, the second one uses Metadata API. With the second one it is possible to validate the deploy without saving to the org using the --checkonly option. Is There a similar option for the source format?

1 Answer 1


The force:source:deploy command does not have this flag . Note that the force:source:deploy was in BETA and salesforce plans to heavily change this in future and may also deprecate . You can see the proposed change specs here .

Since mdapi commands is what that will persist in the future I would go with it .


From summer 19 looks like force:source:deploy and force:source:retrieve commands will be fully supported with same feature set as mdapi command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .