Skip to content

Commit 57f1781

Browse files
darthwalshnaoyasugita
authored andcommitted
docs: Describe cleanCache in README (serverless#794)
1 parent e69a0b9 commit 57f1781

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
@@ -451,12 +451,27 @@ functions:
451451
vendor: ./hello-vendor # The option is also available at the function level
452452
```
453453

454-
## Manual invocations
454+
## Manual invocation
455455

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

461476
## Invalidate requirements caches on package
462477

0 commit comments

Comments
 (0)