310 lines
5.6 KiB
Markdown
310 lines
5.6 KiB
Markdown
|
MbString åpplicätion
|
||
|
====================
|
||
|
|
||
|
* help
|
||
|
* list
|
||
|
|
||
|
**descriptor:**
|
||
|
|
||
|
* descriptor:åèä
|
||
|
|
||
|
help
|
||
|
----
|
||
|
|
||
|
* Description: Displays help for a command
|
||
|
* Usage:
|
||
|
|
||
|
* `help [--xml] [--format FORMAT] [--raw] [--] [<command_name>]`
|
||
|
|
||
|
The <info>help</info> command displays help for a given command:
|
||
|
|
||
|
<info>php app/console help list</info>
|
||
|
|
||
|
You can also output the help in other formats by using the <comment>--format</comment> option:
|
||
|
|
||
|
<info>php app/console help --format=xml list</info>
|
||
|
|
||
|
To display the list of available commands, please use the <info>list</info> command.
|
||
|
|
||
|
### Arguments:
|
||
|
|
||
|
**command_name:**
|
||
|
|
||
|
* Name: command_name
|
||
|
* Is required: no
|
||
|
* Is array: no
|
||
|
* Description: The command name
|
||
|
* Default: `'help'`
|
||
|
|
||
|
### Options:
|
||
|
|
||
|
**xml:**
|
||
|
|
||
|
* Name: `--xml`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: To output help as XML
|
||
|
* Default: `false`
|
||
|
|
||
|
**format:**
|
||
|
|
||
|
* Name: `--format`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: yes
|
||
|
* Is value required: yes
|
||
|
* Is multiple: no
|
||
|
* Description: The output format (txt, xml, json, or md)
|
||
|
* Default: `'txt'`
|
||
|
|
||
|
**raw:**
|
||
|
|
||
|
* Name: `--raw`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: To output raw command help
|
||
|
* Default: `false`
|
||
|
|
||
|
**help:**
|
||
|
|
||
|
* Name: `--help`
|
||
|
* Shortcut: `-h`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Display this help message
|
||
|
* Default: `false`
|
||
|
|
||
|
**quiet:**
|
||
|
|
||
|
* Name: `--quiet`
|
||
|
* Shortcut: `-q`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Do not output any message
|
||
|
* Default: `false`
|
||
|
|
||
|
**verbose:**
|
||
|
|
||
|
* Name: `--verbose`
|
||
|
* Shortcut: `-v|-vv|-vvv`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
||
|
* Default: `false`
|
||
|
|
||
|
**version:**
|
||
|
|
||
|
* Name: `--version`
|
||
|
* Shortcut: `-V`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Display this application version
|
||
|
* Default: `false`
|
||
|
|
||
|
**ansi:**
|
||
|
|
||
|
* Name: `--ansi`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Force ANSI output
|
||
|
* Default: `false`
|
||
|
|
||
|
**no-ansi:**
|
||
|
|
||
|
* Name: `--no-ansi`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Disable ANSI output
|
||
|
* Default: `false`
|
||
|
|
||
|
**no-interaction:**
|
||
|
|
||
|
* Name: `--no-interaction`
|
||
|
* Shortcut: `-n`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Do not ask any interactive question
|
||
|
* Default: `false`
|
||
|
|
||
|
list
|
||
|
----
|
||
|
|
||
|
* Description: Lists commands
|
||
|
* Usage:
|
||
|
|
||
|
* `list [--xml] [--raw] [--format FORMAT] [--] [<namespace>]`
|
||
|
|
||
|
The <info>list</info> command lists all commands:
|
||
|
|
||
|
<info>php app/console list</info>
|
||
|
|
||
|
You can also display the commands for a specific namespace:
|
||
|
|
||
|
<info>php app/console list test</info>
|
||
|
|
||
|
You can also output the information in other formats by using the <comment>--format</comment> option:
|
||
|
|
||
|
<info>php app/console list --format=xml</info>
|
||
|
|
||
|
It's also possible to get raw list of commands (useful for embedding command runner):
|
||
|
|
||
|
<info>php app/console list --raw</info>
|
||
|
|
||
|
### Arguments:
|
||
|
|
||
|
**namespace:**
|
||
|
|
||
|
* Name: namespace
|
||
|
* Is required: no
|
||
|
* Is array: no
|
||
|
* Description: The namespace name
|
||
|
* Default: `NULL`
|
||
|
|
||
|
### Options:
|
||
|
|
||
|
**xml:**
|
||
|
|
||
|
* Name: `--xml`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: To output list as XML
|
||
|
* Default: `false`
|
||
|
|
||
|
**raw:**
|
||
|
|
||
|
* Name: `--raw`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: To output raw command list
|
||
|
* Default: `false`
|
||
|
|
||
|
**format:**
|
||
|
|
||
|
* Name: `--format`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: yes
|
||
|
* Is value required: yes
|
||
|
* Is multiple: no
|
||
|
* Description: The output format (txt, xml, json, or md)
|
||
|
* Default: `'txt'`
|
||
|
|
||
|
descriptor:åèä
|
||
|
--------------
|
||
|
|
||
|
* Description: command åèä description
|
||
|
* Usage:
|
||
|
|
||
|
* `descriptor:åèä [-o|--option_åèä] [--] <argument_åèä>`
|
||
|
* `descriptor:åèä -o|--option_name <argument_name>`
|
||
|
* `descriptor:åèä <argument_name>`
|
||
|
|
||
|
command åèä help
|
||
|
|
||
|
### Arguments:
|
||
|
|
||
|
**argument_åèä:**
|
||
|
|
||
|
* Name: argument_åèä
|
||
|
* Is required: yes
|
||
|
* Is array: no
|
||
|
* Description: <none>
|
||
|
* Default: `NULL`
|
||
|
|
||
|
### Options:
|
||
|
|
||
|
**option_åèä:**
|
||
|
|
||
|
* Name: `--option_åèä`
|
||
|
* Shortcut: `-o`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: <none>
|
||
|
* Default: `false`
|
||
|
|
||
|
**help:**
|
||
|
|
||
|
* Name: `--help`
|
||
|
* Shortcut: `-h`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Display this help message
|
||
|
* Default: `false`
|
||
|
|
||
|
**quiet:**
|
||
|
|
||
|
* Name: `--quiet`
|
||
|
* Shortcut: `-q`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Do not output any message
|
||
|
* Default: `false`
|
||
|
|
||
|
**verbose:**
|
||
|
|
||
|
* Name: `--verbose`
|
||
|
* Shortcut: `-v|-vv|-vvv`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
||
|
* Default: `false`
|
||
|
|
||
|
**version:**
|
||
|
|
||
|
* Name: `--version`
|
||
|
* Shortcut: `-V`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Display this application version
|
||
|
* Default: `false`
|
||
|
|
||
|
**ansi:**
|
||
|
|
||
|
* Name: `--ansi`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Force ANSI output
|
||
|
* Default: `false`
|
||
|
|
||
|
**no-ansi:**
|
||
|
|
||
|
* Name: `--no-ansi`
|
||
|
* Shortcut: <none>
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Disable ANSI output
|
||
|
* Default: `false`
|
||
|
|
||
|
**no-interaction:**
|
||
|
|
||
|
* Name: `--no-interaction`
|
||
|
* Shortcut: `-n`
|
||
|
* Accept value: no
|
||
|
* Is value required: no
|
||
|
* Is multiple: no
|
||
|
* Description: Do not ask any interactive question
|
||
|
* Default: `false`
|