sfdx-git-delta: deploy only what changed between two commits

9 facts checked

A Salesforce CLI plugin that builds a package.xml from the difference between two git commits.

sfdx-git-delta (SGD) is a Salesforce CLI plugin by Sebastien Colladon. It compares two git commits and writes a package.xml with only the changed metadata, plus a destructiveChanges.xml for what was deleted or renamed. Pipelines use it to deploy the delta in place of the whole repository. It is free, open source under the MIT license, and not an official Salesforce tool.

GitHub repositorynpm package

Price

Free

Type

Command line

Source code

Open source (MIT)

Made by

Sebastien Colladon (community)

What sfdx-git-delta does

  • Generates a package.xml containing only the metadata changed between two commits.
  • Generates destructiveChanges.xml from deleted or renamed metadata, so removals are deployed too.
  • Can copy just the added and modified source files into an output folder with --generate-delta.
  • Honors ignore files, so chosen metadata stays out of the delta.
  • Supports Git LFS and can be used as a Node.js module.

When it helps, and when it does not

Reach for it when

Your pipeline deploys the whole repository on every merge and it is slow. A delta deployment sends only what changed, and SGD is the common free way to compute it.

Look elsewhere when

Git is not your source of truth, the project is not in source format, or you deploy managed metadata. The README lists those as conditions, along with a repository that is deployable at both commits.

The full fact sheet

record: Applast checked

Type
Salesforce CLI plugin source
Price
Free and open source source
Made by
Sebastien Colladon, an independent maintainer. The README says it is not an officially supported tool and to use it at your own risk. source
Open source
Yes, MIT license source
Where your data goes
Not stated: the README has no telemetry or data statement. The tool reads the local git repository and writes local files. source
Requirements
Salesforce CLI, a project in source (DX) format with git as the source of truth, and full git history in CI (no shallow clone) source
Versions
A plain install delivers 6.45.1 (npm stable, June 26, 2026), which needs Node 20 and the git command line. Version 7.7.2 (November 20, 2026) is on the release candidate channel and needs Node 22 and no git binary. source
Usage
207,961 npm downloads in the week of November 17 to 23, 2026. 579 GitHub stars. source
Install
sf plugins install sfdx-git-delta. The plugin is unsigned, so Salesforce CLI shows a warning. source

Alternatives and related tools

sfdx-hardis can use sfdx-git-delta as an optional plugin inside a ready-made pipeline.

sfdx-hardis

Command line

An open source toolbox for Salesforce CI/CD pipelines, metadata backup, org monitoring and documentation.

FreeOpen source

Salesforce CLI

Command line

The official command line tool for deploying metadata, managing orgs, running tests and building packages.

FreeOpen sourceBy Salesforce

All of them side by side: Free Salesforce DevOps tools.

Frequently asked questions

Is sfdx-git-delta free?

Yes. It is open source under the MIT license. The repository has a sponsor link for voluntary support.

Is sfdx-git-delta an official Salesforce tool?

No. The README states that SFDX-Git-Delta is not an officially supported tool and that you use it at your own risk. It is maintained by Sebastien Colladon.

Why does Salesforce CLI warn that the plugin is not signed?

Because the plugin is not digitally signed. Salesforce CLI shows that warning for any unsigned plugin. In CI you can answer the prompt automatically or add the plugin to the CLI allowlist.

Which version will I get, 6 or 7?

On November 24, 2026 a plain sf plugins install sfdx-git-delta installs 6.45.1, the npm stable tag. Version 7 is published under the release candidate tag. They differ in requirements: version 6 needs Node 20 and a git binary, version 7 needs Node 22 and no git binary.

Why does my delta come out empty or wrong in CI?

A common cause is a shallow clone. The tool needs the full git history to compare two commits, so fetch the complete history in the pipeline job.

Sources

Every fact on this page comes from the tool's own pages, read on . Show the 2 pages.

Facts checked against each tool's own pages on November 24, 2026. No tool paid to be listed and there are no affiliate links. Logos belong to their owners and are shown only to identify each tool. Spotted something out of date? info@sfupdates.com.

← All Salesforce toolsFree Salesforce DevOps tools →

📅 Winter '27 Key Dates

Winter '27 Production Rollout
Live on all instances
The rollout is complete.

Spring '27 Sandbox Preview
Jan 8, 2027
Test new features safely before production.

Spring '27 Production Rollout
Jan 16, Feb 6 and Feb 20, 2027
Main release weekends, from Salesforce Trust.