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:

Before publication: Diffgazer packages are not yet published to npm, so there is no dgadd bin until you install one. Follow the canonical Copy-first mode procedure to build and pack @diffgazer/add, then install that packed tarball in the target app. The target-app install is what puts dgadd on pnpm exec.

Usage

bash
pnpm exec dgadd <command> [options]

When the npm package is available, you can also run it directly:

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