First off thank you for taking the time to help me. I am currently lost with what I need to do to import my flows through the command line. I have read through the Admin API Methods here and this website here on examples.
Using the below curl in the command line
curl -X GET http://localhost:1880/auth/login
gives me the output
{}
From what I understand with this is that I do not have active authentication on so I should not have to use any authentication credentials when I use POST.
Now going back to the examples website anytime I follow their "replace all flows from a file" I get a error below
{"code":"unexpected_error","message":"config.forEach is not a function"}curl: (6) Could not resolve host: application
The file has the following information in it.
[{"id":"bed4fb91.f40858","type":"tab","label":"Sheet 1","disabled":false,"info":""},{"id":"3bcc44ce.14cafc","type":"inject","z":"bed4fb91.f40858","name":"Trigger","topic":"","payload":"","payloadType":"date","repeat":"3","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":140,"wires":[[]]}]
And I am using this curl code on the command line
curl -X POST http://localhost:1880/flows -H 'content-type: application/json' -d @flows
What am I doing wrong? Also my end goal is to take an exported flow file and import the flow over command line so if there is a better way I can do this please let me know.