Skip to content

Commit

Permalink
docs: Describe cleanCache in README (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
darthwalsh authored Jan 1, 2024
1 parent 4bbb80e commit 16c0e68
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,27 @@ functions:
vendor: ./hello-vendor # The option is also available at the function level
```

## Manual invocations
## Manual invocation

The `.requirements` and `requirements.zip`(if using zip support) files are left
behind to speed things up on subsequent deploys. To clean them up, run
`sls requirements clean`. You can also create them (and `unzip_requirements` if
using zip support) manually with `sls requirements install`.
The `.requirements` and `requirements.zip` (if using zip support) files are left
behind to speed things up on subsequent deploys. To clean them up, run:

```plaintext
sls requirements clean
```

You can also create them (and `unzip_requirements` if
using zip support) manually with:

```plaintext
sls requirements install
```

The pip download/static cache is outside the serverless folder, and should be manually cleaned when i.e. changing python versions:

```plaintext
sls requirements cleanCache
```

## Invalidate requirements caches on package

Expand Down

0 comments on commit 16c0e68

Please sign in to comment.