Add Message Command

Adds a message for event driven notifications to the Messages project.

This command will add a MassTransit message to an existing Wrapt project using a formatted yaml or json file. The input file template.

This command will:

  • Add a message to your Messages project.

This command must to be run from the root directory for a project that was made using the new domain command. This directory should have your sln file inside of it.

craftsman add message [options] <filepath>

Add Message Arguments

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

Add Message Options

-h, --helpDisplay help message. No filepath is needed to display the help message.

Add Message Example Commands

craftsman add message -h
craftsman add message C:\fullpath\newmessage.yaml
craftsman add message C:\fullpath\newmessage.yml
craftsman add message C:\fullpath\newmessage.json

Add Message Example

When using the add message command, your template file is pretty simple. Check out the Adding a Message to an Existing Project example for more details.