dev.kit supports two install paths:
npm install -g @udx/dev-kitcurl -fsSL https://raw.githubusercontent.com/udx/dev.kit/latest/bin/scripts/install.sh | bash
Whichever path you use last becomes the active install. The installer cleans up the other path first so one install owns dev.kit at a time.
Installation only puts the command on the machine. Before relying on dev.kit for a session, make sure the active install is current, then start the normal operating loop:
dev.kitdev.kit is the happy path. It checks the environment, summarizes repo-local context status, and points to dev.kit repo when context is missing or stale.
Refresh dev.kit with the same install path you use already:
# npm-managed install
npm install -g @udx/dev-kit
# curl-managed install
curl -fsSL https://raw.githubusercontent.com/udx/dev.kit/latest/bin/scripts/install.sh | bashThe generated .rabbit/context.yaml contract assumes a current dev.kit install before you regenerate repo context.
Use npm when it is available:
npm install -g @udx/dev-kitThis is the default path.
Use curl when npm is not available or not desired:
curl -fsSL https://raw.githubusercontent.com/udx/dev.kit/latest/bin/scripts/install.sh | bashThe curl installer creates:
~/.udx/dev.kitas the install home~/.local/bin/dev.kitas the executable shim
It does not edit shell profile files. If ~/.local/bin is not already in PATH, the installer tells you what to export manually.
Install cleanup is symmetric:
- npm install removes a prior curl-managed install from
~/.udx/dev.kitand~/.local/bin/dev.kit - curl install removes a prior global npm package install of
@udx/dev-kit
This keeps users from ending up with conflicting binaries or stale install homes.
The npm package runs a postinstall hook. That hook checks for the curl-managed home and shim. If they exist and the shim points at the curl install, it removes them and leaves the npm install as the only active one.
The curl installer checks whether @udx/dev-kit is already installed globally through npm. If it is, the installer removes that package first and then lays down the curl-managed home and shim.
The installer also supports both execution styles:
bash install.shbash < install.sh
That matters because the public curl flow pipes the script into bash.
The curl-managed install can be removed with:
dev.kit uninstallOr non-interactively:
dev.kit uninstall --yesThis removes:
~/.local/bin/dev.kit~/.udx/dev.kit
It does not modify shell profile files.
For npm-managed installs, remove the package with:
npm uninstall -g @udx/dev-kitAfter either install path, verify the active install with:
dev.kitThat confirms the command resolves correctly and runs the normal guided flow when a repo is detected.
If you want to inspect or control environment capabilities directly, continue with:
dev.kit env
dev.kit env --configUse dev.kit repo when .rabbit/context.yaml needs to be refreshed explicitly.