

# Amazon SAM CLI core commands
<a name="using-sam-cli-corecommands"></a>

Amazon SAM CLI has some basic commands you use to create, build, test, deploy, and sync your serverless application. The table below lists these commands and provides links with more information for each.

For a complete list of Amazon SAM CLI commands, see [Amazon SAM CLI command reference](serverless-sam-cli-command-reference.md).


| Command | What it does | Related topics | 
| --- | --- | --- | 
| **sam build** | Prepares an application for subsequent steps in the developer workflow, such as local testing or deploying to the Amazon Cloud. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam deploy** | Deploys an application to the Amazon Cloud using Amazon CloudFormation. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam init** | Provides options to initialize and create a new serverless application. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam local** | Provides subcommands to test your serverless applications locally. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam remote invoke** | Provides a way to interact with supported Amazon resources in the Amazon Cloud. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam remote test-event** | Provides a way to access and manage shareable test events for your Amazon Lambda functions. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 
| **sam sync** | Provides options to quickly sync local application changes to the Amazon Cloud. |  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html)  | 