sam

AWS Serverless Application Model CLI

Subcommands

NameDescription
initInit an AWS SAM application
validateValidate an AWS SAM template
buildBuild your Lambda function code
localRun your Serverless application locally for quick development & testing
packagePackage an AWS SAM application
deployDeploy an AWS SAM application
deleteDelete an AWS SAM application and the artifacts created by `sam deploy`
logsFetch logs for a function
publishPublish a packaged AWS SAM template to the AWS Serverless Application Repository
traces[Beta Feature] Fetch AWS X-Ray traces
sync[Beta Feature] Sync a project to AWS
pipelineManage the continuous delivery of the application

Options

NameDescription
--debugTurn on debug logging to print debug message generated by SAM CLI and display timestamps
--help,-hShow help for sam
--versionShow the version and exit
--info