

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

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

AWS SAM CLI 有一些基本命令，您可用來建立、建置、測試、部署和同步無伺服器應用程式。下表列出這些命令，並提供每個命令的詳細資訊連結。

如需命令的完整清單 AWS SAM CLI，請參閱 [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_tw/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam deploy** | 使用 將應用程式部署至 AWS 雲端 CloudFormation。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/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_tw/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_tw/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_tw/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam remote test-event** | 提供存取和管理 AWS Lambda 函數可共用測試事件的方法。 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/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_tw/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 