Skip to content

Commit

Permalink
Document the CLI 'cache clear' command
Browse files Browse the repository at this point in the history
Resolves: #3065
  • Loading branch information
peldszus authored Oct 4, 2020
1 parent 3f6220d commit ae6f574
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

For example, 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
```

0 comments on commit ae6f574

Please sign in to comment.