LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bun-update

Update installed packages

TLDR

Update all packages to latest compatible versions
$ bun update
copy
Update a specific package
$ bun update [package]
copy
Update to latest versions ignoring semver ranges
$ bun update --latest
copy

SYNOPSIS

bun update [options] [packages...]

DESCRIPTION

bun update upgrades installed packages to newer versions, refreshing `node_modules` and the lockfile. By default it respects the semver ranges declared in `package.json`; --latest lifts that restriction and writes the newest available version back to the manifest.When called without package names, every dependency is considered. Naming one or more packages limits the operation to those entries (and their transitive graph).

PARAMETERS

--latest

Update to latest versions, ignoring version ranges in package.json (also rewrites the manifest).
--no-save
Update installed packages without modifying `package.json` or `bun.lockb`.
--save-text-lockfile
Generate the human-readable `bun.lock` text lockfile alongside the binary one.
-d, --dev
Limit the update to `devDependencies`.
--production
Limit the update to non-dev dependencies.
--frozen-lockfile
Fail if the lockfile would need to change (CI safety check).
--dry-run
Show what would change without writing to disk.

CAVEATS

--latest can pull in major-version bumps and break the project. The binary `bun.lockb` is not human-diffable; use `--save-text-lockfile` (or `bun install --save-text-lockfile`) to maintain a `bun.lock` file for code review.

SEE ALSO

Copied to clipboard
Kai