

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

# 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 雲端。 |  + [使用 建置 簡介 AWS SAM](using-sam-cli-build.md)<br />+ [sam build](sam-cli-command-reference-sam-build.md)  | 
| **sam deploy** | 使用 將應用程式部署至 AWS 雲端 CloudFormation。 |  + [使用 部署簡介 AWS SAM](using-sam-cli-deploy.md)<br />+ [sam deploy](sam-cli-command-reference-sam-deploy.md)  | 
| **sam init** | 提供初始化和建立新的無伺服器應用程式的選項。 |  + [在 中建立您的應用程式 AWS SAM](using-sam-cli-init.md)<br />+ [sam init](sam-cli-command-reference-sam-init.md)  | 
| **sam local** | 提供子命令以在本機測試無伺服器應用程式。 |  + [使用 sam local命令進行測試的簡介](using-sam-cli-local.md)<br />+ [sam local generate-event](sam-cli-command-reference-sam-local-generate-event.md)<br />+ [sam local invoke](sam-cli-command-reference-sam-local-invoke.md)<br />+ [sam local start-api](sam-cli-command-reference-sam-local-start-api.md)<br />+ [sam local start-lambda](sam-cli-command-reference-sam-local-start-lambda.md)  | 
| **sam remote invoke** | 提供與 AWS 雲端中支援 AWS 的資源互動的方法。 |  + [在雲端使用 進行測試的簡介 sam remote invoke](using-sam-cli-remote-invoke.md)<br />+ [sam remote invoke](sam-cli-command-reference-remote-invoke.md)  | 
| **sam remote test-event** | 提供存取和管理 AWS Lambda 函數可共用測試事件的方法。 |  + [使用 進行雲端測試的簡介 sam remote test-event](using-sam-cli-remote-test-event.md)<br />+ [sam remote test-event](sam-cli-command-reference-remote-test-event.md)  | 
| **sam sync** | 提供快速將本機應用程式變更同步至 AWS 雲端的選項。 |  + [使用 sam sync 同步至 的簡介 AWS 雲端](using-sam-cli-sync.md)<br />+ [sam sync](sam-cli-command-reference-sam-sync.md)  | 