commands.sh

poetry build

all

Build a Poetry package as a tarball and a wheel.

More info →

Options (2)

-f, --formatboolean

Build a wheel package

Example: poetry build {{[-f|--format]}} wheel
-o, --outputboolean

Set the output directory

Example: poetry build {{[-o|--output]}} {{path/to/directory}}

Examples (5)

Build a tarball and a wheel for the project

Build a wheel package

poetry build [-f|--format] wheel

Build a source distribution (sdist)

poetry build [-f|--format] sdist

Clean the output directory before building

poetry build --clean

Set the output directory

poetry build [-o|--output] path/to/directory
made by @shridhargupta | data from tldr-pages