Introduction to testing with the sam local command - AWS Serverless Application Model

Introduction to testing with the sam local command

Use the AWS Serverless Application Model Command Line Interface (AWS SAM CLI) sam local command to test your serverless applications locally.

For an introduction to the AWS SAM CLI, see What is the AWS SAM CLI?.

To use sam local, install the AWS SAM CLI by completing the following:

Before using sam local, we recommend a basic understanding of the following:

Using the sam local command

Use the sam local command with any of its subcommands to perform different types of local testing for your application.

$ sam local <subcommand>

To learn more about each subcommand, see the following: