For the complete documentation index, see llms.txt. This page is also available as Markdown.

Syncing to a Named Environment

sfp sync qa

Commenting this on a pull request deploys the PR's changes to the named environment. Because the target is a shared environment, the sync is approval-gated: codev posts an approval request on the PR, and an owner must approve before anything is deployed.

What happens

  1. You comment sfp sync qa on the pull request.

  2. codev asks for approval — a comment explains what is about to happen and who can approve. An owner replies /codev approve qa (or /codev reject qa).

  3. The environment is locked so nothing else deploys to it mid-sync.

  4. The PR's merge state is checked out — what your branch will look like after merging, not just the branch by itself.

  5. The changes are deployed, and the lock is released.

  6. A completion comment tells you exactly what was deployed.

A sync-to-environment run in Workflows > Runs
Every sync is a workflow run — follow each step live under Workflows > Runs

Changed files or full packages?

By default, sfp sync uses diff-deploy: it takes only the files your PR changed and deploys them directly, running just the relevant tests. This is the fastest way to get a change onto an environment for a look.

Diff-deploy is deliberately lightweight — it leaves no trace in tracking: no artifact records, no version history, no package registry entries. It's for iterating, not for promoting. When you want the environment to reflect properly built and tracked package versions, use --full-build — or merge and let the normal build and release flow take over.

Pre/post deployment scripts and permission set assignments are skipped in diff-deploy mode. If your change relies on them, use --full-build.

Narrowing the sync

When it's the right tool

  • A stakeholder demo that must show a fix on a known environment today, ahead of the release.

  • Verifying a hotfix against an environment's exact shape before merging it.

  • An urgent investigation where reproducing on the review environment isn't possible.

If your team is syncing to named environments routinely, that's usually a sign the review-environment setup or the release cadence needs attention — not that more syncs are needed.

Last updated

Was this helpful?