Command "console generate:command" is not working

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.?

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.