LinuxCommandLibrary

poetry-export

Export dependencies to other formats

TLDR

Export to requirements.txt

$ poetry export -f requirements.txt -o requirements.txt
copy
Export with dev dependencies
$ poetry export --with dev -f requirements.txt
copy
Export without hashes
$ poetry export --without-hashes -o requirements.txt
copy

SYNOPSIS

poetry export [options]

DESCRIPTION

poetry export exports the lock file to other formats. Primarily used to generate requirements.txt files for environments that don't use Poetry directly, such as Docker builds or production deployments.

PARAMETERS

-f, --format format

Output format (requirements.txt, constraints.txt).
-o, --output file
Output file path.
--with groups
Include optional dependency groups.
--without groups
Exclude dependency groups.
--without-hashes
Exclude hashes from output.
--without-urls
Exclude source URLs.
--dev
Include development dependencies.
-E, --extras extras
Include extras.

SEE ALSO

poetry(1), poetry-lock(1), pip(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community