Factory for cli objects creation