snippetbashTip
poetry remove — Remove a package from the project dependencies. More information: <https://python-poetry.org/docs/cl
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-runUpdate the lock file only, without removing the package from the environment:
poetry remove {{package}} --lockCode 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-runUpdate the lock file only, without removing the package from the environment
poetry remove {{package}} --lockContext
tldr-pages: common/poetry remove
Revisions (0)
No revisions yet.