I think this project github.com/sstephenson/bats can come handy! I have never used it myself though. For me, it was always enough to write tests with mocha & chai (i.e. test that arguments are parsed correctly and your internal logic). What exactly do you want to achieve by testing via CLI?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.