What does the command system:update:finish do?

Viewed 38

The Shopware 6 bin/console command system:update:finish is used in the composer post-install and post-update scripts[1]. When I look up the help for the command it does not give me any description of what the command does or when to use it:

$ bin/console system:update:finish --help
Usage:
  system:update:finish

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
  -e, --env=ENV         The Environment name. [default: "prod"]
      --no-debug        Switch off debug mode.
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

The official documentation does not provide any description either[2].

What does the command do? When should it be used, or should it be used only in the composer scripts?

1 Answers

Essentially this commands runs two other CLI commands internally:

bin/console database:migrate core --all
bin/console assets:install

It also dispatches UpdatePostFinishEvent and there are a few different subscribers that listen to it.

Related