snippetbashTip
poetry source — Add source configurations to your Poetry project. See also: `asdf`. More information: <https://pytho
Viewed 0 times
configurationscommandpoetry sourcesourcepoetrycliaddyour
Problem
How to use the
poetry source command: Add source configurations to your Poetry project. See also: asdf. More information: <https://python-poetry.org/docs/cli/#source>.Solution
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 showDisplay info for a specific source:
poetry source show {{source_name}}Remove a source from your
pyproject.toml file:poetry source remove {{source_name}}Code Snippets
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 showDisplay info for a specific source
poetry source show {{source_name}}Remove a source from your `pyproject.toml` file
poetry source remove {{source_name}}Context
tldr-pages: common/poetry source
Revisions (0)
No revisions yet.