Remote bin runner
Fetch a package from the registry and run its bin, explicitly — the deliberate download gesture, with consent by invocation.
Fetch a package from the registry and run its bin:
nub dlx create-vite my-app
nub x create-vite my-app # short alias
nub dlx -p cowsay -c 'cowsay hi | tr a-z A-Z' # shell pipelineThe command is the explicit downloader (short alias nub x, mirroring bunx/bun x): invoking it is the consent. Unlike nubx's implicit fallthrough — which prompts on the first fetch and fails closed in CI — nub dlx downloads without a prompt and runs in CI, because asking for it is already the deliberate gesture. Both share the same persistent cache and registry safeguards.
-p, --package
When the bin name differs from the package name, name the package explicitly:
nub dlx -p @angular/cli ng new my-app-c, --shell-mode
Run a shell one-liner with the fetched package's bin on PATH:
nub dlx -p cowsay -c 'cowsay hi | tr a-z A-Z'Lifecycle scripts
A fetched package's preinstall/install/postinstall scripts stay skipped — downloading a tool is not consent to run its dependencies' build scripts. Approve a package with --allow-build=<pkg>, the same allowlist nub install uses.
Cooling window
A fetch runs through Nub's normal install resolver, so the minimumReleaseAge cooling window applies: a resolved version must be older than the window (default 24 hours) before it's used. See the trust floor for the full posture.
Related
- Runner —
nubx, the unified runner that fetches only on a local miss, with a prompt. - Local bin runner —
nub exec, for a tool that's already installed. - Script runner —
nub run, thepackage.jsonscript runner. - Package manager — installing dependencies for real, not just running them.
Local bin runnernub exec
Run a CLI installed in the project by name, straight from node_modules — an order of magnitude faster than npx, and never reaching the registry.
Package manager
Nub ships its own installer with a pnpm-shaped CLI and lockfile-compatibility with whatever your project already uses — npm, pnpm, and Bun round-trip, Yarn read-only.