Command "console generate:command" is not working


(Gwangbok Lee (Thorpe)) #1

when i command “console generate:command” on my linux server.
the error appears.

thoroe@develop-all:/$ ./console generate:command --pluginname=MyPlugin

There are no commands defined in the “generate” namespace.

thoroe@develop-all:/$ ./console generate:command

There are no commands defined in the “generate” namespace.

anyone knows this issue.?


(Lukas Winkler) #2

Hi,

Those features are only available when development mode is enabled.

./console development:enable

See here:
https://developer.matomo.org/guides/getting-started-part-1#enable-development-mode

I’d also recommend you to install Matomo from git as explained above if you want to write a plugin locally.