updates cli, makes it pipeable