Newer Version Available

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

Release Your App to Production

Now that all your tests have passed in the Full sandbox, you’re ready to deploy to production.
  1. In your deployment run list, complete any pre-deployment tasks.
  2. Authorize your production org.
  3. Set up the quick deploy.
    1sfdx force:source:deploy --checkonly --sourcepath force-app --targetusername prod-org --testlevel RunLocalTests

    This command returns a job ID that you reference in the quick deploy.

  4. After the tests are run, verify that all the Apex tests have passed. Be sure that the tests cover at least 75% of the code being deployed.
  5. Run the quick deploy:
    1sfdx force:source:deploy --targetusername prod-org --validateddeployrequestid jobID
  6. Open the production org, then perform any post-deployment tasks listed in the deployment run list.