mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 16:52:35 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/bun-why
Normal file
29
tldr/bun-why
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun why
|
||||
|
||||
> Explain why a package is installed by showing its dependency chain.
|
||||
> More information: <https://bun.com/docs/pm/cli/why>.
|
||||
|
||||
- Explain why a specific package is installed:
|
||||
|
||||
`bun why {{package_name}}`
|
||||
|
||||
- Explain why all packages matching a pattern are installed:
|
||||
|
||||
`bun why "{{pattern}}"`
|
||||
|
||||
- Explain why packages from a specific organization are installed:
|
||||
|
||||
`bun why "@{{organization}}/*"`
|
||||
|
||||
- Show only top-level dependencies:
|
||||
|
||||
`bun why {{package_name}} --top`
|
||||
|
||||
- Limit the dependency tree depth:
|
||||
|
||||
`bun why {{package_name}} --depth {{number}}`
|
||||
Reference in New Issue
Block a user