The Salesforce CLI has six sf project deploy commands, and it is easy to mix up which one does what. This is a short reference: what each command does, the flags you will actually use, and the order they go in for a production release. Everything here was checked against the output of sf project deploy <command> --help in Salesforce CLI 2.130.9 on 5 December 2026. Flags change between versions, so run --help on your own version before you rely on a detail.

The six commands at a glance
| Command | What it does |
|---|---|
sf project deploy start |
Deploys metadata to an org. With --dry-run it validates and runs tests without saving anything. |
sf project deploy validate |
A check-only deployment that returns a job ID you can quick deploy later. |
sf project deploy quick |
Deploys a previously validated deployment without running the Apex tests again. |
sf project deploy report |
Shows the status of a deploy, validation, quick deploy or cancellation. |
sf project deploy cancel |
Cancels a deploy operation that has not finished in the org. |
sf project deploy resume |
Resumes watching an operation after a timeout or --async, and updates source tracking when it finishes. |
deploy start: the everyday command
Choose what to deploy with one of three source flags, then the target org:
sf project deploy start --source-dir force-app --target-org my-sandbox
sf project deploy start --metadata ApexClass:MyClass --target-org my-sandbox
sf project deploy start --manifest manifest/package.xml --target-org my-sandbox
-d, --source-dirdeploys the files in a path.-m, --metadatadeploys named components and accepts wildcards in quotes, such as'ApexClass:MyApex*'.-x, --manifestdeploys what apackage.xmllists.-l, --test-levelsets the Apex test level.-t, --testsnames the tests when the level isRunSpecifiedTests.--dry-runvalidates the deployment and runs Apex tests but does not save to the org.-w, --waitis the number of minutes to wait.--asyncreturns straight away with a job ID.-c, --ignore-conflictsdeploys local files even if they overwrite changes in the org. The help says this applies only to orgs that allow source tracking, so it has no effect on production.-g, --ignore-warningsand-r, --ignore-errorsexist, and the help for the first warns you will usually want to see the warnings.--pre-destructive-changesand--post-destructive-changestake a destructive changes manifest, and--purge-on-deletemakes deleted components skip the Recycle Bin.--junit,--coverage-formattersand--results-dirwrite test results and coverage to files, which is what a CI job usually wants.
deploy validate: check now, deploy later
sf project deploy validate takes the same source flags and test flags, but it never saves anything. Its --test-level defaults to RunLocalTests, and the values it accepts are RunAllTestsInOrg, RunLocalTests, RunSpecifiedTests and RunRelevantTests. NoTestRun is not on that list, which is why a validation always runs tests.
sf project deploy validate --manifest manifest/package.xml --target-org prod --test-level RunLocalTests --wait 60
It returns a job ID. Keep it. The CLI's help for --job-id says a job ID is valid for 10 days from when the operation started.
deploy quick: the short step in the release window
sf project deploy quick --job-id 0Af0x000017yLUFCA2 --target-org prod
sf project deploy quick --use-most-recent --target-org prod
The help says the quick deploy skips running Apex tests because they ran as part of the validation, and that the validated deployment must itself have succeeded. It also says the command is meant for production orgs, because sandboxes do not run tests by default, and that it does not support source tracking, so the source you deploy overwrites the matching metadata in the org without merging.
Two details worth knowing:
--waitonquickdefaults to 33 minutes.--use-most-recentonly finds job IDs from the past 3 days or fewer, according to the help forreport,cancelandresume. If your validation is older than that, pass--job-idinstead.
For the Salesforce side of the rules (10 days, passing tests, coverage), see how quick deploy works.
report, cancel and resume
sf project deploy report --job-id 0Af0x000017yLUFCA2
sf project deploy cancel --use-most-recent
sf project deploy resume --use-most-recent --wait 30
reportchecks the status once, or polls every second until the--waittimeout if you pass it. It also takes--junit,--coverage-formattersand--results-dir. If you run it on a different computer from the one that deployed, you must pass--target-orgfor the same org.cancelstops an operation that has not completed in the org.resumedoes not restart anything. The help is explicit that the operation continues in the org whether or not you are watching it, andresumeonly re-attaches your terminal and updates source tracking at the end.
A production release in four commands
# Before the window: validate with the test level you will rely on
sf project deploy validate --manifest manifest/package.xml --target-org prod --test-level RunLocalTests --async
# Check on it, and note the job ID
sf project deploy report --use-most-recent
# Inside the window: promote the passing validation
sf project deploy quick --use-most-recent --target-org prod
# If it hangs or you change your mind
sf project deploy cancel --use-most-recent
Choosing a test level
The --test-level help lists five values for start: NoTestRun, RunSpecifiedTests, RunLocalTests, RunAllTestsInOrg and RunRelevantTests. The differences, and the coverage rules that come with them, are in when Salesforce runs Apex tests and how to run fewer and in RunLocalTests vs RunSpecifiedTests. The newest value has its own post: RunRelevantTests, the beta test level.
Where Diffbridge fits
These commands run one deployment at a time from one machine. Diffbridge puts the same ideas behind a queue: it shows which tests a deployment needs and why, skips Apex test runs when no Apex changed, and keeps only the latest push when several are waiting. Try it free for 30 days. We build Diffbridge, so weigh that when you read the comparison.