After successfully completing a checkOnly deployment, is it possible to programmatically run the "Quick Deploy" action?


sfdx force:mdapi:deploy -d dist/my-pkg -w 5000 -c

enter image description here

I don't see anything via the metadata API, but maybe there is a less "official" way to achieve this?


There is --validatedeployrequestid or -q flag for force:mdapi:deploy

-q, --validateddeployrequestid=validateddeployrequestid request ID of the validated deployment to run a Quick Deploy

To run quick deploy of a recently validated package, use -q with the validated ID.

sfdx force:mdapi:deploy -q <validationRequestId> -w -1

Also in Metadata API you can use deployRecentValidation() method

| improve this answer | |
  • epic! Not sure how I missed that – NSjonas Nov 15 '19 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.