Created 11-17-2022 11:25 PM
I have a NIFI workflow running, how do I start and stop the workflow from the CLI. Is it possible to only start/stop one workflow from multiple workflows?
Created 11-18-2022 12:02 AM
Hey @syntax_ ,
Here is the documentation on NIFI's toolkit CLI commands. It seems there are commands for "pg-stop" and "pg-start", which I believe will allow you to start/stop and manage specific flows inside your canvas by using their IDs.
Personally, I would recommend you use NIFI's REST API for automations rather than CLI commands.
Hope this helps 🙂
Created 11-18-2022 02:03 AM
Thank you for the help. But why is it better to use APIs over CLI commands. Can you give some insight on that?
Created 11-18-2022 08:25 AM
A couple of reasons:
This is not to say you can't use the CLI tool - rather, just my opinion on the matter and some insight for how my team writes automations on nifi 🙂