

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

AWS 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 AWS SAM CLI commands, see [AWS 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 AWS Cloud. |  + [Introduction to building with AWS SAM](using-sam-cli-build.md)<br />+ [sam build](sam-cli-command-reference-sam-build.md)  | 
| **sam deploy** | Deploys an application to the AWS Cloud using CloudFormation. |  + [Introduction to deploying with AWS SAM](using-sam-cli-deploy.md)<br />+ [sam deploy](sam-cli-command-reference-sam-deploy.md)  | 
| **sam init** | Provides options to initialize and create a new serverless application. |  + [Create your application in AWS SAM](using-sam-cli-init.md)<br />+ [sam init](sam-cli-command-reference-sam-init.md)  | 
| **sam local** | Provides subcommands to test your serverless applications locally. |  + [Introduction to testing with the sam local command](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** | Provides a way to interact with supported AWS resources in the AWS Cloud. |  + [Introduction to testing in the cloud with sam remote invoke](using-sam-cli-remote-invoke.md)<br />+ [sam remote invoke](sam-cli-command-reference-remote-invoke.md)  | 
| **sam remote test-event** | Provides a way to access and manage shareable test events for your AWS Lambda functions. |  + [Introduction to cloud testing with 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** | Provides options to quickly sync local application changes to the AWS Cloud. |  + [Introduction to using sam sync to sync to AWS Cloud](using-sam-cli-sync.md)<br />+ [sam sync](sam-cli-command-reference-sam-sync.md)  | 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS Serverless Application Model. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query serverless-application-model` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
