First implementation of the cli