Run Matomo console commands from the browser, with autocompletion and a library of every available command, when you have no SSH access to the server: shared hosting, managed platforms, locked down servers.
- A console in Matomo: Administration > Platform > Console, for super users only. Type a command, its output appears as it runs, with the colors of a real terminal.
- Autocompletion: command names while you type the first word, then the options of the command, with their descriptions. Tab accepts a suggestion, Up and Down browse the suggestions or the commands you ran.
- Command library: every command of your Matomo, core and plugins, grouped by namespace and searchable, with its description, usage, arguments and options. One click inserts it in the console.
- Live output: the output is streamed while the command runs, logs included, so long commands such as
core:archiveshow their progress. A Stop button (or Ctrl+C) interrupts the running command, and it keeps running if you only close the page. - No shell needed: commands run inside Matomo, the same way the
consolescript runs them. It works on hostings whereexec(),proc_open()or SSH are disabled. - Translated into 12 languages.
- Super users only, the page and the command endpoint both check it.
- The page asks the super user to confirm their password first, like installing a plugin does, and asks again once the confirmation expires.
- Commands only run from a logged in browser session (session token, POST only). The endpoint is not part of the HTTP API, a
token_authalone cannot run a command. - Development commands (
development:*,generate:*,tests:*,vue:*,translations:*...), commands calling system tools through a shell (git:*,log:watch) and fake data generators (visitorgenerator:*) are never available. Plugin and Marketplace commands follow theenable_plugins_adminsetting. config:setandconfig:deletecannot change the[ConsoleUI]and[Development]sections, norenable_plugin_upload,enable_plugins_adminandalways_load_commands_from_plugin.core:archive --urlonly accepts the URL of this Matomo,--xhprofand--matomo-domainare refused.- Every command is written to the Matomo logs with the login of the super user, values of password, token, key and config options masked. The
ConsoleUI.commandExecutedevent lets an audit plugin record it too. - The server administrator can restrict or turn off the console in
config/config.ini.php, and the console cannot change that section itself:
[ConsoleUI]
; turns the console off
enabled = 0
; when set, only these commands are available
allowed_commands[] = "core:archive"
allowed_commands[] = "core:clear-caches"
; commands removed from the console, on top of the development ones
blocked_commands[] = "user:*"- Matomo 5.0.0 or later, up to Matomo 6 excluded (
>=5.0.0,<6.0.0-b1) - On Matomo 6, install Console UI 6.x instead.
- Install Console UI from the Marketplace (Administration > Platform > Marketplace) and activate it.
- Go to Administration > Platform > Console and confirm your password.
- Type a command, for example
core:archiveorcore:clear-caches, or pick one in the command library.
The plugin stores nothing: the commands you type stay in the page and are forgotten when you leave it. Each command run is written to the Matomo logs. The plugin sends no data to third parties.
Openmost is an official Matomo Implementation Partner. When the console is not enough, we install, upgrade and maintain Matomo on any hosting, archiving and performance tuning included.
- Email: ronan@openmost.com
- Homepage: https://openmost.com/matomo/extensions/console-ui
- Issues: https://github.com/openmost/ConsoleUI/issues
Screenshots of the console and the command library are available in the screenshots folder and on the Marketplace.
GPL v3 or later