mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
35 lines
1.0 KiB
Markdown
35 lines
1.0 KiB
Markdown
<!--
|
|
title: Serverless Framework Commands - AWS Lambda - Install
|
|
menuText: Install
|
|
menuOrder: 2
|
|
description: Install pre-written AWS Lambda Functions, Events and Resources with the Serverless Framework
|
|
layout: Doc
|
|
-->
|
|
|
|
<!-- DOCS-SITE-LINK:START automatically generated -->
|
|
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/install)
|
|
<!-- DOCS-SITE-LINK:END -->
|
|
|
|
# Install
|
|
|
|
Installs a service from a GitHub URL in the current working directory.
|
|
|
|
```bash
|
|
serverless install --url https://github.com/some/service
|
|
```
|
|
|
|
## Options
|
|
- `--url` or `-u` The services GitHub URL. **Required**.
|
|
|
|
## Provided lifecycle events
|
|
- `install:install`
|
|
|
|
## Examples
|
|
|
|
### Installing a service from a GitHub URL
|
|
|
|
```bash
|
|
serverless install --url https://github.com/johndoe/authentication
|
|
```
|
|
|
|
This example will download the .zip file of the `authentication` service from GitHub, create a new directory with the name `authentication` in the current working directory and unzips the files in this directory. |