mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 12:45:42 +00:00
35 lines
931 B
Plaintext
35 lines
931 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}} --dev`
|
|
|
|
- Export dependencies without hashes:
|
|
|
|
`poetry export {{[-o|--output]}} {{requirements.txt}} --without-hashes`
|
|
|
|
- Export 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]}}`
|