I am using Windows 11 and installed NSSM to open Node-RED directly from the task manager as a service..
^^ this works cool.... I am just learning about it, come next day, and still have the same Node-RED.
But!!!! If I run node-red from the command line, it seems to open a completely different Node-RED ??
How can tap into the same Node-RED from the command line as the one I am using in task manager???
It seems like the command line gets to the settings.js file, but that is it... it doesn't keep my nodes, flows, background, etc...
The NSSM for task manager is configured like this:
Path: C:\Users\EdgarLindo\AppData\Roaming\npm\node-red.cmd
Startup directory: C:\Users\EdgarLindo.node-red
Argument: --settings "C:\Users\EdgarLindo.node-red\settings.js"
Service Name: node-red
And the command line looks more like this:
C:\Users\EdgarLindo>node-red --userDir
27 Jan 12:36:48 - [info]
Welcome to Node-RED
===================
27 Jan 12:36:48 - [info] Node-RED version: v4.1.3
27 Jan 12:36:48 - [info] Node.js version: v24.4.0
27 Jan 12:36:48 - [info] Windows_NT 10.0.26200 x64 LE
27 Jan 12:36:49 - [info] Loading palette nodes
27 Jan 12:36:49 - [info] Settings file : C:\Users\EdgarLindo.node-red\settings.js
27 Jan 12:36:49 - [info] Context store : 'memoryOnly' [module=memory]
27 Jan 12:36:49 - [info] Context store : 'file' [module=localfilesystem]
27 Jan 12:36:49 - [info] User directory : \Users\EdgarLindo.node-red
27 Jan 12:36:49 - [warn] Projects disabled : editorTheme.projects.enabled=false
27 Jan 12:36:49 - [info] Flows file : \Users\EdgarLindo.node-red\flows.json
27 Jan 12:36:49 - [info] Creating new flow file
27 Jan 12:36:49 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
27 Jan 12:36:49 - [warn] Encrypted credentials not found
27 Jan 12:36:49 - [info] Server now running at http://127.0.0.1:1880/
27 Jan 12:36:49 - [info] Starting flows
27 Jan 12:36:49 - [info] Started flows
Do I have to run the command line from any specific folder????