Have you discovered moosh yet? https://moosh-online.com. Not sure if it supports creating quizzes yet, but even if not, it is probably a tool you would like, since you like the command-line.
It is possible to create quizzes programmatically. For example, here is some code from one of Moodle's unit tests that creates a quiz: https://github.com/moodle/moodle/blob/master/mod/quiz/tests/structure_test.php#L81.
So, with a bit of scripting, you should probably be able to get something to work.