Files
cheatsheet-tldr/tldr/poetry-cache
2025-09-28 00:21:14 +00:00

23 lines
509 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry cache
> Manage Poetry's cache.
> See also: `asdf`.
> More information: <https://python-poetry.org/docs/cli/#cache>.
- Display Poetry's available caches:
`poetry cache list`
- Remove all packages from a cache (e.g.: PyPI):
`poetry cache clear PyPI --all`
- Remove a specific package from a cache (Note: must be in format `cache:package:version`):
`poetry cache clear {{pypi}}:{{requests}}:{{2.24.0}}`