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.
You have two options to deploy your metadata to production using Salesforce CLI. For information on all command options, view the command --help.
  • Deploy your metadata directly to your production org using the source:deploy command.
  • Convert your local DX project files to metadata format, then use the mdapi:deploy command.
  1. In your deployment run list, complete any pre-deployment tasks.
  2. Authorize your production org.
  3. If you plan to use the mdapi:deploy command, convert your files from source format to metadata format.
  4. Set up the quick deploy.
    Salesforce CLI Command Command-Line Example

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

  5. 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.
  6. Run the quick deploy:
    Salesforce CLI Command Command-Line Example
  7. Open the production org, then perform any post-deployment tasks listed in the deployment run list.