A new CLI tool called translate5.sh (or translate5.bat under windows) is currently under development.

Its purpose is to provide important commands to maintain translate5 on command line, and is replacing install-and-update2.sh and in future the whole additional maintenance functionality of install-and-update.sh so that only installing and updating remains in install-and-update.sh

A Bash completion file is available in "ProjectRoot/Translate5/translate5.sh.bash-completion"

The following commands are available in translate5.[sh|bat]:

./translate5.sh list
Translate5 CLI Maintenance 1.0

  command [options] [arguments]

  -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:update      Maintain database updates.
  session:impersonate  Returns a URL to authenticate password less as the given user.
  task:clean           provides information about and the possibility to delete hanging import / erroneous tasks and orphaned task data directories
  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

# 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