LinuxCommandLibrary

poetry-source

Manage package repository sources

TLDR

Add package source

$ poetry source add [name] [url]
copy
Remove package source
$ poetry source remove [name]
copy
Show configured sources
$ poetry source show
copy
Add private repository
$ poetry source add --priority=supplemental [name] [url]
copy

SYNOPSIS

poetry source command [options]

DESCRIPTION

poetry source manages package repository sources in pyproject.toml. It allows adding private or alternative package indexes alongside or instead of the default PyPI.
The --priority option controls how sources are used: primary sources are checked first, supplemental sources are checked only for packages not found in primary sources, and explicit sources are only used when a package specifically references them. Use show to list configured sources.

PARAMETERS

add NAME URL

Add package source.
remove NAME
Remove source.
show
List sources.
--priority LEVEL
Source priority (primary, supplemental, explicit).

CAVEATS

Modifies pyproject.toml. Priority affects resolution order.

HISTORY

poetry source provides repository management for package sources.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community