...
Code Block |
---|
./translate5.sh list
Translate5 CLI Maintenance 1.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable 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:
config List, get and set translate5 configuration values.
help Displays help for a command
list Lists commands
log Query the translate5 log
database
database:update Maintain database updates.
session
session:impersonate Returns a URL to authenticate password less as the given user.
task
task:clean provides information about and the possibility to delete hanging import / erroneous tasks and orphaned task data directories
worker
worker:list Prints a list of current workers or details about one worker |
Using bash completion for usage
Just copy "ProjectRoot/Translate5/translate5.sh.bash-completion" to /etc/bash_completion.d/ or source the file in your .bashrc
Updating bash completion files while CLI development
Code Block |
---|
|
# in translate5 root folder
symfony-autocomplete --shell=bash ./translate5.sh > Translate5/translate5.sh.bash-completion
symfony-autocomplete --shell=zsh ./translate5.sh > Translate5 /translate5.sh.zsh-completion |