Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New console command "core:version" outputs the Matomo version information #17755

Closed
ziegenberg opened this issue Jul 12, 2021 · 1 comment
Closed
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@ziegenberg
Copy link
Contributor

ziegenberg commented Jul 12, 2021

Summary

The Symfony built-in commands for the console provides an --version (-V) option to "Display this application version". It, however, is not just the version information, but it is prefixed with the string Matomo version, which makes it harder to parse and compare, e.g. with what https://builds.matomo.org/LATEST returns.

I'd like to have a core:version command that outputs the bare version information without any additional strings. This comes in handy when automating things using the console for headless updates.

Your Environment

  • Matomo Version: 4.3.1
  • PHP Version: 8.0.8
  • Server Operating System: RHEL
  • Additionally installed plugins:
@ziegenberg ziegenberg added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jul 12, 2021
ziegenberg added a commit to ziegenberg/matomo that referenced this issue Jul 12, 2021
* adds a new console command core:version which outputs only the bare version information

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
ziegenberg added a commit to ziegenberg/matomo that referenced this issue Jul 12, 2021
* adds a new console command core:version which outputs only the bare version information

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
diosmosis pushed a commit that referenced this issue Jul 18, 2021
* adds a new console command core:version which outputs only the bare version information

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@diosmosis diosmosis added this to the 4.4.0 milestone Jul 18, 2021
@diosmosis
Copy link
Member

Fixed by #17757

@mattab mattab changed the title Provide console command for outputing version info only New console command "core:version" outputs the Matomo version information Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants