# How can i use the node-red command line?

**URL:** https://discourse.nodered.org/t/how-can-i-use-the-node-red-command-line/57017
**Category:** General
**Created:** [21 January 2022 14:08 UTC](https://discourse.nodered.org/t/how-can-i-use-the-node-red-command-line/57017 "2022-01-21T14:08:17Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [21 January 2022 14:54 UTC](https://discourse.nodered.org/t/how-can-i-use-the-node-red-command-line/57017/5 "2022-01-21T14:54:18Z")

</div>

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](https://www.npmjs.com/package/web-midi-api)

* * *

Alternatively, if you were to use windows, there is a contrib node [node-red-contrib-midi-windows](https://flows.nodered.org/node/node-red-contrib-midi-windows) - I guess from the title it wont work on Ubuntu 20.04

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-use-the-node-red-command-line/57017)._
