CLI TPL class and automatic CLI detecting