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

talos microservice:create [options]

Examples

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

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

# Run against a specific project directory
talos 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