add Pipe mode in CLI