mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
29 lines
871 B
Markdown
29 lines
871 B
Markdown
# Create
|
|
|
|
```
|
|
serverless create --name serviceName --provider providerName
|
|
```
|
|
|
|
Creates a new service in the current working directory.
|
|
|
|
## Options
|
|
- `--name` or `-n` The name of your new service. **Required**.
|
|
- `--provider` or `-p` The provider you want your service to deploy to. **Required**.
|
|
|
|
## Provided lifecycle events
|
|
- `create:create`
|
|
|
|
## Examples
|
|
|
|
### Creating a new service
|
|
|
|
```
|
|
serverless create --name myNewService --provider aws
|
|
```
|
|
|
|
This example will create a new service called `myNewService`. A new directory with the name `myNewService` will be created
|
|
in your current working directory. It contains the boilerplate necessary to operate your new service.
|
|
|
|
Your new service will have a default stage called `dev` and a default region inside that stage called `us-east-1`.
|
|
The provider which is used for deployment later on is AWS (Amazon web services).
|