← 返回命令列表

Linux command

poetry-cache 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show cache directory path

poetry cache list

Clear cache for specific package

poetry cache clear [cache_name] --all

Clear PyPI cache

poetry cache clear pypi --all

说明

poetry cache manages Poetry's package cache. Poetry caches downloaded packages to speed up subsequent installations. Use this to view cache contents or clear space.

参数

list
Show cached packages per repository.
clear _cache_
Clear a specific cache.
--all
Clear all entries in cache.

FAQ

What is the poetry-cache command used for?

poetry cache manages Poetry's package cache. Poetry caches downloaded packages to speed up subsequent installations. Use this to view cache contents or clear space.

How do I run a basic poetry-cache example?

Run `poetry cache list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in poetry-cache?

Show cached packages per repository.