Listing all arguments that may be passed to an artisan commands in Laravel 5

For getting commands help for artisan, we may pass help argument with the command syntax.

Example

C:\wamp\www\laravel>php artisan help make:controller
Usage:
 make:controller [--plain] name

Arguments:
 name                  The name of the class

Options:
 --plain               Generate an empty controller class.
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version
 --ansi                Force ANSI output
 --no-ansi             Disable ANSI output
 --no-interaction (-n) Do not ask any interactive question
 --env                 The environment the command should run under.

The above command will generate all the options that will be used with make:controller command.

Share

You may also like...