Walid Elnozahy 4139098261
chore: update docs frontmatter (#12677)
* chore: update docs frontmatter

* fix: frontmatter to comments
2024-07-10 17:48:57 +03:00

46 lines
1.2 KiB
Markdown

<!--
title: Serverless Framework Commands - AWS Lambda - Plugin Install
description: Install a Serverless plugin and add it to the service's plugins array using the Serverless Framework.
short_title: Plugin Install
keywords: ['Serverless', 'Framework', 'AWS Lambda', 'plugin', 'installation']
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/plugin-install)
<!-- DOCS-SITE-LINK:END -->
# Plugin Install
Install a Serverless plugin and add it to the services `plugins` array. By default, a latest version is installed.
If you want a specific version, you can specify `<pluginname>@<version>` as name option.
**Note:** You might want to change the order of the plugin in the services `plugins` array.
```bash
serverless plugin install --name pluginName
```
## Options
- `--name` or `-n` The plugins name. **Required**.
## Provided lifecycle events
- `plugin:install:install`
## Examples
### Install the `serverless-webpack` plugin
```bash
serverless plugin install --name serverless-webpack
```
### Install a specific version
```bash
serverless plugin install --name serverless-webpack@3.0.0-rc.2
```