Linux command
poetry-show 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all installed packages
poetry show
Show details for a specific package
poetry show [package]
Show the full dependency tree
poetry show --tree
Show only top-level dependencies
poetry show --top-level
Show outdated packages with latest versions
poetry show --outdated --latest
Show why a package is required
poetry show --why [package]
Output package list as JSON
poetry show --format json
说明
poetry show displays information about installed packages in the project. Without arguments, it lists all installed packages with their versions and descriptions. When given a package name, it shows detailed information including dependencies and available versions. The --tree flag displays the dependency tree showing how packages relate to each other. The --outdated flag highlights packages with newer versions available, and --top-level shows only direct project dependencies.
参数
- --tree
- Show dependency tree.
- --top-level
- Only show top-level dependencies.
- --outdated
- Show outdated packages.
- --latest
- Show latest available versions.
- --why
- Show whether packages are a direct dependency or required by other packages.
- -a, --all
- Show all packages including development dependencies.
- -f, --format _FORMAT_
- Output format: text (default) or json. Cannot be combined with --tree.
FAQ
What is the poetry-show command used for?
poetry show displays information about installed packages in the project. Without arguments, it lists all installed packages with their versions and descriptions. When given a package name, it shows detailed information including dependencies and available versions. The --tree flag displays the dependency tree showing how packages relate to each other. The --outdated flag highlights packages with newer versions available, and --top-level shows only direct project dependencies.
How do I run a basic poetry-show example?
Run `poetry show` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --tree do in poetry-show?
Show dependency tree.