Install
pnpm add -g @lapius/lapacks
[!IMPORTANT] The @lapius packages assume pnpm. Installing with both npm and pnpm leaves two copies of each command, so use only
pnpm add -g.
Node.js 18 or later is required (Linux / macOS / Windows). There are no dependencies.
Usage
lapacks # open the TUI (same as list when not in a terminal)
lapacks list # list packages (-i shows only installed ones)
lapacks outdated # only packages with an update
lapacks info sca # details (package name or command name)
lapacks install why sca # install (all installs everything)
lapacks update # update everything that has an update (including lapacks itself)
lapacks update laping # update only the named package
lapacks remove clilap # remove (asks first, -y skips the prompt)
lapacks config # show settings (config pm npm switches to npm)
lapacks doctor # diagnose PATH, required tools, and command conflicts
| Alias | Command |
|---|---|
ls l | list |
show | info |
i add | install |
up upgrade u | update |
rm uninstall un | remove |
Options
| Option | Description |
|---|---|
-r, --refresh | Fetch from the registry instead of the cache (the cache lasts 10 minutes) |
-f, --force | Reinstall even if already latest |
-y, --yes | Skip the removal prompt |
-i, --installed | Show only installed packages |
--json | Output JSON (list outdated info) |
--no-color | Disable color (NO_COLOR also works) |
TUI keys
| Key | Action |
|---|---|
↑ ↓ / j k | Move (PgUp PgDn g G also work) |
space | Select / deselect (a selects all) |
/ | Filter (name, command, description) |
enter / → | Details |
i | Install |
u | Update |
U | Update everything that has an update |
d / x | Remove |
r | Refetch from the registry |
l | Show the output of the last npm run |
esc / q | Back / quit |
Actions apply to the selected items, or to the row under the cursor when nothing is selected.
How it works
- The package list comes from the npm registry, so newly published
@lapiuspackages appear automatically. The cache is in~/.cache/lapacks/(%LOCALAPPDATA%\lapacks\on Windows). - Install and update simply run
pnpm add -g @lapius/<name>. The package manager defaults to pnpm. Runlapacks config pm npmto change it (saved to the config file;lapacks config pm --unsetrestores the default). The environment variableLAPACKS_PM=pnpm/npmtakes precedence over the config file. Packages installed with the other manager don't appear in the list. - The config file is
~/.config/lapacks/config.json(underXDG_CONFIG_HOMEif set,%APPDATA%\lapacks\config.jsonon Windows). SetLAPACKS_CONFIGto change the location. - After installing, it warns when a required tool (Python, Bun) is missing, or when a shell function or alias hides a command name.
Development
node npm/package/bin/lapacks # run in place
node npm/build.mjs 0.1.0 --pack # build a .tgz in dist/npm and inspect it
Pushing a v* tag makes GitHub Actions publish to npm.
License
MIT