Serverless Devs Tool is a tool that makes the development and operations and maintenance (O&M) of serverless applications more efficient. This tool allows you to develop, create, test, and deploy an application with ease and efficiency, to manage the full lifecycle of the application. This topic describes how to install Serverless Devs Tool.
Quick installation in macOS or Linux
If you are using the macOS or Linux operating system, you can run the following command to install Serverless Devs Tool:
curl -o- -L http://cli.so/install.sh | bash
Installation by using npm
This method is applicable to the Windows, macOS, and Linux operating systems where Node Package Manager (npm) is installed.
You must download and install Node.js 10 or later. For more information, visit the Downloads page.
To install Serverless Devs Tool in Windows, macOS, or Linux by using npm, run the following command:
npm install @serverless-devs/s -gNote
Error: EACCES: permission deniederror message appears after the preceding command is run in Linux or macOS, you can run the following command to resolve the issue:
sudo npm install @serverless-devs/s -g.
If the installation takes a long period of time, you can run the following command to use the Taobao npm repository:
npm --registry=https://registry.npm.taobao.org install @serverless-devs/s -g.
After the installation is complete, run the following command to view the version information:
Serverless Tool Version: Release: 1.1.2 Local : 1.1.0 You can upgrade through : npm install @serverless-devs/s -g Update information: 1. Add the .signore file of platform publish 2. Fix the component template problem in platform init. 3. Fix exit code problem during execution (normal exit 0, abnormal exit 1)