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 19:03:12 +00:00
|
|
|
> Commands can be run either using the `serverless` command or it's alias, `sls`.
|
2019-01-30 11:19:23 +00:00
|
|
|
> Homepage: <https://serverless.com/>.
|
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-20 20:41:32 +00:00
|
|
|
- Invoke a deployed function:
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-20 20:41:32 +00:00
|
|
|
`serverless invoke -f {{function_name}}`
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-20 20:41:32 +00:00
|
|
|
- Follow the logs for a project:
|
2017-12-18 21:30:51 +00:00
|
|
|
|
2017-12-20 20:41:32 +00:00
|
|
|
`serverless logs -t`
|