mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 16:44:26 +00:00
31 lines
685 B
Plaintext
31 lines
685 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# poetry source
|
|
|
|
> Add source configurations to your Poetry project.
|
|
> See also: `asdf`.
|
|
> More information: <https://python-poetry.org/docs/cli/#source>.
|
|
|
|
- Add a source configuration:
|
|
|
|
`poetry source add {{source_name}} {{source_url}}`
|
|
|
|
- Set the priority of a source:
|
|
|
|
`poetry source add --priority {{primary|supplemental|explicit}} {{source_name}} {{source_url}}`
|
|
|
|
- Display info for all sources:
|
|
|
|
`poetry source show`
|
|
|
|
- Display info for a specific source:
|
|
|
|
`poetry source show {{source_name}}`
|
|
|
|
- Remove a source from your `pyproject.toml` file:
|
|
|
|
`poetry source remove {{source_name}}`
|