add some examples and docs

This commit is contained in:
Kostas Bariotis 2017-09-27 22:03:38 +03:00
parent 47082fbc43
commit d7d1f79fa4

View File

@ -26,8 +26,15 @@ serverless create --template aws-nodejs
serverless create --template aws-nodejs --path myService
```
**Create service in new folder using a custom template:**
```bash
serverless create --template-url https://github.com/serverless/serverless/tree/master/lib/plugins/create/templates/aws-nodejs --path myService
```
## Options
- `--template` or `-t` The name of one of the available templates. **Required**.
- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**.
- `--template-url` or `-t` The name of one of the available templates. **Required if --template is not present**.
- `--path` or `-p` The path where the service should be created.
- `--name` or `-n` the name of the service in `serverless.yml`.