Newer Version Available

This content describes an older version of this product. View Latest

Release Your App to Production

After you convert your source to Metadata API format and package metadata from one org, you can release your app in a different org. You can specify tests to run after deployment and indicate whether to roll back the deployment if there are errors.

You can deploy or retrieve up to 10,000 files at once. The maximum size of the deployed or retrieved .zip file is 400 MB (39 MB compressed). If either limit is exceeded, the operation fails.

To support the needs of continuous integration and automated systems, the --rollbackonerror parameter of the force:mdapi:deploy command defaults to true.

Note

  1. To release your .zip package of metadata to the target org, enter the following command with a list of the required tests.
    sfdx force:mdapi:deploy -d mdapi_output_dir/ -u "target_username" -l RunSpecifiedTests -r test1,test2,test3,test4
    The username can be the org username or an alias.