Skip to main content
Scaffold a new microservice module with its own entrypoint, start hook, Dockerfile, and env file on a free port. The microservice is declared in the app module config, the root env config, the root tsconfig path aliases, and the commitlint config when those files exist.

Usage

ooneex microservice:create [options]

Examples

# Interactive: prompts for the microservice name
ooneex microservice:create

# Provide the name as a flag
ooneex microservice:create --name=billing

# Run against a specific project directory
ooneex microservice:create --name=billing --cwd=/path/to/project

Options

OptionDescriptionDefault
--nameMicroservice name. Normalized to PascalCase with any trailing Module stripped; the module folder uses its kebab-case form.Prompted if omitted
--cwdProject directory the microservice is created in.Current working directory
--silentSuppress prompts and success output.false