rimba deps

Manage worktree dependencies — detect lockfiles, clone dependency directories from existing worktrees with matching lockfile hashes, and install packages.

The deps command has two subcommands: status and install.


rimba deps status

Show detected dependency modules and lockfile hashes for all worktrees.

Synopsis

rimba deps status [--json]

Examples

rimba deps status
refs/heads/main (/path/to/repo)
  node_modules [a1b2c3d4e5f6] installed
  vendor [7g8h9i0j1k2l] installed
refs/heads/feature/auth (/path/to/worktrees/feature-auth)
  node_modules [a1b2c3d4e5f6] deferred
  vendor [7g8h9i0j1k2l] installed

Each module’s install state — installed, deferred, or missing (expected but absent, e.g. a failed install) — is shown alongside its lockfile hash. See Deferred modules below.


rimba deps install

Detect and install dependencies for a specific worktree. Clones from an existing worktree with a matching lockfile hash, or falls back to the configured install command.

Synopsis

rimba deps install <task> [--path <dir>]

Examples

rimba deps install my-feature

--path

Install only one module instead of everything detected for the worktree:

rimba deps install my-feature --path standalone-svc-a/node_modules

Deferred modules

Modules whose install cost is unbounded — pnpm/yarn/npm node_modules in a workspace/monorepo setup — are deferred by default: rimba add/restore/duplicate don’t install them automatically unless the worktree’s service scope specifically implies they’re needed (a workspace member with no lockfile of its own, or a service matching the module’s own independent lockfile). A deferred module’s directory simply doesn’t exist until you install it:

rimba add my-feature
# Dependencies:
#   node_modules: deferred — run `rimba deps install my-feature --path node_modules` if you need it

rimba deps install my-feature --path node_modules

Override the default for a specific module in .rimba/settings.toml:

[[deps.modules]]
dir = "internal-cli/node_modules"
eager = true

Common workflows

Check dependency state across worktrees

rimba deps status
# Matching hashes means deps were cloned (fast); different hashes mean a fresh install ran

Manually reinstall deps after lockfile change

rimba deps install my-feature

Skip auto-install during add, install manually later

rimba add my-feature --skip-deps
# ... modify lockfile ...
rimba deps install my-feature
  • rimba add · use --skip-deps to defer installation
  • rimba restore · use --skip-deps to defer installation
  • rimba trust · approve deps.modules[].install shell commands

This site uses Just the Docs, a documentation theme for Jekyll.