mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
765 B
Plaintext
38 lines
765 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bun update
|
|
|
|
> Update dependencies in a Bun project.
|
|
> More information: <https://bun.com/docs/pm/cli/update>.
|
|
|
|
- Update all dependencies:
|
|
|
|
`bun update`
|
|
|
|
- Update to the latest version, regardless of its compatibility:
|
|
|
|
`bun update --latest`
|
|
|
|
- Update a specific dependency:
|
|
|
|
`bun update {{package_name}}`
|
|
|
|
- Update a dependency to a specific version:
|
|
|
|
`bun update {{package_name}}@{{version}}`
|
|
|
|
- Update packages interactively:
|
|
|
|
`bun update {{[-i|--interactive]}}`
|
|
|
|
- Update dependencies recursively across all workspaces:
|
|
|
|
`bun update {{[-r|--recursive]}}`
|
|
|
|
- Update dependencies interactively and recursively:
|
|
|
|
`bun update {{[-i|--interactive]}} {{[-r|--recursive]}}`
|