Linux command
bun-list 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List installed packages
bun pm ls
List all packages
bun pm ls --all
说明
bun pm ls (sometimes invoked as bun list) prints the packages installed in the current project's node_modules directory. By default it shows only the direct dependencies declared in package.json; pass --all to see the complete resolved dependency tree. The output includes each package's resolved version and location and is intended for quick auditing of what is installed. For machine-readable output, inspect bun.lockb with bun pm subcommands.
参数
- --all
- Show the full dependency tree, including transitive dependencies.
FAQ
What is the bun-list command used for?
bun pm ls (sometimes invoked as bun list) prints the packages installed in the current project's node_modules directory. By default it shows only the direct dependencies declared in package.json; pass --all to see the complete resolved dependency tree. The output includes each package's resolved version and location and is intended for quick auditing of what is installed. For machine-readable output, inspect bun.lockb with bun pm subcommands.
How do I run a basic bun-list example?
Run `bun pm ls` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --all do in bun-list?
Show the full dependency tree, including transitive dependencies.