matomo-for-wordpress
                                
                                
                                
                                    matomo-for-wordpress copied to clipboard
                            
                            
                            
                        Support WP CLI
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.
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