mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
772 B
772 B
To update all dependencies to the latest version:
$ bun update
To update a specific dependency to the latest version:
$ bun update [package]
--latest
By default, bun update will update to the latest version of a dependency that satisfies the version range specified in your package.json.
To update to the latest version, regardless of if it's compatible with the current version range, use the --latest flag:
$ bun update --latest
For example, with the following package.json:
{
"dependencies": {
"react": "^17.0.2"
}
}
bun updatewould update to a version that matches17.x.bun update --latestwould update to a version that matches18.xor later.
{% bunCLIUsage command="update" /%}