mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 16:54:25 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/bun-remove
Normal file
30
tldr/bun-remove
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun remove
|
||||
|
||||
> Remove a dependency from `package.json`.
|
||||
> Note: `rm` can be used as an alias for `remove`.
|
||||
> More information: <https://bun.sh/docs/cli/remove>.
|
||||
|
||||
- Remove a dependency:
|
||||
|
||||
`bun remove {{package_name}}`
|
||||
|
||||
- Remove multiple dependencies:
|
||||
|
||||
`bun remove {{package_name1 package_name2 ...}}`
|
||||
|
||||
- Remove a globally installed package:
|
||||
|
||||
`bun remove {{[-g|--global]}} {{package_name}}`
|
||||
|
||||
- Remove a dependency without updating the `package.json` file:
|
||||
|
||||
`bun remove --no-save {{package_name}}`
|
||||
|
||||
- Run the command without actually removing packages (simulate the removal):
|
||||
|
||||
`bun remove --dry-run {{package_name}}`
|
||||
Reference in New Issue
Block a user