Skip to content

dgadd CLI

Command line reference for installing and managing Diffgazer registry items.

The dgadd CLI installs source-owned registry items into your app: @diffgazer/ui components and @diffgazer/keys hooks. Items are namespaced as <namespace>/<item>, for example ui/button or keys/navigation.

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.

Usage

bash
pnpm exec dgadd <command> [options]

Or run it through npx without installing it:

bash
npx @diffgazer/add <command> [options]

Commands

CommandPurposeDocs
initInitialize diffgazer.json in a projectinit
addAdd <namespace>/<item> components and hooksadd
listList available or installed itemslist
diffCompare local files with bundled registry versionsdiff
removeRemove installed items safelyremove

Global option

FlagDescription
-s, --silentSuppress non-error output