cli support, cli tests