generate:controller

The generate:controller command: Generate & Register a controller

Usage:

        $ drupal generate:controller [options] 
    

Available options

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