# AWS SAM CLI

> AWS's CLI for building, testing locally and deploying serverless apps with SAM templates

Source: https://talira.ai/catalog/aws-sam-cli-hh95p0mg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [hosting / serverless](https://talira.ai/categories/hosting/serverless), [devops / infrastructure as code](https://talira.ai/categories/devops/infrastructure-as-code), [cloud / cli](https://talira.ai/categories/cloud/cli)
- Licence: Apache-2.0[^4]
- Pricing: Free and open source[^4]
- Pricing notes: Free and open source (Apache-2.0); the AWS services it deploys are billed by AWS.
- Free tier: yes[^4]
- Backed by: [Amazon Web Services](https://talira.ai/orgs/amazon-web-services.md)
- Funding: part of Amazon[^5]

The AWS SAM CLI is Amazon Web Services' open source command-line tool for developing serverless applications made of [AWS Lambda](https://talira.ai/catalog/aws-lambda-13y26fra.md) functions, Step Functions, API Gateway, EventBridge, SQS, SNS and other services, described in AWS Serverless Application Model (SAM) or CloudFormation templates. sam init starts a project from templates, sam build compiles and packages functions (zip or container images), sam local runs Lambda functions and API Gateway in a Lambda-like Docker container on your machine (for SAM and [AWS CDK](https://talira.ai/catalog/aws-cdk-3bpgxst7.md) apps), sam sync pushes changes to a development stack in the cloud, sam deploy deploys, sam pipeline init generates CI/CD pipelines, and sam logs and sam traces tail CloudWatch logs and X-Ray traces. It's written in Python and installs with pip or Homebrew.

## Links

- Website: https://aws.amazon.com/serverless/sam/
- GitHub: https://github.com/aws/aws-sam-cli
- Docs: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/aws-sam-cli>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/aws-sam-cli>[^2]

## Problems it solves

- run and debug my Lambda function locally before deploying it
- deploy a serverless API on AWS from a template with one command
- set up a CI/CD pipeline for my AWS serverless app

## Features

- sam init: start from AWS-provided application templates
- sam build: build and package zip or image Lambda functions
- sam local: test Lambda functions and API Gateway locally in Docker
- sam sync: sync changes to a cloud development environment (SAM Accelerate)
- sam deploy and sam pipeline init for deployments and CI/CD pipelines
- sam logs and sam traces for CloudWatch logs and X-Ray traces

## Limitations

- Local testing of Lambda functions and API Gateway runs in Docker, so Docker must be installed.[^3]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.77, momentum 0.54, community 1.00, backing 0.55, extensibility 0.20.

- last commit 5 days ago
- 155 commits in the last 90 days
- latest release v1.174.1 5 days ago
- 6.7k GitHub stars
- 357 contributors
- 9k Homebrew installs in 30 days
- backed by Amazon Web Services
- funding: part of Amazon

## Related

- Works with [AWS Lambda](https://talira.ai/catalog/aws-lambda-13y26fra.md)

## Alternatives

- [Serverless Framework](https://talira.ai/catalog/serverless-framework-s0vy334p.md): Deploy serverless apps and their infrastructure to AWS Lambda from YAML
- [AWS CDK](https://talira.ai/catalog/aws-cdk-3bpgxst7.md): Define AWS infrastructure in TypeScript, Python, Java, .NET or Go
- [Fission](https://talira.ai/catalog/fission-tewwvbdb.md): Serverless functions framework for Kubernetes
- [OpenFaaS](https://talira.ai/catalog/openfaas-ys4ar62k.md): Serverless functions on any Kubernetes cluster

## Sources

[^1]: https://formulae.brew.sh/formula/aws-sam-cli (checked 29 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools/aws-sam-cli (checked 29 Nov 2026)
[^3]: https://github.com/aws/aws-sam-cli/blob/develop/README.md (checked 29 Nov 2026)
[^4]: https://github.com/aws/aws-sam-cli/blob/develop/LICENSE (checked 29 Nov 2026)
[^5]: https://aws.amazon.com/about-aws/ (checked 20 Nov 2026)
