Skip to content

aube rebuild

  • Usage: aube rebuild [PACKAGE]…
  • Aliases: rb
  • Effect: modifies state

aube rebuild [<pkg>...] — without args, re-run the root package's preinstall hook, then install / postinstall work for dependency packages allowed by the active allowBuilds / onlyBuiltDependencies policy, then the root package's install / postinstall / prepare lifecycle hooks.

With one or more package names, run lifecycle scripts only for the named deps and skip the root hooks. Match is by graph name, which is the in-tree alias when one is configured (so aube rebuild my-alias works for a manifest entry like "my-alias": "npm:real-pkg@1.0", matching pnpm).

Unlike the other lifecycle shortcuts, rebuild intentionally does not auto-install: aube install already runs these same four hooks after linking, so triggering an install here would double-run every script on a stale tree. Users who actually want a fresh install should run aube install.

Arguments

  • [PACKAGE]… — Optional package names. When supplied, only matching deps' scripts run; the root lifecycle hooks (preinstall, install, postinstall, prepare) are skipped. Match is by graph name, not by dep_path. The active allowBuilds / onlyBuiltDependencies policy is bypassed for the named deps — naming the package is the explicit opt-in.

Flags

  • -h --help — Print help
MIT LicensejdxCopyright © 2026 jdx.dev