mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 10:55:50 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/poetry-source
Normal file
30
tldr/poetry-source
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
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}}`
|
||||
Reference in New Issue
Block a user