Skip to content

Commit 4b33c5d

Browse files
znarfmManagor
andauthored
poetry-export: add page (#19201)
Co-authored-by: Managor <[email protected]>
1 parent 27f2723 commit 4b33c5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pages/common/poetry-export.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# poetry export
2+
3+
> Export Poetry's lock file to other formats.
4+
> Provided by the Export Poetry Plugin.
5+
> More information: <https://github.com/python-poetry/poetry-plugin-export#usage>.
6+
7+
- Export dependencies to a `requirements.txt` file:
8+
9+
`poetry export {{[-o|--output]}} {{requirements.txt}}`
10+
11+
- Export dependencies including development dependencies:
12+
13+
`poetry export {{[-o|--output]}} {{requirements-dev.txt}} --dev`
14+
15+
- Export dependencies without hashes:
16+
17+
`poetry export {{[-o|--output]}} {{requirements.txt}} --without-hashes`
18+
19+
- Export dependencies for a specific format:
20+
21+
`poetry export {{[-o|--output]}} {{requirements.txt}} {{[-f|--format]}} {{requirements.txt}}`
22+
23+
- Export only specific dependency groups:
24+
25+
`poetry export {{[-o|--output]}} {{requirements.txt}} --only {{main}}`
26+
27+
- Display help:
28+
29+
`poetry export {{[-h|--help]}}`

0 commit comments

Comments
 (0)