# Help with how to upload subflows to \*the library\*

**URL:** <https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715>\
**Category:** General\
**Created:** [20 February 2022 20:37 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715 "2022-02-20T20:37:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 20:37 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/1 "2022-02-20T20:37:42Z")

</div>

I am reading the stuff written on the page/s but it isn't making sense to me.

I am wanting to upload a subflow, but the closest I can find is a `NODE` - fair enough in some ways.  
But then it is talking about the _directory structure_...... Um, sorry. I'm confused.

If someone doesn't mind explaining this to the village idiot, I'd appreciate it.

---

<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:** [20 February 2022 20:42 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/2 "2022-02-20T20:42:04Z")

</div>

> [@Trying\_to\_learn](#):
>
> I am reading the stuff written on the page/s but it isn't making sense to me.

What pages?

If you mean the Flow Library, then what your looking for is the option to add a flow.

That lets you upload a flow JSON, which can include your subflow.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 20:43 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/3 "2022-02-20T20:43:56Z")

</div>

[How to upload a node](https://nodered.org/docs/creating-nodes/packaging#readmemd)

(I seem to now think I have taken the wrong option one step back)

I'll check the "add a flow" and see if I can understand that better.

Thanks.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 20:48 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/4 "2022-02-20T20:48:19Z")

</div>

Ok. The `flow` option is better.

Am doing it that way.

Thanks.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 20:52 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/5 "2022-02-20T20:52:02Z")

</div>

(If I want to include an example flow for the subflow....)

I can't work out how to include that.  
As I am supposedly uploading a flow, adding an example is not allowed.

---

<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:** [20 February 2022 20:55 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/6 "2022-02-20T20:55:44Z")

</div>

Why not just upload your example flow, with the subflow, as a single flow?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 20:58 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/7 "2022-02-20T20:58:05Z")

</div>

Because to me, that isn't _legal_ / _allowed_.

(I've uploaded the subflow now anyway.)  
Let's see how much flack I get from it. (Thinking good thoughts.)

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [20 February 2022 21:26 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/8 "2022-02-20T21:26:04Z")

</div>

Are you trying to upload a subflow as a flow, or do you want to package a subflow as a node that can be uploaded to npm so you can install/update it through the pallet manager?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 February 2022 21:30 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/9 "2022-02-20T21:30:41Z")

</div>

It's up there....

`output-blinker`

(Now I'm building anti-flack walls) 😉

I hardly ever do that so I really messed it up.  
As you read from what I was originally doing.  
Nic suggested uploading it in the `flow` section and so I did.

---

<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:** [6 March 2022 21:31 UTC](https://discourse.nodered.org/t/help-with-how-to-upload-subflows-to-the-library/58715/10 "2022-03-06T21:31:24Z")

</div>

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