Plugin generation issue using npm strapi

Hi there, I am using strapi, I have got an error while installing a plugin using the below command
npm strapi generate:plugin wysiwyg

Below is the error which is throwing in my terminal.

C:\Users\Admin\Desktop\strapi2\my-app>npm run strapi generate:plugin wysiwyg

my-app@0.1.0 strapi C:\Users\Admin\Desktop\strapi2\my-app
strapi “generate:plugin” “wysiwyg”

error: unknown command ‘generate:plugin’
npm ERR! errno 1
npm ERR! my-app@0.1.0 strapi: strapi "generate:plugin" "wysiwyg"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 strapi script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2022-01-13T07_11_28_579Z-debug.log

Any help is appreciated !!!

Is strapi v4? if so, when installing @strapi/strapi the command you should use is strapi generate and then in the menu select plugin, this will generate the file structure needed for a basic plugin.

note: when I didn’t get the strapi command, I had to manually install @strapi/strapi