What do you mean by "a cli version"? A version that would run in a terminal? Or a version that would present one card when the command is invoked? In this case, how would the user enter the answer (again, hard, good, easy)? It would require Anki a way to bind this answer to the right card (the algorithm for choosing a card should be deterministic, or a card ID should be passed to the command for answering).