Options (4)
booleanInstall all dependencies listed in `package.json`
Example:
bun {{[i|install]}}-g, --globalbooleanInstall a package globally
Example:
bun {{[i|install]}} {{[-g|--global]}} {{package_name}}-p, --productionbooleanInstall only production dependencies (skips `devDependencies`)
Example:
bun {{[i|install]}} {{[-p|--production]}}-f, --forcebooleanForce re-download all packages from the registry, ignoring the cache
Example:
bun {{[i|install]}} {{[-f|--force]}}Examples (6)
Install all dependencies listed in `package.json`
bun [i|install]Install a single package (this is an alias for `bun add`)
bun [i|install] package_name@versionInstall a package globally
bun [i|install] [-g|--global] package_nameInstall only production dependencies (skips `devDependencies`)
bun [i|install] [-p|--production]Install dependencies exactly from the `bun.lockb` lockfile (frozen lockfile)
bun [i|install] --frozen-lockfileForce re-download all packages from the registry, ignoring the cache
bun [i|install] [-f|--force]made by @shridhargupta | data from tldr-pages