2017-12-18 21:30:51 +00:00
|
|
|
# serverless
|
|
|
|
|
|
|
|
> Toolkit for deploying and operating serverless architectures on AWS, Google Cloud, Azure and IBM OpenWhisk.
|
2017-12-19 18:58:43 +00:00
|
|
|
> Commands can be run either using the 'serverless' command or it's alias, 'sls'.
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-18 21:35:44 +00:00
|
|
|
- Create a serverless project:
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless create`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-19 14:45:17 +00:00
|
|
|
- Create a serverless project from a template:
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless create --template {{template_name}}`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
|
|
|
- Deploy to a cloud provider:
|
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless deploy`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
|
|
|
- Display information about a serverless project:
|
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless info`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-19 14:45:17 +00:00
|
|
|
- Follow the logs for a project:
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless logs -t`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
|
|
|
- Display metrics for a function:
|
|
|
|
|
2017-12-19 18:53:22 +00:00
|
|
|
`serverless metrics -f {{function_name}}`
|