Skip to main content
Generate a TypeORM entity class alongside its test file in the target module and add the class to the module’s entities array. The command writes modules/<module>/src/entities/<Name>Entity.ts and modules/<module>/tests/entities/<Name>Entity.spec.ts. When --table-name is omitted, the table name defaults to the snake_case pluralized form of the name.

Usage

Examples

Options

AI Skill

This command ships a matching entity:create skill. Your AI agent uses it to generate the entity class and its test file, then fill in the columns, relations, and table mapping for the database entity.