Installing Serverless Framework as a standalone binary
As explained in the Setup page, the recommended way to install Serverless Framework is via NPM.
If you don't want to install Node or NPM, you can install the
serverless CLI as a standalone binary instead.
To install the latest version, run this command in your terminal:
curl -o- -L https://slss.io/install | bash
To install a specific version, you may set a
VERSION variable, for example:
curl -o- -L https://slss.io/install | VERSION=2.72.2 bash
Then, open another terminal window to run the
On macOS/Linux, upgrade Serverless Framework to the latest version by running:
serverless upgrade # You can also restrict the upgrade to the latest v2 version: curl -o- -L https://slss.io/install | VERSION=2.72.2 bash
Install Serverless Framework with Chocolatey:
choco install serverless
On Windows, upgrade Serverless Framework to the latest version by running:
choco upgrade serverless
Now that Serverless Framework is installed, get back to the Setup guide to create your first project.