diff --git a/docs/docs/cli.md b/docs/docs/cli.md index 8fbdf582131..b051e9346bb 100644 --- a/docs/docs/cli.md +++ b/docs/docs/cli.md @@ -230,16 +230,18 @@ poetry add ../my-package/dist/my-package-0.1.0.tar.gz poetry add ../my-package/dist/my_package-0.1.0.whl ``` -Path dependencies pointing to a local directory will be installed in editable mode (i.e. setuptools "develop mode"). -It means that changes in the local directory will be reflected directly in environment. - -If you don't want the dependency to be installed in editable mode you can specify it in the `pyproject.toml` file: +If you want the dependency to be installed in editable mode you can specify it in the `pyproject.toml` file. It means that changes in the local directory will be reflected directly in environment. ```toml [tool.poetry.dependencies] -my-package = {path = "../my/path", develop = false} +my-package = {path = "../my/path", develop = true} ``` +!!!note + + Before poetry 1.1 path dependencies were installed in editable mode by default. You should always set the `develop` attribute explicit, + to make sure the behavior is the same for all poetry versions. + If the package(s) you want to install provide extras, you can specify them when adding the package: