Skip to content

dgadd diff

Compare installed files with bundled registry versions.

Usage

bash
pnpm exec dgadd diff [item...]
Info:

npm packages: @diffgazer/add is on npm. pnpm add -D @diffgazer/add puts dgadd on pnpm exec, and npx @diffgazer/add <command> runs it without the install. Components also install without dgadd from the hosted registry: npx shadcn add https://r.b4r7.dev/r/ui/<item>.json.

Examples

bash
pnpm exec dgadd diff
pnpm exec dgadd diff ui/button ui/tabs keys/navigation

What it does

  1. Loads your diffgazer.json configuration.
  2. Resolves requested items or auto-detects installed ones.
  3. Compares local files against bundled registry content.
  4. Prints unified diffs.
  5. Shows changed, unchanged, and not-installed counts.

When no item is passed, dgadd diff checks every installed UI component and hook from the local manifest.

Options

FlagDescriptionDefault
--cwd <path>Working directory.