Sub topic 9
Doing it in Setup: Deployment Status and change sets
This chapter shows how to validate and quick deploy without the CLI, using change sets and the Deployment Status page in Setup. It assumes you have read the earlier chapters on test levels, code coverage, and quick deploy eligibility. It also assumes you know what a sandbox and a production org are, and that you can open Setup in both. The CLI examples in this chapter assume sf is installed and authorized, but you can follow the Setup steps without it.
Why learn the Setup route
Many teams still ship through change sets, and some admins have no access to a terminal. Setup also gives you a view of every deployment in the org, whatever tool started it. A validation started from the CLI, an IDE, or a CI job appears on the same page as one started from a change set. The job ID is the same, so you can start a validation in one tool and quick deploy it from another.
The concepts do not change:
- A validation runs the deployment checks and the tests, then rolls everything back.
- A quick deploy promotes a recent, successful validation without running the tests again.
Only the buttons are different.
Where things live in Setup
Three Setup pages matter for this workflow. Use the Quick Find box and type "Deploy" to find them.
| Setup page | Org where you use it | What it is for |
|---|---|---|
| Outbound Change Sets | Source org (usually a sandbox) | Build a change set by choosing components, then upload it to a target org |
| Inbound Change Sets | Target org (for example production) | See uploaded change sets, validate them, and deploy them |
| Deployment Status | Target org | Monitor in-progress, pending, succeeded, and failed deployments, and start a quick deploy |
Change sets only move between orgs that are connected. An admin must authorize the connection under Deployment Settings in the target org, so that the source org can upload to it. If your target org does not appear in the upload list, check the deployment connection before you look anywhere else.
How a change set differs from a CLI deployment
A change set is a named list of components that you pick by hand in the source org. It is not a manifest file in version control, and a few consequences follow:
- You choose components through the UI, using Add and View/Add Dependencies. Nothing stops you from forgetting a dependency until the validation fails.
- You cannot choose a test level. The target org decides, using its defaults for that kind of org.
- A change set cannot delete components in the target org. If the release needs a deletion, you need the Metadata API or the CLI with a destructive changes manifest.
- Once uploaded, a change set cannot be edited. If you need to fix it, you clone it, change the clone, and upload again. Cloning creates a new change set, so the earlier validation does not carry over to it.
The test behavior in a production org matches what you saw in the earlier chapter on test levels. When the change set contains Apex classes or triggers, the production org runs all local tests. When it contains no Apex, no tests are required. A sandbox target does not require tests, and quick deploy only applies where tests ran. In practice, you will see Quick Deploy only after validating in production.
The change set workflow, step by step
The flow has two halves. One half happens in the source org and the other in the target org.
In the source org
- Open Setup > Outbound Change Sets and click New.
- Give the change set a name you will recognize later, such as
2026-12-Release-AccountService. - Click Add under Change Set Components, choose a component type such as Apex Class, and select the components.
- Click View/Add Dependencies and add what the page suggests. This step catches many failures that would otherwise show up only during validation.
- Click Upload and pick the target org.
Uploading can take a few minutes. Wait until the change set appears in the target org before you move on.
In the target org
- Open Setup > Inbound Change Sets. The uploaded change set appears under "Change Sets Awaiting Deployment".
- Open it and review the component list. Check that every component you expect is there.
- Click Validate. The org starts a validation-only deployment.
- Open Setup > Deployment Status to follow the progress.
Validation does not save any component, and it does not change the org's metadata. It does create a deployment record, which is why it shows up in the status page.
Reading Deployment Status
Deployment Status is the one page that shows what is happening to metadata in the org. It has these sections:
- In Progress Deployments, with a progress bar for components and for tests.
- Pending Deployments, which wait in a queue because only one deployment can run at a time in an org.
- Succeeded Deployments, which include successful validations.
- Failed Deployments, which include failed validations.
- Canceled Deployments, for jobs stopped by a user.
For an in-progress job you can click Cancel. For any finished job, the details view lists component errors and test failures, and, for failed tests, the stack trace. Coverage warnings are listed there too.
The details view is the UI equivalent of sf project deploy report. If you are comparing the two, the same job appears in both. The CLI output shows the job ID in the Id field. In Setup, the ID is the 0Af value in the URL of the deployment detail page, and you can copy it from there when you need it.
sf project deploy report --job-id 0AfXXXXXXXXXXXXXXX --target-org prodThis command is useful as a cross-check. If the UI says a validation succeeded and the CLI says it failed, you are probably looking at two different job IDs, or at two different orgs.
Running a quick deploy from Setup
Quick deploy appears in two places, and both start the same operation.
- Deployment Status. In Succeeded Deployments, a validation that is still eligible shows a Quick Deploy link or button next to its row.
- The inbound change set. After a successful validation, the change set's detail page shows a Quick Deploy button.
Click it, confirm the prompt, and the deployment starts. The job then appears under In Progress Deployments and moves to Succeeded Deployments when it finishes. The tests do not run a second time, so the deployment finishes much faster than the validation did. The remaining time goes to saving the components and recompiling Apex.
If the button is missing, the validation is not eligible. The row on Succeeded Deployments simply has no Quick Deploy action. The usual reasons are:
- The validation is older than 10 days.
- The validation did not run tests, for example because it targeted a sandbox or contained no Apex.
- The tests ran but did not meet the coverage requirement.
- The validation failed.
- The target org was changed by another deployment in a way that invalidates the earlier check. The next chapters cover the exact rules and how to diagnose them.
Quick deploy by ID from the CLI
You can mix tools. A validation started from a change set can be promoted from the terminal, as long as you have its job ID.
sf project deploy quick \
--job-id 0AfXXXXXXXXXXXXXXX \
--target-org prodThe reverse also works. A validation started with sf project deploy validate appears in Deployment Status, and you can click Quick Deploy there. This lets an admin run the final step in the release window while a developer prepared the validation earlier.
Common mistakes with change sets
| Mistake | What you see | What to do |
|---|---|---|
| A dependency is missing from the change set | Validation fails with "no such column", "invalid type", or "Dependent class is invalid" | Use View/Add Dependencies in the source org, clone, and upload again |
| Editing the change set after upload | The edit option is not available | Clone the change set, change the clone, and upload |
| Validating, then uploading a fixed clone, then expecting Quick Deploy on the original | Quick Deploy is attached only to the validation that passed | Validate the clone, then quick deploy that validation |
| Waiting too long | Quick Deploy disappears from the row | Validate again, and plan the release inside the 10-day window |
| A deletion is needed | The change set cannot remove components | Use the CLI or the Metadata API with destructive changes |
| Two deployments in the queue | The second sits in Pending Deployments | Wait, or cancel the one that is no longer needed |
What the UI does not give you
Setup is convenient, but it has limits you should know about before you pick it for a release.
- No test level choice. You cannot narrow a change set validation to a few test classes.
- No version control. A change set records which components you picked. It does not record their content in a way you can diff or review.
- No scripting. Every step is manual, so it is harder to repeat the same release across several orgs.
- Dependencies by hand. The dependency check is a helper, not a guarantee.
For a small, one-off change, change sets work well. For regular releases, the CLI or a CI pipeline is easier to repeat and to audit. The next chapters cover troubleshooting and automation.
Putting it together
A realistic admin-led release looks like this:
- A few days before the release, upload the change set to production.
- Validate it. Use the time to read the results in Deployment Status.
- If it fails, fix the source org, clone the change set, upload again, and validate again.
- When it passes, note the date. Quick Deploy is available for 10 days.
- In the release window, open the passed validation and click Quick Deploy.
- Watch Deployment Status until the job moves to Succeeded Deployments.
Exercise
A teammate validated a change set in production on Monday and it succeeded. On Wednesday, she notices a typo in a custom label that is part of the change set. She fixes it in the sandbox, clones the change set, and uploads the clone. She then wants to use Quick Deploy on Friday. What should she do, and why?
Show answer
She must validate the cloned change set in production and quick deploy that new validation. Quick Deploy applies only to the validation that passed, and that validation tested the old content with the typo. The clone is a different change set with its own deployment. After the new validation passes, its row on Deployment Status shows Quick Deploy, and she can use it on Friday as long as it is within 10 days of that validation.
Exercise
You need to deploy a change that also deletes an obsolete Apex class from production. Can you do it with a change set, and how would you still use validate and quick deploy?
Show answer
A change set cannot delete components in the target org. Use the CLI or the Metadata API with a destructive changes manifest. Run sf project deploy validate with the manifest and the destructive changes file and an appropriate test level, then run sf project deploy quick with the resulting job ID in the release window. The validation can also be promoted from Deployment Status in Setup.