[ec2-user@ip-10-0-0-143 ~]$ sudo su -
[root@ip-10-0-0-143 ~]# npm install -g serverless
[root@ip-10-0-0-143 ~]# serverless
Commands
* Serverless documentation: http://docs.serverless.com
* You can run commands with "serverless" or the shortcut "sls"
* Pass "--help" after any <command> for contextual help
create ........................ Create new Serverless service
install ....................... Install a Serverless service from GitHub
deploy ........................ Deploy a Serverless service
deploy function ............... Deploy a single function from the service
deploy list ................... List deployed version of your Serverless Service
invoke ........................ Invoke a deployed function
invoke local .................. Invoke function locally
info .......................... Display information about the service
logs .......................... Output the logs of a deployed function
remove ........................ Remove Serverless service and all resources
rollback ...................... Rollback the Serverless service to a specific deployment
slstats ....................... Enable or disable stats
Plugins
Create, Deploy, Info, Install, Invoke, Logs, Package, Remove, Rollback, SlStats
[root@ip-10-0-0-143 ~]# serverless -v
1.2.1