How can i use the node-red command line?

That node is not a node-red node (it is a regular NPM module)

You could use a function node to import the module (see the setup tab on the function node) and code the functionality in the same function node (in the on message tab).

NOTE: To use that package in a function (i.e. in the NODE environment as opposed to a browser) you will likely also need to import web-midi-api


Alternatively, if you were to use windows, there is a contrib node node-red-contrib-midi-windows - I guess from the title it wont work on Ubuntu 20.04