Linux:
-
Open a web browser and go to the following URL: https://github.com/aws/aws-sam-cli/releases/latest
-
Scroll down to the "Assets" section and download the latest release of the AWS SAM CLI for Linux. Look for a file with a
.zipextension. -
Once the download is complete, open a terminal.
-
In the terminal, navigate to the directory where you downloaded the AWS SAM CLI ZIP file using the
cdcommand. For example:cd /path/to/sam/cli. -
Extract the contents of the ZIP file by running the following command:
unzip sam-x.x.x.zip, replacingx.x.xwith the version number you downloaded. -
Change into the extracted directory using the
cdcommand. For example:cd sam-x.x.x. -
Run the following command to install the AWS SAM CLI:
sudo ./install. -
Verify that the AWS SAM CLI is installed correctly by running the following command:
sam --version. It should display the version information if the installation was successful.
That's it!