Add Entity Command

Adds a new entity and all associated files to a bounded context.

This command can add one or more new entities to your Wrapt project using a formatted yaml or json file. The input file template only requires a list of one or more entities.

This command must to be run from the solution directory for a project that was made using the new:domain command.

craftsman add:entity [options] <filepath>

Add Entity Arguments

ArgumentDescription
filepathThe full filepath for the yaml or json file that lists the new entities that you want to add to your API.

Add Entity Options

OptionDescription
-h, --helpDisplay help message. No filepath is needed to display the help message.
-vShow verbose output.

Add Entity Example Commands

craftsman add:entity -h
craftsman add:entity C:\fullpath\newentity.yaml
craftsman add:entity C:\fullpath\newentity.yml
craftsman add:entity C:\fullpath\newentity.json

Add Entity Example

The examples on the project tutorial and the entity template cover how to add new entities.