tldr/pages/common/serverless.md

30 lines
654 B
Markdown
Raw Normal View History

2017-12-18 21:30:51 +00:00
# serverless
> Toolkit for deploying and operating serverless architectures on AWS, Google Cloud, Azure and IBM OpenWhisk.
> Commands can be run either using the `serverless` command or its alias, `sls`.
> More information: <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
- Invoke a deployed function:
2017-12-18 21:30:51 +00:00
`serverless invoke -f {{function_name}}`
2017-12-18 21:30:51 +00:00
- Follow the logs for a project:
2017-12-18 21:30:51 +00:00
`serverless logs -t`