diff --git a/docs/providers/azure/cli-reference/create.md b/docs/providers/azure/cli-reference/create.md index 998a09cef3e..f9bddeeaa54 100644 --- a/docs/providers/azure/cli-reference/create.md +++ b/docs/providers/azure/cli-reference/create.md @@ -28,8 +28,9 @@ serverless create --template azure-nodejs --path myService ``` ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -70,6 +71,14 @@ Serverless will use the already present directory. Additionally Serverless will rename the service according to the path you provide. In this example the service will be renamed to `my-new-service`. +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`. + ### Create service in new folder using a custom template ```bash diff --git a/docs/providers/google/cli-reference/create.md b/docs/providers/google/cli-reference/create.md index 232c84bdc08..27d550bdb33 100644 --- a/docs/providers/google/cli-reference/create.md +++ b/docs/providers/google/cli-reference/create.md @@ -28,8 +28,9 @@ serverless create --template google-nodejs --path my-service ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -61,6 +62,14 @@ This example will generate scaffolding for a service with `google` as a provider Additionally Serverless will rename the service according to the path you provide. In this example the service will be renamed to `my-new-service`. +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`. + ### Create service in new folder using a custom template ```bash diff --git a/docs/providers/kubeless/cli-reference/create.md b/docs/providers/kubeless/cli-reference/create.md index 7911ef2810c..68a1bd6b3b2 100644 --- a/docs/providers/kubeless/cli-reference/create.md +++ b/docs/providers/kubeless/cli-reference/create.md @@ -35,8 +35,9 @@ serverless create --template kubeless-nodejs --path my-service ``` ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -73,3 +74,11 @@ serverless create --template kubeless-python --path my-new-service This example will generate scaffolding for a service with `kubeless` as a provider and `python2.7` as runtime. The scaffolding will be generated in the `my-new-service` directory. This directory will be created if not present. Otherwise Serverless will use the already present directory. Additionally Serverless will rename the service according to the path you provide. In this example the service will be renamed to `my-new-service`. + +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`. diff --git a/docs/providers/openwhisk/cli-reference/create.md b/docs/providers/openwhisk/cli-reference/create.md index 5c5201e47b6..952029e9652 100644 --- a/docs/providers/openwhisk/cli-reference/create.md +++ b/docs/providers/openwhisk/cli-reference/create.md @@ -27,8 +27,9 @@ serverless create --template openwhisk-nodejs --path myService ``` ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -69,6 +70,14 @@ This example will generate scaffolding for a service with `openwhisk` as a provi Additionally Serverless will rename the service according to the path you provide. In this example the service will be renamed to `my-new-service`. +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`. + ### Create service in new folder using a custom template ```bash diff --git a/docs/providers/spotinst/cli-reference/create.md b/docs/providers/spotinst/cli-reference/create.md index 0009dea57c5..fa4421d7e60 100755 --- a/docs/providers/spotinst/cli-reference/create.md +++ b/docs/providers/spotinst/cli-reference/create.md @@ -27,8 +27,9 @@ serverless create -t spotinst-nodejs -p myService ``` ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -70,3 +71,11 @@ serverless create -t spotinst-nodejs -p my-new-service This example will generate scaffolding for a service with `Spotinst` as a provider and `ruby` as runtime. The scaffolding will be generated in the `my-new-service` directory. This directory will be created if not present. Otherwise Serverless will use the already present directory. + +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`. diff --git a/docs/providers/webtasks/cli-reference/create.md b/docs/providers/webtasks/cli-reference/create.md index 56da10709cf..779f57738d2 100755 --- a/docs/providers/webtasks/cli-reference/create.md +++ b/docs/providers/webtasks/cli-reference/create.md @@ -28,8 +28,9 @@ serverless create --template webtasks-nodejs --path my-service ## Options -- `--template` or `-t` The name of one of the available templates. **Required if --template-url is not present**. -- `--template-url` or `-u` The name of one of the available templates. **Required if --template is not present**. +- `--template` or `-t` The name of one of the available templates. **Required if --template-url and --template-path are not present**. +- `--template-url` or `-u` The name of one of the available templates. **Required if --template and --template-path are not present**. +- `--template-path` The local path of your template. **Required if --template and --template-url are not present**. - `--path` or `-p` The path where the service should be created. - `--name` or `-n` the name of the service in `serverless.yml`. @@ -60,3 +61,11 @@ serverless create --template webtasks-nodejs --path my-new-service This example will generate scaffolding for a service with `webtasks` as a provider. The scaffolding will be generated in the `my-new-service` directory. This directory will be created if not present. Otherwise Serverless will use the already present directory. Additionally Serverless will rename the service according to the path you provide. In this example the service will be renamed to `my-new-service`. + +### Creating a new service using a local template + +```bash +serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service +``` + +This will copy the `path/to/my/template/folder` folder into `path/to/my/service` and rename the service to `my-new-service`.