snippetbashTip
poetry export — Export Poetry's lock file to other formats. Provided by the Export Poetry Plugin. More information:
Viewed 0 times
commandpoetry exportpoetrycliexportfileotherlock
Problem
How to use the
poetry export command: Export Poetry's lock file to other formats. Provided by the Export Poetry Plugin. More information: <https://github.com/python-poetry/poetry-plugin-export#usage>.Solution
poetry export — Export Poetry's lock file to other formats. Provided by the Export Poetry Plugin. More information: <https://github.com/python-poetry/poetry-plugin-export#usage>.Export dependencies to a
requirements.txt file:poetry export {{[-o|--output]}} {{requirements.txt}}Export dependencies including development dependencies:
poetry export {{[-o|--output]}} {{requirements-dev.txt}} --devExport dependencies without hashes:
poetry export {{[-o|--output]}} {{requirements.txt}} --without-hashesExport dependencies for a specific format:
poetry export {{[-o|--output]}} {{requirements.txt}} {{[-f|--format]}} {{requirements.txt}}Export only specific dependency groups:
poetry export {{[-o|--output]}} {{requirements.txt}} --only {{main}}Display help:
poetry export {{[-h|--help]}}Code Snippets
Export dependencies to a `requirements.txt` file
poetry export {{[-o|--output]}} {{requirements.txt}}Export dependencies including development dependencies
poetry export {{[-o|--output]}} {{requirements-dev.txt}} --devExport dependencies without hashes
poetry export {{[-o|--output]}} {{requirements.txt}} --without-hashesExport dependencies for a specific format
poetry export {{[-o|--output]}} {{requirements.txt}} {{[-f|--format]}} {{requirements.txt}}Export only specific dependency groups
poetry export {{[-o|--output]}} {{requirements.txt}} --only {{main}}Context
tldr-pages: common/poetry export
Revisions (0)
No revisions yet.