TplBlock/vendor/symfony/console/Tests/Fixtures/application_1.md
2018-03-26 21:57:35 +02:00

3.7 KiB

UNKNOWN

  • help
  • list

help

  • Description: Displays help for a command

  • Usage:

    • help [--xml] [--format FORMAT] [--raw] [--] [<command_name>]

The help command displays help for a given command:

php app/console help list

You can also output the help in other formats by using the --format option:

php app/console help --format=xml list

To display the list of available commands, please use the list command.

Arguments:

command_name:

  • Name: command_name
  • Is required: no
  • Is array: no
  • Description: The command name
  • Default: 'help'

Options:

xml:

  • Name: --xml
  • Shortcut:
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output help as XML
  • Default: false

format:

  • Name: --format
  • Shortcut:
  • 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:
  • 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:
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Force ANSI output
  • Default: false

no-ansi:

  • Name: --no-ansi
  • Shortcut:
  • 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 list command lists all commands:

php app/console list

You can also display the commands for a specific namespace:

php app/console list test

You can also output the information in other formats by using the --format option:

php app/console list --format=xml

It's also possible to get raw list of commands (useful for embedding command runner):

php app/console list --raw

Arguments:

namespace:

  • Name: namespace
  • Is required: no
  • Is array: no
  • Description: The namespace name
  • Default: NULL

Options:

xml:

  • Name: --xml
  • Shortcut:
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output list as XML
  • Default: false

raw:

  • Name: --raw
  • Shortcut:
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output raw command list
  • Default: false

format:

  • Name: --format
  • Shortcut:
  • Accept value: yes
  • Is value required: yes
  • Is multiple: no
  • Description: The output format (txt, xml, json, or md)
  • Default: 'txt'