poetry version
Manage Poetry project version. Assumes the following project stages:
patch,minor,major,prepatch,preminor,premajor,prerelease. See also:asdf. More information: https://python-poetry.org/docs/cli/#version.
- Output the current version:
poetry version
- Set project to a specific phase:
poetry version
- Increment the project to the next prerelease phase:
poetry version --next-phase
- Simulate bumping the version to a given stage without writing to
pyproject.toml:
poetry version --dry-run
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
