commands.sh

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, --shortboolean

Output the current version

Example: poetry version {{[-s|--short]}}

Examples (4)

Output the current version

poetry version [-s|--short]

Set project to a specific phase

Increment the project to the next prerelease phase

poetry version --next-phase

Test project stage function without writing to `pyproject.toml`

poetry version stage --dry-run
made by @shridhargupta | data from tldr-pages