ern create-api <apiName>
<apiName>
-api
--scope/-s <scope>
package.json
of the generated API.--packageName/-p <name>
package.json
of the generated API.--apiVersion/-a <version>
--apiAuthor/-u <author>
package.json
file of the API--schemaPath/-m <schemaPath>
schemaPath
ern regen-api
command.--skipNpmCheck
--manifestId <manifestId>
ern create-api weather
This example shows how to create a unscoped package named weather-api
. The API project is located in the new directory named weather
.ern create-api weather --scope MyCompany
This example shows how to create a scoped package named @MyCompany/weather-api
.ern create-api weather --schemaPath schema.json
This example shows how to create a unscoped package named weather-api
. The API project is located in the new directory named weather
. The --schemaPath
option specifies location of file containing pre-existing Swagger schema.package.json
file.