matomo-for-wordpress icon indicating copy to clipboard operation
matomo-for-wordpress copied to clipboard

Support WP CLI

Open tsteur opened this issue 6 years ago • 1 comments

We already have a CLI command to uninstall WP-Matomo. Eventually it be good if we could expose all Matomo console commands, or at least some of them that may be needed quite often such as invalidating reports. Looked quickly into WP-CLI and doesn't look straight forward to make the Matomo console commands available there.

tsteur avatar Oct 08 '19 02:10 tsteur

Created https://github.com/matomo-org/matomo/pull/15183 which will allow us to bootstrap Matomo within WP-CLI. Before it always failed because WP-CLI was also using Spyc and we were always getting error Cannot declare class Spyc, because the name is already in use.

This means we could eventually support console commands for MultiSite (as they cannot use our console tool) and also be good in general to forward all calls to Matomo console

tsteur avatar Nov 21 '19 20:11 tsteur