poetry version
all
Manage Poetry project version. Assumes the following project stages: `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`. See also: `asdf`.
More info →Options (1)
-s, --shortbooleanOutput the current version
Example:
poetry version {{[-s|--short]}}Examples (4)
Output the current version
poetry version [-s|--short]Set project to a specific phase
poetry version stageIncrement the project to the next prerelease phase
poetry version --next-phaseTest project stage function without writing to `pyproject.toml`
poetry version stage --dry-runmade by @shridhargupta | data from tldr-pages