generate:controller

The generate:controller command Generate & Register a controller

Usage:

$ drupal generate:controller [options] 
$ gcn

Available options

Option Details
--module The Module name.
--class Controller Class name
--title Title of the controller
--method The action method name
--route The route path
--services Load services from the container.
--test Generate a test class