# List of default environment variables

**URL:** <https://discourse.nodered.org/t/list-of-default-environment-variables/61936>\
**Category:** General\
**Created:** [28 April 2022 20:35 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936 "2022-04-28T20:35:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgilleland](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgilleland/32/59817_2.png) [@dgilleland](https://discourse.nodered.org/u/dgilleland)\
**Post date:** [28 April 2022 20:35 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936/1 "2022-04-28T20:35:34Z")

</div>

I'm looking to find a list of the default environment variable names built into Node-RED. I imagine there are slight differences based on the platform (desktop vs arduino vs etc.). I've searched the documentation, but I can't find anything definitive.

---

<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:** [28 April 2022 20:40 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936/2 "2022-04-28T20:40:15Z")

</div>

I thought this was in the docs, but I can't find it either.

In Node-RED 2.2, we released the changes from this PR - [Add support for accessing node id & name as environment variable by HiroyasuNishiyama · Pull Request #3356 · node-red/node-red · GitHub](https://github.com/node-red/node-red/pull/3356/files) - which introduced the following env vars:

- `NR_FLOW_ID`
- `NR_FLOW_NAME`
- `NR_GROUP_ID`
- `NR_GROUP_NAME`
- `NR_NODE_ID`
- `NR_NODE_NAME`

Is that the sort of thing you're looking for?

---

<div class="post-metadata">

**Author:** ![dgilleland](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgilleland/32/59817_2.png) [@dgilleland](https://discourse.nodered.org/u/dgilleland)\
**Post date:** [28 April 2022 21:33 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936/3 "2022-04-28T21:33:12Z")

</div>

Yes, that's the type of information I need.

BTW, I'm finishing up a set of lesson plans for a new course (post-secondary), and finding this sort of documentation can be quite helpful.

I've added an [issue](https://github.com/node-red/node-red.github.io/issues/272) in the website's repo, and I would be happy to create a pull-request contribution on this for you.

---

<div class="post-metadata">

**Author:** ![dgilleland](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgilleland/32/59817_2.png) [@dgilleland](https://discourse.nodered.org/u/dgilleland)\
**Post date:** [2 May 2022 20:48 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936/4 "2022-05-02T20:48:18Z")

</div>

I created a [PR](https://github.com/node-red/node-red.github.io/pull/273) to close the issue.

---

<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:** [1 July 2022 20:48 UTC](https://discourse.nodered.org/t/list-of-default-environment-variables/61936/5 "2022-07-01T20:48:46Z")

</div>

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