sam local execution - AWS Serverless Application Model
This documentation is a draft for private preview for regions in the AWS European Sovereign Cloud. Documentation content will continue to evolve. Published: January 12, 2026.

sam local execution

This page provides reference information for the AWS Serverless Application Model Command Line Interface (AWS SAM CLI) sam local execution command.

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

The sam local execution command allows you to manage and inspect local durable function executions during development and testing.

Note

These commands may not require access to AWS credentials.

Usage

$ sam local execution <subcommand> <options>

Options

--help, -h

Show this message and exit.

Subcommands

get

Get details of a durable function execution. For more information, see sam local execution get.

history

Get execution history of a durable function execution. For more information, see sam local execution history.

stop

Stop a durable function execution. For more information, see sam local execution stop.