LinuxCommandLibrary

poetry-version

Manage project version numbers

TLDR

Show current version

$ poetry version
copy
Bump major version
$ poetry version major
copy
Bump minor version
$ poetry version minor
copy
Bump patch version
$ poetry version patch
copy
Set specific version
$ poetry version [1.2.3]
copy

SYNOPSIS

poetry version [options] [version]

DESCRIPTION

poetry version displays or updates the project version in pyproject.toml. Without arguments, it shows the current version. With a bump rule (major, minor, patch, premajor, preminor, prepatch, prerelease) or an explicit version string, it updates the version accordingly.
The --short flag outputs only the version number without the project name. Use --dry-run to preview the version change without modifying the file.

PARAMETERS

VERSION

Version or bump rule.
major
Bump major version.
minor
Bump minor version.
patch
Bump patch version.
--short
Only output version.
--dry-run
Don't modify files.

CAVEATS

Only updates pyproject.toml. Does not create git tags.

HISTORY

poetry version provides version management for Poetry projects.

SEE ALSO

poetry(1), semver(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community