Skip to content

Commit 16c0e68

Browse files
authored
docs: Describe cleanCache in README (#794)
1 parent 4bbb80e commit 16c0e68

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

README.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,27 @@ functions:
450450
vendor: ./hello-vendor # The option is also available at the function level
451451
```
452452

453-
## Manual invocations
453+
## Manual invocation
454454

455-
The `.requirements` and `requirements.zip`(if using zip support) files are left
456-
behind to speed things up on subsequent deploys. To clean them up, run
457-
`sls requirements clean`. You can also create them (and `unzip_requirements` if
458-
using zip support) manually with `sls requirements install`.
455+
The `.requirements` and `requirements.zip` (if using zip support) files are left
456+
behind to speed things up on subsequent deploys. To clean them up, run:
457+
458+
```plaintext
459+
sls requirements clean
460+
```
461+
462+
You can also create them (and `unzip_requirements` if
463+
using zip support) manually with:
464+
465+
```plaintext
466+
sls requirements install
467+
```
468+
469+
The pip download/static cache is outside the serverless folder, and should be manually cleaned when i.e. changing python versions:
470+
471+
```plaintext
472+
sls requirements cleanCache
473+
```
459474

460475
## Invalidate requirements caches on package
461476

0 commit comments

Comments
 (0)