HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

poetry remove — Remove a package from the project dependencies. More information: <https://python-poetry.org/docs/cl

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpoetry removeremovefromclipackageproject

Problem

How to use the poetry remove command: Remove a package from the project dependencies. More information: <https://python-poetry.org/docs/cli/#remove>.

Solution

poetry remove — Remove a package from the project dependencies. More information: <https://python-poetry.org/docs/cli/#remove>.

Remove one or more packages from the project's dependencies:
poetry remove {{package1 package2 ...}}


Remove a package from the development dependencies:
poetry remove {{package}} {{[-D|--dev]}}


Remove a package from a specific dependency group:
poetry remove {{package}} {{[-G|--group]}} {{group_name}}


Remove a package without making any changes (dry-run):
poetry remove {{package}} --dry-run


Update the lock file only, without removing the package from the environment:
poetry remove {{package}} --lock

Code Snippets

Remove one or more packages from the project's dependencies

poetry remove {{package1 package2 ...}}

Remove a package from the development dependencies

poetry remove {{package}} {{[-D|--dev]}}

Remove a package from a specific dependency group

poetry remove {{package}} {{[-G|--group]}} {{group_name}}

Remove a package without making any changes (dry-run)

poetry remove {{package}} --dry-run

Update the lock file only, without removing the package from the environment

poetry remove {{package}} --lock

Context

tldr-pages: common/poetry remove

Revisions (0)

No revisions yet.