mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 04:36:49 +08:00
poetry-self: add page (#18037)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
co-authored by
Managor
Dylan
parent
3a371015f5
commit
0476b3a34e
@@ -0,0 +1,38 @@
|
||||
# poetry-self
|
||||
|
||||
> Manage the Poetry installation/runtime environment itself.
|
||||
> These commands reference `pyproject.toml` and `poetry.lock` files in your Poetry configuration directory.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://python-poetry.org/docs/cli/#self>.
|
||||
|
||||
- Install a package:
|
||||
|
||||
`poetry self add {{package_name}}`
|
||||
|
||||
- Install dependencies from the Poetry installation's `pyproject.toml` file:
|
||||
|
||||
`poetry self install`
|
||||
|
||||
- Lock dependencies from the Poetry installation's `pyproject.toml` file:
|
||||
|
||||
`poetry self lock`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`poetry self remove {{package_name}}`
|
||||
|
||||
- List all installed packages:
|
||||
|
||||
`poetry self show`
|
||||
|
||||
- List all installed plugins:
|
||||
|
||||
`poetry self show plugins`
|
||||
|
||||
- Sync the runtime environment with the Poetry installation's `poetry.lock` file:
|
||||
|
||||
`poetry self sync`
|
||||
|
||||
- Update dependencies from the Poetry installation's `pyproject.toml` file:
|
||||
|
||||
`poetry self update`
|
||||
Reference in New Issue
Block a user