← Registry
CLI Official

AWS SAM CLI

A command line tool to build, test, debug, and deploy serverless applications using the AWS Serverless Application Model.

Install

curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-macos-arm64.pkg -o aws-sam-cli.pkg && sudo installer -pkg aws-sam-cli.pkg -target /
$

A CLI that covers the full serverless lifecycle for Lambda, API Gateway, Step Functions, and EventBridge apps defined with the SAM template, a shorthand that expands into CloudFormation. It scaffolds projects with sam init, compiles functions with sam build, runs and debugs them locally in Docker via sam local, and ships them with sam deploy or sam sync. Reach for it when developing and testing serverless applications before they hit the cloud.