Amazon SAM CLI core commands - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon SAM CLI core commands

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.

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.

sam deploy

Deploys an application to the Amazon Cloud using Amazon CloudFormation.

sam init

Provides options to initialize and create a new serverless application.

sam local

Provides subcommands to test your serverless applications locally.

sam remote invoke

Provides a way to interact with supported Amazon resources in the Amazon Cloud.

sam remote test-event

Provides a way to access and manage shareable test events for your Amazon Lambda functions.

sam sync

Provides options to quickly sync local application changes to the Amazon Cloud.