There is little test coverage of the cli commands. This needs improving and best practices documenting