nb source download
Fetch NocoBase from npm, Docker, or Git. --version is shared by all three source types: npm uses a package version, Docker uses an image tag, and Git uses a git ref.
Usage
Parameters
Examples
Pre-install hook
--hook-script only affects the current nb source download run. If you want the hook to be saved with the env and reused by nb app upgrade or local source restore, pass it through nb init --hook-script instead.
The hook file must default-export an object with beforeDependencyInstall(context):
When you run nb source download --hook-script directly, beforeDependencyInstall receives context.phase as source-download and context.command as source:download. This command does not run beforeAppInstall or afterAppStart; those hooks belong to app install, start, restart, and upgrade flows.
Version Aliases
With Git source, common dist-tags are resolved to branches: latest -> main, beta -> next, alpha -> develop.

