cli with basic pipe working