Skip to content

Commit

Permalink
doc: add reference to package source for add
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Feb 25, 2024
1 parent 9fe70cf commit 8b16de3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ poetry will choose a suitable one based on the available package versions.
poetry add requests pendulum
```

{{% note %}}
A package is looked up, by default, only from the [Default Package Source]({{< relref "repositories/#default-package-source" >}}).
You can modify the default source (PyPI); or add and use [Supplemental Package Sources]({{< relref "repositories/#supplemental-package-sources" >}})
or [Explicit Package Sources]({{< relref "repositories/#explicit-package-sources" >}}).

For more information, refer to the [Package Sources]({{< relref "repositories/#package-sources" >}}) documentation.
{{% /note %}}

You can also specify a constraint when adding a package:

```bash
Expand Down

0 comments on commit 8b16de3

Please sign in to comment.