Problem with plugin generation

Hi All.
I need to write an Android plugin for Capacitor, but the method described on capacitor.ionicframework.com/docs/plugins website does not work for me.
When running first command:
$ npx @capacitor/cli plugin:generate
I get: Cannot open assembly ‘plugin:generate’: No such file or directory.

$ npx cap plugin:generate
worked fine.