-
Notifications
You must be signed in to change notification settings - Fork 13
generate:command
Rob Sanchez edited this page Nov 1, 2014
·
3 revisions
Generate a custom command.
$ eecli generate:command <command_name> <path>
The name of the command. (ex. show:config)
Optional. Where to create the Command file.
The command description.
Add a namespace to the class.
Whether the command has arguments.
Whether the command has options.
Generate a file called YourCustomCommand in the current directory
$ eecli generate:command your:custom_comand
Generate in the specified directory
$ eecli generate:command your:custom_comand ./commands/
Generate with a namespace
$ eecli generate:command --namespace="YourSite\Command" your:custom_comand ./src/YourSite/Command/
Generate with arguments and options
$ eecli generate:command --options --arguments your_command
Generate with a description
$ eecli generate:command --description="Clear custom cache" cache:clear:custom
- create:category
- create:category_group
- create:channel
- create:field:<fieldtype>
- create:field_group
- create:global_variable
- create:member
- create:member_group
- create:snippet
- create:status
- create:status_group
- create:template
- create:template_group
- create:upload_pref