CLI crate is a little bit messy. Everything in a single file and there are no tests. It needs refactoring