generate:controller
If you are looking to generate a resourceful (CRUD) controller with a model, see the resource generator documentation.
generate:controller is for generating a simple controller skeleton (and the inheritance chain to that controller). The CLI documentation follows, below, but the controller generator documentation explains controller generation in greater detail.
Usage
yarn psy g:controller [options] <controllerName> [actions...]
Arguments:
<controllerName>: The name of the controller to create, including namespaces, e.g.PostsorApi/V1/Posts.[actions...]: The names of controller actions to create.
Options:
-h, --help: Display help for command.