Getting started with Serverless Framework’s Open Source CLI and AWS takes only a few minutes. Install as a standalone binary, or with npm.
Run this command in your terminal:
curl -o- -L https://slss.io/install | bashThen open another terminal window to run serverless program.
Install with Chocolatey:
choco install serverlessNote: If you don’t already have Node on your machine, you’ll need to install it first. We suggest using the latest LTS version of NodeJS.
Install the serverless CLI:
npm install -g serverlessRun below command and follow the prompts
serverlessNote: Users in China are presented with setup centered around chinese Tencent provider. If you're based in China and prefer to be presented with steps as outside of China ensure SERVERLESS_PLATFORM_VENDOR=aws in your environment
serverless upgradechoco upgrade serverlessnpm update -g serverlessLearn more about Serverless Framework Pro and sign up for free.
Once you’ve signed up for Pro, login to your Pro dashboard from the CLI:
serverless loginYou can either add a new service in your dashboard, or with the CLI, using the command:
serverless