If you need to install AWS SAM CLI on a Mac, then the easiest option is to use Homebrew with the following commands:

1
2
brew tap aws/tap
brew install aws-sam-cli

Now you can validate the installation as follows:

1
sam --version