# So official method to get installed NR version?

**URL:** <https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147>\
**Category:** General\
**Created:** [14 June 2021 19:09 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147 "2021-06-14T19:09:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [14 June 2021 19:09 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/1 "2021-06-14T19:09:16Z")

</div>

Official method to get installed NR version?

Just did an install of NR via the official script and it seems the following fails to work now?

```auto
# npm ls -g --depth=0 | grep node-red | cut -d '@' -f 2

```

Seems odd that node-red 'executable' (/usr/sbin/node-red) has no --version or -V command line option? Begs for an addition next update right?

Running the executable while it is already running also does not seem to retire its-self, which would be a good add to the design as well. I can't seem to think of a use case where more than one instance of NR would be running on the same device? (Ignoring docker of course).

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [14 June 2021 19:27 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/2 "2021-06-14T19:27:44Z")

</div>

Upgrade in place the above command still works, I upgraded a 1.3.4 version to 1.3.5. But the fresh install the command failed. So some odd? Nothing changed with the install script recently?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 June 2021 19:34 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/3 "2021-06-14T19:34:38Z")

</div>

`node-red --help` or `node-red -?` both include the version number

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 June 2021 19:41 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/4 "2021-06-14T19:41:23Z")

</div>

It is not unusual to run multiple instances of node red on one machine.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 June 2021 19:55 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/5 "2021-06-14T19:55:28Z")

</div>

It doesn't seem unreasonable to have `--version` to return just the version number.

If any wants to make their first contribution it would be a great place to start.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [14 June 2021 21:05 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/6 "2021-06-14T21:05:14Z")

</div>

> [@Nodi.Rubrum](#):
>
> I can't seem to think of a use case where more than one instance of NR would be running on the same device?

I have 3 running on my main Win10 PC at same time on different ports

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 June 2021 23:12 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/7 "2021-06-14T23:12:36Z")

</div>

> [@Nodi.Rubrum](#):
>
> I can't seem to think of a use case where more than one instance of NR would be running on the same device?

Running a beta is an excellent use-case 🙂 As is running an updated version against live flows in a test environment. Or even occasionally running an old instance because you've some old code that you don't want to update for some other reason (maybe it doesn't work with an updated dependency).

Or even simply to split your flows. One really good reason in a multi-user environment is to keep some core flows hidden from users. And of course to be able to keep user flows separate.

Lots of reasons 😀

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [15 June 2021 05:12 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/8 "2021-06-15T05:12:16Z")

</div>

What is a use case for multiple instances? Curious... why someone would do it, other than active development of nodes? @TotallyInformation just saw your comment. Ok, I see fhe logic.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 August 2021 05:12 UTC](https://discourse.nodered.org/t/so-official-method-to-get-installed-nr-version/47147/9 "2021-08-14T05:12:21Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
