Skip to content
| Marketplace
Sign in
Visual Studio Code>Extension Packs>Salesforce Build TasksNew to Visual Studio Code? Get it now.
Salesforce Build Tasks

Salesforce Build Tasks

cinicola

|
230 installs
| (1) | Free
VS Code build tasks commands to make it easier to sync your source code with your Salesforce org and more 🌩️
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Build Tasks for Salesforce

Setup

Press Ctrl + Shift + P (win) or Cmd + Shift + P (mac) and then select Add Salesforce Build Tasks, press enter.

Then, press Ctrl + Shift + B (win) or Cmd + Shift + B (mac) and you will see a list of commands to work with Salesforce.

1) Commands to sync Local vs Org via Source Tracking

▶️ sfDeploy ➡ Dep

Identifies changes in your local and pushes them to Org.

⏩ sfDeployIgnoreConflicts ➡ Di

Identifies changes in your local and pushes them to Org, ignoring conflicts.

◀️ sfRetrieve ➡ Retri

Identifies changes in Org and brings them to your local.

⏪ sfRetrieveIgnoreConflicts ➡ Rig

Identifies changes in Org and brings them to your local, ignoring conflicts.

👀 sfDeployPreview ➡ Dp

Displays changes in your local that are not synced with the Org.

👀 sfRetrievePreview ➡ Rp

Displays changes in the Org that are not synced with your local.

❌ sfDeleteTracking ➡ Del

Deletes all tracking:

  • When deploying, it will send all metadata to the Org.
  • When retrieve, it will bring all metadata to your local.

Example usage:

  • You need to resync all metadata from git to your org

♻️ sfResetTracking ➡ Res

Resets tracking:

  • When deploying, it will not send any metadata to the Org.
  • When retrieve, it will not bring any metadata to your local.

Example of use:

  • You have changed dozens of things in the org or local, but you don't want to synchronize

💡 Tip: Before doing an "sfRetrieve", commit to git. This way, only the latest changes brought from the org after running the command will be visible.

Sometimes Salesforce brings more items than expected when running the command and this can cause confusion.

2) Other useful shortcuts

🧻 sfLogTail debug ➡ Lod

Creates a log file that stays "alive", recording all operations performed in the Org.

  • It is an excellent replacement for the standard Salesforce Developer Console, being faster and avoiding several clicks.
  • Filters only the information from System.Debug();

🧻 sfLogTail full ➡ Lof

Same functionality as the sfLogTail debug command, but brings the full log, without filters.

🧪 sfRunLocalTests ➡ Tap

Runs all tests in the org. Ideal for use before and after development, helping to maintain 100% successful tests. Shows only failed tests.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft