add direct input feature for cli