Skip to content

Commit c3d1438

Browse files
committed
change note to warning and add more information
1 parent 518486a commit c3d1438

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/cli.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,15 +769,29 @@ The option `--next-phase` allows the increment of prerelease phase versions.
769769

770770
## export
771771

772+
{{% warning %}}
773+
This command is provided by the [Export Poetry Plugin](https://github.com/python-poetry/poetry-plugin-export).
774+
The plugin is no longer installed by default with Poetry 2.0.
775+
776+
See [Using plugins]({{< relref "plugins#using-plugins" >}}) for information on how to install a plugin.
777+
As described in [Project plugins]({{< relref "plugins#project-plugins" >}}),
778+
you can also define in your `pyproject.toml` that the plugin is required for the development of your project:
779+
780+
```toml
781+
[tool.poetry.requires-plugins]
782+
poetry-plugin-export = ">1.8"
783+
```
784+
{{% /warning %}}
785+
772786
This command exports the lock file to other formats.
773787

774788
```bash
775789
poetry export -f requirements.txt --output requirements.txt
776790
```
777791

778792
{{% note %}}
779-
This command is provided by the [Export Poetry Plugin](https://github.com/python-poetry/poetry-plugin-export)
780-
and is also available as a pre-commit hook. See [pre-commit hooks]({{< relref "pre-commit-hooks#poetry-export" >}}) for more information.
793+
The `export` command is also available as a pre-commit hook.
794+
See [pre-commit hooks]({{< relref "pre-commit-hooks#poetry-export" >}}) for more information.
781795
{{% /note %}}
782796

783797
{{% note %}}

0 commit comments

Comments
 (0)