Shameless plug: I made apy [0] that allows more or less the same functionality, and more, from the command line. Some things I like about apy that I never found from any alternative solutions:
* I communicate directly with the local Anki database - no need to keep Anki open and use any ankiconnect type plugin.
* I can sync the database before and after with "apy sync".
* I can easily add single cards from the command line. And I can add mulitple notes from a Markdown formatted file simultaneously.
* I can easily edit cards that I have marked to specifically change in some way (I find it useful to adjust cards).