Skip to content
Promote Force
Docs: Pull from my org vs VS Code

Docs

Pull from my org vs VS Code

Signed in? Open this page in the app, with links straight to your team's screens.

Two ways to get your Salesforce work onto a feature branch. Mix them freely on the same branch. (Application projects have no Pull from my org: you build and push with your own tools. See Developer workflow: application projects.)

What Pull from my org Local VS Code
Best for Changes made by clicks: flows, layouts, fields, permission sets Code: Apex, LWC, and anything you edit as source
Where you work Setup in your personal org VS Code with the sf CLI, deploying to your personal org
How it reaches Git Promote Force retrieves, you pick components, it commits and pushes You commit and push yourself
Needs Your personal org connected in Promote Force A clone (with a Git token, or your GitHub access for a GitHub project) and the sf CLI

Pull from my org

Open Pull from my org in the app, pick your personal org and a feature branch (or name a new one, created from main), and Promote Force finds what you changed:

  • With source tracking (scratch orgs, and Developer/Developer Pro sandboxes with tracking on), it uses Salesforce’s own list of changes: fast and exact.
  • Without source tracking (Developer Edition orgs, or tracking turned off), it lists the project’s metadata types and keeps what was modified since it last retrieved it. This is slower and can be noisier, so review the list before committing.
  • Changes that arrived in your org from other people’s work (synced from a shared stage) are left out and shown as excluded, so you never commit someone else’s work by accident.

You see the diff for each file, select the components you want, and Promote Force commits them to the branch with you as the author. The push then behaves like any other push: components, collisions and open promotions all update.

Only the owner of a personal org can pull from it.

Local VS Code

Work as you normally would with the Salesforce CLI, then commit and push:

sf project deploy start --target-org my-dev-org
sf project retrieve start --target-org my-dev-org --metadata ApexClass:DiscountService
git add -A && git commit -m "ABC-123 Discount rules" && git push

Did some of it by clicks anyway? Push your code first, then use Pull from my org on the same branch for the rest. Pull from my org works on top of the branch’s latest commit.