nest generate middleware <middleware>

Generate a middleware declaration

Arguments

NameDescription
middlewareThe name of the middleware

Options

NameDescription
-d, --dry-runReport actions that would be taken without writing out results
-p, --project <project>Project in which to generate files
--flatEnforce flat structure of generated element
--specEnforce spec files generation (default: true)
--no-specDisable spec files generation
-c, --collection <collection>Schematics collection to use