Console Commands
Herbie is using Console Components for creating command-line commands.
Console commands can be used for any recurring task, such as cronjobs, imports, or other batch jobs.
The following commands are available by the herbie
command-line application.
Name | Description |
---|---|
clear-files | The clear-files command deletes asset, cache and log files from several directories. |
Herbie console commands can be executed with the following syntax:
php vendor/bin/herbie
This will give you a list of all available commands. The output looks like this:
---------------
HERBIE CLI-Tool
---------------
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
clear-files Clears asset, cache and log files
completion Dump the shell completion script
help Display help for a command
list List commands
The command to clear temporary files then looks like this, for example.
php vendor/bin/herbie clear-files
Additional information on how to execute commands can be found at https://symfony.com/doc/current/components/console/usage.html.