From d3bcf5a3001e741a5fe3207c38d16109b7f95528 Mon Sep 17 00:00:00 2001 From: Andreas Peldszus Date: Sat, 3 Oct 2020 16:06:34 +0200 Subject: [PATCH 1/2] Document the CLI action 'cache clear' --- docs/docs/cli.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/docs/cli.md b/docs/docs/cli.md index b051e9346bb..06161529dde 100644 --- a/docs/docs/cli.md +++ b/docs/docs/cli.md @@ -491,3 +491,19 @@ The `cache list` command lists Poetry's available caches. ```bash poetry cache list ``` + +### cache clear + +The `cache clear` command removes packages from a cached repository. + +To clear the whole cache of packages from the `pypi` repository, run: + +```bash +poetry cache clear pypi --all +``` + +To only remove a specific package from a cache, you have to specify the cache entry in the following form `cache:package:version`: + +```bash +poetry cache clear pypi:requests:2.24.0 +``` From b2e4a348f1f5a91164b108dd7616c0bc003ddc6a Mon Sep 17 00:00:00 2001 From: Andreas Peldszus Date: Sun, 4 Oct 2020 11:35:11 +0200 Subject: [PATCH 2/2] Update docs/docs/cli.md Co-authored-by: Arun Babu Neelicattu --- docs/docs/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cli.md b/docs/docs/cli.md index 06161529dde..ca94222ef2a 100644 --- a/docs/docs/cli.md +++ b/docs/docs/cli.md @@ -496,7 +496,7 @@ poetry cache list The `cache clear` command removes packages from a cached repository. -To clear the whole cache of packages from the `pypi` repository, run: +For example, to clear the whole cache of packages from the `pypi` repository, run: ```bash poetry cache clear pypi --all