midclt --help
will show you all the commands you can use. The most interesting being call
.
If you use the format taskname.query
, it essentially reads the database config, which is more “readable” if you pipe it through jq
, since it is in JSON format.
If you use the format taskname.run
, it informs the middleware to run the task with the matching numeric “ID”.
Using midclt
keeps everything contained / integrated with the middleware/GUI. That’s why it will properly show up in your “Tasks” in the top right corner. Simply using commands (such as rsync
or zfs
) will not register with the middleware.
You can browse the API here.