
# 安装
#### serverless install命令
在当前工作目录中从GitHub URL安装服务，如下：
```
serverless install --url https://github.com/some/service
```
#### 选项
- --url或-u：GitHub的服务URL，必填。
- --name或-n：服务名称。
 
#### 示例
- **从GitHub URL安装服务**
  ```
  serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-Nodejs
  ```
  本示例将从GitHub下载huawei-Nodejs服务的.zip文件，在当前工作目录下创建一个名为huawei-Nodejs的新目录，并将文件解压到该目录下。
  
- **使用新服务名称从GitHub URL安装服务**
  ```
  serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-Nodejs--name my-huawei-service
  ```
  此示例执行过程如下：
  1. 从GitHub下载huawei-Nodejs服务的.zip文件。
  
  2. 在当前工作目录中创建名为my-huawei-service的新目录。
  
  3. 在此目录中解压文件。
  
  4. 如果根服务中存在serverless.yml，则将服务重命名为my-huawei-service。
   
- **从GitHub URL中的目录安装服务**
  ```
  serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-Nodejs
  ```
  本示例将从GitHub下载huawei-Nodejs服务。
  
 
