The AWS Serverless Application Model (SAM) Command Line Interface (CLI) lets you locally build, test, and debug serverless applications defined by AWS SAM templates. You can now use the sam logs command to fetch, tail, and filter logs generated by your AWS Lambda functions. You can also use the sam local start-lambda command to invoke local Lambda functions from your automated tests.