separate cli run from CLI functionality