

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# AWS SAMCLI 核心命令
<a name="using-sam-cli-corecommands"></a>

AWS SAMCLI 有一些基本命令，可用于创建、构建、测试、部署和同步无服务器应用程序。下表列出了这些命令，并提供了每个命令的更多信息链接。

有关 AWS SAMCLI 命令的完整列表，请参阅 [AWS SAM CLI 命令参考](serverless-sam-cli-command-reference.md)。


| 命令 | 作用 | 相关主题 | 
| --- | --- | --- | 
| **sam build** | 为开发人员工作流程中的后续步骤做好准备，例如本地测试或部署到 AWS 云端。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam deploy** | 使用 CloudFormation将应用程序部署到 AWS 云端。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam init** | 提供用于初始化和创建新的无服务器应用程序的选项。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam local** | 提供用于在本地测试无服务器应用程序的子命令。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam remote invoke** | 提供一种与 AWS 云中支持的 AWS 资源进行交互的方式。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam remote test-event** | 提供一种访问和管理您的 Lambd AWS a 函数的可共享测试事件的方法。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam sync** | 提供将本地应用程序更改快速同步到 AWS 云端的选项。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 