# Reload of credential file

**URL:** <https://discourse.nodered.org/t/reload-of-credential-file/24204>\
**Category:** General\
**Created:** [4 April 2020 06:36 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204 "2020-04-04T06:36:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [4 April 2020 06:36 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204/1 "2020-04-04T06:36:24Z")

</div>

Hi,  
I have 2 node-red instances.  
Using the Admin-API I'm able to sync the flows and using scp I'm also able to copy the credential file from one node instance to the other. Unfortunately they are not directly applied, so I currently see only the option to stop the second node-red instance and start it again to load the credential file. This has some side-effects.

Question: Is there any way to bring a node-red instance to reload the flows\_cred file without performing a full stop-start / restart?

Thank you for any hint 🙂

---

<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:** [4 April 2020 08:29 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204/2 "2020-04-04T08:29:02Z")

</div>

Can't you sync the flow file and credentials file at the same time before restarting node red, which I assume you have to do anyway to use the new flow file?

---

<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:** [4 April 2020 10:00 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204/3 "2020-04-04T10:00:32Z")

</div>

You can get the runtime to reload it's flows (including credentials) by doing an http post to /flows with the deployment-type header set to "reload"

[https://nodered.org/docs/api/admin/methods/post/flows/](https://nodered.org/docs/api/admin/methods/post/flows/)

If you are using 1.0.4 you can also include your credentials when you use the admin API to post your updated flows. Include a `credentials` property on the object you post. Need to get the docs updated to cover that.

---

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [5 April 2020 04:20 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204/4 "2020-04-05T04:20:26Z")

</div>

> [@knolleary](#):
>
> If you are using 1.0.4 you can also include your credentials when you use the admin API to post your updated flows. Include a `credentials` property on the object you post. Need to get the docs updated to cover that.

Than you very much 🙂  
Sorry, I was really spending some time and searchin arround a reload function, no clue why I didn't find that.  
That was a huge help and it worked very great.  
Thanks!!! 🙂 🙂

---

<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:** [4 June 2020 04:20 UTC](https://discourse.nodered.org/t/reload-of-credential-file/24204/5 "2020-06-04T04:20:26Z")

</div>

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